/* Custom styles and animations */

html {
    scroll-behavior: smooth;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #2c6331;
    box-shadow: 0 0 0 3px rgba(44, 99, 49, 0.1);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    button {
        display: none;
    }
}
