/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Floating animations for hero stat cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 3.2s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 2.5s ease-in-out infinite;
}

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(27, 94, 32, 0.08);
}

.navbar-scrolled #navbar a:not(.bg-forest-600) {
    color: #1B5E20 !important;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF9F0;
}

::-webkit-scrollbar-thumb {
    background: #a5cfab;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6fb576;
}

/* Selection color */
::selection {
    background: #a5cfab;
    color: #1B5E20;
}
