/* Custom styles for Hollywood Detailin' N Buffin' */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a1628;
}

/* Shine effect lines for hero */
.shine-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.3), transparent);
    animation: shine-move 6s ease-in-out infinite;
}

.shine-line:nth-child(2) {
    animation-delay: 2s;
}

.shine-line:nth-child(3) {
    animation-delay: 4s;
}

@keyframes shine-move {
    0% { opacity: 0; transform: translateX(-100%) rotate(-15deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%) rotate(-15deg); }
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .shine-line {
        animation: none;
        opacity: 0.5;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    img {
        transition: none;
    }
}

/* Mobile menu animations */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #fff;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Nav background on scroll */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.08);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}
