/* =========================================
   1. GLOBAL SECTION SPACING
   ========================================= */
section {
    position: relative;
    /* EQUAL SPACING FOR ALL SECTIONS */
    padding: 120px 0; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero-section { 
    text-align: center;
}

.hero-card { 
    max-width: 800px; 
    margin: 0 auto; 
}

.hero-card h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.subtitle { 
    font-size: 1.2rem; 
    color: #555; 
    margin-bottom: 40px; 
}

.highlight { 
    color: var(--accent-pop); 
    font-weight: 800; 
}

.bio-text {
    text-align: left;
    border-left: 4px solid var(--accent-pop);
    padding-left: 25px;
    background: rgba(107, 107, 107, 0.05); /* Lighter background */
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

/* MAGIC SCROLL BUTTON */
.magic-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none; /* Fix link style */
}

.magic-scroll-btn:hover { 
    color: var(--accent-pop); 
    transform: translateY(5px); 
}

.magic-scroll-btn i { 
    font-size: 1.5rem; 
    margin-top: 10px; 
    animation: bounce 2s 3; 
}

/* =========================================
   3. GALLERY SECTION
   ========================================= */
/* CRITICAL FIX: This stops the header from hiding behind the navbar */
#gallery-target {
    scroll-margin-top: 140px; 
}

.section-header h2 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    text-align: center; 
}

.section-header p { 
    text-align: center; 
    margin-bottom: 50px; 
    font-size: 1.1rem; 
    color: #666; 
}

/* FILTER BAR */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 25px; 
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: 0.2s;
    cursor: pointer;
}

/* CIRCULAR ICONS */
.filter-icon-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151;
    position: relative;
    overflow: hidden;
}

.filter-icon-btn img, 
.filter-icon-btn svg {
    width: 32px; 
    height: 32px;
    transition: transform 0.2s;
    object-fit: contain;
}

.icon-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: 0.2s;
}

/* Hover & Active States */
.filter-item:hover .filter-icon-btn {
    transform: translateY(-4px);
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-item:hover .icon-label { color: var(--accent-pop); }

.filter-item.active .filter-icon-btn {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.filter-item.active .filter-icon-btn img { filter: invert(1) brightness(100); }
.filter-item.active .icon-label { color: #000; font-weight: 700; }

/* GALLERY CONTAINER */
.gallery-scroll-container {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 40px 20px;
    scroll-behavior: smooth;
    align-items: flex-start; /* Aligns cards to top */
}

/* WORK CARD */
.work-card {
    height: auto; 
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 320px;
    padding: 20px;
}

.work-details {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    padding-top: 20px;
}

.work-header {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.work-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #333;
}

.hair-badge {
    font-size: 0.75rem;
    background: #eee;
    padding: 3px 12px;
    border-radius: 12px;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* SLIDER */
.ba-slider-container {
    position: relative;
    width: 100%;
    height: 400px; 
    border-radius: 20px;
    overflow: hidden; 
    cursor: col-resize;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    isolation: isolate;
}

.img-base { width: 100%; height: 100%; object-fit: cover; }
.img-overlay { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid white; z-index: 10; }
.img-front { height: 100%; width: 320px; max-width: none; object-fit: cover; }
.slider-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--accent-pop); box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none; z-index: 20;
}

.cost-overlay {
    position: absolute; top: 15px; right: 15px; z-index: 25; 
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    border-radius: 12px; padding: 6px 14px;
    font-size: 0.9rem; color: #fff; font-weight: 600;
}

/* REELS */
.work-footer { margin-top: auto; width: 100%; display: flex; justify-content: center; }
.reel-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 100;
    display: flex; justify-content: center; align-items: center;
}
.reel-iframe { width: 100%; height: 100%; border: none; }

.reel-btn {
    margin-top: 15px; background: transparent; border: 2px solid var(--accent-pop);
    color: var(--accent-pop); padding: 10px 24px; border-radius: 30px;
    cursor: pointer; font-weight: 600; transition: 0.3s; font-size: 0.9rem;
}
.reel-btn:hover { background: var(--accent-pop); color: white; }
.placeholder-btn { visibility: hidden; pointer-events: none; }

/* =========================================
   4. REVIEWS SECTION
   ========================================= */
.reviews-section {
    padding-bottom: 120px; /* Equal spacing at bottom */
}

.reviews-container { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    padding: 20px; 
    justify-content: flex-start; 
}

.home-review-card { 
    flex: 0 0 350px; 
    min-width: 350px; 
    position: relative; 
    padding: 30px !important; 
    display: flex; 
    flex-direction: column; 
}

.aesthetic-quote { 
    position: absolute; top: 20px; right: 20px; 
    font-size: 4rem; color: var(--accent-bright); opacity: 0.3; line-height: 1; 
}

.user-info { display: flex; flex-direction: column; }
.customer-name { font-weight: 700; font-size: 1.2rem; color: #000; }
.stars.small { font-size: 0.8rem; color: #f1c40f; margin-top: 5px; }

.review-body { 
    font-style: italic; color: #555; margin: 20px 0; line-height: 1.6; 
}

.review-collage { 
    position: relative; height: 180px; width: 100%; margin-top: 10px; display: flex; justify-content: center; 
}
.collage-img { 
    position: absolute; width: 120px; height: 150px; object-fit: cover; 
    border-radius: 8px; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: all 0.3s ease; top: 0; left: 50%; margin-left: -60px;
}
.review-img-back { transform: translateX(-40px) rotate(-6deg); z-index: 1; }
.review-img-front { transform: translateX(40px) rotate(5deg) translateY(5px); z-index: 2; }
.collage-img:hover { z-index: 100 !important; transform: scale(1.1); }

.review-footer { 
    margin-top: auto; display: flex; justify-content: space-between; 
    align-items: center; padding-top: 15px; border-top: 1px solid #eee; 
}
.branch-tag { background: #eee; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; color: #666; }
.kudos-count { color: #e74c3c; font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.8rem; color: #bbb; }

/* =========================================
   5. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hero-card h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    
    /* Adjust spacing slightly for mobile if needed, but keeping equal */
    section { padding: 80px 0; }
    
    .gallery-scroll-container, .reviews-container { 
        gap: 20px; padding: 20px 10px; 
    }
    
    .work-card { flex: 0 0 280px; min-width: 280px; }
    .home-review-card { flex: 0 0 300px; min-width: 300px; }
    
    .ba-slider-container { height: 350px; }
    .img-front { width: 280px; }

    /* Filter Bar Mobile */
    .gallery-filter-bar { gap: 15px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .filter-item { flex: 0 0 auto; }
}