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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
    background: #93be93;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6da36d;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

/* Nav link active state */
.nav-link.active {
    color: #1B5E20 !important;
    background: rgba(27, 94, 32, 0.08) !important;
}

/* Card hover glow */
.group:hover .group-hover\:bg-forest-800 {
    background-color: #1B5E20;
}

/* Form focus ring animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dce8dc 0%, #f0f5f0 100%);
}

/* Selection color */
::selection {
    background: #bfd6bf;
    color: #1B5E20;
}
