/* ============================================
   Celebrity Cutz & Styles — Custom Styles
   ============================================ */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideRight {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 48px;
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.hero-eyebrow {
    animation: slideRight 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-sub {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.scroll-indicator {
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animations */
@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
    animation: mobileMenuIn 0.4s ease forwards;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Navbar */
#navbar.scrolled {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .nav-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 79, 43, 0.3);
    color: #fff;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
}

/* Service card hover glow */
.group:hover .rounded-full.bg-charcoal-900 {
    box-shadow: 0 0 30px rgba(255, 79, 43, 0.3);
}

/* Form input focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 79, 43, 0.15);
}

/* Testimonial card hover */
.hover\:shadow-lg:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Gallery image hover overlay */
.group:hover img {
    filter: brightness(1.05);
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#backToTop:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

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

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
