/* Custom styles for The Hair Company IL */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b21a8;
}

/* Selection */
::selection {
    background: #7e22ce;
    color: #ffffff;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(126, 34, 206, 0.08);
}

.nav-scrolled .nav-link {
    color: #581c87 !important;
}

.nav-scrolled .logo-text {
    color: #581c87 !important;
}

/* Hero card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 0deg)); }
}

.float-1 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
.float-2 { animation: float 7s ease-in-out infinite; --rotate: -1deg; }
.float-3 { animation: float 5.5s ease-in-out infinite; --rotate: 1deg; }
.float-4 { animation: float 6.5s ease-in-out infinite; --rotate: -2deg; }

/* Gallery hover overlay */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4) !important;
}

/* Service card hover */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(126, 34, 206, 0.12);
}

/* Input focus */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

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

/* Print styles */
@media print {
    nav, #backToTop, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
