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

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

body {
    margin: 0;
    background-color: #fefdf8;
}

::selection {
    background-color: #b5dcb2;
    color: #144312;
}

/* === NAVBAR SCROLL STATE === */
#navbar {
    background-color: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(181, 220, 178, 0.4);
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 20px rgba(30, 107, 27, 0.08);
}

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

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: ensure content is visible if JS is disabled */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* === BUTTON HOVER EFFECTS === */
a {
    text-decoration: none;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #b5dcb2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #83c47f;
}

/* === MOBILE MENU ANIMATION === */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === IMAGE HOVER ZOOM === */
img {
    display: block;
    max-width: 100%;
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2d8627;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === FORM STYLES === */
input, textarea {
    font-family: 'Outfit', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2d8627;
    box-shadow: 0 0 0 3px rgba(45, 134, 39, 0.15);
}

/* === SUBTLE PATTERN (optional background texture) === */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(181, 220, 178, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}
