/* ===== Custom Styles for Serendipity Nail SPA ===== */

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

/* Selection color */
::selection {
    background-color: rgba(212, 148, 14, 0.3);
    color: #f9f5f7;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement: hide and animate on scroll (only if JS runs) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(38, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #26141c;
}
::-webkit-scrollbar-thumb {
    background: #6b3e51;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #834c63;
}

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

.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float 4.5s ease-in-out infinite 1s; }
.floating-card-4 { animation: float 5.5s ease-in-out infinite 1.5s; }

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

/* Service card image overlay */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern overlay for sections */
.bg-plum-900\/40::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(131, 76, 99, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(212, 148, 14, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
