/* Custom styles for Mike Slater Automotive */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-heading {
    font-family: 'Oswald', sans-serif;
}

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

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

::-webkit-scrollbar-track {
    background: #2A2D34;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B5B, #E85A4D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Hero text reveal */
.hero-text {
    opacity: 0;
    transform: translateY(20px);
}

.hero-text.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Button pulse effect */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 91, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 91, 0);
    }
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu.show {
    max-height: 400px;
    opacity: 1;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #FF6B5B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.1) !important;
}

/* Map filter override for better appearance */
iframe[src*="google.com/maps"] {
    filter: grayscale(80%) contrast(1.05) brightness(1.05);
}
