/* Custom styles for Estudio5 Hair Salon */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fafaf9; /* stone-50 */
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.2s; }
.reveal-text:nth-child(2) { animation-delay: 0.4s; }
.reveal-text:nth-child(3) { animation-delay: 0.6s; }

.reveal-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-btn:nth-child(1) { animation-delay: 0.8s; }
.reveal-btn:nth-child(2) { animation-delay: 1.0s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% { height: 0; opacity: 0; }
    50% { height: 48px; opacity: 1; }
    100% { height: 48px; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fafaf9;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #831538;
    outline-offset: 4px;
}

/* Utility for reducing motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
