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

body {
    overflow-x: hidden;
}

/* ── Nav ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f5c237;
    border-radius: 1px;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.mobile-nav-link {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    border-left-color: #f5c237;
    padding-left: 1rem;
}

/* ── Backdrop border utility ── */
.backdrop-border {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.scroll-anim[data-delay="1"] { transition-delay: 0.1s; }
.scroll-anim[data-delay="2"] { transition-delay: 0.2s; }
.scroll-anim[data-delay="3"] { transition-delay: 0.3s; }
.scroll-anim[data-delay="4"] { transition-delay: 0.4s; }
.scroll-anim[data-delay="5"] { transition-delay: 0.5s; }
.scroll-anim[data-delay="6"] { transition-delay: 0.6s; }

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

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

/* ── Selection ── */
::selection {
    background: rgba(245, 194, 55, 0.3);
    color: #1c2840;
}

/* ── Mobile menu animation ── */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(12, 19, 33, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3bfd4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da0be;
}
