/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --navy-900: #0A1628;
    --navy-800: #132238;
    --navy-700: #1C2F4A;
    --gold-500: #C9A84C;
    --gold-400: #D4B96A;
}

body {
    background-color: var(--navy-900);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

/* ── Selection ── */
::selection { background: var(--gold-500); color: var(--navy-900); }

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

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

/* ── Hero Floating Cards Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-card-float {
    animation: float 6s ease-in-out infinite;
}

.hero-card-float-delay {
    animation: float 6s ease-in-out 2s infinite;
}

.hero-card-float-delay-2 {
    animation: float 6s ease-in-out 4s infinite;
}

/* ── Gold Shimmer Accent ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ── Subtle Glow on Hover ── */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* ── Section Divider Line ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
