/* Custom styles for Magoo's Hair Studio */

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

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

/* Progressive enhancement: animate on scroll only when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(3, 10, 16, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79, 186, 140, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #071520;
}
::-webkit-scrollbar-thumb {
    background: #1e4259;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5a7b;
}

/* Selection color */
::selection {
    background: rgba(79, 186, 140, 0.3);
    color: #f0f4f8;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-mint-500\/25 {
    background-color: rgba(79, 186, 140, 0.25);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4fba8c;
    outline-offset: 2px;
}
