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

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
}

/* ── Hero blobs ── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blob-float 8s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: #6ee7b7;
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 350px; height: 350px;
    background: #a7f3d0;
    bottom: -50px; left: -50px;
    animation-delay: -3s;
}
.blob-3 {
    width: 250px; height: 250px;
    background: #34d399;
    top: 40%; left: 60%;
    animation-delay: -5s;
}
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ── Card hover ── */
.card-card {
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-card:hover {
    transform: translateY(-4px);
}

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