/* ============================================
   Hair by Ashley Kircher — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d97706, #9c1a3d);
    border-radius: 4px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    top: 0;
    left: 0;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* Menu Button Animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.2s; }
.hero-reveal:nth-child(2) { animation-delay: 0.4s; }
.hero-reveal:nth-child(3) { animation-delay: 0.6s; }
.hero-reveal:nth-child(4) { animation-delay: 0.8s; }
.hero-reveal:nth-child(5) { animation-delay: 1.0s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCROLL REVEAL (Below Fold Only)
   Progressive enhancement: content visible by default, JS adds animation
   ============================================ */
.reveal {
    /* Default: visible, no animation needed */
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(156, 26, 61, 0.1), transparent);
    transition: height 0.5s ease;
}

.service-card:hover::after {
    height: 100%;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: rgba(251, 191, 36, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* ============================================
   INPUT FOCUS STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
