:root {
    --main-color: #1A1F21;
    --third-color: #4BFFF4;
    --second-color: #5db2a9;
    --normal-text-color: white;
    --special-text-color: white;
    --project-name-color: white;
    --opening-letters-color: white;
    --offline-project-card-background: #1a1f2171;
    --floating-text-background-color: #5db2a948;
    --floating-text-shadow-color: #5db2a93b;
    --floating-text-color: white;
    --gloassy-background-main-color: #1a1f21c5;
    --logos-color: white;

    --grey-bg: #394145;
    --main-color-darker: #0f1416;
    --main-color-soft: #222729;
    --main-color-darker-tranparent: #0f14169f;

    --body-margin: 1.2rem;
    --color-circle-width: 20.8px;
    --total-themes: 6;
    --animation-behavior: cubic-bezier(.07, .86, .48, .99);

    --color-gold: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);

    --screen-width: 1000px;
}

@media screen and (max-width: 1000px) {
    html {
        font-size: .8rem;
    }
}

@media screen and (min-width: 1000px) {
    html {
        font-size: 1rem;
    }
}

body {
    background-color: var(--main-color);
    transition: background-color .3s;
    color: var(--normal-text-color);
    font-family: sora-light;
    margin: 0;
    position: relative;

    /* Firefox */
    scrollbar-width: none;

    /* Internet Explorer and Edge */
    -ms-overflow-style: none;

    /* WebKit-based browsers (Chrome, Safari, Edge) */
    overflow: -moz-scrollbars-none;
    /* For older versions of Firefox */
    height: 100%;
}

a {
    all: unset;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color .6s ease;
}



a::after {
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0px;
    background-color: var(--normal-text-color);
    transition: transform .8s var(--animation-behavior), background-color .6s ease;
    transform: scaleX(0);
}

a:hover::after {
    transform: scaleX(1);
    background-color: var(--third-color);
}

a:hover {
    color: var(--third-color);
    cursor: pointer;
}

::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, and newer Edge */
}

h1 {
    font-family: sora-bold;
}

h2 {
    margin-bottom: 0.5rem;
    font-family: sora-bold;
    color: var(--second-color);
    font-size: 1.3rem;
}

separator {
    height: 5px;
    width: 100px;
    background-color: var(--third-color);
    margin: 35px 0;
}

sep {
    height: 1.2rem;
    width: 2px;
    background-color: var(--third-color);
}

@media screen and (max-width: 1000px) {
    .wrapper {
        width: calc(100% - 50px) !important;
        align-items: center;
    }
}

.wrapper {
    width: calc(100% - 300px);
    margin-inline: auto;
    transition: opacity .2s;
}

.big-text {
    font-size: 3.2rem;
    margin-bottom: .5rem;
    font-family: sora-bold;
}

.not-interactable {
    pointer-events: none;
}

/* MASTERY SECTION */
/* NEW CSS */

.mastery-section {
    display: flex;
    flex-wrap: wrap;
    height: 2600px;
    min-height: fit-content;
    justify-content: center;
    align-items: center;

}

.mastery-section::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1500px;
    z-index: -4;
}

.mastery-section-background-title {
    position: sticky;
    top: 50%;
    font-size: 10rem;
    transform: translateY(-50%);
    text-align: center;
    color: var(--special-text-color);
    margin: 0;
    transition: opacity .5s;
}

@media screen and (min-width: 1000px) {
    .mastery-txt {
        max-width: 60%;
    }
}

@media screen and (max-width: 1000px) {
    .mastery-section {
        align-items: center;
        justify-content: center;
        display: flex;
        position: relative;
        height: 2600px;
        width: 100%;
    }

    .mastery-section-background-title {
        font-size: 5rem;
    }

}

@media screen and (max-width: 470px) {
    .mastery-section-background-title {
        font-size: 3rem;
    }

    .mastery-img-container {
        overflow: hidden;
        width: fit-content;
        max-width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
    }
}

.mastery-grid {
    display: flex;
    /* box-shadow: 0px 0px 40px 40px var(--main-color);
    backdrop-filter: blur(17px); */
    width: 100%;
    flex-direction: column;
    height: fit-content;
}

.mastery-img {
    width: 350px;
    height: 400px;
    z-index: 2;
}

.mastery-txt {
    box-shadow: 0px 0px 40px 25px var(--main-color);
    backdrop-filter: blur(17px);
    background-color: var(--gloassy-background-main-color);
    width: 50%;
    flex-grow: 1;
    z-index: -1;
    padding: 0 1rem;
}

.mastery-grid-subsection,
.mastery-grid-subsection-reverse {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    gap: 1.5rem;
    padding: 0 3rem;
    margin-bottom: 3rem;
    isolation: isolate;
}

.mastery-grid-subsection {
    flex-wrap: wrap;
}

.mastery-grid-subsection-reverse {
    flex-wrap: wrap-reverse;
}

cover-area {
    position: fixed;
    height: 2300px;
    z-index: -5;
}

/* CARDS */
.card {
    background: linear-gradient(135deg, rgba(35, 42, 45, 0.685) 43%, rgba(26, 31, 33, 0.01) 100%);
    box-shadow: 26px 54px 31.6px -16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(17px);
    padding: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*SECTIONS*/
.section {
    padding: 3rem 0;
}

@media screen and (min-width: 1000px) {
    .big-image-section {
        height: 200vh;
        position: relative;
        margin-bottom: 300px;
    }

    .big-image-section-bot {
        position: relative;
        height: 200vh;
    }

    .gm-box {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
        width: 300px;
    }
}

@media screen and (max-width: 1000px) {
    .big-image-section {
        height: 60vh;
        position: relative;
        margin-bottom: 150px;
    }

    .big-image-section-bot {
        position: relative;
        height: 60vh;
    }

    .gm-box {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 75px;
        width: 200px;
    }
}

.big-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/divers/about-section-img-1.webp');
    background-position: center;
    background-size: cover;
    mask: linear-gradient(to bottom, var(--main-color) 40%, transparent);
    pointer-events: none;
    z-index: -1;
}

.big-image-section-bot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/divers/about-section-img-2.webp');
    background-position: center;
    background-size: cover;
    mask: linear-gradient(to top, var(--main-color) 40%, transparent);
    pointer-events: none;
    z-index: -1;
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.links sep {
    background-color: var(--normal-text-color);
}

.gm-icon {
    background: var(--color-gold);
    transition: transform 1.5s;
}

.big-image-section-gradient {
    height: 45%;
    width: 100%;
    background: linear-gradient(to bottom, var(--main-color), transparent);
    position: absolute;
    top: 0;
    z-index: -1;
}

.coming-soon-section {
    background-color: var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.coming-soon-section p {
    color: var(--second-color);
    margin-bottom: 0;
    font-size: 1.7rem;
}

.projectUi {
    transition: opacity .5s ease, transform .8s var(--animation-behavior);
}

.main-section {
    opacity: 1;
    background-color: var(--main-color);
    transition: background-color .3s, opacity .3s;
    isolation: isolate;
}

.main-section-2 {
    position: relative;
    transition: opacity .3s ease-out;
}

.about-section {
    display: none;
    width: 2px;
    height: 2px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color .5s;
    z-index: 20;
    overflow: auto;
    background-color: var(--third-color);
}

.hidden-section {
    opacity: 0;
    transition: opacity .3s;
    height: 100%;
}

.contact-section {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 2px;
    width: 2px;
    background-color: var(--third-color);
    align-items: center;
    justify-content: center;
    transition: background-color .5s;
    z-index: 20;
}

.contact-infos {
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* big screen */
@media screen and (min-width: 1000px) {
    .about-section-footer {
        height: 75vh;
        background-color: black;
    }

    .contact-infos p:nth-child(2) {
        font-size: 3rem;
    }

    .quote {
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
    }

    .quote p {
        font-size: 1.3rem;
        max-width: 35ch;
        text-align: center;
    }
}

/* small screen */
@media screen and (max-width: 1000px) {
    #intro-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-section-footer {
        height: 100vh;
        background-color: black;
    }

    .contact-section {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .contact-infos p:nth-child(2) {
        font-size: 1.3rem;
    }

    .quote {
        bottom: 0;
        transform: translate(-50%, 50%);
    }

    .quote p {
        font-size: 1rem;
        max-width: 35ch;
        text-align: center;
    }

    .about-section-footer .contact-infos p,
    .about-section-footer .contact-infos div {
        transform: translateY(60px);
    }
}

.quote {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: normal;
    text-align: center;
}

.big-image-section-bot .quote {
    bottom: 10%;
    color: white;
}

.contact-infos p:nth-child(1) {
    font-style: italic;
    color: var(--third-color);
}

.contact-infos p:nth-child(2) {
    margin: 0;
    font-family: sora-extra-bold;
    word-break: break-all;
    text-align: center;
}

.contact-section .wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shader-section {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--main-color-darker-tranparent);
    backdrop-filter: blur(17px);
    z-index: 11;
    opacity: 0;
    display: none;
    transition: opacity 1s ease;
}

/* Small screen */
@media screen and (max-width: 1000px) {
    .openContactSection {
        animation: stretchHeight-50 .7s ease forwards, stretchWidth-70 .7s ease forwards .7s, addPadding .4s ease forwards .9s;
    }
}

/* Big screen */
@media screen and (min-width: 1000px) {
    .openContactSection {
        animation: stretchHeight-65 .7s ease forwards, stretchWidth-70 .7s ease forwards .7s;
    }
}


.openAboutSection {
    animation: stretchWidth-90 .7s ease forwards, stretchHeight-85 .7s ease forwards .7s;
}

.closeSection {
    animation: reduceWidth .5s ease forwards, reduceHeight .3s ease forwards .5s;
}

@keyframes stretchHeight-85 {
    to {
        height: 85%;
    }
}

@keyframes stretchHeight-65 {
    to {
        height: 65%;
    }
}

@keyframes stretchHeight-50 {
    to {
        height: 50%;
    }
}

@keyframes addPadding {
    to {
        padding: 0 1.3rem;
    }
}

@keyframes stretchWidth-90 {
    to {
        width: 90%;
    }
}

@keyframes stretchWidth-70 {
    to {
        width: 70%;
    }
}

@keyframes reduceHeight {
    to {
        height: 0;
    }
}

@keyframes reduceWidth {
    to {
        width: 2px;
    }
}

.ui {
    position: fixed;
    font-size: 1.3rem;
    font-family: sora-bold;
    width: fit-content;
    height: fit-content;
    transform: translateY(-50px);
    transition: transform .8s var(--animation-behavior), opacity .6s;
    opacity: 0;
    z-index: 10;
}

.ui:nth-child(1) {
    top: var(--body-margin);
    left: var(--body-margin);
}

.colored-text-dt {
    color: var(--special-text-color);
}

.ui:nth-child(2) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    top: var(--body-margin);
    right: var(--body-margin);
}

.ui:nth-child(3) {
    bottom: var(--body-margin);
    left: var(--body-margin);
}

@media screen and (min-width: 1000px) {
    .ui:nth-child(4) {
        background-color: var(--second-color);
        box-shadow: 0px -13px 9.5px 0px rgba(0, 0, 0, 0.25);
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 80%);
        padding: .7rem .8rem .2rem .8rem;
        font-size: 1rem;
        font-family: sora-light;
        transition: transform .6s ease-out, opacity .3s;
        z-index: 21;
    }
}

@media screen and (max-width: 360px) {
    .ui:nth-child(1) {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    .ui:nth-child(4) {
        display: none;
    }
}

.ui:nth-child(4):hover {
    transform: translate(-50%, 0%);
}

.ui:nth-child(5) {
    bottom: var(--body-margin);
    right: var(--body-margin);
}

#mottos {
    position: relative;
    z-index: 15;
    transition: transform .8s var(--animation-behavior), opacity .6s var(--animation-behavior);
    width: 100%;
    height: 100vh;
}

.opening-motto {
    position: absolute;
    font-family: sora-bold;
    top: 50%;
    left: 50%;
    transition: transform .8s var(--animation-behavior), opacity .6s var(--animation-behavior);
    transform: translate(-50%, -50%);
    opacity: 1;
    width: max-content;
}

.opening-motto[data-opening-stage="1"] {
    opacity: 0;
    transform: translate(-50%, -75%);
}

.opening-motto[data-opening-stage="2"] {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.opening-motto[data-opening-stage="3"] {
    opacity: 0;
    transform: translate(-50%, -25%);
}

.opening-motto:nth-child(1) {
    font-size: 70px;
}

.opening-motto:nth-child(2) {
    font-style: italic;
}

@media screen and (max-width: 1000px) {
    .opening-motto {
        font-size: 25px;
    }

    .opening-motto:nth-child(1) {
        font-size: 30px;
    }
}

@media screen and (min-width: 1000px) {
    .opening-motto {
        font-size: 45px;
    }

    .opening-motto:nth-child(1) {
        font-size: 70px;
    }
}

.color-selector {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 83.5px;
    transition: width .8s var(--animation-behavior), height .8s var(--animation-behavior), border-radius .8s var(--animation-behavior), padding .8s var(--animation-behavior), transform .8s var(--animation-behavior);
}

.color-selector[data-color-selector-state="opened"] {
    width: calc(35px * var(--total-themes));
    height: 20px;
    /*calc(var(--color-circle-width) + 10px);*/
    padding: 5px 10px;
    transform: translateY(4px);
}

.color-selector[data-color-selector-state="closed"] {
    width: 30px;
    height: 30px;
}

.color-selector[data-color-selector-state="closed"]:hover {
    cursor: pointer;
}

.color-selector[data-color-selector-state="closed"] .circle-container {
    pointer-events: none;
}

.circle-container {
    height: 25px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.circle-container[data-selected-theme="true"] .circle {
    outline: rgba(0, 0, 0, 0.466) solid 3px;
}

.circle {
    border-radius: 50%;
    width: var(--color-circle-width);
    height: var(--color-circle-width);
    outline: rgba(0, 0, 0, 0) solid 3px;
    transition: height .4s, width .4s, transform .4s, outline .3s;
}

.circle-container:hover .circle {
    height: 35px;
    width: 35px;
    transform: translateY(-6.25px);
    cursor: pointer;
}

.circle-container:active .circle {
    filter: saturate(0%);
}

/* [data-theme-color="default"] .circle {
    background-color: #4BFFF4;
}

[data-theme-color="light"] .circle {
    background-color: #7091E6;
}

[data-theme-color="marin"] .circle {
    background-color: #003566;
}

[data-theme-color="jade"] .circle {
    background-color: #116466;
}

[data-theme-color="golden"] .circle {
    background-color: #FAC402;
}

[data-theme-color="black"] .circle {
    background-color: black;
}

[data-theme-color="clay"] .circle {
    background-color: #E87F73;
} */

/*COLORS AND FONTS*/
.about-section-big-text {
    font-size: 13rem;
    text-align: left;
    font-family: sora-bold;
    width: fit-content;
}

@media screen and (max-width: 1000px) {
    .about-section-big-text {
        font-size: 5rem !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 470px) {
    .about-section-big-text {
        font-size: 3rem !important;
    }
}


.hightlighted-text {
    color: var(--special-text-color);
    font-family: sora-bold;
}

.bg-grey-teal {
    background-color: var(--grey-bg);
}

.bold {
    font-weight: bold;
}

.subtitle {
    opacity: .5;
}

@font-face {
    font-family: onetwohours;
    src: url(../fonts/OnetwohoursRegular.ttf);
}

@font-face {
    font-family: montserrat;
    src: url(../fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: noto-black;
    src: url("../fonts/Noto Sans/NotoSans-Black.ttf");
}

@font-face {
    font-family: noto-extra-bold;
    src: url("../fonts/Noto Sans/NotoSans-ExtraBold.ttf");
}

@font-face {
    font-family: DM;
    src: url("../fonts/DM\ sans/static/DMSans_18pt-Black.ttf");
}

@font-face {
    font-family: sora-bold;
    src: url("../fonts/Sora/static/Sora-Bold.ttf");
}

@font-face {
    font-family: sora-light;
    src: url("../fonts/Sora/static/Sora-Light.ttf");
}

@font-face {
    font-family: sora-extra-bold;
    src: url("../fonts/Sora/static/Sora-ExtraBold.ttf");
}

@font-face {
    font-family: syne;
    src: url("../fonts/Syne/static/Syne-Bold.ttf");
}

/*BUTTON*/
.button {
    font-weight: bold;
    font-size: 1.3rem;
    padding: .8rem 1.2rem;
    color: var(--normal-text-color);
    background-color: var(--second-color);
    border: none;
    transition: background-color 0.3s;
}

.button:hover {
    cursor: pointer;
    background-color: #67c0b7;
}

.button:active {
    cursor: pointer;
    background-color: #344547;
}

/*TRANSITION PANEL*/
#panel-section {
    position: fixed;
    z-index: 30;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
}

.transition-panel {
    background-color: var(--second-color);
    width: calc((100% - 2px) / 3);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    fill: var(--opening-letters-color);
    transition: height .8s var(--animation-behavior);
}

.lifted {
    transition: height .8s cubic-bezier(.48, .99, .07, .86);
}

.transition_panel_section {
    position: fixed;
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
}

transition_panel_separator {
    background-color: var(--main-color);
    height: 100%;
    width: 1px;
    transition: height .8s var(--animation-behavior);
    z-index: 20;
}

#language-selector {
    display: flex;
    justify-content: end;

    &:hover {
        cursor: pointer;
    }
}

#language-selector span {
    transition: opacity .3s;
}

#language-selector span[data-current-language="false"] {
    opacity: .4;
}

#language-selector span[data-current-language="true"] {
    opacity: 1;
}

/**FEATURED WORK ANIMATIONS**/
.floating-text {
    opacity: 0;
    position: absolute;
    width: max-content;
    height: fit-content;
    padding: .5rem 1rem;
    border-radius: 25px;
    border: var(--second-color) 1px solid;
    background-color: var(--floating-text-background-color);
    color: var(--floating-text-color);
    backdrop-filter: blur(17px);
    z-index: 15;
    pointer-events: none;
    transition: top .2s ease-out, left .2s ease-out, transform .3s, opacity .2s;
}

.floating-text .subtitle {
    font-size: 1rem;
    margin: 0;
}

/*SMALL SCREENS*/
@media screen and (max-width: 1000px) {
    #project-card-section {
        height: 90vh;
        transform: translateY(-10vh);
        justify-content: center;
    }

    .project-card {
        max-height: 480px;
        max-width: 280px;
    }

    .project-scroller {
        height: 75%;
        width: 90%;
        overflow-y: auto;
    }

    .project-scroller-inner {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card img {
        height: auto;
        width: 350px;
        transition: filter .4s ease-in-out, scale .6s;
        scale: 1.1;
    }

    .project-card img:active {
        filter: saturate(110%);
        scale: 1;
    }


    .duplicate {
        display: none !important;
    }
}

/*BIG SCREENS*/
@media screen and (min-width: 1000px) {
    #project-card-section {
        height: 100vh;
    }

    .project-card {
        max-height: 600px;
        max-width: 350px;
        width: auto;
        transform: translateY(-100vh);
    }

    .project-scroller {
        margin-inline: auto;
        overflow-x: clip;
        overflow-y: visible;
        height: calc(70%);
    }

    .project-scroller-inner {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        height: 100%;
    }

    .project-scroller[data-animated="true"] {
        max-width: 2000px;
        min-width: 40%;
    }

    .project-scroller[data-animated="true"] .project-scroller-inner {
        width: fit-content;
        animation: project-scroll 35s linear infinite;
        flex-wrap: nowrap;
    }

    .project-card img {
        height: auto;
        width: 350px;
        filter: saturate(10%);
        transition: filter .4s ease-in-out, scale .6s;
        scale: 1.2;
    }

    .project-card img:hover {
        cursor: pointer;
        filter: saturate(100%);
        scale: 1;
    }

    .duplicate {
        display: flex;
    }
}

#project-card-section {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: transform .6s var(--animation-behavior), opacity .6s;
}

.project-card {
    position: relative;
    overflow: clip;
    align-items: center;
    transition: transform 1.5s var(--animation-behavior);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .project-scroller{
    position: relative;
    margin-inline: auto;
    overflow: hidden;
    width: calc(7 * 360px);
    height: 500px;
}

.project-card{
    position: absolute;
    top: 0;
    left: 0;
    height: 600px;
    width: 350px;
    overflow: hidden;
} */

.project-card[data-project-status="offline"]::after {
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--offline-project-card-background);
    backdrop-filter: blur(17px);
}

.offline-project-card {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.offline-project-icon {
    fill: var(--normal-text-color);
    width: 50%;
    height: auto;
    margin-bottom: 1rem;
}

.offline-project-card-text {
    text-align: center;
    font-family: sora-light;
}

.tranlate-in {
    animation: translate-in 1s var(--animation-behavior) forwards;
}

@keyframes translate-in {
    to {
        transform: translateY(0);
    }
}

/*PROJECT PAGE*/
/* SMALL SCREEN */
@media screen and (max-width: 1000px) {
    .detailed-project-section {
        /* height: 100vh; */
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-inline: auto;
    }

    .project-description {
        overflow: auto;
        height: 50%;
        padding: 0 3rem 3rem 3rem;
        margin-top: 3rem;
    }

    .vertical-project-scroller {
        width: 100%;
        height: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vertical-project-scroller-inner {
        overflow: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;

    }

    .next-project-screenshot {
        display: none;
    }

    .next-project-section {
        width: 100%;
        height: 200px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}

/* BIG SCREEN */
@media screen and (min-width: 1000px) {
    .detailed-project-section {
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .project-description {
        overflow: auto;
        max-height: 90%;
        width: 40%;
        padding: 3rem;
        padding-bottom: 6rem;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start
    }

    .project-description h1 {
        font-family: sora-bold;
        font-size: 4.5rem !important;
        margin-top: 0;
        word-wrap: break-word;
    }

    .vertical-project-scroller {
        width: 60%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vertical-project-scroller-inner {
        overflow: auto;
    }

    a[data-project="link"] {
        /* height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        bottom: var(--body-margin);
        left: 3rem;
        position: absolute; */
        width: fit-content;
    }

    .mini {
        display: none !important;
    }

    .next-project-section {
        z-index: 1;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: fit-content;
        width: fit-content;
    }
}

.project-description h1 {
    color: var(--project-name-color);
}

.project-description p,
.project-description a {
    font-size: 1.2rem;
    margin-top: 0px;
}

.project-screenshot,
.next-project-screenshot {
    width: 100%;
    max-width: 900px;
    min-width: 300px;
    height: auto;
    max-height: 500px;
    overflow: clip;
    margin-bottom: 1rem;
    /*CHANGE LATER. WITH IMG RIGHT SIZE. THIS IS NOT NECESARRY*/
}

.next-project-screenshot {
    position: relative;
    isolation: isolate;
}

.project-screenshot img,
.next-project-screenshot img {
    width: 100%;
    height: auto;
    min-height: 200px;
}

.next-project-screenshot::after {
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--offline-project-card-background);
    backdrop-filter: blur(17px);
}

.next-project-section-mini{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.next-btn {
    font-size: 1.3rem;
    font-family: sora-bold;
}

#next-project-name,
#next-project-name-mini {
    font-size: 2.5rem;
    text-align: center;
}

.next-project-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#back-btn {
    top: var(--body-margin);
    left: var(--body-margin);
    position: fixed;
    font-size: 1.3rem;
    font-family: sora-bold;
    height: fit-content;
    padding: 4px;
    transition: transform .3s;
    backdrop-filter: blur(17px);
    z-index: 5;
}

/*ANIMATIONS*/
.scroller {
    max-width: 100%;
}

.scroller-inner {
    display: flex;
    gap: 7rem;
    flex-wrap: wrap;
}

.scroller[data-animated="true"] {
    /* overflow: hidden; */
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller-inner {
    width: fit-content;
    animation: clients-scroll 25s linear infinite;
    flex-wrap: nowrap;
}

.animate_panel_letter {
    animation: letter_dissapear .5s ease-out forwards;
}

.letter-panel {
    transition: transform .3s ease-out;
}

/* .opening_animation {
    transform: translateY(20px);
    opacity: 0;
    transition: transform .3s ease-out, opacity .3s ease-in;
} */

.bouncing {
    animation: bounce 7s cubic-bezier(.25, .79, .31, .63) infinite;
}

.bouncing-2 {
    animation: bounce 5s cubic-bezier(.25, .79, .31, .63) infinite;
}

@keyframes bounce {

    0%,
    76% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-5px);
    }

    84%,
    86% {
        transform: translateY(2px);
    }

    86%,
    100% {
        transform: translateY(0);
    }
}

@keyframes letter_dissapear {
    to {
        transform: translateY(100%);
    }
}

@keyframes clients-scroll {
    to {
        transform: translate(calc(-50% - 3.5rem));
    }
}

@keyframes project-scroll {
    to {
        transform: translate(calc(-50% - 5px));
    }
}