* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: var(--font-main, Arial, sans-serif);
    background: var(--bg-body, #ffffff);
    cursor: default;
    margin-bottom: 2.5%;
    overflow-wrap: break-word;
    min-height: 100vh;

    background:
        radial-gradient(circle at 90% 10%, rgba(0, 91, 255, 0.10), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 55%, #eef5ff 100%);
}

html,
body {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Internet Explorer / old Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, new Edge */
}

#navBarOuter{
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(6, 22, 70, 0.08);
    box-shadow: 0 14px 22px -18px rgba(6, 22, 70, 0.28);
    backdrop-filter: blur(12px);

    border-radius: 0;
}

#navBarContent{
    position: relative;
    display: grid;
    grid-template-columns: 12.5% 80%;
    justify-content: center;
    padding-top: 2.5px;
    padding-bottom:2.5px;
}

/* GENERIC COMPONENTS */
.btn{
    position: relative;
    display: inline-block;
    
    font-size: clamp(.5rem, 1.25rem, 1.5rem);
    padding: .5vw;
    color: var(--color-dark);
    font-weight: 700;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition: transform 1s ease;

}

.btn:not(.ctaQt)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background-color: var(--color-dark);
    border-radius: 999px;

    transition: width .35s ease;
}

/* underline animation */
.btn:not(.ctaQt):hover::after {
    width: 100%;
}

.ctaQt{
    background-color: var(--color-primary);
    border-radius: 10px;
    color:white;
    
}

.btn:hover{
    transform: scale(1.05) translateZ(0);
}

/* MOBILE HAMBURGER ICON */
#mobileHam{
    display: none;

    width: 44px;
    height: 44px;
    padding: 0;

    border-radius: 14px;
    border: 1px solid rgba(6, 22, 70, 0.10);

    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 8px 22px rgba(6, 22, 70, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}

#mobileHam span{
    width: 22px;
    height: 2px;

    background: var(--color-dark);
    border-radius: 999px;

    transition:
        transform .25s ease,
        opacity .25s ease,
        background-color .25s ease;
}

.flexCenterAlign{
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexCenterAlignStacked{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.flexRightAlign{
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-items: center;
    gap: 5%;
}

.heroSection{
    padding-top: 2.5%;
}

#heroContentContainerOuter{
   width: 90%;
   margin-left: 5%;
}


#heroContentContainer{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "hero";
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 27.5vw;

    border-radius: 32px;
    border: 1px solid rgba(6, 22, 70, 0.08);
    box-shadow: 0 24px 60px rgba(6, 22, 70, 0.10);

    background:
        radial-gradient(circle at 85% 12%, rgba(0, 91, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 55%, #eef5ff 100%);

}
#heroPhoto {
    grid-area: hero;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#heroPhoto img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 68% center;

    opacity: 1;
    filter: none;

    transform: scale(1.18);
    transform-origin: center;
}

/* White fade overlay over the photo */
#heroPhoto::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0.35) 68%,
        rgba(255, 255, 255, 0.05) 100%
    );

    z-index: 2;
    pointer-events: none;
}

#heroContent {
    grid-area: hero;
    position: relative;
    z-index: 5;

    align-self: start;
    justify-self: start;

    padding-top: 4%;
    padding-left: 5%;
}

#galleryTitle {
    color: #005BFF;
    font-weight: 800;
    background: rgba(0, 91, 255, 0.08);

    padding: 0.45rem 0.85rem;

    width: fit-content;
    border: 1px solid rgba(0, 91, 255, 0.14);
    border-radius: 999px;

    font-size: clamp(0.7rem, 0.75vw, 0.85rem);
    letter-spacing: 0.16em;
}

#galleryOurWork{
    margin-top: 10px;
    font-size: clamp(3vw, 4vw, 5vw);
    color: var(--color-dark, #071B5F);
    font-family: var(--font-heading, 'Poppins', Arial, sans-serif);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;

}

#galleryOurWorkSub {
    color: #14245A;
    font-family: var(--font-main, 'Inter', Arial, sans-serif);
    font-size: clamp(1vw, 1.3vw, 1.35vw);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

#cardLabelsHero {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    margin-top: 1.8rem;
}

.cardhero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    padding: 0.9rem 1.35rem;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(6, 22, 70, 0.10);
    box-shadow: 0 8px 22px rgba(6, 22, 70, 0.10);

    color: #071B5F;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 800;

    backdrop-filter: blur(10px);
}

/* Icon wrapper */
.cardhero > div:first-child, .btnContainer > div:first-child {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Actual SVG icon */
.cardhero > div:first-child img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Text */
.cardhero > div:last-child, .btnContainer > div:first-child {
    white-space: nowrap;
}

.btnContainer > div:first-child{
    width: clamp(30px, 40px, 50px);
    height: clamp(30px, 40px, 50px);
}

.btnContainer > div:first-child img {
    width: clamp(25px, 35px, 40px);
    height: clamp(25px, 35px, 40px);
}

.allignTextCenter{
    display: flex;
    align-items: center;
}

#gallerySection{
    margin-top: 5%;

}

#galleryBtnGroup{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10%;
    row-gap: 25px;
    margin: 0 auto;
    font-size: clamp(1.1vw, 1.4vw, 1.6vw);
}

.btnContainer{
    width: 300px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(6, 22, 70, 0.10);
    border-radius: 10px;
    color: #071B5F;
    font-weight: 800;
    position: relative;
    overflow: hidden;

    cursor: pointer;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btnContainer > div:first-child img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.btnContainer:hover > div:first-child img {
    transform: scale(1.12) rotate(-3deg);
}

.btnContainer > div:last-child {
    transition: transform 0.25s ease;
}

.btnContainer:hover > div:last-child {
    transform: translateX(2px);
}

.btnContainer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );

    transition: left 0.45s ease;
}

.btnContainer:hover::before {
    left: 120%;
}

.activeBtn{
    background: linear-gradient(135deg, #005BFF, #003BB8);
    color:white;
    border-color: rgba(0, 91, 255, 0.35);
    box-shadow: 0 12px 28px rgba(0, 91, 255, 0.28);
}

.btnContainer:hover {
    transform: translateY(-2px);
}

.btnContainer.activeBtn > div:first-child img {
    filter: brightness(0) invert(1);
}

.btnContainer.activeBtn {
    background: linear-gradient(135deg, #005BFF, #003BB8);
    color: white;
    border-color: rgba(0, 91, 255, 0.35);
    box-shadow: 0 12px 28px rgba(0, 91, 255, 0.28);
}

.btnContainer.activeBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 91, 255, 0.38);
}

.btnContainer.activeBtn > div:first-child img {
    filter: brightness(0) invert(1);
}

/* GALLERY GRID */

#galleryCardsSection {
    width: 90%;
    margin: 3rem auto 0;
}

#galleryCardsGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* GALLERY CARD */

.galleryCard {
    overflow: hidden;

    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(6, 22, 70, 0.08);
    box-shadow: 0 18px 45px rgba(6, 22, 70, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.galleryCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(6, 22, 70, 0.14);
}

/* BEFORE / AFTER IMAGE AREA */

.beforeAfterImageBox {
    --split: 50%;

    position: relative;
    height: clamp(220px, 24vw, 340px);
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none;
}

.imageHalf {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.imageHalf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beforeImage {
    z-index: 1;
}

.afterImage {
    z-index: 2;
    clip-path: inset(0 0 0 var(--split));
}

.beforeImage img {
    object-position: center;
}

.afterImage img {
    object-position: center;
}

/* BEFORE / AFTER LABELS */

.imageLabel {
    position: absolute;
    top: 1rem;

    padding: 0.4rem 0.75rem;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    z-index: 4;
}

.beforeLabel {
    left: 1rem;
    background: rgba(7, 27, 95, 0.88);
    color: white;
}

.afterLabel {
    right: 1rem;
    background: linear-gradient(135deg, #005BFF, #003BB8);
    color: white;
}

/* CENTER COMPARE HANDLE */

.compareHandle {
    position: absolute;
    top: 50%;
    left: var(--split);

    transform: translate(-50%, -50%);

    width: 46px;
    height: 46px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;

    background: #ffffff;
    color: #071B5F;

    font-size: 0.85rem;
    font-weight: 800;

    box-shadow: 0 10px 28px rgba(6, 22, 70, 0.22);
    z-index: 5;

    pointer-events: none;
}

.compareHandle::before {
    content: "";
    position: absolute;

    width: 2px;
    height: 500px;

    background: rgba(255, 255, 255, 0.95);
    z-index: -1;
}

/* CARD BOTTOM CONTENT */

.galleryCardContent {
    padding: 1.25rem 1.35rem 1.4rem;
}

.galleryCardTitle {
    color: #071B5F;
    font-family: var(--font-heading, 'Poppins', Arial, sans-serif);
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;

    margin-bottom: 0.8rem;
}

.galleryCardCategory {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    color: #14245A;
    font-size: 0.9rem;
    font-weight: 700;
}

.galleryCardCategory img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.galleryCard {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.galleryCard.fadeOut {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    pointer-events: none;
}

.galleryCard.hiddenCard {
    display: none;
}

#galleryCardsSection{
    min-height: 100vh;
}

@media (max-width: 800px) {
    #navBarContent{
        grid-template-columns: 40% 50%;
        padding-top: 5px;
        padding-bottom:5px;
    }

    /* MOBILE HAMBURGER */
    #mobileHam {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-self: end;
        gap: 5px;
    }

    #mobileHam:hover {
        transform: translateY(-1px);
        border-color: rgba(0, 91, 255, 0.22);
        box-shadow:
            0 12px 28px rgba(6, 22, 70, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    #mobileHam:active {
        transform: translateY(0) scale(0.97);
    }

    #mobileHam:hover span {
        background: var(--color-primary);
    }

    .flexRightAlign {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;

        width: 100%;
        margin: 0;

        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;

        background-color: white;
        padding: 1rem;
        border-radius: 16px;

        box-shadow: 0 18px 45px rgba(6, 22, 70, 0.14);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .flexRightAlign.mobileMenuOpen {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0s linear 0s;
    }

    .flexRightAlign .btn:not(.ctaQt) {
        width: fit-content;
        align-self: center;
        text-align: center;
        padding: 0.65rem 0.75rem;
    }

    .flexRightAlign .ctaQt {
        width: fit-content;
        align-self: center;

        display: inline-flex;
        justify-content: center;
        align-items: center;

        text-align: center;
        padding: 0.95rem 1.6rem;

        background-color: var(--color-primary);
        color: white;
        border-radius: 12px;
    }

    #mobileHam.hamOpen span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #mobileHam.hamOpen span:nth-child(2) {
        opacity: 0;
    }

    #mobileHam.hamOpen span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    #galleryCardsGrid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .beforeAfterImageBox {
        height: clamp(220px, 60vw, 320px);
    }

    .galleryCardContent {
        padding: 1.1rem 1.15rem 1.25rem;
    }

    #heroContentContainer{
        height: 47vh;
    }

    #galleryOurWork{
        font-size: clamp(2rem, 2.5rem,3rem);
        font-weight: 600;
    }

    #galleryOurWorkSub{
        font-size: clamp(1rem, 1.10rem, 1.20rem);
        font-weight: 600;
    }

    .cardhero{
        padding: 5px;
    }

    .btnContainer{
        font-size: clamp(2rem,1.1rem,1.2rem);
    }
}

/* HERO TEXT ANIMATION */

#galleryTitle,
#galleryOurWork,
#galleryOurWorkSub,
#cardLabelsHero {
    opacity: 0;
    transform: translateY(24px);
    animation-name: heroFadeUp;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

#galleryTitle {
    animation-delay: 0.15s;
}

#galleryOurWork {
    animation-delay: 0.35s;
}

#galleryOurWorkSub {
    animation-delay: 0.55s;
}

#cardLabelsHero {
    animation-delay: 0.75s;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}