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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 146, 42, 0.3);
    color: #f9edcc;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #040a14;
}

::-webkit-scrollbar-thumb {
    background: #1a3460;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9922a;
}

/* ─── Animations ─── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

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

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

/* ─── Navbar ─── */
#navbar.scrolled {
    background: rgba(4, 10, 20, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(201, 146, 42, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ─── Mobile Menu ─── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── Form Select Arrow ─── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23c9922a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid #c9922a;
    outline-offset: 2px;
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 767px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
}
