/* Custom styles for Hair by Jen Sharrio */

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

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

/* Only apply hidden state when JS is active (via .js class on body) */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu active state */
.mobile-menu-open #menuIcon #bar1 {
    transform: translateY(5px) rotate(45deg);
}
.mobile-menu-open #menuIcon #bar2 {
    opacity: 0;
}
.mobile-menu-open #menuIcon #bar3 {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* Active nav link */
.nav-link.active {
    color: #ff6b43;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff8f0;
}
::-webkit-scrollbar-thumb {
    background: #d4d4de;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff8f6e;
}

/* Selection color */
::selection {
    background: #ffd5c8;
    color: #31313a;
}

/* Button hover glow effect */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Image hover zoom container */
.group img {
    will-change: transform;
}

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

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

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

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
