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

#logo {
    text-decoration: none;
    text-align: center;
    background: var(--primary-color);
    color: var(--background-color);
    font-size: 3rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

#about {
    margin: 2rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

#about img {
    max-width: 100%;
    object-fit: cover;
}

.intro {
    flex: 0 1 60%;
}

.intro h2 {
    margin: 1rem 0 0 0;
}

.contact {
    list-style: none;
}

.contact li {
    margin: 0.5rem 0;
}

.contact a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all ease-in-out 0.5s;
}

.contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.resume {
    margin-top: 2rem;
}

.resume a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    transition: all ease-in-out 0.5s;
}

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

@media screen and (max-width: 512px) {
    #logo {
        font-size: 2rem;
    }

    #about img {
        height: 300px;
    }

    .contact li {
        margin: 0.3rem 0;
    }

    .contact a {
        font-size: 1rem;
    }

    .resume {
        margin-top: 1rem;
    }

    .resume a {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }
}