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

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

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite 0.5s;
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-scrolled .font-serif {
    color: #7B2D3B !important;
}

.nav-scrolled .tracking-\[0\.2em\] {
    color: #c47a8e !important;
}

.nav-scrolled a:not(.px-6):not(.px-8):not(.px-10) {
    color: #6b7280 !important;
}

.nav-scrolled a:not(.px-6):not(.px-8):not(.px-10):hover {
    color: #7B2D3B !important;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #7B2D3B;
}

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

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

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

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