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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #020617;
    color: #f8fafc;
}

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fffbeb;
}

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

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Indicator Animation ── */
@keyframes scrollIndicator {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Gold Shimmer on hover for cards ── */
.group:hover .group-hover\:text-gold-300 {
    color: #fcd34d;
}

/* ── Button Focus Styles ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ── Map Dark Overlay ── */
iframe[src*="google.com/maps/embed"] {
    background: #0a1628;
}

/* ── Floating Card Animations ── */
@media (prefers-reduced-motion: no-preference) {
    @keyframes float1 {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(0.5deg); }
    }
    @keyframes float2 {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-8px) rotate(-0.5deg); }
    }
    @keyframes float3 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }
    
    .z-30:nth-child(1) {
        animation: float1 5s ease-in-out infinite;
    }
    .z-30:nth-child(2) {
        animation: float2 6s ease-in-out infinite;
    }
    .z-30:nth-child(3) {
        animation: float3 4.5s ease-in-out infinite;
    }
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    #hero {
        padding-top: 6rem;
    }
}

@media (max-width: 640px) {
    .font-serif {
        font-size: 1.5rem;
    }
}
