/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transform: translateX(-100%);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 252, 245, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Hero text animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Button hover effects */
a, button {
    transition: all 0.2s ease;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Selection color */
::selection {
    background: #6ee7b7;
    color: #064e3b;
}
