html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: system-ui;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 760px;
}

header {
    width: 100%;
    display: flex;
    margin-top: 3rem;
    justify-content: space-between;
}

a, a:hover, a:visited {
    color: black;
}

header > ul {
    display: flex;
    padding-left: 0;
    list-style: none;
    align-items: end;
}

header > ul > li {
    margin: 0 .5rem;
}

main section#hero {
    align-items: center;
}

main section#hero,
main #work {
    display: flex;
    min-height: 75vh;
}

main section#hero .half,
main section#hero .half .text-img,
main section#hero .half .text-img .text,
main section#hero .half .title,
main #work,
main #about,
main #contact {
    width: 100%;
    display: flex;
}

main #about {
    flex-direction: column;
}

main #work,
main #about,
main #contact {
    margin: 4rem 0;
}

main section#hero .half .text-img {
    flex-direction: column;
}

main section#hero .half .title {
    justify-content: end;
    align-items: end;
}

main section#hero .half .text-img img.profile {
    width: 60%;
    filter: grayscale(1);
    border-radius: .5rem;
    border-top-right-radius: 1.5rem;
}

main section#hero .half .text-img .text svg.arrow {
    width: 2rem;
    height: 2rem;
}

main section#hero .half .text-img .text {
    margin-top: 2rem;
}

main section#hero .half .text-img .text p {
    margin: 0;
    opacity: .5;
    max-width: 50%;
    margin-left: 2rem;
    height: fit-content;
}

main section#hero .half .title h1 {
    margin: 0;
    font-size: 5rem;
    max-width: 320px;
    height: fit-content;
}

main #work h3,
main #about h3,
main #contact h3 {
    margin: 0;
    height: fit-content;
}

main #work div p,
main #about .op,
main #contact div p {
    opacity: .5;
}

main #about b.op,
main #about details b.op {
    display: inline-block;
    margin: .5rem 0 .8rem 0;
}

main #work .tech-projects {
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: end;
}

main #work .tech-projects a {
    display: inline-block;
    overflow: hidden;
}

main #work .tech-projects a img {
    margin: 0;
    opacity: 1;
    transform: none;
    max-width: 270px;
    border-radius: .5rem;
    border-top-left-radius: 1.5rem;
    max-height: fit-content;
}

main #work .tech-projects a:hover {
    cursor: pointer;
}

main #work .tech-projects a img:hover {
    opacity: 0.8;
}

main #about .experience {
    display: flex;
    flex-direction: column;
}

main #about details {
    margin-top: 2rem;
}

main #about details:hover {
    cursor: pointer;
}

main #about details summary {
    opacity: .5;
}

main #contact {
    flex-direction: column;
}

main #contact .cta {
    display: flex;
    max-width: 50%;
    align-items: end;
    margin-top: 2rem;
    justify-content: space-between;
}

main #contact .cta a {
    margin-right: 1rem;
}

footer {
    opacity: .5;
    margin: 3rem 0;
    text-align: right;
}

@media screen and (max-width: 720px) {
    header > ul {
        justify-content: end;
        margin-top: 1.5rem;
    }
    header,
    main section#hero .half {
        flex-direction: column;
    }
    main section#hero .half {
        margin-top: 3rem;
    }
    main section#hero .half .title {
        justify-content: start;
    }
    main section#hero .half .title h1 {
        font-size: 4rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    main #work,
    main #contact {
        margin-top: 2rem;
        flex-direction: column;
    }
    main #work .tech-projects {
        justify-content: start;
    }
    main #contact .cta {
        align-items: start;
        max-width: fit-content;
        flex-direction: column;
    }
    main #contact .cta a {
        margin-top: 1rem;
        margin-left: 0rem;
    }
}