/* Custom styles for New View Detailing Car Wash */

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Diagonal clip for about section */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
}

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

/* Gallery item hover */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gallery-item img,
    .gallery-item::after {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1b3a6e;
}

/* Selection color */
::selection {
    background-color: #c8952e;
    color: #0a1628;
}
