/* Custom styles for Hair Designs by Norianne */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation classes when JS adds them */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

#mobileMenuBtn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#mobileMenuBtn.active #bar2 {
    opacity: 0;
}

#mobileMenuBtn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 242, 248, 0.95) !important;
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fcd34d;
    color: #4a1f3f;
}

/* 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='%236B2F5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #fcd34d, #D4841A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
