/* Custom styles for Professional Barber & Stylist */

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

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge span:first-child {
    animation: pulse 2s ease-in-out infinite;
}

h1, h1 .italic {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

h1 .text-coral-400 {
    animation-delay: 0.5s;
}

p.mb-10 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-badge + * + h1 + p + div {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Stats */
.hero-badge + * + h1 + p + div + div {
    animation: fadeInUp 0.8s ease-out 1s both;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Reveal animations (below fold) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card img {
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-logo {
    color: #fff;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

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

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

/* Image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}
