* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    cursor: none;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Heading';
    font-style: normal;
    font-weight: 400;
    src: url("StarseedPro.woff2") format('woff2')
}
@font-face{
            font-family: 'font-3';
            src:url("variable-font.ttf") format("woff2-variations");
        }


@font-face {
    font-family: 'font-1';
    font-style: normal;
    font-weight: 100;
    src: url("Nicon-Black.woff2") format('woff2')
}


@font-face {
    font-family: 'font-2';
    font-style: normal;
    font-weight: 400;
    src: url("exatcyr-regular.woff2") format('woff2')
}

.split-line {
    margin: 0;
    padding: 0;
    height: fit-content;
    width: fit-content;
    overflow: hidden;
}

.split-parent {
    overflow: hidden;
    height: fit-content;
    width: fit-content;
}


/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #141414;
    z-index: 999999999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

#preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
}

#preloader .loader {
    margin-right: 5vw;
    margin-bottom: 5vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

#preloader .counter-container {
    margin-bottom: 15px;
    font-family: 'font-1';
    color: #fff;
    font-size: 12vw;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vh;
    /* Fixed height to avoid layout shifts */
    overflow: hidden;
    /* Hide overflow for slide-up animation */
}

#preloader #counter {
    min-width: 120px;
    text-align: right;
    position: relative;
    /* For positioning the digits */
}

#preloader .percentage {
    font-size: 12vw;
    margin-left: 5px;
    opacity: 1;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Animation for digits */
.digit {
    display: inline-block;
    position: relative;
    transform: translateY(100%);
    opacity: 0;
}

#preloader .loading-text {
    font-family: 'font-1';
    color: #fff;
    font-size: 3vw;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

#preloader .dots {
    display: inline-block;
    width: 24px;
    text-align: left;
}

/* End Preloader Styles */

body {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 12px;
    background: #141414;
}




#custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
}

#cursor-background {
    position: absolute;
    width: 48px;
    height: 48px;
    background-color: #d4ff78;
    border-radius: 50%;
    transform: scale(1);
    opacity: 1;
    z-index: 0;
    transition: background-color 0.3s ease;
}

#custom-cursor img {
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}


section {
    width: 100%;
    position: relative;
    max-width: 2000px;
    overflow: hidden;
}

.rolling-text {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
}

.rolling-text:hover .letter,
.rolling-text.play .letter {
    transform: translateY(-100%);
}

.rolling-text .block:last-child {
    color: #000;
}

.rolling-text .letter {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.letter:nth-child(1) {
    transition-delay: 0s;
}

.letter:nth-child(2) {
    transition-delay: 0.015s;
}

.letter:nth-child(3) {
    transition-delay: 0.03s;
}

.letter:nth-child(4) {
    transition-delay: 0.045s;
}

.letter:nth-child(5) {
    transition-delay: 0.06s;
}

.letter:nth-child(6) {
    transition-delay: 0.075s;
}

.letter:nth-child(7) {
    transition-delay: 0.09s;
}

.letter:nth-child(8) {
    transition-delay: 0.105s;
}

.letter:nth-child(9) {
    transition-delay: 0.12s;
}















/*About Section*/


.about {
    position: relative;
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #ff6d38;
    font-family: 'font-2';
    color: #E1FF9A;
}


.about .about-heading {
    position: relative;
    display: flex;
    width: calc(100% - 3vw);
    align-items: center;
    justify-content: space-between;
    font-size: clamp(12px, calc(0.5em + 3vw), 1000px);
    pointer-events: none;
}

.about .instruction {
    font-size: 14px;
}

.about .about-quote {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    position: relative;
    font-size: clamp(12px, calc(0.5em + 5vw), 1000px);
}

.about .about-quote .quote-hover {
    position: relative;
    font-family: 'font-1';
    font-weight: 100;
    font-size: clamp(12px, calc(0.5em + 5vw), 1000px);
    cursor: none;
    z-index: 1;
}




.about .intro-container {
    height: fit-content;
    padding: 0px 150px;
    font-size: clamp(12px, calc(0.5em + 3vw), 1000px);
    padding-bottom: 100px;
}


.about .scroll-strip-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 70vh;
    width: 100%;
    justify-content: flex-end;
    overflow: hidden;
}

.about .scroll-strip-wrapper .blender {
    position: relative;
    height: 60vh;
    width: 120vw;
    top: 30%;
    left: -10vw;
    background: #000;
    transform: rotate(10deg);
}



.scroll-strip-wrapper .marquee {
    position: relative;
    background: #d6ff78;
    color: #141414;
    top: 40%;
    padding: 30px 0 50px 0;
    font-size: clamp(12px, calc(0.5em + 5vw), 1000px);
    line-height: clamp(12px, calc(0.5em + 5vw), 1000px);
    text-transform: uppercase;
    overflow: hidden;
    transform: rotate(10deg);
    z-index: 99;
    width: 120vw;
    left: -10%;
    font-weight: 600;
}

.scroll-strip-wrapper .marquee .marquee__inner {
    display: flex;
    width: fit-content;
    flex: auto;
    flex-direction: row;
}

.scroll-strip-wrapper .marquee .marquee__part {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: fit-content;
}

.arrow {
    width: 60px;
    aspect-ratio: 1/1;
    margin: 0 1em;
    transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow svg {
    transform: scale(2);
}

.arrow.active {
    transform: rotate(-180deg);
    transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.about .expertise {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120vh;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.about .expertise img {
    height: 150%;
    object-fit: cover;
}

.about .expertise .expertise-list-container {
    position: absolute;
    display: flex;
    height: fit-content;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
}

.about .expertise .expertise-list-container .list-items {
    position: relative;
    font-family: 'font-2';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.about .expertise .expertise-list-container .list-items .list-text {
    font-size: clamp(12px, calc(0.5em + 8vw), 1000px);
    font-family: 'font-2';
    font-weight: 600;
    color: #fff;
    opacity: 0.1;
    transition: 0.3s;
    letter-spacing: 0vw;
    z-index: 99;
}

.about .expertise .expertise-list-container .list-items .list-text.rolling-text {
    font-size: clamp(12px, calc(0.5em + 8vw), 1000px);
    line-height: clamp(12px, calc(0.5em + 8vw), 1000px);
    height: clamp(12px, calc(0.5em + 8vw), 1000px);
}

.about .expertise .expertise-list-container .list-items .list-text.rolling-text .block:last-child {
    color: #fff;
}

.about .expertise .expertise-list-container .list-items .items-bg {
    font-size: clamp(12px, calc(0.5em + 1vw), 1000px);
    position: absolute;
    height: 100%;
    width: 100%;
    transition: 0.3s;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-spacing: clamp(12px, calc(0.5em + 4vw), 100px);
}

.about .expertise .expertise-list-container .list-items:hover .list-text {
    opacity: 0.2;
    letter-spacing: 2vw;
}

.about .expertise .expertise-list-container .list-items:hover .items-bg {
    opacity: 1;
    word-spacing: clamp(12px, calc(0.5em + 7vw), 100px);
}

.about .image-trail {
    position: absolute;
    inset: 0;
    width: 10vw;
    aspect-ratio: 3/4;
    border-radius: 20px;
    object-fit: cover;
    pointer-events: none;
}
.filler{
    height: 20vh;
    background: #000;
}






.works {
    background: #eaffc5;
    padding: 8em 2em;
    display: flex;
    flex-direction: column;
}

.works-header {
    width: 100%;
    display: flex;
    gap: 4em;
}

.works-header .col:nth-child(2) {
    flex: 2;
}

.works-header .col:nth-child(1) {
    flex: 5;
    padding: 1em;
    font-family: 'font-2';
    font-size: clamp(20px, calc(0.5em + 3vw), 100px);

}

.service {
    display: flex;
    gap: 2em;
    height: 150px;
    border-top: 1px solid #2E3A23;
}

.service-info {
    flex: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1em;
}

.service-info h1{
    font-family: 'font-2';
    font-size: clamp(20px, calc(0.5em + 3vw), 100px);
}

.service-info p{
    font-family: 'font-2';
    font-size: clamp(10px, calc(0.5em + 0.7vw), 100px);
}
.service-img {
    flex: 5;
    width: 100%;
    height: 100%;
    padding: 1em;
}

.service-img .img {
    width: 30%;
    height: 100%;
    overflow: hidden;
}

.service-img .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}

.service .service-info p .project-link{
            display: block;
            width: fit-content;
            height: 40px;
            margin-top: 10px;
            background: #9932CC;
            color: #F8FFEC;
            border-radius: 50px;
            padding: 0px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            font-size: clamp(10px, calc(0.5em + 0.7vw), 100px);
        }

        .service .service-info p .sk-tags{
            display: flex;
            width: 100%;
            gap: 10px;
            margin-top: 10px;
        }
        .service .service-info p .sk-tags .sk-tag{
            display: block;
            height: 25px;
            padding: 0px 10px;
            font-size: 12px;
            font-family: 'font-2';
            background: #D4FF78;
            color: #141414;
            width: fit-content;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;

        }

@media(max-width: 1000px) {
    .service {
        flex-direction: column;
        height: fit-content !important;
    }

    .img {
        height: 100%;
    }
}





.skills{
            height: 250vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: #fff;

        }
        .skills .ribbion-wrapper{
            position: relative;
            width: 125%;
            height: 200px;
            display: flex;
            margin-bottom: 1em;
            overflow: hidden;
            font-family: 'font-3';
        }

        .skills .ribbion{
            width: 100%;
            height: fit-content;
            position: absolute;
            top:50%;
            left: 0;
            transform: translateY(-50%);
            display: flex;
            gap: 1em;
        }

        #ribbion-1 .ribbion,
        #ribbion-3 .ribbion,
        #ribbion-5 .ribbion,
        #ribbion-7 .ribbion,
        #ribbion-9 .ribbion{
            left: -15%;
        }
        .skills .ribbion-wrapper .ribbion .ribbonItems{
            flex:1;
            display: flex;
            justify-content: center;
            align-ribbonItemss: center;
        }
        .skills .ribbion-wrapper .ribbion .ribbonItems.with-text{
            flex:1.5;
        }
        .skills .ribbion-wrapper .ribbion .ribbonItems h1{
            text-transform: uppercase;
            font-size: 120px;
        }
        @media(max-width: 900px){
            .skills{
                height: 100vh;
            }
            .skills .ribbion-wrapper{
                width: 250%;
                height: 50px;
            }
            #ribbion-2 .ribbion,
            #ribbion-4 .ribbion,
            #ribbion-6 .ribbion,
            #ribbion-8 .ribbion,
            #ribbion-10 .ribbion{
            left: -35%;
        }
        .skills .ribbion-wrapper .ribbion .ribbonItems.with-text{
            flex: 1;
        }
        .skills .ribbion-wrapper .ribbion .ribbonItems h1{
            font-size: 50px;
        }
        }











#animation-section {
    width: 100vw;
    height: 150vh;
    overflow: hidden;
    background: #333;
    position: relative;
    /* Crucial for positioning children */
}

/* Styles for elements within the animation section */
#animation-section * {
    box-sizing: border-box;
    /* Apply to all children of the section */
}

#animation-section .header {
    position: relative;
    display: flex;
    height: 150vh;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
    /* Ensure header is above items if needed */
}

.header a {
    font-family: 'font-1';
    font-size: 12vw;
    width: fit-content;
    text-decoration: none;
    color: #025066;
    text-align: center;
}

.item {
    position: absolute;
    /* Will be positioned relative to #animation-section */
    padding: 0.5em 0.5em 3em 0.5em;
    width: 200px;
    height: 250px;
    overflow: hidden;
    background: #fff;
    z-index: 99;
}

.item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Ensure canvas is layered correctly if p5.js adds it with specific styles */
#animation-section canvas {
    display: block;
    /* Default for p5.js canvas */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Behind items and header */
}






.contact {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: #a378ff;
}

.contact .contactQuote {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
}


.contact .contactQuote .rolling-text {
    text-decoration: underline;
    font-family: 'font-1';
    font-size: clamp(50px, calc(0.5em + 12vw), 200px);
    line-height: clamp(50px, calc(0.5em + 12vw), 200px);
    height: clamp(50px, calc(0.5em + 12vw), 200px);
    color: #d4ff78;
    transform: scale(1.0);
    transition: transform 0.3s;
}

.contact .contactQuote .rolling-text:hover {
    transform: scale(1.4);
}



.contact .contactQuote .rolling-text .block:last-child {
    color: #e0ffe0;
}









.navigation {
    position: fixed;
    left: 50%;
    top: 10px;
    bottom: auto;
    transform: translateX(-50%);
    height: fit-content;
    width: fit-content;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hamburger {
    height: 40px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background: #FFEBCD;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger svg {
    margin-top: 16px;
}

.menu-overlay {
    position: absolute;
    top: 45px;
    background: #FFEBCD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    width: 180px;
    border-radius: 8px;
    transform: translateY(-10px);
}

.menu-overlay.open {
    pointer-events: auto;
}

.menu-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px 10px;
    overflow: hidden;
    gap: 15px;
}

.menu-links a {
    color: #141414;
    font-size: 17px;
    text-decoration: none;
    font-family: 'font-2';
    letter-spacing: 1px;
    transition: background 0.2s;
    text-align: center;
    height: 17px;
}

.menu-links .rolling-text {
    font-size: 17px;
    line-height: 17px;
    height: 17px;
}


.navigation .contactBtn {
    height: 40px;
    aspect-ratio: 4/1;
    border-radius: 50px;
    background: #ff9090;
    font-family: 'heading';
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFEBCD;
}


.navigation .contactBtn .rolling-text {
    margin-top: -5px;
    font-size: 20px;
    line-height: 20px;
    height: 20px;
    transform: scale(1.0);
}

.navigation .contactBtn .rolling-text:hover {
    transform: scale(1.0);
}








@media(max-width:900px) {

    * {
        cursor: default;
    }

    #custom-cursor {
        display: none;
    }

    .navigation {
        top: auto;
        bottom: 20px;
    }

    .menu-overlay {
        top: -200px;
    }

    .about .about-quote {
        height: 30vh;
    }

    .about .intro-container {
        padding: 0px 40px;
        margin-bottom: 100px;
    }

    .about .about-quote .quote-custom-cursor {
        width: 80px;
    }

    .about .expertise {
        height: 70vh;
    }

    .about .expertise img {
        height: 100%;
    }

    .about .scroll-strip-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 30vh;
        width: 100%;
        justify-content: flex-end;
        overflow: hidden;
    }

    .about .scroll-strip-wrapper .blender {
        position: relative;
        height: 20vh;
        width: 120vw;
        top: 30%;
        left: -10vw;
        background: #000;
        transform: rotate(10deg);
    }

    .scroll-strip-wrapper .marquee {
        position: relative;
        background: #d6ff78;
        color: #141414;
        top: 30%;
        padding: 15px 0;
        font-size: clamp(12px, calc(0.5em + 5vw), 1000px);
        text-transform: uppercase;
        overflow: hidden;
        transform: rotate(10deg);
        z-index: 99;
        width: 120vw;
        left: -10%;
    }

    .scroll-strip-wrapper .marquee .marquee__inner {
        display: flex;
        width: fit-content;
        flex: auto;
        flex-direction: row;
    }

    .scroll-strip-wrapper .marquee .marquee__part {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .arrow {
        width: clamp(12px, calc(0.5em + 5vw), 1000px);
        aspect-ratio: 1/1;
        margin: 0 1em;
        transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .arrow svg {
        transform: scale(1);
    }

    .arrow.active {
        transform: rotate(-180deg);
        transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .about .expertise .expertise-list-container .list-items .list-text {
        font-size: clamp(12px, calc(0.7em + 10vw), 1000px);
    }
    .sticky {
        flex-direction: column;
    }

    .col:nth-child(1) {
        padding-top: 15%;
        justify-content: flex-start;
    }

    .col.col-image {
        flex-direction: column;
        margin-top: 5vh;
    }

    .indicator {
        height: 28px;
    }

    .service {
        font-size: 28px;
        height: 28px;
        line-height: 28px;
    }

    .service-img-wrapper {
        width: 50%;
        height: 170px;
    }

    .img {
        height: 170px;
    }

    .service-copy p {
        font-size: 14px;
        line-height: 14px;
    }

    .progress-bar {
        top: -15%;
        height: 50%;
        transform: rotate(-90deg);
    }

    .index {
        top: 5%;
        bottom: unset;
    }


    .item {
        width: 100px;
        height: 120px;
        padding: 0.1em 0.1em 1em 0.1em;
    }
}

@media(max-width:768px) {

    * {
        cursor: default;
    }

    #custom-cursor {
        display: none;
    }

    /* Responsive styles for the preloader */
    #preloader .counter-container {
        font-size: 16vw;
        /* Larger size on small screens */
        height: 20vh;
    }

    #preloader #counter {
        min-width: 80px;
    }

    #preloader .percentage {
        font-size: 40px;
    }

    .about .intro-wrapper {
        padding: 0px 20px;
    }
}

@media(max-width:500px) {

    * {
        cursor: default;
    }

    #custom-cursor {
        display: none;
    }

    #animation-section {
        height: 100vh;
    }

    #animation-section .header {
        height: 100vh;
    }

    .about .intro-container {
        padding: 0px 40px;
    }

    .about .scroll-strip-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 20vh;
        width: 100%;
        justify-content: flex-end;
        overflow: hidden;
    }

    .about .scroll-strip-wrapper .blender {
        position: relative;
        height: 13vh;
        width: 120vw;
        top: 30%;
        left: -10vw;
        background: #000;
        transform: rotate(10deg);
    }

    .scroll-strip-wrapper .marquee {
        position: relative;
        background: #d6ff78;
        color: #141414;
        top: 30%;
        padding: 15px 0;
        font-size: clamp(12px, calc(0.5em + 5vw), 1000px);
        text-transform: uppercase;
        overflow: hidden;
        transform: rotate(10deg);
        z-index: 99;
        width: 120vw;
        left: -10%;
    }

    .scroll-strip-wrapper .marquee .marquee__inner {
        display: flex;
        width: fit-content;
        flex: auto;
        flex-direction: row;
    }

    .scroll-strip-wrapper .marquee .marquee__part {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .arrow {
        width: clamp(12px, calc(0.5em + 5vw), 1000px);
        aspect-ratio: 1/1;
        margin: 0 1em;
        transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .arrow svg {
        transform: scale(1);
    }

    .arrow.active {
        transform: rotate(-180deg);
        transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .about .expertise .expertise-list-container .list-items .list-text {
        font-size: clamp(12px, calc(0.7em + 10vw), 1000px);
    }

}

/* Individual digit container */
.digit-container {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    height: 1em;
    position: relative;
}














