/* Custom styles for Ed's Auto Wrecking */

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

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

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

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

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 95, 56, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 95, 56, 0);
    }
}

.pulse-animation {
    animation: pulse-soft 2s infinite;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

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

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

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

/* Service card hover effect */
.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-0.5rem);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Ensure proper spacing for fixed navbar */
section {
    scroll-margin-top: 80px;
}
