/* Custom styles for Bubble Island Express Carwash */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0c0a;
}
::-webkit-scrollbar-thumb {
    background: #2e4f30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a633b;
}

/* Selection color */
::selection {
    background: rgba(77, 128, 78, 0.4);
    color: #faf9f6;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(10, 12, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.4s ease,
                background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* Gold shimmer on hover for CTA */
a[href="tel:+13613435040"].group:hover svg {
    animation: ring 0.6s ease-in-out;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Gallery hover overlay */
.col-span-2 .group::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 12, 10, 0.3) 0%, transparent 50%);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.col-span-2 .group:hover::after {
    opacity: 1;
}

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

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239cc59a' stroke-width='2'%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;
    padding-right: 2.5rem;
}
