@charset "utf-8";

* {
    box-sizing: border-box;
    cursor: none;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c1d20;
    pointer-events: all;
}

#loader-count {
    font-size: 16px;
    font-family: b-1;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.2;
    overflow: hidden;
    height: 1.2em;
}

#loader-strip div {
    height: 1.2em;
    line-height: 1.2em;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease;
    will-change: left, top;
}

.cursor--hover {
    width: 20px;
    height: 20px;
    opacity: 0.45;
}

body:not(.dark) .cursor {
    background: #000000;
}

.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 999998;
    will-change: transform;
    transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}

.cursor-ring--hover {
    width: 54px;
    height: 54px;
    opacity: 0.2;
    margin-left: -27px;
    margin-top: -27px;
}

body:not(.dark) .cursor-ring {
    border-color: rgba(0, 0, 0, 0.3);
}

html {
    overflow-x: hidden;
    background-color: #d8d9dd;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

*,
body,
html {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* regular */
@font-face {
    font-family: b-1;
    src: url(fonts/NeueMontreal-Regular.ttf);
}

/* medium */
/* @font-face {
    font-family: b-2;
    src: url(fonts/Inter-Bold.woff);
} */



.hero__img {
    position: absolute;
    bottom: 0;
    left: 10px;
    animation: hero__text 0.8s ease;
    aspect-ratio: 1;
    width: clamp(180px, 25vw, 350px);
    overflow: clip;
    display: none;
}

.dark_light {
    position: absolute;
    left: clamp(10px, 1rem, 25px);
    bottom: clamp(10px, 1rem, 25px);
    z-index: 5;
}


.hero__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* BODY */


:root {}

html {
    font-size: 1vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: b-1;
    background-color: #F5F5F5;
    color: black;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    background-color: var(--maincolor);
    font-size: clamp(15px, 1rem, 17px);
    line-height: 107%;
}

.hero__text__name {
    position: absolute;
    top: clamp(10px, 1rem, 25px);
    left: clamp(10px, 1rem, 25px);
    z-index: 2;
}

/* TRAIL CANVAS */
#trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* BLOB CANVAS */
#blob-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__text__services {
    display: flex;
    gap: 50px;
    margin-top: 20px;
}

.hero__text__services ul {
    margin: 0;
    padding: 0;
}

.hero__text__services li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__text__services li:last-child {
    border-bottom: none;
}

.hero__text__copyright {
    position: absolute;
    top: clamp(10px, 1rem, 25px);
    right: clamp(10px, 1rem, 25px);
    display: flex;
    gap: 10vw;
    white-space: nowrap;
    box-sizing: border-box;
    z-index: 10;
}

.hero__text__copyright sup {
    font-size: 0.65em;
    opacity: 0.8;
}

.hero__text__info {
    position: absolute;
    bottom: clamp(10px, 1rem, 25px);
    right: clamp(10px, 1rem, 25px);
    display: flex;
    gap: 50px;
    align-items: flex-end;
    z-index: 10;
}



.underline {
    text-decoration: underline;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

.underline:hover {
    opacity: 0.5;
    cursor: pointer;
}

.hero__projects {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    -webkit-transition: all .45s cubic-bezier(.43, .195, .02, 1);
    transition: all .45s cubic-bezier(.43, .195, .02, 1);
    overflow-y: scroll;
    background-color: rgba(232, 232, 232, 0.5);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
}

.hero__projects.show {
    opacity: 1;
    visibility: visible;
}

.hero__projects__close {
    height: 50px;
    /* background-color: #e8e8e8; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    z-index: 10;
}

.hero__projects__content {
    padding: 10px;
    margin-top: 50px;
}

.hero__projects ul {
    margin-left: 0;
    padding-left: 0;
    height: 100%;
    overflow-y: scroll;
}

.hero__projects__head {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
}

.hero__projects__item {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    margin-left: 0;
    padding-left: 0;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid black;
}

.hero__projects__item:last-child {
    border: none;
    margin-bottom: 0;
}

.hero__projects__item sup {
    font-size: 11px;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
    opacity: 0;
}

.hero__projects__item:hover sup {
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

.hero__text__services a {
    text-decoration: underline;
}

a:hover {
    opacity: 0.5;
}

@media(max-width:550px) {

    .portfolio {
        bottom: 80px;
    }

    .hero__projects {
        font-size: 14px;
    }

    .hero__img {
        bottom: 50px;
        width: calc(50vw - 10px);
    }

    body {
        font-size: 15px;
    }

    .hero__text__info {
        justify-content: space-between;
        width: 100%;
        padding-left: 20px;
        bottom: 35px;
    }

    .hero__text__services {
        display: block;
    }

    .hero__text__services ul {
        margin-top: 20px;
        padding-right: 10px;
    }

    .hero__text__copyright {
        gap: 20px;
    }
}

.line {
    display: block;
}

/* DARK MODE TOGGLE */

.dark_light {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dark_light__dot {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border: 1px solid #454545;
}

.dark_light__dot--light {
    background-color: #F5F5F5;
}

.dark_light__dot--dark {
    background-color: #222428;
}

.dark_light__dot:hover {
    opacity: 0.7;
}

/* DARK MODE */

html.dark,
body.dark {
    background-color: #1c1d20;
    color: #d7d7d7;
}

body.dark a {
    color: #d7d7d7;
}

body.dark .hero__projects {
    background-color: rgba(20, 20, 22, 0.6);
}

body.dark .hero__projects__item {
    border-bottom-color: #626262;
}

body.dark .dark_light__dot--light {
    border-color: rgba(255, 255, 255, 0.2);
}

/* MARQUEE */
.marquee {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
}

.marquee__track {
    display: inline-flex;
    animation: marquee-scroll 200s linear infinite;
    will-change: transform;
}

.marquee__track span {
    font-size: clamp(64px, 22vw, 290px);
    font-family: b-1;
    letter-spacing: -0.019em;
    color: rgb(54, 54, 54);
}

body.dark .marquee__track span {
    color: rgb(170, 170, 170);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* NOISE TEXTURE OVERLAY */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-repeat: repeat;
}