:root {
    --pad: max(1.2rem, 4vmin);
}

body {
    background-color: #050505;
    height: 100dvh;
    width: 100dvw;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome {
    height: 100vh;
    width: 100vw;
    position: fixed;
    background-color: #050505;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    animation: textFadeOut 5.5s cubic-bezier(0.4, 0.2, 0.2, 1) forwards,
        removeElement 2s forwards;
}

.welcome h2 {
    color: white;
    font-size: 1.6rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    opacity: 1;
    animation: textFadeOut 3.5s cubic-bezier(0.4, 0.2, 0.2, 1) forwards;
}

.welcome h1 {
    color: white;
    font-size: 2rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0.5rem;
    opacity: 1;
    animation: textFadeOut 3.5s cubic-bezier(0.4, 0.2, 0.2, 1) forwards;
}

@keyframes textFadeOut {
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    to {
        opacity: 0;
    }
}

@keyframes removeElement {
    to {
        display: none;
    }
}

.frame {
    position: fixed;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    mix-blend-mode: difference;
    pointer-events: none;
}

.frame_line {
    position: absolute;
    background-color: white;
    opacity: 1;
}

.frame_line-left {
    left: 0;
    top: 0;
    width: 0.1vw;
    height: 100%;
}

.frame_line-right {
    right: 0;
    top: 0;
    width: 0.1vw;
    height: 100%;
}

.frame_line-top {
    left: 0;
    top: 0;
    height: 0.1vw;
    width: 100%;
}

.frame_line-bottom {
    left: 0;
    bottom: 0;
    height: 0.1vw;
    width: 100%;
}

.square {
    position: fixed;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blue_blob {
    position: absolute;
    top: -15%;
    left: 10%;
    width: 25%;
    opacity: 0.3;
}

.red_blob {
    position: absolute;
    top: -5%;
    left: 77%;
    width: 18%;
    opacity: 0.3;
}

.yellow_blob {
    position: absolute;
    left: 70%;
    top: 65%;
    width: 25%;
    opacity: 0.2;
}

.brown_blob {
    z-index: -1;
    position: absolute;
    top: 83%;
    left: -5%;
    width: 40%;
    opacity: 0.3;
}

.grey_blob {
    position: absolute;
    left: 35%;
    top: 40%;
    width: 10%;
    opacity: 0.3;
}

.name {
    color: white;
    font-family: 'Gloock', serif;
    font-size: 6rem;
    font-weight: 400;
    padding: 0rem 3rem;
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.projects {
    align-self: center;
    color: white;
    text-decoration: none;
    writing-mode: vertical-rl;
    letter-spacing: 0.6rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 200;
    padding-left: 0.5rem;
}

.projects:hover {
    opacity: 0.5;
}

.description {
    align-self: flex-end;
    width: 35%;
    color: white;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 200;
    margin: 0;
    padding: 1.2rem;
}

.contact {
    align-self: center;
    color: white;
    text-decoration: none;
    letter-spacing: 2rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    padding-bottom: 1rem;
}

.contact:hover {
    opacity: 0.5;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 1600px) {
    .name {
        font-size: 3.3rem;
        padding-left: 2rem;
    }
    .projects {
        font-size: 2rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 50%;
        font-size: 1.5rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1.2rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 1440px) {
    .name {
        font-size: 5rem;
        padding-left: 2rem;
    }
    .projects {
        font-size: 2rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 45%;
        font-size: 1rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1.2rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 1024px) {
    .blue_blob {
        width: 35%;
        opacity: 0.3;
    }

    .red_blob {
        width: 38%;
        opacity: 0.3;
    }

    .yellow_blob {
        width: 45%;
        opacity: 0.3;
    }

    .brown_blob {
        width: 60%;
        opacity: 0.3;
    }

    .grey_blob {
        width: 15%;
        opacity: 0.3;
    }

    .name {
        font-size: 4rem;
        padding-left: 2rem;
    }
    .projects {
        font-size: 2rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 50%;
        font-size: 1rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1.2rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .blue_blob {
        width: 45%;
        opacity: 0.6;
    }

    .red_blob {
        width: 38%;
        opacity: 0.6;
    }

    .yellow_blob {
        width: 45%;
        opacity: 0.6;
    }

    .brown_blob {
        width: 60%;
        opacity: 0.6;
    }

    .grey_blob {
        width: 25%;
        opacity: 0.6;
    }

    .name {
        font-size: 3.3rem;
        padding-left: 2rem;
    }
    .projects {
        font-size: 2rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 60%;
        font-size: 1rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1.2rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 425px) {
    .name {
        font-size: 2rem;
        padding-left: 0.5rem;
    }
    .projects {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 90%;
        font-size: 1rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1.2rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 375px) {
    .welcome h1 {
        font-size: 1.5rem;
    }
    .welcome h2 {
        font-size: 1.2rem;
    }
    .name {
        font-size: 1.7rem;
    }
    .projects {
        font-size: 1rem;
        padding-left: 0.5rem;
    }
    .description {
        width: 90%;
        font-size: 0.8rem;
    }
    .contact {
        letter-spacing: 1rem;
        font-size: 1rem;
        padding-bottom: 1rem;
    }
}
