/* Custom styles for Razzle Dazzle Hair Design */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero gradient orbs */
.hero-gradient-orb,
.hero-gradient-orb2,
.hero-gradient-orb3 {
    pointer-events: none;
}

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

/* Only apply hidden state when JS is enabled and motion is preferred */
@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);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 5, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c3aed, #d97706);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8b5cf6, #f59e0b);
}

/* Selection color */
::selection {
    background: rgba(217, 119, 6, 0.3);
    color: #fff;
}

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

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

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 0 20px currentColor;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Testimonial card shimmer */
.scroll-reveal:hover {
    border-color: rgba(251, 191, 36, 0.2) !important;
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.05);
}

/* Map container */
.rounded-2xl.overflow-hidden iframe {
    border-radius: 1rem;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
