/* Custom styles for YR Beauty Bar */

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

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

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

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

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

/* Selection color */
::selection {
    background: #b82828;
    color: #fff;
}

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

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text gradient animation */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: shimmer 4s ease infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(150, 29, 29, 0.3);
}

/* Image zoom on hover */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(150, 29, 29, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Loading state for buttons */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Print styles */
@media print {
    header,
    footer,
    #contact-form,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
