/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Nav ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fbbf24;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Navbar scrolled state ── */
nav.scrolled {
  background: rgba(6, 12, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
nav.scrolled .nav-link { color: #cbd5e1; }

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(32px);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

/* ── Stagger children ── */
.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 100ms; }
.reveal-group > *:nth-child(3) { transition-delay: 200ms; }
.reveal-group > *:nth-child(4) { transition-delay: 300ms; }
.reveal-group > *:nth-child(5) { transition-delay: 400ms; }
.reveal-group > *:nth-child(6) { transition-delay: 500ms; }

/* ── Gold shimmer on hover for cards ── */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ── Selection ── */
::selection { background: rgba(251, 191, 36, 0.25); color: #fbbf24; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b1120; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
