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

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

body {
    min-height: 100vh;
}

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

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ===== MARQUEE ===== */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(250, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 55, 21, 0.08);
}

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

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

/* Bar animation for mobile toggle */
#mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

/* ===== SELECTION ===== */
::selection {
    background: #dce9cc;
    color: #1e3715;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #bdd6a3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #93bc72;
}
