/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.nav-text-color {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled {
    background: rgba(15, 28, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-text-color {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== HERO STAT CARDS ===== */
.stat-card {
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card.card-1 {
    animation-delay: 0s;
}

.stat-card.card-2 {
    animation-delay: -1.5s;
}

.stat-card.card-3 {
    animation-delay: -3s;
}

.stat-card.card-4 {
    animation-delay: -4.5s;
}

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

.stat-card:hover {
    animation-play-state: paused;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ===== REVEAL ANIMATIONS (below-the-fold only) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-grid {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-grid {
        opacity: 0;
        transform: translateY(40px);
    }

    .reveal.visible,
    .reveal-grid.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

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

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

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

/* ===== SELECTION ===== */
::selection {
    background: rgba(55, 107, 32, 0.2);
    color: #1c3819;
}
