/* Custom styles for Artys Haircuts */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f9f5f7;
}
::-webkit-scrollbar-thumb {
    background: #d4b3c8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ba8aaa;
}

/* Navbar transition */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(74, 59, 82, 0.08);
}

/* Mobile menu animations */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    display: block;
}
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Service card hover */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    background: #f9f5f7;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 59, 82, 0.08);
}

/* Mobile link hover */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

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

/* Selection color */
::selection {
    background: #e8d4e0;
    color: #4A3B52;
}
