@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    scroll-behavior: smooth;
}

::-moz-selection {
    color: #220f2a;
    background: #642da3;
}

::selection {
    color: #220f2a;
    background: #642da3;
}

body {
    background: #2c2352;
    /* background: #220f2a; */
    overflow-x: hidden;
    overflow-y: scroll;
}

.header {
    padding: 50px 20px;
}

.header .nav {
    display: none;
}

h1 {
    margin-top: 50px;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

p {
    color: #ddc0e4;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
}

p a {
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

p a:hover {
    color: #642da3;
}

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    background: #2c2352c9;
    --webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.section {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    padding: 25px 20px;
}

#section1 {
    padding-top: 0px;
}

#section2 .technologies span {
    margin-bottom: 10px;
}

.experience {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.experience .date {
    font-size: 0.75rem;
    color: rgb(153, 153, 153);
    font-weight: 600;
    margin-bottom: 10px;
}

.experience .wrapper h3 {
    margin-bottom: 5px;
}

.experience h3 i {
    transform: rotateZ(45deg) translateY(5px);
}

.experience .wrapper h4 {
    font-size: 0.85rem;
    color: #8d59c9;
}

.socialMediaLinks {
    display: flex;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.socialMediaLinks a {
    text-decoration: none;
    margin-right: 20px;
    cursor: pointer;
}

.socialMediaLinks i {
    color: #ddc0e4;
}

.socialMediaLinks a:hover i {
    color: white !important;
}

.light {
    z-index: 5000;
    position: fixed;
    pointer-events: none;
    top: -100vw;
    left: -100vw;
    width: 200vw;
    height: 200vw;
    background: rgb(255, 255, 255);
    background: radial-gradient(circle, rgba(187, 117, 245, 0.1) 0%, rgba(0, 0, 0, 0) 75%);
}

.project {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.project h3 i {
    transform: rotateZ(45deg) translateY(5px);
    transition: all 0.2s ease;
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    width: 80%;
    margin-bottom: 20px;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.technologies span {
    background: #1d0727c5;
    color: #8d59c9;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 0.75rem;
    font-weight: 900;
}

#switchLang {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1500;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

#en,
#de {
    position: absolute;
    background-color: #2c2352;
    width: 25px;
    height: 20px;
}

.en #en,
.de #de {
    z-index: 1600;
    animation: goUpAndDown 1s forwards;
}

.en #de,
.de #en {
    z-index: 1500;
    animation: comeToFront 1s forwards;
}

@keyframes goUpAndDown {
    0% {
        transform: translateY(0px);
        z-index: 1600;
    }

    50% {
        transform: translateY(-20px);
        z-index: 1000;
    }

    100% {
        transform: translateY(0px);
        z-index: 1000;
    }
}

@keyframes comeToFront {
    0% {
        z-index: 1000;
    }

    100% {
        z-index: 1600;
    }
}

@media (min-width: 768px) {
    .left {
        position: fixed;
        height: 100vh;
        width: 50vw;
        top: 0;
        left: 0;
        z-index: 100;

        display: flex;
        justify-content: flex-end;
    }

    .header {
        padding: 100px 0;
        padding-right: 20%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    h1 {
        font-size: 3rem;
        font-weight: 900;
        margin-top: 0px;
    }

    h2 {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .header .nav {
        display: flex;
        flex-direction: column;
    }

    .nav a {
        position: relative;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        margin: 10px 0;
        width: fit-content;
        font-weight: 800;
    }

    .nav a:hover {
        color: #220f2a;
    }

    .nav a::before {
        content: '';
        z-index: -1;
        position: absolute;
        width: 0;
        height: 26px;
        margin-top: -3px;
        margin-left: -5px;
        background: #642da3;
        transition: all 0.3s ease;
    }

    .nav a:hover::before {
        width: calc(100% + 10px);
    }

    .navbar {
        position: initial;
    }

    #section2 .technologies {
        padding: 0 20px;
    }

    .experience {
        flex-direction: row;
        padding: 20px;
    }

    .experience.dim {
        filter: opacity(0.5);
    }

    .experience:hover {
        background-color: #d9c3f118;
    }

    .experience .date {
        margin-top: 10px;
        white-space: nowrap;
        word-wrap: keep-all;
        text-align: center;
    }

    .experience .wrapper {
        margin-left: 20px;
    }

    #section1 {
        margin-top: -100px;
        padding-top: 100px;
    }

    .right {
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        right: 0;
        padding: 100px 0;
        padding-left: 55vw;
        display: flex;
        flex-direction: column;
    }

    .right::before {
        content: '';
        position: fixed;
        pointer-events: none;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100px;
        z-index: 1000;
        background: rgb(255, 255, 255);
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 50%, rgba(44, 35, 82, 0.75) 100%);
    }

    .right::after {
        content: '';
        position: fixed;
        pointer-events: none;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 100px;
        z-index: 1000;
        background: rgb(255, 255, 255);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(44, 35, 82, 0.75) 100%);
    }

    .right h2 {
        padding: 0 20px;
    }

    .section {
        width: 80%;
        margin-bottom: 100px;
    }

    #section1 p {
        padding: 0 20px;
    }

    .project {
        padding: 20px;
    }

    .project.dim {
        filter: opacity(0.5);
    }

    .project img {
        width: 50%;
    }

    .project:hover {
        background-color: #d9c3f118;
    }

    .project:hover h3 {
        color: #8d59c9;
    }

    .project:hover h3 i {
        transform: rotateZ(45deg) translateY(2px);
        color: #8d59c9;
    }

    .experience a {
        text-decoration: none;
        font-size: 1.25rem;
        font-weight: bold;
        transition: color 0.2s ease;
    }

    .experience:hover h3 {
        color: #8d59c9;
    }

    .experience h3 i {
        transform: rotateZ(45deg) translateY(5px);
        transition: all 0.3s ease;
    }

    .experience:hover h3 i {
        transform: rotateZ(45deg) translateY(2px);
        color: #8d59c9;
    }

    .light {
        top: -25vw;
        left: -25vw;
        width: 50vw;
        height: 50vw;
    }
}