/* Custom styles for WD Lawn Service */

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

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

::-webkit-scrollbar-track {
    background: #060f19;
}

::-webkit-scrollbar-thumb {
    background: #15304d;
    border-radius: 5px;
}

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

/* Floating card animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(20px) translateX(-10px);
    }
}

.floating-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 1s;
}

.floating-card:nth-child(3) {
    animation: float-reverse 6s ease-in-out infinite 2s;
}

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

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

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

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(6, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200, 138, 0, 0.15);
}

/* Gallery item hover effects */
.gallery-item {
    cursor: pointer;
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(200, 138, 0, 0.1);
}

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

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

/* Print styles */
@media print {
    .floating-card {
        animation: none;
    }
    
    .scroll-reveal {
        opacity: 1;
    }
}
