/* Custom styles for Junior's Barbershop */

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

/* Hero animation */
@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;
}

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

/* Scroll reveal - only apply when JS adds the class */
.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(253, 248, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(140, 50, 50, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #842e2e;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a33d3d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #a33d3d;
    color: #fdf8f6;
}
