/* Custom Styles for Xtreme Hair Design */

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

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

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

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

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

.nav-scrolled .nav-link {
    color: #2D2D36 !important;
}

.nav-scrolled #nav-logo-text {
    color: #2D2D36 !important;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Input Focus Effects */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 102, 90, 0.1);
}

/* Button Hover Effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient Text */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glass Morphism */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Subtle Card Hover */
.group:hover {
    transform: translateY(-8px);
}

/* Loading State */
.loading {
    opacity: 0.6;
    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 {
    nav,
    #back-to-top,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .bg-coral-500 {
        background-color: ButtonText;
    }
    
    .text-coral-500 {
        color: ButtonText;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #E8665A;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: rgba(232, 102, 90, 0.3);
    color: #1A1A24;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom Animation Delays */
.reveal.delay-100 {
    transition-delay: 100ms;
}

.reveal.delay-200 {
    transition-delay: 200ms;
}

.reveal.delay-300 {
    transition-delay: 300ms;
}

.reveal.delay-400 {
    transition-delay: 400ms;
}

.reveal.delay-500 {
    transition-delay: 500ms;
}
