:root {
    --primary-color: #f66d4f;
    --secondary-color: #080808;
    --background-color: #1e1e1e;
    --menu-bg-color: #000000c7;
    --text-color: #d2d2d2;
    --border-gradient: linear-gradient(to right, #ffffff00, #ffffff, #ffffff00);
    --gradient-vertical: linear-gradient(
        to bottom,
        var(--secondary-color),
        transparent,
        var(--secondary-color)
    );
    --background-gradient: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        transparent,
        var(--secondary-color) 100%
    );
    --image-invert: invert(0%) hue-rotate(180deg) contrast(120%);
    --image-grayscale: grayscale(0%) contrast(120%) brightness(90%);
}

.light {
    --primary-color: #f66d4f;
    --secondary-color: #e7e7e7;
    --background-color: #f5f5f5;
    --menu-bg-color: #ffffffd4;
    --text-color: #050505;
    --border-gradient: linear-gradient(
        to right,
        #ffffff00,
        var(--text-color),
        #ffffff00
    );
    --gradient-vertical: linear-gradient(
        to bottom,
        var(--secondary-color),
        transparent,
        var(--secondary-color)
    );
    --background-gradient: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        transparent,
        var(--secondary-color) 100%
    );
    --image-grayscale: grayscale(100%) contrast(120%) brightness(90%);
    --image-invert: invert(100%) hue-rotate(180deg) contrast(120%);
}

* {
    box-sizing: border-box;
    font-weight: lighter;
    scroll-behavior: smooth;
}

::selection {
    background-color: #ff5e0016;
    color: var(--primary-color);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

body.menu-open {
    overflow: hidden;
}

html.menu-open {
    overflow: hidden;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Adamina", serif;
    margin: 0;
    color: var(--text-color);

    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-bottom: 3px solid transparent;
    border-image-slice: 1;
    border-image-source: var(--border-gradient);
    gap: 50px;
    padding: 0 40px 0px 40px;
    overflow-x: hidden;
    background-color: var(--secondary-color);
}

h2,
p,
h1,
ul {
    list-style: none;
    word-break: break-word;
    color: var(--text-color);
    overflow-wrap: break-word;
    white-space: normal;
    font-size: clamp(10px, 1vw, 14px);
}

img[inverted] {
    filter: var(--image-invert);
}

img[grayscale] {
    filter: var(--image-grayscale);
}

a[disabled] {
    pointer-events: none;
    user-select: none;
    color: gray;
    cursor: not-allowed;
    text-decoration: none;
}

a {
    color: var(--text-color);
    transition: all 0.3s ease-in-out;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a:hover {
    color: var(--primary-color);
}

/* MAIN PAGES */
main {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: var(--background-color);
    flex-wrap: wrap-reverse;
    align-items: end;
    justify-content: space-evenly;
    overflow: hidden;
    padding: 20px 20px 0 20px;
    box-sizing: border-box;
}

#toggle {
    display: none;
    width: 2vw;
    min-width: 20px;
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 10;
}

main .img-me {
    position: block;
    max-width: 500px;
    min-width: 200px;
    max-height: 100%;
    width: 50%;
}

main img {
    display: relative;
    z-index: 9;
}

.bg-text {
    position: absolute;
    top: 45%;
    left: 57%;
    transform: translate(-50%, -50%);
    width: 150%;
    max-width: 2000px;
    min-width: 1000px;
    z-index: 7;
}

.vector1 {
    position: absolute;
    width: 50%;
    max-width: 350px;
    min-width: 210px;
    z-index: 8;
    top: 10%;
    transform: translateX(-50%);
    left: 45%;
}

.bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--background-gradient);
    z-index: 8;
}

.gradient-vertical {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-vertical);
    z-index: 8;
}

/* NAVBAR MENU  */

.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    transform: translateX(-10%);
}

#hamburger {
    width: 32px;
    height: 28px;
    scale: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}
#hamburger-menu {
    cursor: pointer;
}

/* HEADER */

header {
    position: block;
    height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    column-gap: 30px;
    padding: 0 0 40px 0;
    z-index: 8;
    gap: 30px;
}

header h1 {
    font-size: clamp(20px, 3.472vw, 50px);
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
}

header .quote {
    text-align: right;
    color: var(--text-color);
    margin: 0;
    width: 100%;
    font-size: clamp(7px, 1.5vw, 14px);
    width: auto;
    line-height: 1.7;
    padding: 10px 0 40px 0;
}

.role {
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role p {
    color: var(--primary-color);
    font-size: clamp(15px, 1vw, 1rem);
    margin: 0;
}

.role hr {
    flex: 1;
    width: 10vw;
    max-width: 100px;
    min-width: 20px;
    border: 1px solid var(--primary-color);
    height: 0;
    margin: 0;
}

/* LINE STACKS */
.stacks {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 100vw;
    box-shadow: inset 0 1px 0 0 var(--text-color),
        inset 0 -1px 0 0 var(--text-color);
    background: transparent;
    height: fit-content;
    display: flex;
    align-items: center;
    padding: 5px 0;
    border: none;
    z-index: 1;
}

.title-layer {
    position: relative;
    background-color: var(--background-color);
    width: 100vw;
    height: fit-content;
    overflow: hidden;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    box-shadow: inset 0 1px 0 0 var(--text-color),
        inset 0 -1px 0 0 var(--text-color);
    display: flex;
    align-items: center;
    padding: 5px 0;
    border: none;
    z-index: 1;
}

.stacks-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100%;
    gap: 10px;
    animation: slide-left 20s linear infinite;
}

.stacks-inner h1 {
    font-size: clamp(5rem, 10vw, 100px);
    letter-spacing: 5px;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stacks-inner p,
.stacks-inner h1 {
    margin: 0;
    text-transform: uppercase;
    color: var(--text-color);
    width: auto;
    height: 100%;
}

.stacks-inner p,
.stacks-inner img,
.stacks-inner h1 {
    flex-shrink: 0;
}

/* MENU LAYER */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--menu-bg-color);
    backdrop-filter: blur(10px);
    z-index: 9;
    padding: 20px;
    font-size: clamp(10px, 1vw, 14px);
}

.menu::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.05;
    pointer-events: none;
}

.menu.show {
    display: flex;
}

.menu .top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    width: 100%;
}

.menu .mid {
    display: flex;
    flex-direction: row;
    padding: 40px 0;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 50px;
}

.menu .bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
    width: 100%;
}

.mid-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav a {
    font-size: clamp(24px, 5vw, 60px);
}

.theme {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.theme img {
    position: absolute;
    top: -5px;
    right: -20px;
    height: 250%;
}

.mid-img {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 40px;
    flex: 3;
    width: 100%;
    height: 100%;
}

.mid-img > img {
    object-position: center;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.menu-hidden {
    display: none;
    height: 100%;
    flex-direction: row;
    justify-content: space-between;
}

.menu-hidden-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    color: var(--text-color);
}

.gap {
    gap: 40px;
}

.rotate {
    transform: rotate(90deg);
}

.btm-social {
    object-fit: cover;
    width: 5vw;
    height: 5vw;
    min-width: 30px;
    min-height: 30px;
    max-width: 35px;
    max-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.05px solid var(--background-color);
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3),
        inset 0px -2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease-out;
    cursor: pointer;
    color: white;
}
.btm-social:active {
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.4),
        0px 0px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(2px);
    border: 1px solid var(--background-color);
    color: var(--background-color);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease-in;
}
.btm-social:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4),
        inset 0px -3px 8px rgba(255, 255, 255, 0.3);
}

.bottom-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.bottom div,
p {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 0;
}

.resume {
    display: flex;
    gap: 2px;
}

/* FILTER TOGGLE */
.div-filter {
    display: flex;
    width: 100%;
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.custom-select-wrapper {
    position: relative;
    width: 25vw;
    min-width: 200px;
    font-size: clamp(10px, 1vw, 14px);
}

.custom-select-wrapper span {
    font-size: medium;
    font-size: clamp(10px, 1vw, 14px);
}

.hidden-select {
    display: none;
}

.select-selected {
    background-color: var(--secondary-color);
    border: none;
    border-bottom: 1px solid var(--text-color);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    user-select: none;
    gap: 20px;
}

.select-selected.select-arrow-active {
    border-bottom: 1px solid var(--text-color);
    transition: transform 0.3s ease;
}

.selected-text {
    color: var(--text-color);
    font-size: 14px;
}

.arrow-down {
    height: 50%;
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active .arrow-down {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: var(--secondary-color);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow: auto;
}

.select-items div {
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
}

.select-items div:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.select-items .same-as-selected {
    background-color: var(--text-color);
    color: var(--background-color);
    pointer-events: none;
    opacity: 0.5;
}

.select-hide {
    display: none;
}

/* PROJECTS */

.projects {
    display: flex;
    width: 100%;
    height: max-content;
    row-gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}
.card {
    flex-grow: 1;
    position: relative;
    display: flex; /*flex*/
    flex-direction: row;
    width: 50%;
    min-width: 500px;
    gap: 10px;
    min-height: 300px;
    overflow: hidden;
}
.card img {
    flex-grow: 1;
    position: relative;
    inset: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

figure {
    flex-grow: 1;
    display: flex;
    width: 0%;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
    gap: 10px;
    transition: all 0.5s ease-in-out;
}

.card:hover figure {
    width: 100%;
}

.description {
    height: 100%;
    text-align: justify;
    margin-right: 10px;
    scrollbar-width: none;
    box-sizing: border-box;
    max-height: calc(8 * 1.5em);
    overflow-y: auto;
    &::-webkit-scrollbar {
        width: 0px;
        height: 0px;
        background: transparent;
    }
}
.cta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-color);
    width: fit-content;
    padding-bottom: 5px;
    margin-top: 5px;
}
.cta img {
    width: 10px !important;
    height: 10px !important;
}

.more-btn {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    border: none;
    background-color: transparent;
    justify-content: center;
    cursor: pointer;
}
.more-btn:hover {
    scale: 0.9;
}
.more-btn:active {
    scale: 0.8;
}
.more-btn p {
    font-size: clamp(10px, 2vw, 18px);
}

/* FOOTER */
footer {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: end;
    flex-direction: column;
}
.footer-main {
    position: relative;
    height: 100%;
    min-height: 300px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    gap: 20px;
    border-top: 2px solid transparent;
    border-image-slice: 1;
    border-image-source: var(--border-gradient);
    padding: 50px 20px;
}

.footer-title {
    flex-grow: 8;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title h3 {
    font-size: clamp(25px, 3.472vw, 50px);
    color: var(--primary-color);
    margin: 0;
}
.footer-title span,
.footer-title p {
    color: var(--text-color);
    font-size: clamp(10px, 1vw, 18px);
}

.footer-item {
    flex-grow: 1;
    text-align: left;
}

.footer-item h4 {
    font-size: clamp(15px, 2vw, 20px);
    margin: 25px 0 0 0;
}

.footer-item ul {
    list-style: none;
    padding: 0;
}

.footer-item a {
    opacity: 0.5;
    font-size: clamp(10px, 2vw, 15px);
}

.footer-item a:hover {
    opacity: 1;
}

.bg-footer {
    position: absolute;
    bottom: -80%;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    min-width: 400px;
    z-index: -1;
}

/* CONTACT PAGES !!*/

.contact {
    width: 100%;
    max-width: 2000px;
    z-index: 9;
    padding: 20px;
    margin: 10vh 0 0 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: 500px;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 20px;
    flex: 3 0 500px;
}
.contact-item {
    width: 100%;
    height: 100%;
    gap: 5px;
    flex: 1 0 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}

.contact-item > p {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 0 50px 0;
    color: var(--text-color);
    font-size: clamp(14px, 2vw, 20px);
}

.contact-item span {
    text-align: right;
    color: gray;
    font-size: clamp(12px, 2vw, 14px);
}

.form-group {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid gray;
    margin: 0;
    width: 100%;
}

.form {
    width: 100%;
    height: 100%;
    gap: 5px;
    flex-flow: 1 0 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}

.form-group .send {
    font-family: "Adamina", serif;
    background-color: transparent;
    padding: 10px;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    margin: 5px;
}

.custom-input {
    font-family: Arial, Helvetica, sans-serif;
    flex-grow: 1;
    caret-color: var(--primary-color);
    font-size: clamp(12px, 1vw, 14px);
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    padding: 3px 3px;
    outline: none;
    color: gray;
    width: 100%;
    height: 100%;
    min-height: 50px;
    text-transform: uppercase;
    resize: none;
}

.custom-input:focus {
    text-transform: none;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--primary-color);
}

.custom-input::placeholder {
    font-family: "Adamina", serif;
    font-size: clamp(10px, 1vw, 14px);
    color: var(--text-color);
}

.contact-item textarea {
    width: 100%;
}
/* ABOUT PAGE */

/* About Page - Introduction */
.section-about {
    display: flex;
    gap: 50px;
    flex-direction: column;
}

.introduction {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}

.introduction article {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    width: 100%;
}

.introduction article .square,
.introduction article .square2 {
    opacity: 0;
    font-size: 50px;
}

.h1 {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    width: fit-content;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.introduction article h1 {
    font-size: clamp(4rem, 10vw, 130px);
    color: var(--text-color);
    white-space: nowrap;
    text-align: center;
    margin: max;
    letter-spacing: 0.5px;
}

.introduction article p {
    font-size: clamp(15px, 5vw, 35px);
    color: var(--text-color);
    text-align: justify;
    margin: 0;
}

.introduction > img {
    width: 100%;
    max-width: 500px;
    background-color: var(--secondary-color);
    object-fit: cover;
    object-position: center;
}

.quotes {
    padding: 50vh 20px;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: flex-end;
}

.quotes p {
    opacity: 0.5;
    width: fit-content;
    color: var(--primary-color);
    font-size: clamp(15px, 3vw, 25px);
    text-align: center;
    letter-spacing: 1px;
}

/* About Page - Apertice */
.apertice {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    padding-top: 50px;
}

.apertice-item {
    display: flex;
    flex-flow: row wrap;
    padding: 0px 20px;
    height: 100%;
    row-gap: 50px;
}

.journey {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1 1 500px;
    height: 100%;
    gap: 50px;
}

.journey-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 400px;
    height: 100%;
    gap: 10px;
}
.journey-item h3 {
    margin: 0;
    font-size: clamp(15px, 2vw, 20px);
}

.journey-inner {
    display: flex;
    flex-flow: row nowrap;
    gap: 5px;
    width: 100%;
}

.journey-inner span {
    font-size: clamp(10px, 1.5vw, 15px);
    max-width: 150px;
    width: 20vw;
    color: gray;
    min-width: 100px;
}

.journey-item p {
    font-size: clamp(10px, 1.5vw, 15px);
}

.pictures {
    flex: 3 1 500px;
    background-color: gray;
    height: 100vh;
}

/* About Page- Playground */
.playground {
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.playground span {
    font-size: clamp(10px, 2vw, 15px);
    color: gray;
    margin-bottom: 20px;
}

.playground-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    row-gap: 10px;
}

.playground-item > div:first-child {
    flex-grow: 1;
    font-size: clamp(10px, 2vw, 15px);
    width: 50px;
}

.playground-item p {
    font-size: clamp(7px, 2vw, 12px);
}

.playground-item ul {
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-size: clamp(5px, 1vw, 10px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 200px;
    gap: 5px;
}
.playground-item ul li {
    border-radius: 5px;
    backdrop-filter: blur(20px);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3),
        inset 0px -2px 5px rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.playground-item ul li:active {
    box-shadow: inset 0px -2px 2px var(--background-color);
    transform: translateY(2px);
    color: var(--text-color);
    transition: all 0.05s ease-in;
}

/* About page - purpose */

.purpose {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    padding: 50px 20px;
    gap: 20px;
}

.purpose-item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 100%;
}

.purpose-item h3 {
    color: gray;
    font-size: clamp(10px, 3vw, 25px);
}

.purpose-item p {
    color: var(--text-color);
    font-size: clamp(10px, 2vw, 15px);
}

/* Media Screen */

@media screen and (max-width: 1440px) {
    .introduction {
        flex-direction: column-reverse;
        align-items: center;
    }
    .introduction > img {
        height: 500px;
        z-index: 9;
    }
    .introduction article .square {
        display: none;
    }
}
@media screen and (max-width: 1024px) {
    body {
        height: fit-content;
    }
    .contact {
        flex-direction: column;
        margin-bottom: 100px;
        gap: 20px;
        max-height: unset;
        height: 100%;
    }
}

@media screen and (max-width: 651px) {
    body {
        height: fit-content;
    }
    .menu .mid {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .mid-item {
        flex-direction: column;
        gap: 30px;
    }
    .vector1 {
        z-index: 9;
    }
    .bg-text {
        min-width: 900px;
        top: 45%;
        left: 50%;
        transform: translate(-40%, -50%);
    }

    /* card */
    .projects {
        gap: 1;
    }

    .card {
        flex-direction: column;
        width: 100%;
        min-width: unset;
        height: 70vh;
        min-height: unset;
    }
    .card img {
        position: relative;
        inset: 0;
        width: 100%;
        min-height: unset;
        height: 50%;
        object-fit: cover;
        object-position: center;
    }

    figure {
        display: flex;
        width: 100%;
        height: 0;
        justify-content: flex-start;
        overflow: hidden;
        transition-property: all 0.5s ease-in-out;
    }
    figure::-webkit-scrollbar {
        display: none;
    }

    .description {
        position: relative;
        display: none;
        height: 100%;
        margin: 0;
        scrollbar-width: none;
        box-sizing: border-box;
        max-height: calc(6 * 1.5em);
        overflow-y: auto;
        &::-webkit-scrollbar {
            width: 0px;
            height: 0px;
            background: transparent;
        }
        transition-property: all 0.5s ease-in-out;
    }

    .card:hover figure {
        height: 100%;
    }
    .card:hover .description {
        display: flex;
    }
    .cta img {
        height: 11px !important;
    }

    /*CONTACT*/

    .contact-form {
        flex-direction: column;
    }
}

/* MAX-WIDTH 471 */

@media (max-width: 471px) {
    .vector1 {
        top: 5%;
        left: 55%;
        min-width: 100px;
    }
    .bg-text {
        top: 45%;
        left: 40%;
        rotate: 15deg;
    }
    main {
        padding-top: 100px;
        gap: 10px;
        align-content: flex-start;
        align-items: stretch;
    }
    #toggle {
        display: flex;
    }
    .menu {
        display: flex;
        flex-direction: column-reverse;
        background: unset;
        backdrop-filter: none;
        pointer-events: none;
        padding: 10px;
    }
    #hamburger-menu {
        display: none;
    }
    .menu .mid {
        display: none;
    }
    .menu-hidden {
        display: flex;
    }
    .menu-hidden-item {
        pointer-events: auto;
    }
    .menu .bottom {
        display: none;
    }
    .navbar,
    .top nav {
        display: none;
    }
    .top img {
        height: 20px;
    }
    .top a {
        pointer-events: auto;
    }
    .role {
        display: none;
    }
    .stacks {
        position: relative;
        top: 0;
    }
    header {
        gap: 5px;
        padding-bottom: 10px;
    }
    header h1 {
        line-height: 1.5;
    }
    .div-filter {
        justify-content: center;
    }
    .view {
        display: flex;
    }

    /* About */
    .purpose {
        flex-direction: column;
    }
}

@media (max-width: 350px) {
    header h1 {
        font-size: clamp(8px, 1vw, 14px);
    }
    header .quote {
        font-size: clamp(5px, 1vw, 12px);
    }
    .bg-text {
        min-width: 320px;
        top: 20%;
        left: 55%;
        rotate: 0deg;
        transform: translate(-40%, -50%);
    }
    main .img-me {
        position: relative;
        top: 30%;
        max-width: 200px;
        min-width: 100px;
        height: 100%;
        width: 50%;
    }
    .menu .bottom {
        align-items: center;
        justify-content: space-between;
    }
    .bottom p {
        text-align: center;
    }
    .bottom p,
    .bottom div {
        font-size: clamp(8px, 1vw, 14px);
        flex-wrap: wrap;
    }
}
