/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.06);
}

/* ── Floating Cards Animation ── */
.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: 5s; }

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

/* ── Card Hover ── */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.15);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Selection ── */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF8F3; }
::-webkit-scrollbar-thumb { background: #d5e8d5; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a8d4a8; }
