/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR — Navigation Bar Styles
   ═══════════════════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.5s var(--transition-ease);
}

#navbar .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  transition: height 0.4s var(--transition-ease);
}

/* Transparent state (at top) */
#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

#navbar:not(.scrolled) .nav-site-name {
  color: white;
}

/* Scrolled state (glassmorphism) */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-inner {
  height: 64px;
}

#navbar.scrolled .nav-site-name {
  color: var(--charcoal);
}

/* ─── Nav Links ──────────────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-link:hover {
  color: white;
}

#navbar.scrolled .nav-link {
  color: rgba(33, 33, 33, 0.7);
}

#navbar.scrolled .nav-link:hover {
  color: var(--saffron);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--transition-ease);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold) !important;
}

.nav-link.active::after {
  width: 100%;
  background: var(--gold);
}

/* ─── Mobile Menu ─────────────────────────────────────────────────────────── */

.mobile-menu-btn {
  display: none;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .mobile-menu-btn {
  color: var(--charcoal);
}

#navbar:not(.scrolled) .mobile-menu-btn {
  color: white;
}

#mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* ─── Navbar Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  #navbar:not(.scrolled) .nav-site-name {
    color: white;
  }
}
