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

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}
@keyframes scroll-dot {
    0% { top: -12px; }
    100% { top: 20px; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 7s ease-in-out infinite 1s; }
.animate-scroll-dot { animation: scroll-dot 1.5s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.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; }

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(45, 58, 92, 0.08);
}

/* ── Mobile Menu ── */
.mobile-link {
    transition: color 0.2s;
}
.mobile-link:hover {
    color: #2D3A5C;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF8F0; }
::-webkit-scrollbar-thumb { background: #B8E6D5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8FCFB8; }
