* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body.loading {
    overflow: hidden;
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.loading-overlay.hidden {
    display: none;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 9998;
}

.loading-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #15161b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: polygon(0% 45%, 0% 45%, 0% 55%, 0% 55%);
    will-change: clip-path;
    z-index: 9999;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 25vw;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2027dd;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.progress-bar p {
    font-size: 14px;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    will-change: transform;
    color: #fff;
    z-index: 10000;
}

.loading-logo h1 {
    font-size: 100px;
    font-weight: 700;
    line-height: 1;
}

.char {
    overflow: hidden;
    position: relative;
}

.char.anim-out h1 {
    position: relative;
    will-change: transform;
}

.char.anim-in h1 {
    position: relative;
    will-change: transform;
}

/* Main Content Styles */
.main-content {
    opacity: 0;
    visibility: hidden;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

h1 {
    font-size: 65px;
    font-weight: 600;
}

p {
    font-size: 20px;
    font-weight: 600;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.left:hover::after {
    transform-origin: bottom left;
}

.hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
}

.hover-underline-animation.right:hover::after {
    transform-origin: bottom right;
}

a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
    padding: 6px 6px;
    position: relative;
}

a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s;
    width: 0;
}

a:hover:after {
    width: 100%;
}



nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 2em 2.5em;
    display: flex;
    justify-content: center;
    mix-blend-mode: difference;
    z-index: 2;
}

.nav-links {
    display: flex;
    gap: 1.2em;
}

section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    padding: 2em 2.5em;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 3em;
}

.hero h1 {
    position: relative;
    left: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 22vw;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.hero-title span {
    display: inline-block;
}

.hero-tagline {
    margin-top: 1.25em;
    font-family: 'Questrial', sans-serif;
    margin-bottom: 1.2em;
    text-align: left;
    font-size: 29px;
    font-weight: 700;
    color: #1a1a1a;
    max-width: 500px;
    line-height: 1.3;
}

.hero-tagline strong {
    font-weight: 800;
}

.hero-copy {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}



.about {
    width: 100%;
    min-height: 100vh;
    padding: 4em 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6em;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}



.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.about-visual {
    position: relative;
    padding: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Number decoration for visual impact */
.about-number {
    font-size: 20vw;
    font-weight: 800;
    color: rgba(21, 22, 27, 0.03);
    position: absolute;
    line-height: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Feature boxes */
.feature-box {
    background: #ffffff;
    padding: 2.5em;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 2;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2027dd 0%, transparent 100%);
    transition: width 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-box:hover::before {
    width: 8px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8em;
    color: #1a1a1a;
}

.feature-desc {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #666;
}

/* Reorder content for alternating layout */
.about-block:nth-child(even) .about-content {
    order: 2;
}

.about-block:nth-child(even) .about-visual {
    order: 1;
}

.about h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -0.3em;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2027dd 0%, transparent 100%);
}

.about p {
    font-size: clamp(1rem, 1.15rem, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: #2f2e2e;
    max-width: 100%;
}

.about strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Stats or highlights */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    margin-top: 2em;
}

.stat-item {
    text-align: center;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(2, 2, 2, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2027dd;
    display: block;
    margin-bottom: 0.3em;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro {
    height: auto;
    min-height: 100vh;
}

.video-container-desktop {
    position: relative;
    transform: translateY(-125vh) scale(0.25);
    display: flex;
    flex-direction: column;
    gap: 2em;
    will-change: transform;
}

.video-container-desktop .video-title p {
    position: relative;
    font-family: Questrial, sans-serif;
    font-size: 70px;
    font-weight: 600;
}

.video-container-mobile {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 17/9;
    border-radius: 1.5rem;
    background-color: #fff;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    pointer-events: none;
}

section.services {
    position: relative;
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.services .services-header {
    position: relative;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    background-color: #fff;
    will-change: transform;
    transform-origin: center center;
}


.services-header img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.services-header:nth-child(1),
.services-header:nth-child(3) {
    transform: translate(100%, -50%);
}

.services-header:nth-child(2) {
    transform: translate(-100%, -50%);
    z-index: 2;
}

.sticky {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 2em 2em;
    background: #fff;
    position: relative;
    margin-top: 0;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.sticky .services {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.indicator {
    position: absolute;
    top: 0;
    left: 1;
    width: 101%;
    height: 35px;
    transform: translateY(0px);
    background: #000;
    z-index: -1;
}

.service {
    width: max-content;
    height: 38px;
}

.service p {
    text-transform: uppercase;
    font-family: 'Questrial', sans-serif;
    font-size: 27px;
    font-weight: 600;
    color: #d5d5d5;
    transition: color 0.3s;
    line-height: 38px;
}

.service.active p.service-p {
    color: #fff;
}

.service-img-wrapper {
    position: relative;
    margin-right: 3em;
    width: 60%;
    height: 220px;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 0, 100% 85%, 90% 100%, 50% 100%, 0 100%, 0 0);
}

.service-img {
    width: 100%;
    height: 2000px;
    transform: translateY(0px);
    will-change: transform;
}

.img-service {
    width: 100%;
    height: 250px;
}

.service-copy {
    width: 70%;
}

.line {
    position: relative;
    will-change: transform;
}

.service-copy p {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.progress-bar-services {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.6px;
    height: 80%;
    background-color: #d5d5d5;
}

.progress-service {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    transform-origin: top;
    transform: scaleY(0);
    will-change: transform;
}

.index {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    padding: 4px 2px 2px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
}

.index p {
    font-size: 20px;
    font-family: 'Questrial', sans-serif;
    font-weight: 500;
    width: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.index span.separator {
    position: relative;
    top: -1px;
    width: 20px;
    height: 2px;
    background-color: #3339db;
}
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes fadeSlide {
    0% {
        opacity: 0.7;
        transform: translateX(0) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-100%) scale(0.95);
    }
}

.logos {
    overflow: hidden;
    padding: 64px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    white-space: nowrap;
    position: relative;
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.03);
    margin-top: 90px;
    width: 100%;
    max-width: 100vw;
}

.logos-wrapper {
    display: inline-block;
    animation: 30s slide infinite linear;
    will-change: transform;
}


.logos-slide {
    display: inline-block;
}

.logos-slide img {
    height: 80px;
    margin: 0 60px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.logos-slide img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15) translateY(-5px);
}


.projects {
    padding: 120px 8vw;
    padding-bottom: 200vh;
    font-family: 'Questrial', sans-serif;
    position: relative;
    overflow: visible;
}

.projects-headings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.project-header {
    font-size: 2.8rem;
    font-weight: 700;
    color: #111;
}

.project-subheader {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 30px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.project-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    min-height: 400px;
    will-change: transform, opacity;
    position: relative;
}

.project-box:last-child {
    margin-bottom: 0;
}

.project-content {
    flex: 1;
    padding-right: 50px;
}

.project-domain {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.project-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    max-width: 480px;
}

.project-image {
    margin: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tiltcard {
    overflow: hidden;
    width: 260px;
    height: 320px;
    background-color: rgb(124, 148, 140);
    margin: 0 20px;
    border-radius: 20px;
    border: 1px solid rgb(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
    transform: scale(1);
}

.tiltcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.tiltcard:hover {
    transform: scale(1.2);
}



[data-tilt] {
    transition: transform 0.6s cubic-bezier(.19, 1, .22, 1), box-shadow 0.6s ease;
    will-change: transform;
}

@media (max-width: 1000px) {

    nav,
    section {
        padding: 1.5em;
    }

    .hero {
        justify-content: flex-end;
        gap: 2em;
    }

    .hero h1 {
        font-size: 19vw;
    }

    .video-container-desktop {
        display: none;
    }

    .video-container-mobile {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .loading-logo h1 {
        font-size: 60px;
    }

    .progress-bar {
        justify-content: flex-end;
    }

    .progress-bar p:nth-child(1) {
        display: none;
    }

    .about {
        padding: 4em 1.5em;
        gap: 4em;
    }

    .about-block {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .about-block:nth-child(even) .about-content,
    .about-block:nth-child(even) .about-visual {
        order: unset;
    }

    .about-visual {
        padding: 2em 1em;
    }

    .about-number {
        font-size: 30vw;
        opacity: 0.5;
    }

    .about h2 {
        font-size: 7vw;
        text-align: left;
    }

    .about h2::after {
        width: 60px;
        height: 3px;
    }

    .about p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .feature-box {
        padding: 2em;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-desc {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
        margin-top: 1.5em;
    }

    .stat-item {
        padding: 1.2em;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .about::before,
    .about::after {
        display: none;
    }

    .sticky {
        flex-direction: column;
    }

    .col:nth-child(1) {
        padding-top: 25%;
        justify-content: flex-start;
    }

    .col:nth-child(2) {
        flex-direction: row;
        gap: 1.5em;
    }

    .service-img-wrapper {
        width: 25%;
    }

    .service-copy p {
        font-size: 14px;
    }

    .progress-bar {
        top: -15%;
        height: 50%;
        transform: rotate(-90deg);
    }

    .index {
        top: 5%;
        bottom: unset;
    }

    .project-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        position: relative;
        top: auto;
        margin-bottom: 40px;
    }

    .project-content {
        padding: 0;
        margin-bottom: 30px;
    }

    .project-desc {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .tiltcard {
        width: 100%;
        max-width: 100%;
    }

    .lenis.lenis-smooth {
        scroll-behavior: auto;
    }

    .lenis.lenis-smooth [data-lenis-prevent] {
        overscroll-behavior: contain;
    }

    .lenis.lenis-stopped {
        overflow: hidden;
    }

    .lenis.lenis-smooth iframe {
        pointer-events: none;
    }
}