* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
}

canvas#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.splash-container {
    background-image: none;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.content {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.profile-picture-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.button {
    background-color: #007bff;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.button:hover {
    background-color: #0056b3;
}

#rainbow-mode {
    background-color: #ff00ff;
}

#rainbow-mode:hover {
    background-color: #cc00cc;
}

section#cv {
    padding: 50px;
    background-color: #f4f4f4;
    color: black;
}

section#cv h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.social-links {
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.linkedin {
    background-color: #0077B5;
}

.personal-email {
    background-color: #D44638;
}

.work-email {
    background-color: #12841d;
}

.github {
    background-color: #872e74;
}

.researchgate {
    background-color: #f8d00d;
}

#game-of-life {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.footer {
    background-color: #000000;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e7e7e7;
}

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

.footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #ffffff;
    margin-left: 10px;
    margin-right: 10px;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    margin-right: 10px;
}

.footer-link {
    color: #333;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-picture-frame {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .splash-container {
        padding: 10px;
    }

    /* Adjust button size */
    .button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .profile-picture-frame {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .splash-container {
        padding: 5px;
    }

    .button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
