:root {
    --page-text-color: #0B0C0D;
    --page-secondary-bg: #EEF3F6;
    --page-primary-bg: #3F6CFF;
    --page-light-bg: #F3F3F3;
    --text-grey: #3F4751;
}

.button {
    border-radius: unset !important;
    font-family: 'Gilroy' !important;
    padding: 8px 16px !important;
}

.page-text-color {
    color: var(--page-text-color);
}

.page-secondary-bg {
    background-color: var(--page-secondary-bg);
}

.page-primary-bg {
    background: var(--page-primary-bg);
}

.page-light-bg {
    background-color: var(--page-light-bg);
}

.text-grey {
    color: var(--text-grey);
}

.button-primary-white {
    background-color: var(--white-color);
    color: var(--page-text-color);
}

.button-primary-white path {
    fill: var(--page-text-color);
}

.button-primary-white:hover path {
    fill: var(--white-color);
}

.z-indexup {
    position: relative;
    z-index: 1;
}

.circle-icon,
.border-0 {
    border: none;
}

.main p {
    color: var(--text-grey);
}

/* Hero Section */

.hero-section::before {
    content: "";
    background-color: #FFFFFF66;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.banner__video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.banner__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Counter */

.page-counter {
    background-color: var(--page-primary-bg);
    padding: 80px 60px;
}

.counter-grid {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 20px;
    border-bottom: 1px solid #FFFFFF33;
    padding: 0 0 30px;
}

.counter-theme {
    color: var(--white-color);
    border-right: 1px solid #FFFFFF33;
    padding: 0 33px;
}

.highlight__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    width: fit-content;
    margin: auto;
}

.highlight__link::after {
    content: '';
    background-image: url(../images/agency-images/highlight-underline.webp);
    height: 30px;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.highlight__link svg {
    transition: all 0.3s;
}

.highlight__link:hover svg {
    transition: all 0.3s;
    transform: translateX(10px);
}

/* Service Grow Block */

.service-grid-block {
    display: flex;
    gap: 10px;
}

.grid-box {
    background-image: url(../images/agency-images/service-img-1.webp);
    background-position: center;
    background-size: cover;
    padding: 30px;
    color: var(--white-color);
    position: relative;
    transition: all .4s ease-in-out;
    display: flex;
    flex: 1;
    justify-content: space-between;
    flex-direction: column;
    height: 480px;
    cursor: pointer;
}

.grid-con {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.2s;
    height: 180px;
}

.grid-box.active {
    flex-grow: 2;
    background: var(--page-primary-bg) !important;
}

.grid-box.active .grid-con{
    opacity: 1;
    transform: translateY(0px);
    height: auto;
}

.grid-box.active .grid-controls {
    opacity: 1;
}

.grid-box.box-2 {
    background-image: url(../images/agency-images/service-img-2.webp);
}

.grid-box.box-3 {
    background-image: url(../images/agency-images/service-img-3.webp);
}

.grid-box.box-4 {
    background-image: url(../images/agency-images/service-img-4.webp);
}

.grid-box.box-5 {
    background-image: url(../images/agency-images/service-img-5.webp);
}

.grid-box.box-6 {
    background-image: url(../images/agency-images/service-img-6.webp);
}

.grid-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transition: all 0.2s;
}

.grid-arrow {
    display: flex;
    align-items: center;
    gap: 20px;
    display: none;
}

.grid-arrow .arrow-icon {
    cursor: pointer;
}

.slide-number {
    color: #FFFFFF4D;
}

/* Overlap Block */

.overlap-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sticky-column {
    position: sticky;
    top: 170px;
}

.overlap-block {
    padding: 30px 30px;
    background: #F7CFEE;
    position: sticky;
    top: 170px;
    box-shadow: 0px -2px 6px #00000030;
}

.overlap-wrapper .overlap-block:nth-child(2) {
    background: #EEE7F8;
    top: 190px;
}

.overlap-wrapper .overlap-block:nth-child(3) {
    background: #F9DE8F;
    top: 210px;
}

.overlap-icon {
    max-width: 80px;
}

/* Bordered BLock */

.bordered-block {
    border: 1px solid #0000001A;
    background-color: var(--white-color);
    padding: 30px;
    width: 100%;
    transition: all 0.2s;
}

.bordered-block:hover {
    transform: translateY(-10px);
    border-color: #0000009e;
}

/* Industry Block */

.industry-intro {
    background-image: url(../images/agency-images/industry-intro.webp);
    background-position: center;
    background-size: cover;
}

.tab-block {
    flex-wrap: nowrap !important;
    gap: 25px;
}

.tabs__content {
    padding: 20px 0 0;
    color: var(--white-color);
}

.tab-block .nav-link {
    all: unset;
    color: #ffffff60;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 20px;
    padding: 0 0 5px;
    cursor: pointer;
}

.tab-block .nav-link:hover {
    transform: translateY(-5px);
}

.nav-link.active {
    border-color: var(--white-color);
    color: var(--white-color);
}

/* Tech Block */

.tech-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
    padding: 0;
    position: relative;
}

.tech-list li::before {
    content: '';
    width: 1.5px;
    height: 24px;
    background: #0000004D;
    position: absolute;
    right: 0;
    bottom: 0;
}

.tech-list li:nth-child(5)::before {
    content: unset;
}

.tech-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    padding: 20px;
    width: 150px;
    height: 150px;
    transition: all 0.2s;
}

.tech-list li:hover .tech-img {
    transform: translateY(-8px);
}

.tech-img img {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
}


/* Lenis */

html.lenis, html.lenis body {
    height: auto;
}
  
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
  
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
  
.lenis.lenis-stopped {
    overflow: hidden;
}
  
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

::-webkit-scrollbar {
    width: .3em; 
}

::-webkit-scrollbar,
::-webkit-scrollbar-thumb {
    overflow:visible;
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background-color: var(--page-primary-bg); 
}

/* Responsive */

@media (max-width: 1599px) {
    .padding-left {
        --page-width: 1200px;
        padding-left: calc(50% - (var(--page-width) / 2) + 12px);
    }

    .grid-box {
        padding: 20px;
    }
}

@media only screen and (max-width: 1475px) {
    .tab-block {
        gap: 15px;
    }

    .tab-block .nav-link {
        font-size: 16px;
    }

    .tech-img {
        width: 100px;
        height: 100px;
    }

    .tech-img img {
        max-width: 60px;
        height: 60px;
    }
}

@media only screen and (max-width: 991px) {
    .counter-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .counter-grid .counter-theme:nth-child(4) {
        border: none;
    }

    .hero-section::before {
        background-color: #f3f3f366;
    }
}

@media only screen and (max-width: 767px) {

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .counter-grid .counter-theme:nth-child(2) {
        border: none;
    }

    .button {
        padding: 8px 32px !important;
    }

    .page-counter {
        padding: 40px 20px;
    }

    .counter-grid {
        gap: 20px 0px;
    }

    .counter-theme {
        padding: 0 10px;
    }

    .tab-content {
        padding: 30px 0 0 !important;
    }

    .tech-list li::before {
        content: unset;
    }

    .tech-list,
    .tab-block {
        flex-wrap: wrap !important;
    }

    .service-grid-block {
        flex-direction: column;
        gap: 20px;
    }

    .grid-con {
        height: auto;
        opacity: 1;
        transform: translateY(0px);
    }

    .grid-box {
        background: var(--page-primary-bg) !important;
    }

    .grid-controls {
        display: none;
    }

    .bordered-block {
        padding: 20px 20px;
    }

    .tech-list li {
        padding: 0;
    }

    .tech-img {
        width: 80px;
        height: 80px;
    }

    .tech-img img {
        max-width: 40px;
        height: 40px;
    }

    .service-content span {
        width: 30px;
        height: 30px;
        background: #ffffff36;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }
}