/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Scroll Reveal (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled @media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

/* ===== Mobile menu animation ===== */
#mobileMenu {
    animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ecfdf5; }
::-webkit-scrollbar-thumb { background: #6ee7b7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34d399; }

/* ===== Selection ===== */
::selection { background: #a7f3d0; color: #064e3b; }
