/* Custom styles for Cutt'n Up Barbershop */

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

/* Hero animations - above the fold, no hidden state */
.hero-eyebrow {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Section animations - below the fold only, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .section-header,
    .section-card,
    .section-image,
    .section-content,
    .section-form,
    .gallery-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .section-card {
        transition-delay: calc(var(--card-index, 0) * 0.1s);
    }
    
    .gallery-item {
        transition-delay: calc(var(--gallery-index, 0) * 0.08s);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(114, 28, 50, 0.08);
}

.navbar-scrolled .nav-logo {
    color: #721c32;
}

.navbar-scrolled .nav-link {
    color: #721c32;
}

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

.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Menu button animation */
.menu-line-1 {
    transform-origin: center;
}

.menu-line-2 {
    transform-origin: center;
}

.menu-active .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-active .menu-line-2 {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Thin scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #f5a7b8;
    border-radius: 3px;
}

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

/* Selection color */
::selection {
    background: #ffd230;
    color: #3d0a15;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #ffbf00 !important;
}

/* Gallery hover effects */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form transitions */
#form-success {
    animation: fadeInUp 0.4s ease-out;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
