/* Custom styles and animations */

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

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

/* Navbar scroll effect */
.nav-scrolled #nav-bg {
    opacity: 1;
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #4f8060;
    outline-offset: 2px;
}

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

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

/* Subtle gradient for hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 26, 21, 0.9) 0%, rgba(46, 79, 59, 0.7) 50%, rgba(79, 128, 96, 0.4) 100%);
}

/* Card hover lift effect */
.group:hover {
    transform: translateY(-4px);
}

/* Pulse animation for status indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    border-color: #4f8060;
    box-shadow: 0 0 0 3px rgba(79, 128, 96, 0.2);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

#mobile-menu a {
    transition: background-color 0.2s ease;
}

/* Print styles */
@media print {
    nav, .animate-bounce, #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
