/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #1a3a12 0%, #2d5a20 25%, #3d6a2b 50%, #528738 75%, #74a856 100%);
}

/* ===== Hero Blobs ===== */
.hero-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #f59e0b;
    top: -10%;
    right: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #fbbf24;
    bottom: -5%;
    left: -5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #34d399;
    top: 40%;
    left: 30%;
    animation: float-slow 18s ease-in-out infinite;
}

.blob-4 {
    width: 200px;
    height: 200px;
    background: #fcd34d;
    top: 20%;
    left: 10%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ===== Hero Badge Animation ===== */
.hero-badge {
    animation: fade-in-down 0.8s ease-out both;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero Content Animation ===== */
#hero h1 {
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

#hero p {
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

#hero .flex-col {
    animation: fade-in-up 0.8s ease-out 0.6s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA Gradient ===== */
.cta-gradient {
    background: linear-gradient(135deg, #213719 0%, #315323 50%, #3d6a2b 100%);
}

/* ===== Scroll Reveal ===== */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .font-display {
    color: #213719 !important;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ===== Button Focus ===== */
a:focus-visible, button:focus-visible {
    outline: 3px solid #74a856;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: #c5dfb3;
    color: #1a3a12;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #9cc682;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #74a856;
}
