/* ==========================================
   RAHUL ENGINEERING - OUR WORK / GALLERY
   ========================================== */
/* =========================================================
   OUR WORK / GALLERY HERO
========================================================= */

.gallery-hero-section {
    position: relative;
    min-height: 450px;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
}


/* Background */
.gallery-hero-section .about-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-hero-section .about-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* Dark overlay */
.gallery-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 17, 34, 0.98) 0%,
            rgba(4, 17, 34, 0.94) 25%,
            rgba(4, 17, 34, 0.39) 48%,
            rgba(4, 17, 34, 0.164) 72%,
            rgba(4, 17, 34, 0.068) 100%
        );
}


/* Container */
.gallery-hero-container {
    height: 100%;
    display: flex;
    align-items: center;
}


/* Content */
.gallery-hero-content {
    width: 100%;
    min-height: 450px;
    align-items: center;
}


/* Breadcrumb */
.gallery-hero-breadcrumb {
    margin-bottom: 12px !important;
}

.gallery-hero-breadcrumb a,
.gallery-hero-breadcrumb span {
    font-size: 12px;
    letter-spacing: 0.3px;
    color: aliceblue;
}


/* Badge */
.gallery-hero-badge {
    font-size: 25px;
    margin-bottom: 12px;
    font-weight: bold;
    color: aliceblue;
}


/* Main title */
.gallery-hero-title {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: aliceblue;
}


/* Highlight */
.gallery-hero-title .text-highlight {
    display: block;
    color: var(--secondary-blue);
}


/* Blue line */
.gallery-hero-line {
    width: 105px;
    height: 3px;
    margin: 15px 0 16px;
}


/* Description */
.gallery-hero-desc {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   TRUST POINTS
========================================================= */

.gallery-hero-trust {
    width: 100%;
    max-width: 760px;
    margin-top: 20px;
}

.gh-trust-item {
    min-height: 68px;
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 7px 14px;

    border-right: 1px solid rgba(255, 255, 255, 0.20);
}

.gallery-hero-trust .col-6:last-child .gh-trust-item {
    border-right: none;
}


/* Icon */
.gh-trust-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(43, 111, 216, 0.75);
    border-radius: 50%;

    color: var(--secondary-blue);
    font-size: 17px;
}


/* Heading */
.gh-trust-item h6 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;

    color: var(--white);

    margin: 0 0 4px;
}


/* Text */
.gh-trust-item p {
    font-size: 9px;
    line-height: 1.45;

    color: rgba(255, 255, 255, 0.65);

    margin: 0;
    max-width: 130px;
}


/* Hover */
.gh-trust-item {
    transition: var(--transition);
}

.gh-trust-item:hover {
    transform: translateY(-3px);
}

.gh-trust-item:hover .gh-trust-icon {
    background: var(--secondary-blue);
    color: var(--white);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .gallery-hero-section {
        height: 430px;
        min-height: 430px;
    }

    .gallery-hero-content {
        min-height: 430px;
    }

    .gallery-hero-title {
        font-size: 46px;
    }

    .gallery-hero-desc {
        font-size: 14px;
    }

    .gh-trust-item {
        padding-left: 8px;
        padding-right: 8px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .gallery-hero-section {
        height: auto;
        min-height: 470px;
        padding: 70px 0 45px;
    }

    .gallery-hero-container {
        height: auto;
    }

    .gallery-hero-content {
        min-height: auto;
    }

    .gallery-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4, 17, 34, 0.97) 0%,
                rgba(4, 17, 34, 0.92) 100%
            );
    }

    .gallery-hero-title {
        font-size: 42px;
    }

    .gallery-hero-desc {
        max-width: 600px;
    }

    .gallery-hero-trust {
        max-width: 700px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .gallery-hero-section {
        min-height: 520px;
        padding: 60px 0 35px;
    }

    .gallery-hero-title {
        font-size: 35px;
    }

    .gallery-hero-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .gallery-hero-trust .row {
        row-gap: 12px;
    }

    .gh-trust-item {
        border-right: none;
        padding: 5px 8px 5px 0;
    }

    .gh-trust-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 14px;
    }

    .gh-trust-item h6 {
        font-size: 10px;
    }

    .gh-trust-item p {
        font-size: 8.5px;
    }

}

/* ==================== FILTER BAR ==================== */
.gallery-filter-wrap {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.gallery-filter-container {
    background: var(--white);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery-filter-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-btn {
    background: var(--white);
    color: var(--deep-navy);
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 18px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn i {
    font-size: 13px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--light-blue);
    border-color: var(--secondary-blue);
}

.filter-btn.active {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(43,111,216,0.3);
}

.filter-btn.active i {
    color: var(--white);
}

/* ==================== GALLERY INTRO ==================== */
.btn-outline-navy {
    background: transparent;
    color: var(--deep-navy);
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    border: 2px solid var(--deep-navy);
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-navy:hover {
    background: var(--deep-navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-navy i {
    margin-right: 6px;
}

/* ==================== GALLERY GRID ==================== */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-blue);
}

.gc-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--light-gray);
}

.gc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gc-img img {
    transform: scale(1.04);
}

.gc-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7,24,45,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gc-img-overlay i {
    color: var(--white);
    font-size: 28px;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gc-img:hover .gc-img-overlay {
    opacity: 1;
}

.gc-img:hover .gc-img-overlay i {
    transform: scale(1);
}

.gc-content {
    padding: 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.gc-cat {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 10px;
    color: var(--secondary-blue);
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.gc-desc {
    font-size: 12px;
    color: var(--deep-navy);
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
}

/* ==================== EXCELLENCE STRIP ==================== */
.excellence-strip {
    background: var(--deep-navy);
    padding: 35px 0;
    border-top: 2px solid var(--secondary-blue);
}

.excellence-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.excellence-title .text-highlight {
    color: var(--secondary-blue);
}

.excellence-points {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.ex-point {
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ex-point.border-end-0 {
    border-right: none;
}

.ex-point i {
    color: var(--secondary-blue);
    font-size: 20px;
    margin-bottom: 6px;
}

.ex-point span {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 11px;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ex-point small {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    font-size: 9px;
}

/* ==================== CTA SECTION ==================== */
.gallery-cta-section {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.gallery-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gallery-cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.gallery-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(7,24,45,0.98) 0%,
        rgba(7,24,45,0.92) 55%,
        rgba(15,79,168,0.7) 100%
    );
}

.gallery-cta-section .container-fluid {
    padding-top: 40px;
    padding-bottom: 40px;
}

.gallery-cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.15;
}

.gallery-cta-text {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.5;
}

/* ==================== LIGHTBOX MODAL ==================== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7,24,45,0.92);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.lightbox-prev i,
.lightbox-next i {
    font-size: 20px;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199px) {
    .gallery-hero-section {
        min-height: 480px;
    }
}

@media (max-width: 991px) {
    .gallery-filter-container {
        padding: 10px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 10px;
    }

    .excellence-points {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .ex-point {
        padding: 10px 5px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
}

@media (max-width: 767px) {
    .gallery-hero-section {
        min-height: auto;
        padding-bottom: 50px;
    }

    .gallery-hero-trust .row {
        gap: 10px !important;
    }

    .gh-trust-item {
        padding: 10px;
        text-align: center;
    }

    .gh-trust-item i {
        margin: 0 auto 6px;
    }

    .gc-img {
        height: 240px;
    }

    .excellence-strip {
        padding: 30px 0;
    }
    
    .ex-point:nth-child(even) {
        border-right: none;
    }
    .ex-point:nth-child(1), .ex-point:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    .gallery-cta-title {
        font-size: 22px;
    }

    .gallery-cta-section .container-fluid {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}