/* ════════════════════════════════════════════════
   PREMIUM NAVBAR STYLES
════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════ */
:root {
  --gold-100: #fffbeb;
  --gold-300: #fde68a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --deep: #040609;
  --deep-2: #080d14;
  --surface: rgba(4,6,9,0.85);
  --glass: rgba(251,191,36,0.06);
  --glass-border: rgba(251,191,36,0.18);
  --glass-hover: rgba(251,191,36,0.12);
  --text-primary: #fef9f0;
  --text-muted: rgba(254,249,240,0.55);
  --nav-height: 68px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Rajdhani', sans-serif;
  --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ════════════════════════════════════════════════
   NAVBAR SHELL
════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1210;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.5s var(--transition);
}

/* Transparent state (top of page) */
#navbar.nav-top {
  background: transparent;
}

/* Scrolled state */
#navbar.nav-scrolled {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 rgba(251,191,36,0.08),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Sacred scan-line shimmer along top edge */
#navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-400) 20%,
    #ffffff 50%,
    var(--gold-400) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s;
}
#navbar.nav-scrolled::before { opacity: 1; }

/* Futuristic corner brackets */
#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(251,191,36,0.4) 15%,
    rgba(251,191,36,0.4) 85%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s 0.1s;
}
#navbar.nav-scrolled::after { opacity: 1; }

/* ── INNER ─────────────────────────────────── */
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ════════════════════════════════════════════════
   BRAND LOGO
════════════════════════════════════════════════ */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: auto;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  position: relative;
  flex-shrink: 0;
}

/* Rotating outer ring */
.brand-emblem .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--gold-400), var(--orange-500), var(--gold-700)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: ring-spin 12s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.brand-emblem svg {
  width: 100%; height: 100%;
  position: relative;
  z-index: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fbbf24 0%, #fde68a 45%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Hover glow on brand */
.brand:hover .brand-name {
  filter: drop-shadow(0 0 12px rgba(251,191,36,0.6));
}

/* ════════════════════════════════════════════════
   DESKTOP NAV LINKS
════════════════════════════════════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

/* Glowing bottom accent line */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-400), var(--orange-500));
  box-shadow: 0 0 8px var(--gold-400);
  transition: left 0.35s var(--transition), right 0.35s var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 14px; right: 14px;
}
.nav-link.active {
  color: var(--gold-400);
}

/* Small icon dot for active */
.nav-link.active::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  flex-shrink: 0;
}

/* ── DIVIDER ─────── */
.nav-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
  margin: 0 4px;
}

/* ════════════════════════════════════════════════
   AUTH BUTTONS
════════════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Login button — outlined futuristic */
.btn-login {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--glass);
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s;
  cursor: pointer;
}

/* Shimmer fill on hover */
.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-600), var(--orange-500));
  transform: translateX(-105%);
  transition: transform 0.45s var(--transition);
  z-index: 0;
}
.btn-login:hover::before { transform: translateX(0); }
.btn-login:hover {
  color: #fff;
  border-color: transparent;
}
.btn-login span { position: relative; z-index: 1; }

/* Logout button */
.btn-logout {
  padding: 9px 22px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}
.btn-logout:hover {
  background: rgba(239,68,68,0.8);
  color: #fff;
  border-color: transparent;
}

/* ════════════════════════════════════════════════
   MOBILE HAMBURGER
════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  transition: background 0.3s, border-color 0.3s;
  z-index: 1201;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--glass-hover); border-color: var(--gold-400); }

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: all 0.4s var(--transition);
  transform-origin: center;
}

/* Active X state */
.hamburger.open {
  z-index: 1208;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
    z-index: 1208;

}
.hamburger.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
    z-index: 1208;

}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
    z-index: 1208;
}

/* ════════════════════════════════════════════════
   MOBILE DRAWER
════════════════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100vh;
  background: linear-gradient(160deg, #06090f 0%, #0d1421 60%, #060608 100%);
  border-left: 1px solid var(--glass-border);
  z-index: 1205;
  transform: translateX(105%);
  transition: transform 0.55s var(--transition);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  overflow-y: auto;
}

/* Top golden accent line in drawer */
.mobile-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--orange-500), transparent);
}

.mobile-drawer.open {
  transform: translateX(0);
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer brand section */
.drawer-brand {
  position: absolute;
  top: 28px; left: 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-400), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Drawer nav links */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.35s var(--transition);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link .link-num {
  font-size: 0.58rem;
  color: var(--gold-600);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.6;
  flex-shrink: 0;
  min-width: 20px;
}

.mobile-nav-link:hover {
  color: var(--gold-300);
  background: var(--glass-hover);
  border-color: var(--glass-border);
  transform: translateX(6px);
}

/* Staggered entrance */
.mobile-nav-links li { opacity: 0; transform: translateX(30px); }
.mobile-drawer.open .mobile-nav-links li {
  animation: slide-in 0.5s var(--transition) forwards;
}
.mobile-drawer.open .mobile-nav-links li:nth-child(1) { animation-delay: 0.07s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(2) { animation-delay: 0.12s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(3) { animation-delay: 0.17s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(4) { animation-delay: 0.22s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(5) { animation-delay: 0.27s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(6) { animation-delay: 0.32s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(7) { animation-delay: 0.37s; }
.mobile-drawer.open .mobile-nav-links li:nth-child(8) { animation-delay: 0.42s; }

@keyframes slide-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Drawer separator */
.drawer-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 20px 0;
}

/* Drawer auth buttons */
.drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s 0.5s var(--transition);
}
.mobile-drawer.open .drawer-auth {
  opacity: 1;
  transform: translateY(0);
}

.drawer-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-600), var(--orange-500));
  border-radius: 8px;
  transition: all 0.3s;
}
.drawer-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

/* ════════════════════════════════════════════════
   ANNOUNCEMENT BAND (optional top strip)
════════════════════════════════════════════════ */
.nav-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(90deg, #1a0a00, #2d0f00, #1a0a00);
  border-bottom: 1px solid rgba(251,191,36,0.15);
  overflow: hidden;
  z-index: 1215;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  /* letter-spacing: 0.25em; */
  text-transform: uppercase;
  /* color: var(--gold-600); */
  color:white;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ticker-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 6px var(--gold-500);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   WITH TICKER — nudge navbar down
════════════════════════════════════════════════ */
body.has-ticker { --nav-height: 68px; }
body.has-ticker #navbar { top: 28px; }

/* ════════════════════════════════════════════════
   PROGRESS BAR (scroll indicator)
════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-400), var(--orange-500), var(--gold-400));
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold-500);
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links .nav-divider,
  .nav-links li.extra { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  
  /* Reduce brand text size on mobile to prevent hamburger overflow */
  .brand-name {
    font-size: 1.1rem !important;
  }
  
  .brand-tagline {
    font-size: 0.45rem !important;
  }
  
  /* Reduce brand emblem size on mobile */
  .brand-emblem {
    width: 36px !important;
    height: 36px !important;
  }
  
  /* Reduce gap between brand elements */
  .brand {
    gap: 8px !important;
  }
}

/* Extra small screens - further reduce brand size */
@media (max-width: 380px) {
  .brand-name {
    font-size: 0.95rem !important;
  }
  
  .brand-tagline {
    font-size: 0.4rem !important;
    margin-top: 1px !important;
  }
  
  .brand-emblem {
    width: 32px !important;
    height: 32px !important;
  }
  
  .brand {
    gap: 6px !important;
  }
  
  /* Reduce navbar inner padding on very small screens */
  .nav-inner {
    padding: 0 16px !important;
  }
}

/* Mobile logout button specific styling */
.mobile-logout-btn {
  color: #fff !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.mobile-logout-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35) !important;
}

/* Service page mobile logout button override */
body.service-page .mobile-logout-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

body.service-page .mobile-logout-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
}

/* ════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════ */
.hidden { display: none !important; }