/* Reset Hair Salon — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #e07a5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4623e;
}

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

#navbar.scrolled .nav-logo-text {
    color: #1a1c20;
}

#navbar.scrolled .nav-link {
    color: #42474f;
}

#navbar.scrolled .menu-line {
    background: #1a1c20;
}

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

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

/* Mobile menu button active state */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .group:hover img {
        transform: scale(1.1);
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Ensure hero is always visible */
#hero {
    background-attachment: fixed;
}

@media (max-width: 767px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Counter animation for stats if needed */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse for CTA buttons */
@keyframes pulse-coral {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(224, 122, 95, 0);
    }
}

a[href^="tel"]:hover {
    animation: pulse-coral 2s infinite;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .scroll-reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
