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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163,230,53,0.6) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    animation: float-slow 12s ease-in-out infinite;
}

.circle-2 {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    top: 40%;
    right: 15%;
    animation: float-slow 8s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(163,230,53,0.3);
    top: 25%;
    left: 8%;
    transform: rotate(25deg);
    animation: float-slow 14s ease-in-out infinite;
}

.rect-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    bottom: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 11s ease-in-out infinite reverse;
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 60%;
    left: 15%;
    opacity: 0.4;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.js-scroll .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.js-scroll .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-scroll .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-scroll .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

#navbar.scrolled .font-heading {
    color: #0f4f28 !important;
}

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

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

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

/* ===== BUTTON HOVER EFFECTS ===== */
a:hover {
    transition: all 0.2s ease;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(22, 101, 52, 0.2);
    color: #0a381c;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .js-scroll .reveal {
        opacity: 1;
        transform: none;
    }
}
