/* Custom styles for Bofia Braiding Salon */

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

/* Soft shadow utility */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

/* When JS is enabled, add hidden state for below-fold elements */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll state */
.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Nav link underline animation */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav link */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}
