/* Custom Styles for Bliss Hair and Nail Studio */

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

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

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile Menu Active State */
.mobile-menu-active #mobile-menu {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-active body {
    overflow: hidden;
}

/* Hamburger Animation */
.mobile-menu-active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-active #hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Link Transition */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* Navbar Transition */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .font-serif {
    color: #1c1917 !important;
}

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

/* Custom Selection */
::selection {
    background-color: #d95a35;
    color: white;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button Hover Lift */
a:hover, button:hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card Hover Effect */
.scroll-reveal.group {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Image Pulse */
@keyframes soft-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Reduce motion for accessibility */
@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;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
