/* --- HERO --- */
.hero-section { position: relative; padding-top: 100px; }
.hero-card { max-width: 800px; margin: 0 auto; margin-top: 50px; text-align: center; }
.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; }

.magic-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}
.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; }

/* --- GALLERY HEADER --- */
.section-header h2 { font-size: 3rem; margin-bottom: 10px; text-align: center; }
.section-header p { text-align: center; margin-bottom: 40px; font-size: 1.1rem; color: #666; }

/* --- COST TAG (Glass Effect) --- */
.cost-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 25; 
    background: rgba(15, 15, 20, 0.75); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    pointer-events: none; 
}

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

/* ITEM WRAPPER (Icon + Text) */
.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px; /* Space between icon and text */
    transition: 0.2s;
    cursor: pointer;
}

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

/* IMAGE/SVG SIZE & STYLE */
.filter-icon-btn img, 
.filter-icon-btn svg {
    width: 32px; 
    height: 32px;
    transition: transform 0.2s, filter 0.2s;
    object-fit: contain;
}

/* TEXT LABEL UNDER ICON */
.icon-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: 0.2s;
}

/* --- HOVER STATE --- */
.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);
}

/* --- ACTIVE STATE (Selected) --- */
.filter-item.active .filter-icon-btn {
    background: #000000; /* Solid Black Background */
    border-color: #000000;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* INVERT COLOR FOR ACTIVE ICONS (Black -> White) */
.filter-item.active .filter-icon-btn img {
    filter: invert(1) brightness(100); 
}

.filter-item.active .icon-label {
    color: #000;
    font-weight: 700;
}

/* --- GALLERY LAYOUT & WORK CARD --- */
.gallery-scroll-container {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 40px 20px;
    scroll-behavior: smooth;
    align-items: center;
}

.work-card {
    height: auto; 
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
    min-width: 320px;
    max-width: 320px;
    padding: 15px; /* Added padding back from base style */
}

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

/* --- SLIDER CONTAINER --- */
.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;
    touch-action: none; 
}

.img-base { display: block; 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 { display: block; height: 100%; width: 320px; max-width: none; object-fit: cover; transform: none !important; }
.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;
}

/* --- CENTERED HEADER IN CARD --- */
.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: rgba(0,0,0,0.05);
    padding: 3px 12px;
    border-radius: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.05);
    letter-spacing: 0.5px;
}

/* --- CARD FOOTER & 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;
    animation: fadeIn 0.3s ease;
}
.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: 1rem;
}
.reel-btn:hover { background: var(--accent-pop); color: white; }

.placeholder-btn {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    padding: 10px 20px;
}

/* --- REVIEWS STYLING --- */
.reviews-section h2 { text-align: center; font-size: 3rem; margin-bottom: 50px; }
.reviews-section { padding-bottom: 100px; }
.reviews-container { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    padding: 20px; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    justify-content: flex-start; 
}

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

.customer-name { 
    font-weight: 700; 
    color: var(--accent-pop); 
    font-size: 1.4rem; 
    line-height: 1.2; 
}

.aesthetic-quote { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    font-family: 'Playfair Display', serif; 
    font-size: 4rem; 
    color: var(--accent-bright); 
    opacity: 0.4; 
    line-height: 1; 
    pointer-events: none; 
}

.stars.small { 
    font-size: 0.8rem; 
    margin-top: 5px; 
    color: var(--accent-bright); 
}

.review-body { 
    font-style: italic; 
    color: #444; 
    margin: 15px 0; 
    line-height: 1.5; 
    z-index: 2; 
    position: relative; 
}

.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; 
    left: 50%; 
    top: 0; 
    margin-left: -60px; 
}

.review-img-back { 
    z-index: 1; 
    transform: translateX(-40px) rotate(-6deg); 
}

.review-img-front { 
    z-index: 2; 
    transform: translateX(40px) rotate(5deg) translateY(5px); 
}

.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 rgba(0,0,0,0.05); 
}

.meta-info { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.branch-tag { 
    background: rgba(0,0,0,0.05); 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    color: #666; 
    text-transform: uppercase; 
    font-weight: 600; 
}

.kudos-count { 
    color: #ff4757; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

.review-date { 
    font-size: 0.8rem; 
    color: #ccc; 
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-card h1 { font-size: 2.5rem; }
    .section-header h2, .reviews-section h2 { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    section { padding: 60px 0; }
    .glass-panel { padding: 1.5rem; }
    
    .gallery-scroll-container { gap: 20px; padding: 20px 10px; }
    .work-card { flex: 0 0 280px; min-width: 280px; }
    .ba-slider-container { width: 100%; height: 350px; }
    .img-front { width: 280px; }
    
    .home-review-card { 
        flex: 0 0 300px; 
        min-width: 300px; 
    }
    .reviews-container { 
        padding: 20px 10px; 
        gap: 15px; 
    }
    
    /* Mobile Filter Bar */
    .gallery-filter-bar {
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .filter-item {
        flex: 0 0 auto; /* Keeps items from squishing */
    }
    .filter-icon-btn {
        width: 55px;
        height: 55px;
    }
    .filter-icon-btn img, 
    .filter-icon-btn svg {
        width: 28px;
        height: 28px;
    }
}