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

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

body {
    overflow-x: hidden;
}

/* Scroll Reveal - Progressive Enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* For browsers without JS, all content is visible by default (already set above) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Cards Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

.floating-card:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 5.5s;
}

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

@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
}

/* Navbar */
.nav-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 86, 46, 0.08);
}

.nav-scrolled .text-forest-800 {
    color: #2c562e;
}

/* Button Hover Effects */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2c562e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ec;
}
::-webkit-scrollbar-thumb {
    background: #c5dfc0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9cc597;
}

/* Selection */
::selection {
    background: #c5dfc0;
    color: #1c371f;
}

/* Image Loading */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
button, a, input, textarea, select {
    transition: all 0.3s ease;
}
