/* Custom styles for Valvoline Express Care */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52565c;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #fff;
}

/* Hero parallax-like effect */
#hero {
    perspective: 10px;
}

#hero .absolute.inset-0 img {
    will-change: transform;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px -10px rgba(255, 107, 63, 0.1);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 12, 14, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

/* Pulse animation for hero dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Float animation for stat card */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Subtle text gradient for headlines */
.text-gradient {
    background: linear-gradient(135deg, #ff6b3f 0%, #ff8a67 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Noise texture overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Map filter for dark theme */
.map-dark {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.95);
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1024px) {
    .service-card {
        padding: 2.5rem;
    }
}
