/* Custom styles for Welch Silt Fence and Erosion Control */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobileMenuBtn span:nth-child(1) {
    transform-origin: left;
}

#mobileMenuBtn span:nth-child(2) {
    transform-origin: left;
}

#mobileMenuBtn span:nth-child(3) {
    transform-origin: left;
    width: 1.5rem;
}

#mobileMenuBtn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

#mobileMenuBtn.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.25rem, -0.25rem);
    width: 1.5rem;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #38602c;
}

/* Image loading optimization */
img {
    will-change: transform;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu,
    .animate-bounce {
        display: none;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
