/* ===== BASE & RESET ===== */
*, *::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; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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);
    }
}
/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ===== HERO ANIMATIONS ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatSlow   { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -30px) scale(1.05); } }
@keyframes floatMedium { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-15px, 25px) scale(1.03); } }
@keyframes floatFast   { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10px, -15px) scale(1.04); } }

.animate-slide-up       { animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-slide-up-delay { animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.animate-slide-up-delay-2 { animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.animate-slide-up-delay-3 { animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
.animate-float-slow   { animation: floatSlow 8s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium  6s ease-in-out infinite; }
.animate-float-fast   { animation: floatFast   4s ease-in-out infinite; }

/* ===== NAVBAR ===== */
#site-header.scrolled {
    background: rgba(253, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(45, 80, 22, 0.08);
}
.nav-link { transition: background 0.2s, color 0.2s; }

/* ===== MOBILE MENU ===== */
.mobile-link { transition: background 0.2s; }

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section { position: relative; }

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #8fb86e;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===== SELECTION ===== */
::selection { background: rgba(45, 80, 22, 0.15); color: #1a2f0b; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F5DC; }
::-webkit-scrollbar-thumb { background: #b9d0a0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8fb86e; }
