:root {
    font-family: Krub, Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    --color-a: #651274;
    --color-b: rgb(26, 32, 218);
    --color-c: rgba(237, 25, 53, 0.667);

    background-color: var(--color-b);
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
}

.wrapper {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    transition: 500ms ease-in;
    transition-property: --color-a, --color-b, --color-c;
    background: linear-gradient(
        45deg,
        var(--color-a),
        var(--color-b),
        var(--color-c)
    );
    position: relative;
    overflow: hidden;
    color: white;
}

.wrapper::before {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, var(--color-a), var(--color-b));
    filter: blur(50px) brightness(1.5);
    left: 10%;
    top: 10%;
    width: 80%;
    height: 80%;
    /* border-radius: 25px; */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 15s infinite cubic-bezier(0.6, -0.28, 0.735, 0.045),
        morphing 20s infinite reverse;
    transform-origin: 60%;
}

.wrapper::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, var(--color-a), var(--color-b));
    filter: blur(50px) brightness(1.5);
    left: 40%;
    top: 30%;
    width: 70%;
    height: 80%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 10s infinite cubic-bezier(0.215, 0.61, 0.355, 1) reverse,
        morphing 20s infinite;
    transform-origin: 60%;
}

.content {
    position: relative;
    top: 28%;
    z-index: 9002;
}

.title {
    margin: 0;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 7rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.label {
    text-align: center;
    font-family: Krub;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    /* z-index: 9002; */
}

#fade {
    z-index: 9000;
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, var(--color-b), rgba(0, 0, 0, 0));
}

#skills {
    z-index: 9001;
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3%;
    width: 80%;
    margin: 0 auto;
    /* background-color: yellow; */
    position: absolute;
    align-items: stretch;
    top: 80vh;
    left: 0;
    right: 0;
}

.container {
    z-index: 9001;
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3%;
    width: 80%;
    margin: 0 auto;
    /* background-color: yellow; */
    align-items: stretch;
}

#works {
    margin-top: 40%;
}

.container > div.short {
    width: 18.75%;
    aspect-ratio: 1/1;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    margin-bottom: 3%;
    padding: 2%;
}

.container > div.long {
    width: 44.5%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    margin-bottom: 3%;
    padding: 2%;
}

.container > div {
    font-weight: 600;
    font-size: 18px;
    font-style: normal;
    line-height: normal;
    text-align: right;
    color: #ffffff;
    overflow: hidden;
    transition: 300ms ease-in-out;
}

.container > div > img {
    position: absolute;
    top: 25%;
    left: 30px;
    width: 1000px;
    border-radius: 15px;
    transition: 300ms ease-in-out;
}

.container > div:hover {
    cursor: pointer;
    transform: translate(0, -4px);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
}

.container > div:hover > img {
    transform: translate(0, 10px);
}

/* BADGE */

div.center {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 10px;
    background-color: red;
}

.badge-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    padding: 8px 8px;
}

.badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    padding: 8px 8px;
    --background-opacity: calc(1% * min(var(--scroll), 10) * 100 / 30);
    background: rgba(240, 119, 50, var(--background-opacity));
    backdrop-filter: blur(10px);
}

nav {
    position: fixed;
    top: 2%;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

nav > ul {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    padding: 8px 8px;
    --background-opacity: calc(1% * min(var(--scroll), 10) * 100 / 30);
    background: rgba(240, 119, 50, var(--background-opacity));
    backdrop-filter: blur(10px);
}

a {
    text-decoration: none;
}

.resume {
    position: absolute;
    right: 5%;
    /* padding-left: 20px; */

    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;

    list-style: none;
    color: #e0e0e0;

    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    overflow: hidden;
    padding: 12px 18px;
    margin: 0px;
}

nav > ul > li {
    list-style: none;
    color: #e0e0e0;

    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    overflow: hidden;
    padding: 12px 18px;
}

nav > ul > li > a {
    text-decoration: none;
    color: #e0e0e0;
}

nav > ul > li.selected {
    border-radius: 21px;
    color: white;
    background: rgba(217, 217, 217, 0.5);
}

nav > ul > li:hover {
    border-radius: 21px;
    background: rgba(217, 217, 217, 0.5);
}

@media screen and (max-width: 600px) {
    .title {
        font-size: 2.25rem;
    }
    .label {
        font-size: 0.6rem;
    }
    .container > div.short,
    .container > div.long {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .container {
        top: 70vh;
    }
    .resume {
        position: static;
    }
}

@media screen and (max-width: 900px) and (min-width: 600px) {
    .title {
        font-size: 4rem;
    }
    .label {
        font-size: 1rem;
    }
    .container > div.short,
    .container > div.long {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .container {
        top: 70vh;
    }
}

@keyframes blob {
    0% {
        translate: 0 0;
        rotate: 0deg;
    }
    30% {
        rotate: 40deg;
    }
    50% {
        transform: translate(300px, 390px) scale(1.1);
    }
    80% {
        rotate: 90%;
    }
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@property --color-a {
    syntax: '<color>';
    inherits: true;
    initial-value: transparent;
}

@property --color-b {
    syntax: '<color>';
    inherits: true;
    initial-value: transparent;
}

@property --color-c {
    syntax: '<color>';
    inherits: true;
    initial-value: transparent;
}
