/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C8A45A;
    color: #0A1D3A;
}

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-ctas {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-images {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-scroll {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal.revealed > *:nth-child(4) { transition-delay: 0.3s; }

.reveal.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar Transition ── */
#navbar.scrolled {
    background: rgba(10, 29, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Image Hover Tilt ── */
.group img {
    will-change: transform;
}

/* ── 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;
    }
    .reveal,
    .reveal > * {
        opacity: 1;
        transform: none;
    }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8A45A;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1D3A;
}
::-webkit-scrollbar-thumb {
    background: #C8A45A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4B46A;
}
