/* Custom styles for Allure Hair Salon */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only animate on preference for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled .nav-link {
    color: rgb(45, 85, 158);
}

#navbar.scrolled .nav-link:hover {
    color: rgb(79, 184, 160);
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav links */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Active nav link */
.nav-link.active {
    color: rgb(79, 184, 160) !important;
}

/* Selection color */
::selection {
    background: rgb(125, 211, 192, 0.3);
    color: rgb(10, 22, 40);
}

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

::-webkit-scrollbar-track {
    background: rgb(240, 253, 248);
}

::-webkit-scrollbar-thumb {
    background: rgb(125, 211, 192);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(79, 184, 160);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle gradient for hero text emphasis */
.text-gradient-mint {
    background: linear-gradient(135deg, rgb(102, 230, 197), rgb(79, 184, 160));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .scroll-reveal.animated {
        opacity: 1;
        transform: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    .group:hover .w-14 {
        background-color: rgb(204, 250, 237);
    }
}
