/* Custom styles for HairByRoza Beauty Salon */

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

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .reveal-grid > *:nth-child(1) { transition-delay: 0.05s; }
    .reveal-grid > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-grid > *:nth-child(3) { transition-delay: 0.15s; }
    .reveal-grid > *:nth-child(4) { transition-delay: 0.2s; }
    .reveal-grid > *:nth-child(5) { transition-delay: 0.25s; }
    .reveal-grid > *:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(61, 84, 61, 0.08);
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #c7dccc;
    color: #212c21;
}
