* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    overflow-x: hidden;
    user-select: none;
}

html,
body {
    background-color: #121212;
    width: 100%;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    height: 100%;
}

@font-face {
    font-family: neue;
    src: url(./fonts/NeueMontreal-Medium.otf);
}

@font-face {
    font-family: neue-light;
    src: url(./fonts/NeueMontreal-Light.otf);
}

@font-face {
    font-family: mono;
    src: url(./fonts/RoobertMono-Regular.Bu-a3WCy.ttf);
}

#main {
    font-family: neue;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.page-transition {
    pointer-events: none;
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 900;
    opacity: 1;
}

.page-transition .load {
    width: 20%;
    background-color: #0e0e0e;
    height: 0;
}

.button {
    padding: 10px 20px;
    background-color: #121212;
    color: #ffffff;
}

.loader {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.loader hr {
    height: 1px;
    width: 0%;
    background-color: #ffffff;
    opacity: 0.2;
}

.loading {
    width: 100%;
    position: absolute;
    top: 45%;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    padding-right: 10vw;
}

.loading span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    opacity: 0;
    color: #ffffff;

}

.circle {
    margin-right: 4px;
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #7e2df8;
}

.loader .loading span .head {
    display: flex;
    text-transform: uppercase;
    align-items: center;
    justify-content: space-between;
}

.loader .loading span .bottom {
    margin-top: 10px;
    font-family: mono;
    opacity: 0;
}

#intro .bottom .profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile .text {
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile .img {
    overflow: hidden;
    width: 50px;
    margin-right: 10px;
    aspect-ratio: 1;
}

.profile .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#title {
    background-color: #2A2A2A;
    color: #D4CFCF;
    display: inline-block;
    border-radius: 3px;
    padding: 2px 4px;
}

#linkedin,
#insta,
#x {
    position: relative;
    cursor: pointer;
    width: max-content;
}

#linkedin::after,
#insta::after,
#x::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: .5px;
    width: 0;
    background: #ffffff;
    transition: width 0.5s ease;
}

#linkedin:hover::after,
#insta:hover::after,
#x:hover::after {
    width: 100%;
}

.cursor {
    position: absolute;
    width: 8px;
    aspect-ratio: 1;
    background-color: #7e2df8;
    z-index: 999;
    display: none;
    border-radius: 50%;
}

.hero-text {
    display: none;
    gap: 6vw;
    padding: 0 20px;
    position: absolute;
    color: #ffffff;
    top: 50%;
    transform: translateY(-50%);
    justify-content: space-between;
}

.button {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    background-color: #2A2A2A;
    border-radius: 50px;
    will-change: display;
    padding: 10px 20px;
    display: none;
    /* transition: top 0.35s ease; */

    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #7e2df8;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: -1;
}


.button:hover::before {
    transform: translateY(0);
}

.work .button2 {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    background-color: #2A2A2A;
    color: #ffffff;
    border-radius: 50px;
    will-change: display;
    padding: 10px 20px;
    overflow: hidden;
}

.button2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #7e2df8;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: -1;
}


.button2:hover::before {
    transform: translateY(0);
}

.hero-text .texts p {
    line-height: 1.7rem;
    overflow: hidden;
    font-size: 1.7rem;
}

.texts span {
    overflow: hidden;
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}


@media (max-width:1000px) {
    .loading {
        top: calc(50% - 20px);
    }

    .hero-text {
        flex-direction: column;
    }

    .hero-text .texts p {
        line-height: 1;
        font-size: 1rem;
    }

    .loader {
        width: 100%;
    }

    .loading {
        padding: 0 10px;
    }

    .loading span {
        font-size: 8px;
    }

    #intro {
        display: none;
    }

    .cursor {
        display: none;
        opacity: 0;
    }

    .work .button2 {
        top: 80%;
    }
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-260px * 10));
    }
}

.slider {
    will-change: transform;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    opacity: 0;
    pointer-events: none;

    overflow: hidden;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 35%,
            rgba(0, 0, 0, 1) 65%,
            rgba(0, 0, 0, 0) 100%);

    -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 35%,
            rgba(0, 0, 0, 1) 65%,
            rgba(0, 0, 0, 0) 100%);
}

.slide-track {
    will-change: transform;
    display: flex;
    animation: scroll 40s linear infinite;
    width: calc((260px + 20px) * 20);
}

.slide {
    width: 260px;
    height: 150px;
    margin-right: 20px;
    overflow: visible;
    border-radius: 10px;
    flex-shrink: 0;


}

.slide img {
    will-change: transform;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: inherit;
}

.work .page-transition {
    position: fixed;

    background-color: none;
}

.work .page-transition .load {
    height: 0px;
    width: 20%;
}

.work {
    z-index: 900;
    display: none;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: absolute;
    overflow: hidden;
    background: #111;
    cursor: grab;
}

.world {
    width: 2000px;
    height: 1500px;
    position: absolute;
    top: 0;
    left: 0;
}

.card {
    color: #ffffff;
    font-family: mono;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    width: 300px;
    height: auto;
    pointer-events: none;
}

.card p {
    font-size: 10px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
