/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Navbar scroll state ── */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(51, 117, 51, 0.08);
}

/* ── Floating cards ── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(1deg); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-8px) rotate(-1deg); }
}
.floating-card { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation-delay: 1.5s; animation-duration: 4.5s; }

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Mobile menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}
#bar1.open { transform: translateY(7px) rotate(45deg); }
#bar2.open { opacity: 0; }
#bar3.open { transform: translateY(-7px) rotate(-45deg); }

/* ── Smooth section transitions ── */
section { scroll-margin-top: 80px; }

/* ── Selection ── */
::selection { background: rgba(51, 117, 51, 0.15); color: #1a3e1a; }
