/* Custom styles for Mayas Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #d4a02c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4851e;
}

/* Navbar transitions */
.nav-color {
    transition: color 0.4s ease;
}
.nav-btn {
    transition: background-color 0.3s ease;
}
.nav-line {
    transition: all 0.3s ease;
}
.nav-btn:hover .nav-line {
    background-color: #d4a02c;
}

/* Mobile menu transitions */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.4s; }

/* Mobile menu open state */
.mobile-menu-open {
    overflow: hidden;
}

/* Service card animations */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery item animations */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial card animations */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animation (only for below-fold, hero itself is always visible) */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item,
    .testimonial-card {
        opacity: 1;
        transform: none;
    }
    .mobile-menu-link {
        opacity: 1;
        transform: none;
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Decorative pulse */
@keyframes softPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #back-to-top, .service-card, .gallery-item, .testimonial-card {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
