/* ==============================
   1. OUR WORK + BEFORE & AFTER
   Buttons dono sections mein use hote hain
============================== */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-btn {
    border: 1px solid #a60038;
    border-radius: 30px;
    padding: 10px 22px;
    background: transparent;
    color: #a60038;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-btn.active,
.hero-btn:hover {
        background: #a60038;
    border-color: #a60038;
    color: #fff;
}

/* ==============================
   2. OUR WORK CSS
   Single image gallery ke liye
============================== */

.gallery-item {
    transition: opacity 0.3s ease;
}

/* Our Work image */
.gallery-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* Single image box: poori column width */
.gallery-item[data-category="work"] .image-box {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* ==============================
   3. BEFORE & AFTER CSS
   Two side-by-side images aur card
============================== */

.transformation-card {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

/* Before + After images ek row mein */
.before-after-images {
    display: flex;
    width: 100%;
    height: 320px;
    gap: 4px;
    overflow: hidden;
    border-radius: 12px;
}

/* Har image aadhi width legi */
.before-after-images .image-box {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Before / After dono ki image */
.popup-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.popup-image:hover {
    transform: scale(1.04);
}

/* ==============================
   4. BEFORE / AFTER LABELS
============================== */

.image-label {
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.before-label {
    background: #191b14;
    color: #ffd45f;
}

.after-label {
    background: #ffd45f;
    color: #222;
}

/* ==============================
   5. IMAGE POPUP CSS
   Image par click karne par
============================== */

.image-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 55px 20px 25px;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-popup.show {
    display: flex;
}

.image-popup img {
    display: block;
    max-width: 95%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 25px;
    color: #fff;
    background: transparent;
    border: none;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.popup-close:hover {
    color: #ffd45f;
}

/* ==============================
   6. MOBILE RESPONSIVE CSS
============================== */

@media (max-width: 575.98px) {
    /* Our Work single image */
    .gallery-item[data-category="work"] .image-box {
        height: 144px;
    }

    .gallery-image {
        height: 144px;
    }

    /* Before & After images */
    .before-after-images {
        height: 260px;
    }

    /* Gallery buttons */
    .hero-btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    /* Image popup */
    .image-popup {
        padding: 55px 10px 20px;
    }

    .image-popup img {
        max-width: 100%;
        max-height: 82vh;
    }

    .popup-close {
        top: 12px;
        right: 15px;
    }

    /* Before / After labels */
    .image-label {
        top: 8px;
        left: 7px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ===================================================== */

.gallery-p {
    padding: 0px !important;
}




/* ============================================================================================================= */

/* =====================================================
   GALLERY SECTION
===================================================== */

.gallery-section {
    width: 100%;

    padding: 70px 25px 75px;

    background: #faf7f3;

    overflow: hidden;
}


/* =====================================================
   CONTAINER
===================================================== */

.gallery-container {
    width: 100%;

    max-width: 1140px;

    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.gallery-header {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 22px;
}


/* Small Label */

.gallery-label {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    color: #a60038;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.gallery-label span {
    color: #d68b2a;

    font-size: 12px;
}


/* Heading */

.gallery-header h2 {
    margin: 0;

    color: #171310;

    font-family: "Playfair Display", serif;

    font-size: clamp(35px, 4vw, 42px);

    line-height: 1.12;

    font-weight: 500;

    letter-spacing: -1px;
}


/* Description */

.gallery-header p {
    max-width: 570px;

    margin: 10px auto 0;

    color: #716963;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   FILTER BUTTONS
===================================================== */

.gallery-filters {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 35px;
}


.gallery-filter {
    height: 27px;

    padding: 0 15px;

    border: 1px solid #ded9d5;

    border-radius: 20px;

    background: #ffffff;

    color: #5f5955;

    font-size: 9px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;
}


.gallery-filter:hover {
    border-color: #a60038;

    color: #a60038;
}


.gallery-filter.active {
    background: #a60038;

    border-color: #a60038;

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(166, 0, 56, 0.18);
}


/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 17px 18px;
}


/* =====================================================
   GALLERY CARD
===================================================== */

.gallery-card {
    position: relative;

    height: 220px;

    overflow: hidden;

    border-radius: 11px;

    background: #ddd;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(40, 25, 15, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.gallery-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(40, 25, 15, 0.13);
}


/* =====================================================
   IMAGE
===================================================== */

.gallery-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.gallery-card:hover img {
    transform: scale(1.07);
}


/* =====================================================
   DARK OVERLAY
===================================================== */

.gallery-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.28) 42%,
            rgba(0, 0, 0, 0.03) 72%);

    transition: background 0.3s ease;
}


.gallery-card:hover .gallery-overlay {
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.84) 0%,
            rgba(0, 0, 0, 0.34) 50%,
            rgba(0, 0, 0, 0.08) 100%);
}


/* =====================================================
   CATEGORY TAG
===================================================== */

.gallery-tag {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 5px 9px;

    border-radius: 4px;

    color: #f5c900;

    background: rgba(31, 24, 9, 0.9);

    font-size: 8px;

    line-height: 1;

    font-weight: 700;
}


/* =====================================================
   CONTENT
===================================================== */

.gallery-content {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    color: #ffffff;
}


.gallery-content h3 {
    margin: 0 0 3px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: 14px;

    line-height: 1.25;

    font-weight: 600;
}


.gallery-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 8px;

    line-height: 1.35;
}


/* =====================================================
   FILTER ANIMATION
===================================================== */

.gallery-card.gallery-hide {
    display: none;
}

.gallery-card.gallery-show {
    animation: galleryShow 0.35s ease;
}


@keyframes galleryShow {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =====================================================
   LARGE LAPTOP
===================================================== */

@media (max-width: 1100px) {

    .gallery-container {
        max-width: 950px;
    }

    .gallery-grid {
        gap: 15px;
    }

    .gallery-card {
        height: 205px;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 850px) {

    .gallery-section {
        padding: 60px 25px 65px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 16px;
    }

    .gallery-card {
        height: 240px;
    }

    .gallery-content h3 {
        font-size: 16px;
    }

    .gallery-content p {
        font-size: 9px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .gallery-section {
        padding: 50px 16px 55px;
    }


    /* Header */

    .gallery-header {
        margin-bottom: 20px;
    }

    .gallery-label {
        font-size: 9px;

        letter-spacing: 0.8px;
    }

    .gallery-header h2 {
        font-size: 32px;

        line-height: 1.15;
    }

    .gallery-header p {
        margin-top: 10px;

        font-size: 10px;

        line-height: 1.55;
    }


    /* Filters */

    .gallery-filters {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding: 2px 2px 8px;

        margin-bottom: 25px;

        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .gallery-filter {
        flex-shrink: 0;

        height: 29px;

        padding: 0 14px;

        font-size: 9px;
    }


    /* Grid */

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        gap: 11px;
    }


    /* Card */

    .gallery-card {
        height: 170px;

        border-radius: 9px;
    }


    /* Tag */

    .gallery-tag {
        top: 7px;
        left: 7px;

        padding: 4px 6px;

        font-size: 6.5px;
    }


    /* Content */

    .gallery-content {
        left: 9px;
        right: 9px;
        bottom: 9px;
    }

    .gallery-content h3 {
        font-size: 11px;

        margin-bottom: 2px;
    }

    .gallery-content p {
        font-size: 7px;

        line-height: 1.35;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .gallery-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .gallery-grid {
        gap: 9px;
    }

    .gallery-card {
        height: 155px;
    }

    .gallery-content h3 {
        font-size: 10px;
    }

    .gallery-content p {
        font-size: 6.5px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 340px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 220px;
    }

    .gallery-content h3 {
        font-size: 15px;
    }

    .gallery-content p {
        font-size: 9px;
    }

}


