/* Custom styles for Smart Motor Auto Service */

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

/* Service card hover effects */
.service-card {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #fcd34d;
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #fbbf24;
    transform: translateY(-2px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #2e5a87;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e4060;
}

/* Animation for service cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .testimonial-card {
        animation: none;
        transform: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}
