/* Base styles & custom properties */
:root {
    --color-forest-50: #f0f7f0;
    --color-forest-100: #d9eed9;
    --color-forest-500: #4caf50;
    --color-forest-600: #2e7d32;
    --color-forest-700: #1d4f1e;
    --color-forest-800: #153a16;
    --color-forest-900: #0d250e;
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Quicksand', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    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 styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu button animation */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Mobile links */
.mobile-link {
    display: block;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7ec77e;
}

/* Selection color */
::selection {
    background: #b3dfb3;
    color: #1d4f1e;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #4caf50;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefdf8 inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}
