/* Custom styles for Salon Liz's Unique Creations */

:root {
    --plum-600: #701d75;
    --plum-900: #3a0f3e;
    --amber-400: #fcd34d;
    --amber-500: #fbbf24;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(250, 245, 249, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(58, 15, 62, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-plum-900 {
    color: #3a0f3e !important;
}

#navbar.scrolled .text-plum-600 {
    color: #701d75 !important;
}

#navbar.scrolled .menu-line {
    background: #3a0f3e !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* Gallery hover effects */
.gallery-item {
    height: 280px;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 360px;
    }
}

/* Testimonial dot active state */
.testimonial-dot.active {
    background: #701d75 !important;
    transform: scale(1.2);
}

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

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

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

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

/* Selection color */
::selection {
    background: #e8d0e0;
    color: #3a0f3e;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        opacity: 1;
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}
