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

/* ── Utility ──────────────────────────────────────────────── */
.section-label {
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(4, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
#navbar.scrolled .nav-link {
    color: rgba(255,255,255,0.85);
}
#navbar.scrolled .nav-link:hover {
    color: #B8DFC9;
}

/* ── Mobile Menu ──────────────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu a {
    transition: color 0.3s;
}

/* ── Hero Animations ──────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers-reduced-motion: disable reveal animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .reveal { display: block; }
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.scroll-indicator {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── Form Focus Styles ────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
    background: rgba(77, 143, 110, 0.25);
    color: #040A14;
}
