/* Custom styles for Elevate the Salon Experience */

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

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

#navbar.scrolled .nav-link {
    color: #3D4652;
}

#navbar.scrolled .font-serif {
    color: #1E2229;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hero text animation */
#hero h1 {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

#hero p {
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

#hero a {
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

/* Service card hover */
.group:hover .rounded-2xl:first-child {
    transform: scale(1.05);
}

/* Gallery hover */
.group img {
    transition: transform 0.5s ease;
}

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

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

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

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

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

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

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