/* ================= NAVIGATION BAR (SHARED) ================= */
.site-header {
  display: flex;
  justify-content: center;
  background-color: #1e1e3f;
  padding: 1em 2em;
  border-bottom: 2px solid #8a2be2;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.site-title {
  font-size: 2em;
  font-weight: italic;
  color: white;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  white-space: nowrap;
  line-height: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #b488f4;
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-title:hover .logo-icon {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(240deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  flex-direction: column;
  gap: 4px;
  color: white;
  transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: #b488f4;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: currentColor;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: "Rajdhani", sans-serif;
  font-size: 1em;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  padding: 0.5em 1em;
  border-radius: 6px;
  position: relative;
}

nav a:hover {
  color: #b488f4;
  background-color: rgba(180, 136, 244, 0.1);
  transform: translateY(-2px);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #b488f4;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e1e3f;
    padding: 1em;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 2px solid #8a2be2;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    gap: 1em;
  }

  nav a {
    display: block;
    padding: 0.8em 1em;
    text-align: center;
  }

  .site-title {
    font-size: 1.5em;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }
}
