/* Custom styles for Hair by Jeny */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Delay utilities for staggered animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-in-up {
        animation: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #d1522a;
    outline-offset: 2px;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: #d1522a;
    color: white;
}
