/* Custom styles for 85 Auto & Diesel Repair */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Hero section */
#hero {
    background: linear-gradient(135deg, #0a1628 0%, #112240 50%, #1a365d 100%);
}

/* Service cards hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

::-webkit-scrollbar-thumb {
    background: #112240;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #d4a853;
    color: #0a1628;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Print styles */
@media print {
    #navbar,
    #hero .absolute {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
