/* Custom styles for Wise Hair Salon */

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

/* Navigation transitions */
.nav-text {
    color: #0f172a;
    transition: color 0.5s ease;
}

.nav-text-muted {
    color: #475569;
    transition: color 0.5s ease;
}

.nav-link {
    color: #475569;
}

.nav-icon {
    color: #0f172a;
}

/* Dark nav state */
nav.scrolled .nav-text {
    color: #f8fafc;
}

nav.scrolled .nav-text-muted {
    color: #94a3b8;
}

nav.scrolled .nav-link {
    color: #cbd5e1;
}

nav.scrolled .nav-icon {
    color: #f8fafc;
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

#menuBtn.active .nav-icon {
    color: #f8fafc;
}

/* Service cards */
.service-card {
    opacity: 1;
}

.service-card .overflow-hidden {
    will-change: transform;
}

/* Testimonial cards */
.testimonial-card {
    will-change: transform;
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #f8fafc;
}

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

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

/* Mobile menu full-screen overlay styling */
@media (max-width: 767px) {
    #mobileMenu {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}
