/* Custom styles for Ismael's Automotive Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Floating animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-serif {
    color: #1e1e1e !important;
}

.nav-scrolled .text-charcoal-500 {
    color: #6d6d6d !important;
}

.nav-scrolled a:not(.bg-coral-500) {
    color: #4a4a4a !important;
}

/* Hero section */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(30, 30, 30, 0.85) 50%, rgba(45, 45, 45, 0.78) 100%);
    z-index: 1;
}

#hero > div {
    position: relative;
    z-index: 2;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b4a, #ee5230);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
}

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

/* Selection color */
::selection {
    background: #ff6b4a;
    color: white;
}
