/* Custom styles for Ellis Automotive Machine Shop */

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

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

::-webkit-scrollbar-track {
    background: #1c3a3a;
}

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

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation active state */
nav a.active {
    color: #c9a962;
}

/* Button focus states */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #c9a962;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .gallery-item img,
    .gallery-item .absolute {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    header,
    #contactForm,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-teal-900,
    .bg-slate-900 {
        background: #fff !important;
        color: #000 !important;
    }
}
