/* Custom styles for OK Barber Shop "sunset" */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #E8734A;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(13, 11, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 165, 106, 0.1);
}

nav.scrolled .menu-line {
    background: #F5E6D3;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 115, 74, 0.05), transparent);
    transition: left 0.7s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 11, 10, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(232, 115, 74, 0.3);
    transform: translateY(-4px);
}

/* Selection color */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #F5E6D3;
}

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

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Pulse animation for hero badge */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 115, 74, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(232, 115, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(232, 115, 74, 0);
    }
}

.animate-pulse {
    animation: pulse-ring 2s infinite;
}
