/* ========================================
   Natural Beauty Hair Salon — Custom Styles
   ======================================== */

/* Base reset & smooth scroll */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.2);
    color: #f0fdf9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1626;
}
::-webkit-scrollbar-thumb {
    background: #2e3d5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d5078;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-badge {
    animation: heroFadeUp 0.8s ease forwards 0.2s;
}
.hero-title {
    animation: heroFadeUp 0.8s ease forwards 0.4s;
}
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards 0.6s;
}
.hero-cta {
    animation: heroFadeUp 0.8s ease forwards 0.8s;
}
.hero-trust {
    animation: heroFadeUp 0.8s ease forwards 1s;
}
.hero-image {
    animation: heroSlideRight 1s ease forwards 0.5s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Scroll Reveal
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Always visible for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    .scroll-line {
        animation: none;
        opacity: 0.6;
    }
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(7, 13, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.08);
}

/* Mobile menu lines */
#menuBtn.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}
#menuBtn.open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile menu open state */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    overflow: hidden;
    border-radius: 4px;
}
.gallery-item img {
    transition: transform 0.7s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Buttons
   ======================================== */
button, [type="submit"] {
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* ========================================
   Select dropdown
   ======================================== */
select option {
    background: #0f1626;
    color: #dce6f0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-image {
        display: none !important;
    }
}
