/* === Base Styles === */
body {
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  background-color: #0a0a0a;
}

h1, h2, h3, .neon-title {
  font-family: 'Orbitron', sans-serif;
  color: #39ff14;
  text-shadow: 0 0 1px #39ff14, 0 0 10px #39ff14;
}

/* === Content Wrapper === */
.content-wrapper {
  width: 90%;
  max-width: 1200px; /* Prevents excessive width on large screens */
  margin: 0 auto;
  padding: 1rem 0;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a; /* Matches your background */
}

::-webkit-scrollbar-thumb {
  background-color: #39ff14; /* Neon green */
  border-radius: 6px;
  border: 2px solid #0a0a0a; /* Creates a subtle inset effect */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #5aff3c; /* Slightly brighter on hover */
}



/* === Top Bar Layout === */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 110px;
  background-color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 2px solid #39ff14; /* Neon green border */
}

/* === Branding Section === */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 4px #39ff14); /* Optional neon glow */
  transition: transform 0.2s ease-in-out;
}

.site-logo:hover {
  transform: scale(1.05);
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #39ff14;
  text-shadow: 0 0 1px #39ff14, 0 0 10px #39ff14;
  flex-grow: 1;
  text-align: left;
}


.icon-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px; /* vertical spacing between icons */
  align-items: center;
}

.icon-menu li {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-button {
  width: 64px;
  height: 64px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-button:hover,
.icon-button:focus,
.icon-button:active {
  transform: scale(1.1);
  filter: brightness(1.2);
}





/* === Dropdown Menu === */
.menu {
  flex-shrink: 0;
}


.dropdown {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  background-color: #121212;
  color: #ffffff;
  border: 1px solid #39ff14;
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 0 5px #39ff14;
  width: auto;
}

.dropdown:focus {
  outline: none;
  box-shadow: 0 0 10px #39ff14;
}

.dropdown:hover {
  background-color: #1b7432;
}

/* === Responsive Adjustments for Mobile === */
@media (max-width: 999px) {
  /* Keep horizontal layout here */
  .top-bar {
    flex-direction: row; /* ✅ stays horizontal */
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 110px;
  }

  .brand {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .site-title {
    font-size: clamp(2rem, 2vw, 1.8rem);
  }

  .site-logo {
    height: 32px;
  }

  .menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .dropdown {
    width: 100%;
    font-size: 1rem;
  }

  .content-wrapper {
    padding: 1rem;
  }

  /* === Accessibility Enhancements for Mobile Menu === */
  .side-menu {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .side-menu a {
    font-size: 1.5rem !important;
    padding: 0.75rem 0;
    display: block;
  }

  .side-menu li {
    margin-bottom: 2rem; /* More spacing between items */
  }

  .hamburger {
    width: 46px; /* Larger tap target */
    height: 36px;
  }

  .hamburger span {
    height: 5px; /* Thicker bars for visibility */
  }
}


@media (min-width: 601px) and (max-width: 999px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Reduce padding to avoid overflow */
    height: 110px;
    overflow-x: hidden; /* Prevent scroll bar */
  }

  .menu {
    flex-shrink: 1; /* Allow shrinking */
    max-width: 100px; /* Optional: constrain width */
  }

  .hamburger {
    width: 46px;
    height: 36px;
  }
}




/* === Responsive Wrap Below 600px === */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .brand {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .hamburger {
    width: 46px;
    height: 36px;
  }

  .hamburger span {
    height: 5px;
  }
}

/* === Hamburger Icon === */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 46px;
  height: 36px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 4px;
  background-color: #39ff14;
  border-radius: 2px;
  box-shadow: 0 0 5px #39ff14;
  transition: all 0.3s ease;
}

/* === Side Menu === */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100px;
  height: 100vh;
  background-color: #0a0a0a;
  border-left: 2px solid #39ff14;
  box-shadow: -2px 0 10px #39ff14;
  transition: right 0.4s ease;
  z-index: 1060; /* ⬆️ Raised above overlay */
  padding: 2rem 1rem;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin-bottom: 1.5rem;
}

.side-menu a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #39ff14;
  text-decoration: none;
  text-shadow: 0 0 2px #39ff14, 0 0 8px #39ff14;
  transition: transform 0.2s ease;
}

.side-menu a:hover {
  transform: scale(1.1);
}

/* === Menu Open State === */
.side-menu.open {
  right: 0;
}

.side-menu.open .icon-button {
  animation: wobble 0.6s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Overlay === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(3px) contrast(0.9);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: backdrop-filter 0.3s ease, opacity 0.3s ease;
  z-index: 1050; /* ⬆️ Raised above page, but below menu */
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes wobble {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.05) rotate(-4deg); }
  50%  { transform: scale(1.05) rotate(4deg); }
  75%  { transform: scale(1.02) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}


@keyframes glowIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-menu.open li {
  animation: glowIn 0.4s ease forwards;
}

.side-menu.open li:nth-child(1) { animation-delay: 0.1s; }
.side-menu.open li:nth-child(2) { animation-delay: 0.2s; }
.side-menu.open li:nth-child(3) { animation-delay: 0.3s; }
.side-menu.open li:nth-child(4) { animation-delay: 0.4s; }
