/* Custom Styles for Classy Nails & Spa */

/* Base Typography & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

/* Animation Classes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0; /* Start hidden */
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0; /* Start hidden */
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 1; /* Default visible for accessibility */
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Optional: Add a class via JS for more dramatic entrance if desired */
.reveal-on-scroll.js-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #C05621;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a04015;
}

/* Focus styles for accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #C05621;
    outline-offset: 2px;
}

/* Navbar transition */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
