﻿.teamm .pgi-caption-inner {
    background-color: rgba(16, 16, 16,0.6);
    padding: 10px;
    border-radius: 10px;
}
.teamm .pgi-category {
    font-size: 8px;
    text-transform: capitalize;
}
.teamm .pgi-image img {
    border-radius: 10px;
}
a:hover .teamm .pgi-image img {
    border-radius: 10px;
}
@font-face {
    font-family: 'simplonmono-regular';
    src: url('../fonts/simplonmono-regular.otf') format('opentype');
}
@font-face {
    font-family: 'simplonmono-light';
    src: url('../fonts/simplonmono-light.otf') format('opentype');
}
@font-face {
    font-family: 'optika-light';
    src: url('../fonts/optika-light.otf') format('opentype');
}
@font-face {
    font-family: 'optika-thin';
    src: url('../fonts/optika-thin.otf') format('opentype');
}
@media only screen and (max-width: 500px) {
    .tt-scrolling-text-inner {
        font-size: 10.5vw !important;
        font-weight: bold;
        font-weight: 700;
        color: transparent;
        -webkit-text-stroke-width: 2px;
        /* -webkit-text-stroke-color: #AAA; */
        -webkit-text-fill-color: transparent;
    }
    .page-header-inner, body:not(.ph-image-on) #page-header .page-header-inner, body.ph-image-on.ph-bg-image-on #page-header:not(.project-info-list-on) .page-header-inner {
        padding-top: 100px!important;
    }
}
/* ================================
   SECTION BASE
   ================================ */
.teamm {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ================================
   WATERMARK BASE STYLING
   ================================ */
.team-watermark {
    font-size: 60px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(0,0,0,0.07);
    white-space: nowrap;
    pointer-events: none;
    text-align: center;
    width: 100%;
    animation: watermarkMove 2s ease-in-out infinite alternate;
}

/* AFTER TITLE */
.title-watermark {
    margin: 20px 0; /* spacing after title */
}



/* ================================
   WATERMARK ANIMATION
   ================================ */
@keyframes watermarkMove {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ================================
   IMAGE CARD BEFORE & AFTER (Optional)
   ================================ */
.pgi-image-inner {
    position: relative;
}

    .pgi-image-inner::before {
        content: "★";
        position: absolute;
        top: 8px;
        left: 8px;
        font-size: 18px;
        color: rgba(255,255,255,0.8);
        pointer-events: none;
    }

   

@keyframes sparkle {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* IMAGE HOVER */
.portfolio-grid-item:hover .pgi-image img {
    transform: scale(1.08);
}
.watermobile {
    margin-top: 10px;
    margin-bottom: 15px;
}
/* RESPONSIVE */
@media (max-width: 500px) {
    .team-watermark {
        font-size: 20px;
    }
    #page-header.ph-cap-sm .ph-caption-title {
        font-size: clamp(50px, 4vw, 68px) !important;
    }
    .converdiv {
        height: 100vh;
    }
    #page-header.ph-cap-xxlg .ph-caption-title {
        font-size: clamp(30px, 4vw, 180px) !important;
    }
    .watermobile{
        margin-top:15px!important;
        margin-bottom:15px;
    }
    .globe-icon {
        width:40px!important;
        height:40px!important;
    }
    .ph-caption-video {
        top: 30vh !important;
    }
        .ph-caption-video video {
            width: 150px !important;
            height: 150px !important;
        }
    .paper-plane{
        display:block!important;

    }
    .aboutcover {
        padding-bottom: 10vw!important;
    }
    .line{
        white-space:normal!important;
    }
    .lineee {
        white-space: normal !important;
    }
    .tt-grid-item {
        width: 100% !important;
    }
    .animated-svg-wrapper svg {
        width: 50px!important;
        height: 50px!important;
    }
    .converdiv .ph-image {
        top: 85px!important;
    }
    .converdiv .ph-image {
        right: 5vw !important;
    }
    body.ph-image-on #page-header:not(.project-info-list-on) .page-header-inner {
        padding-top: 260px !important;
    }
    .ph-caption-video
    {
        left:12px!important;

    }
        .ph-caption-video video {
            height: 200px !important;
            width:100%!important;
        }
}
@media (max-width: 380px) {
    #page-header.ph-cap-sm .ph-caption-title {
        font-size: clamp(35px, 4vw, 68px) !important;
    }
    .ph-caption-video {
        top: 24vh !important;
    }
    body.ph-image-on #page-header:not(.project-info-list-on) .page-header-inner {
        padding-top: 240px !important ;
    }
        .ph-caption-video video {
            width: 150px !important;
            height: 150px !important;
        }
    .ph-caption-video video {
        height: 200px !important;
        width: 100% !important;
    }
}

    @media only screen and (min-width: 501px) and (max-width: 1000px) {
        .team-watermark {
            font-size: 40px;
        }
    }

    

    .ph-caption-video {
        margin-top: 20px;
        max-width: 700px;
    }

.converdiv .ph-caption-title {
    text-align: center;
    font-size: clamp(69px, 19vw, 50px) !important;
}



    .globe-icon {
        vertical-align: middle;
        margin-right: -12px;
        animation: rotateGlobe 6s linear infinite;
        transform-origin: 50% 50%;
        width: 90px;
        height: 90px;
    }

    @keyframes rotateGlobe {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }


    /* VIDEO */
.ph-caption-video {
    position: absolute;
    inset: 0;
    top: 14vh;
    left: 19%;
    z-index: 1;
}
@media (max-width: 1730px) and (min-width: 1550px) {
    /* Adjust video size */
    .ph-caption-video {
        left: 5%; /* shift video slightly */
        width: 28%; /* scale down */
        top: 20vh; /* optional vertical adjustment */
    }

        .ph-caption-video video {
            width: 100%;
            height: auto;
            border-radius: 50px;
        }
    .converdiv .ph-caption-title {
        font-size: clamp(69px, 19vw, 78px) !important;
    }
    .ph-caption-video video {
        height: 390px!important;
    }
    .ph-caption-video {
        left: 12%;
        width: 28%;
        top: 13vh;
    }
}
.ph-caption {
    position: relative; /* container for absolute elements */
}
.ph-caption-title{
    z-index:99999!important;
}
/* Keep video in its container, absolute to parent */
.ph-caption-video2 {
    position: absolute;
    left: -316px;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity;
}

    /* Video fits container */
    .ph-caption-video2 video {
        width: 290px;
        height: 380px;
        object-fit: cover;
        border-radius: 50px;
    }
    .ph-caption-video2::after {
        content: "";
        position: absolute;
        width: 290px;
        height: 380px;
        border-radius: 50px;
        background: rgba(0, 0, 0, 0.2); /* overlay color */
        z-index: 2;
    }

/* SVG/text on top */
.ph-caption-title {
    position: relative;
    z-index: 1; /* above video */
}

/* Approximate zoom 110% for 1920px design */
/* Approximate styles for 110% zoom */
@media (max-width: 1750px) and (min-width: 1700px) {
    /* Video container */
    .ph-caption-video {
        left: 19%;
        width: 28%;
        top: 13vh;
    }

        .ph-caption-video video {
            width: 100%;
            height: auto;
            max-height: 480px;
            border-radius: 50px;
        }

    
}


    .ph-caption-video video {
        width: 300px;
        height: 379px;
        object-fit: cover;
        border-radius: 50px;
    }
.paper-plane {
    display: inline-block;
    width: 70px;
    height: 70px;
    position: relative;
    offset-path: path('M0,0 C20,-10 40,-10 60,0'); /* curved line */
    offset-rotate: auto; /* rotates along path */
    animation: flyLine 2s linear infinite;
}
.converdiv .ph-image {
    right: 9vw!important;
}
@keyframes flyLine {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 1;
    }
}

.converdiv .ph-caption-title {
    overflow: hidden; /* ensures text is hidden before animation */
    z-index:99999;
}
.line .line1 {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: revealWordScale 2s ease-out forwards;
    animation-delay: calc(var(--i) * 1s);
    -webkit-animation: revealWordScale 2s ease-out forwards;
    -webkit-animation-delay: calc(var(--i) * 1s);
}

/*.line em span,
.line > span {
    display: inline-block;*/ /* make each word animatable */
    /*opacity: 0;*/ /* start hidden */
    /*transform: translateY(20px);*/ /* start slightly lower */
    /*animation: revealWordScale 0.2s forwards;
}*/

/* Stagger animation for each word */
/*.line span:nth-child(1) {
    animation-delay: 1s;
}

.line span:nth-child(2) {
    animation-delay: 1.5s;
}

.line span:nth-child(3) {
    animation-delay: 2s;
}

.line span:nth-child(4) {
    animation-delay: 2.5s;
}

.line span:nth-child(5) {
    animation-delay: 3s;
}

.line span:nth-child(6) {
    animation-delay: 3.5s;
}

.line span:nth-child(7) {
    animation-delay: 4s;
}

.line span:nth-child(8) {
    animation-delay: 4.5s;
}*/

/* Keyframes for reveal */
@keyframes revealWordScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.tan {
    display: inline-block;
}

.lineeee {
    display: block; /* acts like <br> */
}

.tan1 {
    display: inline-block;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: revealWordScale 1s forwards;
    animation-play-state: paused;
    /* GLOBAL STAGGER */
    animation-delay: calc((var(--i) - 1) * 0.2s);
}

/* trigger animation */
.tan.animate .tan1 {
    animation-play-state: running;
}


@media only screen and (min-width: 1200px) {
    .teamm .tt-grid-item {
        width: 16.67% !important;
    }
}
.pgtitleee{
    font-size:14px!important;
}

.brands-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-marquee {
    overflow: hidden;
    width: 100%;
    white-space: nowrap; /* Prevents logos from dropping to a second line */
}

.brands-track {
    display: flex;
    width: max-content; /* Vital: lets the track be as wide as the logos */
    animation: scrollBrands linear infinite;
}
.brand-item {
    flex: 0 0 auto;
    margin: 0 50px;
    width: 150px; /* fixed width */
    height: 100px; /* fixed height */

    display: flex;
    align-items: center;
    justify-content: center;
}

    .brand-item img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* IMPORTANT: keeps logo ratio */

        filter: grayscale(0.2);
        transition: filter 0.3s ease, transform 0.3s ease;
    }

        .brand-item img:hover {
            filter: grayscale(0);
            transform: scale(1.1);
        }

@keyframes scrollBrands {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
    /* Moves exactly one set of logos */
}

.tt-text-reveal > span {
    position: relative;
    display: inline;
    color: var(--tt-text-color);
    -webkit-text-fill-color: var(--tt-linear-text-bg-color);
    -webkit-background-clip: text;
    background-repeat: no-repeat;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 100%;
    will-change: background-size;
}
.tt-heading-title {
    margin: 0;
    text-transform: uppercase;
    font-family: optika-light;
    font-size: clamp(32px, 3vw, 42px);
    font-weight: bold;
    font-weight: 600;
    line-height: 1;
}
.tt-heading.tt-heading-xxxlg .tt-heading-title {
    font-size: clamp(64px, 8vw, 187px);
    font-weight:normal!important;
}

.svg-button {
    position: relative;
    display: inline-block;
    width: 220px;
    height: 80px;
    cursor: pointer;
    border: 3px solid rgb(244,82,4);
    border-radius: 50px;
}

    /* Inner Text */
    .svg-button .tt-big-round-ptn-inner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: optika-light;
        font-size: 22px;
        font-weight: 700;
        color: rgb(244,82,4);
        text-align: center;
        line-height: 1.2;
        z-index: 2;
    }

    /* SVG Border */
    .svg-button svg.svg-border {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .svg-button svg rect {
        fill: transparent;
        stroke: #ff5722;
        stroke-width: 3;
        stroke-dasharray: 700;
        stroke-dashoffset: 700;
        rx: 38;
        ry: 38;
     /*   animation: draw-border 2s linear infinite alternate, glow-border 2s ease-in-out infinite alternate;*/
    }

/* Border draw animation */
@keyframes draw-border {
    from {
        stroke-dashoffset: 700;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Glow animation */
@keyframes glow-border {
    0% {
        stroke: #ff5722;
        filter: drop-shadow(0 0 0px #ff5722);
        -webkit-filter: drop-shadow(0 0 0px #ff5722);
    }

    50% {
        stroke: #00bcd4;
        filter: drop-shadow(0 0 10px #00bcd4);
        -webkit-filter: drop-shadow(0 0 10px #00bcd4);
    }

    100% {
        stroke: #ff5722;
        filter: drop-shadow(0 0 0px #ff5722);
        -webkit-filter: drop-shadow(0 0 0px #ff5722);
    }
}


/* Optional: text glow pulse */
/*.svg-button .tt-big-round-ptn-inner {
    animation: text-glow 2s ease-in-out infinite alternate;
}*/

@keyframes text-glow {
    0% {
        text-shadow: 0 0 0px #ff5722;
    }

    50% {
        text-shadow: 0 0 8px #00bcd4, 0 0 16px #00bcd4;
    }

    100% {
        text-shadow: 0 0 0px #ff5722;
    }
}

.animated-world-wrapper {
    display: inline-block;
    vertical-align: middle;
}

.world-svg {
    width: 100px;
    height: 100px;
    transform-origin: 50% 50%;
    animation: rotate-globe 10s linear infinite;
}

/* Rotate the globe */
@keyframes rotate-globe {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Optional: animate continents stroke-draw */
.continent {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 3s linear infinite alternate;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 200;
        opacity: 0.3;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .animated-world-wrapper {
        width: 2em;
        height: 2em;
    }
}

@media (max-width: 480px) {
    .animated-world-wrapper {
        width: 1.5em;
        height: 1.5em;
    }
}

.imagecss {
    height: 500px;
    object-fit: cover;
    width: 100%;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

@media (min-width: 1025px) {
    #page-header.ph-full .page-header-inner {
        padding-top: 0% !important;
    }
}

.ph-caption-video {
    will-change: opacity, transform;
    transition: opacity 0.05s linear; /* smooth but responsive */
}

@media only screen and (min-width: 900px) and (max-width: 1390px) {
    .ph-caption-video video {
        height: 320px !important;
        width: 270px !important;
    }

    .converdiv .ph-caption-title {
        font-size: clamp(62px, 19vw, 56px) !important;
    }

    .ph-caption-video2 {
        left: -250px !important;
    }

        .ph-caption-video2 video {
            width: 250px!important;
            height: 320px!important;
        }
        .ph-caption-video2::after {
            width: 250px !important;
            height: 320px !important;
        }
    .phfirst {
        width: 350px !important;
    }
}

@media (max-width: 540px) {
    .ph-image, #page-header.ph-full:not(.ph-center):not(.ph-bg-image) .ph-image {
        width: 50%!important;
    }
    .readddd {
    width:100%!important;
    
    }
    .divbuuu{
        margin-top:20px!important;
    }
    .ph-caption-video2 {
        left: -65px !important;
        bottom: -160px !important;
    }
        .ph-caption-video2 video {
            width: 200px!important;
            height: 250px!important;
        }
        .ph-caption-video2::after {
            width: 200px !important;
            height: 250px !important;
        }
    .teamm figure {
        height: 380px !important;
        margin-bottom: 10px;
    }
    .ttgr-layout-4 .ttgr-item-half2 {
        width: 100% !important;
    }
    .divwhite{
        display:none!important;
    }
    .Groupgg {
        height: 380px !important;
    }
    .pgittt2 {
        word-spacing: normal!important;
    }
    .h1homepage {
        word-spacing: normal!important;
    }
    #tt-footer {
        padding: 20px 0 20px 0!important;
    }
    .lineeee{
        margin-top:0!important;
    }
    .divvreaddddmoree{
        margin-top:100px!important;
    }
    .pghostt{
        bottom:0!important;
    }
    #page-header.ph-cap-xxlg .ph-caption-title-ghost {
        font-size: calc(10px + 10vw) !important;
    }
    .h22222 {
        font-size: clamp(45px, 10vw, 187px) !important;
        margin-bottom: 10px;
    }
    .tt-heading.tt-heading-xxxlg .cccc {
        font-size: clamp(55px, 8vw, 187px) !important;
    }
    .spanteam {
        font-size: 15px;
        margin-bottom:0!important;
    }
    
}
@media (min-width: 540px) {
    .pghostt {
        padding-top: 25% !important;
    }
    .aboutcover .ph-caption-title-ghost {
        bottom: auto !important;
    }
}
   


    

    .ttgr-layout-4 .ttgr-item-half {
        width: 33.33% !important;
    }

    .ttgr-layout-4 .ttgr-item-half2 {
        width: 33.33% !important;
    }
    /* On mobile, force it back to 100% width so it doesn't look squashed */
    @media (max-width: 768px) {
        .ttgr-layout-4 .ttgr-item-half {
            width: 100% !important;
        }
       
    }

@media only screen and (min-width: 550px) and (max-width: 1000px) {
    .tttrowwdiv5 .content {
        top: 30% !important;
    }
    .tttrowwdiv5::before{
        opacity:0.7!important;
    }
}

    .teamm figure {
        height: 250px;
    }

    @media only screen and (min-width: 1024px) {
        .itemmwrapp {
            height: 560px !important;
        }

        .Groupgg {
            height: 250px !important;
        }
    }

    @media (-webkit-min-device-pixel-ratio: 1.5), /* Chrome, Safari */
    (min--moz-device-pixel-ratio: 1.5), /* Firefox */
    (-o-min-device-pixel-ratio: 3/2), /* Opera */
    (min-resolution: 144dpi) /* Standard CSS */
    {
        .ph-image {
            width: clamp(300px, 18vw, 800px) !important;
        }
    }

.testtttimonailss .swiper-autoheight, .testtttimonailss .swiper-autoheight .testtttimonailss .swiper-slide {
    height:100px!important;
}

@media only screen and (max-width: 500px) {
    .testtttimonailss .swiper-autoheight, .testtttimonailss .swiper-autoheight .testtttimonailss .swiper-slide {
        height: 215px !important;
    }
}
.readmore {
    font-family: optika-thin !important;
    font-weight: bold;
}

    @media (max-width: 1024px) {
        .tt-portfolio-slider .swiper {
            height: 100vh !important;
        }
    }

    .swippper [class*="cover-opacity-"]::before {
        border-radius: 0 !important;
    }

    .readddd {
        color: rgb(16, 16, 16) !important;
        border-color: rgb(16, 16, 16) !important;
        font-weight: bold !important;
        width: 200px;
    }

    .divbuuu {
        box-shadow: inset 0 0 0 2px rgb(16, 16, 16) !important;
    }

        .divbuuu .readddd::after {
            color: rgb(16, 16, 16) !important;
        }

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.youtubeplayerr {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw; /* bigger than screen */
    height: 67.5vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* disable clicking */
}

.tt-ps-nav-pagination-fraction{
    display:none!important;
}

/* background container */
.tttrowwdiv5::before {
    content: "";
    display: block;
    width: 100%;
    /* Adjust this value to match your image ratio */
    padding-top: 56%;
    background-image: var(--team-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* content above background */
.tttrowwdiv5 .content {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (min-width: 1100px) {
    .video-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

        .video-wrapper iframe {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 120%;
            height: 120%;
            transform: translate(-50%, -50%);
            pointer-events: none; /* disables clicks */
        }
}

    @media screen and (max-width: 1000px) {
        .video-wrapper {
            position: relative;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
        }

            .video-wrapper iframe {
                position: absolute;
                top: 50%;
                left: 50%;
                height: 100vh; /* fill viewport height */
                width: calc(100vh * 16/9); /* width to maintain 16:9 ratio */
                transform: translate(-50%, -50%);
                pointer-events: none;
            }
    }

.tttrowwdiv {
    position: relative;
    height: auto; /* container height adjusts automatically */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .tttrowwdiv::before {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 300px; /* image height fixed */
        background: var(--section-image1) center center / cover no-repeat;
        opacity: 0.6;
        z-index: -1; /* behind content */
    }

.team-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* track */
.team-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

/* cards */
.team-card {
    flex: 0 0 calc(33.333% - 20px);
}

/* image */
.team-image {
    position: relative;
    overflow: hidden;
}

.team-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4; /* 🔥 keeps same ratio everywhere */
}

    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* overlay */
.team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    flex-direction: column; /* 🔥 THIS FIXES IT */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.team-image:hover .team-overlay {
    opacity: 1;
}

/* ✅ NAV BUTTONS (LEFT + RIGHT SAME STYLE) */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: 0.3s;
}

    .nav:hover {
        background: black;
    }

/* LEFT */
.prev {
    left: 8px;
}

/* RIGHT */
.next {
    right: 25px;
}

@media (max-width: 768px) {

    .team-card {
        flex: 0 0 100%;
    }

    .team-track {
        gap: 20px;
    }

    .nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .team-card {
        flex: 0 0 calc(50% - 10px);
    }
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999999999;
}

    .whatsapp-float a {
        width: 55px;
        height: 55px;
        background: white;
        color: black;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 28px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        text-decoration: none;
        transition: 0.3s;
    }

        .whatsapp-float a:hover {
            transform: scale(1.1);
        }

/* Container */
.team-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-flow: dense;
    gap: 10px;
    grid-auto-rows: 12vw;
}

/* Keeps the Text Block locked in the center */
.meet-team-header {
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
    z-index: 5;
}

/* Keeps Factory locked */
.factory-slot {
    grid-column: 2 / span 2; /* Starts at col 2, occupies 2 columns total */
    grid-row: 1; /* Stays on the first row */
    position: relative;
    overflow: hidden;
}

    .factory-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Keeps the factory image from stretching */
    }

/* The Teams Image inserted between people */
.teams-group-image {
    grid-column: span 2; /* Make it wider if you want, or just 'auto' for 1x1 */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blank-space {
    visibility: hidden;
}
/* Positioning the Factory Label */
.factory-box {
    grid-column: 2; /* Positioned in the 2nd column */
    grid-row: 1; /* First row */
    display: flex;
    align-items: center;
    justify-content: center;
}

.factory-handwritten {
    border: 3px solid #FF5722;
    padding: 10px 20px;
    color: #002e5b;
    font-family: 'Permanent Marker', cursive; /* Use a Google Font for handwriting */
    font-size: 24px;
    transform: rotate(-5deg);
}

/* Positioning the Meet the Team Block */
.meet-team-header {
    grid-column: 3 / span 2; /* Starts at col 3, spans 2 wide */
    grid-row: 2 / span 2; /* Starts at row 2, spans 2 high */
    display: flex;
    flex-direction: column;
    justify-content: CENTER;
    padding: 20px;
    z-index: 2;
}

.meet-title {
    font-size: 60px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 20px;
}

.meet-team-header p {
    font-size: 16px !important;
    color: white;
    line-height: 1.5;
}

/* Image Handling */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This keeps faces from stretching */
    object-position:top;
    display: block;
}

/* Blank slots to match the "missing" parts of the photo */
.blank {
    background-color: transparent;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .meet-team-header {
        grid-column: span 2;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns is better for photos on phones */
        grid-auto-rows: minmax(200px, auto); /* Smaller height for mobile */
        grid-auto-flow: dense;
    }

    /* Factory Slot: Occupy the full width of the first row */
    .factory-slot {
        grid-column: 1 / span 2;
        grid-row: auto;
        height: 250px;
    }

    /* Meet the Team Header: Occupy full width so text is readable */
    .meet-team-header {
        grid-column: 1 / span 2;
        grid-row: auto;
        padding: 40px 20px;
        text-align: center;
    }

    .meet-title {
        font-size: 40px; /* Smaller font for mobile screens */
    }

    .meet-team-header p {
        font-size: 16px !important;
    }

    /* Teams group image inside the list: Spans full width */
    .teams-group-image {
        grid-column: 1 / span 2;
    }

    /* Hide blank spaces on mobile to avoid weird gaps */
    .blank-space {
        display: none;
    }

}

/* Extra Small Screens (Phones) */
@media (max-width: 480px) {


    .meet-title {
        font-size: 32px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    .meet-title {
        font-size: 50px !important;
    }
    .meet-team-header p{
        font-size:14px!important;
    }
}