/* Custom styles for Lizeth's Beauty Salon */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0d0a0f;
}

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

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

/* Selection */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Service cards hover effect */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 77, 120, 0.1);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 77, 120, 0.08);
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(13, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-scrolled .nav-link:hover {
    color: #fbbf24 !important;
}

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

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

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

/* Fade in animation for sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative line animation */
.gold-line {
    position: relative;
    overflow: hidden;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    transition: width 0.6s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* Button pulse animation */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

.btn-gold-pulse:hover {
    animation: pulse-gold 1.5s infinite;
}

/* Image shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .testimonial-card,
    .gallery-item {
        transition: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    @keyframes pulse-gold {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
        }
        50% {
            box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
        }
    }
    
    .btn-gold-pulse:hover {
        animation: none;
    }
}

/* Utility classes */
.text-shadow-gold {
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}
