/* Custom styles for Karla's Kuts Hair Salon */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    top: 50% !important;
    transform: rotate(45deg) !important;
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-open .menu-line:nth-child(3) {
    top: 50% !important;
    transform: rotate(-45deg) !important;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast,
    .animate-float-delay {
        animation: none !important;
    }
}

/* Selection color */
::selection {
    background: color-mix(in srgb, #14b8a6 30%, transparent);
    color: #0f172a;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0fdf9 0%, #e0f2fe 100%);
    min-height: 100px;
}
