/* ============================================
   Aiwa Nails Lashes Brows — Custom Styles
   ============================================ */

/* ---- Hero Background ---- */
.hero-bg {
    background-image: url('https://images.pexels.com/photos/705255/pexels-photo-705255.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.78) 0%,
        rgba(15, 23, 42, 0.65) 50%,
        rgba(4, 47, 46, 0.72) 100%
    );
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled or prefers-reduced-motion */
@supports not (animation-timeline: view()) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Service Card Hover ---- */
.service-card {
    will-change: transform, box-shadow;
}

/* ---- Gallery Hover ---- */
.gallery-item {
    overflow: hidden;
}

/* ---- Navbar Glass Effect ---- */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-transparent {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* ---- Mobile Menu Animation ---- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 500px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

/* ---- Selection Color ---- */
::selection {
    background-color: rgba(13, 148, 136, 0.25);
    color: #0f766e;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Focus Visible ---- */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

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