/* Custom styles for Lotus Moon Beauty Lounge */

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

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

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite 0.5s;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite 1s;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(162, 48, 30, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f2beab;
    color: #6c251c;
}

/* Image hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c43e22;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .floating-card,
#hero .floating-card-2,
#hero .floating-card-3,
#hero img,
#hero .inline-flex {
    opacity: 1 !important;
    transform: none !important;
}
