/* Custom styles for Ysl America */

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

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

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

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

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(79, 35, 46, 0.08);
}

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

/* 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; }

/* Menu button animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.5rem;
}

/* Service card hover */
.service-card {
    will-change: transform;
}

/* Testimonial card hover */
.testimonial-card {
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(79, 35, 46, 0.1);
}

/* Floating stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply floating animation to stat cards */
.absolute.-top-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-1\/3.-right-4 {
    animation: float 4s ease-in-out infinite 0.5s;
}

.absolute.bottom-1\/4.-left-4 {
    animation: float 4s ease-in-out infinite 1s;
}

/* Scroll reveal base state - content is always visible */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion - disable all animations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.-top-6.-left-6,
    .absolute.top-1\/3.-right-4,
    .absolute.bottom-1\/4.-left-4 {
        animation: none;
    }
    
    .service-card,
    .testimonial-card {
        transition: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: #fde68a;
    color: #4f232e;
}
