/* Custom Styles for Cassandra Mills Esthetician */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

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

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

/* Selection Color */
::selection {
    background: #ff6b3f;
    color: #ffffff;
}

/* Reveal Animation - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(42, 42, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #ff6b3f !important;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent;
}

/* Button Ripple Effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Image Lazy Load Fallback */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Smooth Image Transitions */
.service-card img,
.gallery-grid img {
    will-change: transform;
}

/* Custom Focus Styles */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    nav,
    #contactForm,
    button,
    .service-card:hover {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-950,
    .bg-charcoal-50 {
        background: #fff !important;
        color: #000 !important;
    }
}
