/* Custom styles for Trendsetters Hair and Color */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d21;
}
::-webkit-scrollbar-thumb {
    background: #4f555d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #616872;
}

/* Selection color */
::selection {
    background: rgba(232, 96, 30, 0.3);
    color: #fff;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(232, 96, 30, 0.15);
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background: rgba(13, 15, 18, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
}
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Fade-in animation for scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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