/* =====================================================
   GK CONSULTANCY
   PREMIUM GALLERY
   MD CONSULTANCY INSPIRED STYLE
===================================================== */


/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    color: #111827;
}


/* =====================================================
   HERO
===================================================== */

.gallery-hero {

    height: 560px;

    margin-top: 102px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.gallery-hero-image {

    position: absolute;

    inset: 0;

    background-image:
        url("../images/gallery-bg.jpg");

    background-size: cover;

    background-position: center;

    transform: scale(1.03);

    animation: galleryHeroZoom 12s ease-in-out infinite alternate;
}


@keyframes galleryHeroZoom {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}


.gallery-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(3, 12, 28, .82),
            rgba(15, 23, 42, .72)
        );
}


.gallery-hero-content {

    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    color: #ffffff;

    animation: heroContent 1s ease both;
}


@keyframes heroContent {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.gallery-label {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2.5px;

    color: #60a5fa;

    margin-bottom: 22px;
}


.gallery-label span {

    width: 45px;

    height: 2px;

    background: #2563eb;
}


.gallery-hero-content h1 {

    font-family: 'DM Serif Display', serif;

    font-size: clamp(48px, 6vw, 76px);

    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -.5px;
}


.gallery-hero-content h1 span {

    display: block;

    color: #3b82f6;
}


.gallery-hero-content p {

    max-width: 680px;

    margin: 25px auto 0;

    color: #e5e7eb;

    font-size: 16px;

    line-height: 1.9;
}


/* =====================================================
   INTRO
===================================================== */

.gallery-intro {

    padding: 100px 8%;

    background: #ffffff;
}


.gallery-intro-container {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 300px;

    gap: 80px;

    align-items: center;
}


.section-label {

    display: flex;

    align-items: center;

    gap: 12px;

    font-family: 'Montserrat', sans-serif;

    color: #2563eb;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 20px;
}


.section-label span {

    display: inline-block;

    width: 45px;

    height: 2px;

    background: #2563eb;
}


.gallery-intro-content h2 {

    font-family: 'DM Serif Display', serif;

    font-size: clamp(38px, 4vw, 58px);

    font-weight: 400;

    line-height: 1.15;

    color: #111827;

    max-width: 750px;
}


.gallery-intro-content h2 span {

    display: block;

    color: #2563eb;
}


.gallery-intro-content p {

    max-width: 780px;

    margin-top: 22px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.9;
}


.gallery-intro-stat {

    position: relative;

    min-height: 250px;

    padding: 45px 30px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    overflow: hidden;
}


.gallery-intro-stat::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 5px;

    height: 100%;

    background: #2563eb;
}


.gallery-intro-stat strong {

    font-family: 'DM Serif Display', serif;

    font-size: 72px;

    line-height: 1;

    font-weight: 400;

    color: #2563eb;
}


.gallery-intro-stat sup {

    font-size: 32px;
}


.gallery-intro-stat span {

    margin-top: 15px;

    font-family: 'Montserrat', sans-serif;

    font-size: 11px;

    line-height: 1.7;

    letter-spacing: 1.5px;

    font-weight: 700;

    color: #475569;
}


/* =====================================================
   GALLERY SECTION
===================================================== */

.gallery-section {

    padding: 105px 7% 115px;

    background: #f8fafc;
}


.section-heading {

    max-width: 850px;

    margin: 0 auto 60px;

    text-align: center;
}


.center-label {

    justify-content: center;
}


.section-heading h2 {

    font-family: 'DM Serif Display', serif;

    font-size: clamp(40px, 5vw, 60px);

    line-height: 1.15;

    font-weight: 400;

    color: #111827;
}


.section-heading h2 span {

    color: #2563eb;
}


.section-heading p {

    max-width: 650px;

    margin: 18px auto 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.8;
}


/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {

    max-width: 1350px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 350px;

    gap: 22px;
}


.gallery-card {

    position: relative;

    overflow: hidden;

    background: #111827;

    border-radius: 3px;

    cursor: pointer;
}


.gallery-card.gallery-large {

    grid-row: span 2;
}


.gallery-card.gallery-wide {

    grid-column: span 2;
}


.gallery-card img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .7s cubic-bezier(.2,.7,.2,1);
}


.gallery-card:hover img {

    transform: scale(1.09);
}


/* =====================================================
   IMAGE OVERLAY
===================================================== */

.gallery-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(2, 6, 23, .92) 0%,
            rgba(2, 6, 23, .42) 45%,
            rgba(2, 6, 23, .02) 80%
        );

    transition: .4s;
}


.gallery-card:hover .gallery-overlay {

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, .95),
            rgba(37, 99, 235, .18)
        );
}


/* =====================================================
   CARD CONTENT
===================================================== */

.gallery-card-content {

    position: absolute;

    left: 28px;

    right: 28px;

    bottom: 27px;

    z-index: 2;

    color: #ffffff;
}


.gallery-card-content > span {

    display: inline-block;

    font-family: 'Montserrat', sans-serif;

    color: #60a5fa;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 9px;
}


.gallery-card-content h3 {

    font-family: 'DM Serif Display', serif;

    font-size: 28px;

    font-weight: 400;

    line-height: 1.15;

    margin-bottom: 7px;
}


.gallery-card-content p {

    color: #dbeafe;

    font-size: 12px;

    line-height: 1.6;

    max-width: 450px;
}


.gallery-arrow {

    position: absolute;

    right: 0;

    bottom: 0;

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.5);

    color: #ffffff;

    transition: .4s;
}


.gallery-card:hover .gallery-arrow {

    background: #2563eb;

    border-color: #2563eb;

    transform: rotate(45deg);
}


/* =====================================================
   CTA
===================================================== */

.gallery-cta {

    position: relative;

    padding: 100px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #07111f,
            #0f172a
        );

    overflow: hidden;
}


.gallery-cta::before {

    content: "";

    position: absolute;

    width: 400px;

    height: 400px;

    left: -180px;

    top: -200px;

    border-radius: 50%;

    background: rgba(37,99,235,.14);
}


.gallery-cta::after {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    right: -150px;

    bottom: -180px;

    border-radius: 50%;

    background: rgba(59,130,246,.10);
}


.gallery-cta-content {

    position: relative;

    z-index: 2;
}


.light-label {

    justify-content: center;

    color: #60a5fa;
}


.light-label span {

    background: #2563eb;
}


.gallery-cta h2 {

    font-family: 'DM Serif Display', serif;

    font-size: clamp(40px, 5vw, 62px);

    font-weight: 400;

    color: #ffffff;

    line-height: 1.15;
}


.gallery-cta h2 span {

    color: #3b82f6;
}


.gallery-cta p {

    color: #cbd5e1;

    font-size: 15px;

    margin: 18px auto 30px;

    max-width: 650px;
}


.gallery-cta a {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 15px 30px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    transition: .35s;
}


.gallery-cta a:hover {

    background: #1d4ed8;

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(37,99,235,.3);
}


.gallery-cta a i {

    transition: .3s;
}


.gallery-cta a:hover i {

    transform: translateX(5px);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .gallery-hero {

        margin-top: 118px;

        height: 500px;
    }


    .gallery-intro {

        padding: 80px 6%;
    }


    .gallery-intro-container {

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .gallery-intro-stat {

        max-width: 320px;

        margin: auto;

        width: 100%;
    }


    .gallery-section {

        padding: 85px 5%;
    }


    .gallery-grid {

        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 300px;
    }


    .gallery-card.gallery-large {

        grid-row: span 1;
    }


    .gallery-card.gallery-wide {

        grid-column: span 2;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .gallery-hero {

        margin-top: 124px;

        height: 450px;
    }


    .gallery-hero-content {

        width: 92%;
    }


    .gallery-label {

        font-size: 10px;

        letter-spacing: 1.8px;

        gap: 9px;
    }


    .gallery-label span {

        width: 30px;
    }


    .gallery-hero-content h1 {

        font-size: 44px;
    }


    .gallery-hero-content p {

        font-size: 13px;

        line-height: 1.7;
    }


    .gallery-intro {

        padding: 65px 20px;
    }


    .gallery-intro-content h2 {

        font-size: 39px;
    }


    .gallery-intro-content p {

        font-size: 14px;
    }


    .gallery-section {

        padding: 65px 20px 75px;
    }


    .section-heading {

        margin-bottom: 40px;
    }


    .section-heading h2 {

        font-size: 40px;
    }


    .section-heading p {

        font-size: 13px;
    }


    .gallery-grid {

        grid-template-columns: 1fr;

        grid-auto-rows: 330px;

        gap: 18px;
    }


    .gallery-card.gallery-large,
    .gallery-card.gallery-wide {

        grid-column: auto;

        grid-row: auto;
    }


    .gallery-card-content {

        left: 20px;

        right: 20px;

        bottom: 20px;
    }


    .gallery-card-content h3 {

        font-size: 25px;
    }


    .gallery-card-content p {

        font-size: 11px;

        padding-right: 50px;
    }


    .gallery-arrow {

        width: 40px;

        height: 40px;
    }


    .gallery-cta {

        padding: 75px 20px;
    }


    .gallery-cta h2 {

        font-size: 40px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .gallery-hero {

        margin-top: 124px;

        height: 410px;
    }


    .gallery-hero-content h1 {

        font-size: 37px;
    }


    .gallery-hero-content p {

        font-size: 12px;

        margin-top: 18px;
    }


    .gallery-intro-content h2 {

        font-size: 34px;
    }


    .gallery-intro-stat {

        min-height: 210px;
    }


    .gallery-intro-stat strong {

        font-size: 62px;
    }


    .section-heading h2 {

        font-size: 34px;
    }


    .gallery-grid {

        grid-auto-rows: 290px;
    }


    .gallery-card-content h3 {

        font-size: 22px;
    }


    .gallery-cta h2 {

        font-size: 34px;
    }


    .gallery-cta p {

        font-size: 13px;
    }

}
