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

/* ── Navbar ─────────────────────────────────────── */
#navbar {
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(190, 211, 191, 0.4);
}
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    box-shadow: 0 1px 20px rgba(26, 86, 50, 0.06);
}

/* ── Floating Cards ─────────────────────────────── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -2s; animation-duration: 7s; }
.floating-card:nth-child(3) { animation-delay: -4s; animation-duration: 5.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ── Scroll Reveal ──────────────────────────────── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Smooth anchor offsets ──────────────────────── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .floating-card { animation: none; }
    .scroll-reveal { transition: none; }
    html { scroll-behavior: auto; }
}
