/* Custom styles for Beauty by Sara Casper */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #f6f6f6;
}

/* Reduced motion */
@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;
    }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 165, 116, 0.08);
}

/* Navbar glass effect */
nav.scrolled {
    background: rgba(8, 8, 8, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

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

/* Glow effect */
.glow-gold {
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.15);
}

/* 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='%23a0a0a0' stroke-width='2'%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;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Mobile link transition */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(77, 77, 77, 0.3);
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    padding-left: 0.5rem;
}

/* Image lazy load fade-in (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .gallery-img {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .gallery-img.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
.service-card h3,
section h2,
section h3 {
    color: #f6f6f6;
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}
