/* Custom styles for Javi's Auto Repair */

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

/* Custom selection color */
::selection {
    background-color: rgba(244, 80, 67, 0.2);
    color: inherit;
}

/* Navbar transition states */
.nav-text {
    color: #18181b;
}

.nav-btn svg {
    stroke: #18181b;
}

.navbar-scrolled .nav-text {
    color: #f6f6f7;
}

.navbar-scrolled .nav-btn svg {
    stroke: #f6f6f7;
}

.navbar-light .nav-text {
    color: #f6f6f7;
}

.navbar-light .nav-btn svg {
    stroke: #f6f6f7;
}

.navbar-hero .nav-text {
    color: #f6f6f7;
}

.navbar-hero .nav-btn svg {
    stroke: #f6f6f7;
}

/* Mobile menu links */
.mobile-nav-link {
    color: #f6f6f7;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #fca6a0;
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    background-color: #18181b;
}

/* Subtle line animations */
.fade-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

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

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

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

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

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

/* Loading state for images */
img {
    background-color: #e3e3e5;
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Hero scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

.hero-scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator {
        animation: none;
    }
}
