/* Base styles and custom properties */
:root {
    --forest-800: #1B4332;
    --forest-700: #2d4a21;
    --warm-400: #e9bc7e;
    --warm-500: #d68230;
}

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal — progressive enhancement, only applied via JS */
.scroll-reveal {
    /* Default state is visible for accessibility and no-JS fallback */
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1B4332 !important;
}

.navbar-scrolled .mobile-link {
    color: #1B4332 !important;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6fa34b;
}

/* Selection color */
::selection {
    background: #9dbe76;
    color: #1B4332;
}

/* 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);
    }
}

/* Form styles */
input, textarea {
    font-family: 'Nunito', system-ui, sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

/* Success message */
.success-message {
    animation: fadeInUp 0.5s ease-out;
}

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