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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== NAVBAR ===== */
.nav-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 67, 35, 0.08);
}

.navbar-scrolled .nav-text {
    color: #1c361c;
}

.navbar-scrolled .nav-link {
    color: #2d542d;
}

.navbar-dark #navbar {
    background: transparent;
    box-shadow: none;
}

.navbar-dark .nav-text {
    color: #fefdf8;
}

.navbar-dark .nav-link {
    color: rgba(254, 253, 248, 0.8);
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(8px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active #bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
}

/* ===== HERO STAT CARDS ===== */
.stat-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-card:nth-child(1) { animation: float1 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float2 6s ease-in-out infinite 0.5s; }
.stat-card:nth-child(3) { animation: float1 6s ease-in-out infinite 1s; }
.stat-card:nth-child(4) { animation: float2 6s ease-in-out infinite 1.5s; }

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

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

/* ===== MENU ITEMS ===== */
.menu-item {
    opacity: 1;
}

.menu-item::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(158, 194, 158, 0.3), transparent);
    margin-bottom: 1.5rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stat-card { animation: none; }
    .reveal { transition: none; }
    html { scroll-behavior: auto; }
    img { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl,
    .font-serif.text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    #hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card .font-serif.text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #hero {
        padding-top: 6rem;
    }
}
</style>

