/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* ── Smooth scroll offset for fixed nav ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ── Selection color ── */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

/* ── Focus visible for accessibility ── */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ── Navbar active state ── */
.nav-link.active {
    background-color: #ecfdf5;
    color: #047857;
}

/* ── Mobile menu animation ── */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Select arrow customization ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Input autofill styling ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ecfdf5 inset !important;
    -webkit-text-fill-color: #064e3b !important;
}
