/* Custom styles for Biby's Hair Studio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #2E2E2E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B52;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 82, 0.3);
    color: #fff;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state for all content (visible without JS) */
.service-card,
.testimonial-card,
.fade-in-up {
    opacity: 1;
    transform: none;
}

/* Gold shimmer on hover for special elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse glow for coral elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 82, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 82, 0.4); }
}

/* Gallery image hover overlay */
.group.relative .absolute {
    transition: opacity 0.3s ease;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B52' 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 12px center;
    padding-right: 40px;
}

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