/* Custom styles for Bridgeport Tires & Auto */

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

/* Custom gradient for hero */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(255, 107, 107, 0.1) 100%);
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gold accent glow */
.gold-glow {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Coral glow */
.coral-glow {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

/* Animated gradient background */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #0d0d0d, #1a1a1a, #2a2a2a, #3a3a3a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Button hover effects */
a {
    transition: all 0.3s ease;
}

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

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

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

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Form input focus effects */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Image lazy loading placeholder */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
