:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1500px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin-left: 10px;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 0px;
}

/* SECTION 1: Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    gap: 40px;
    margin-bottom: 100px;
}

.hero .text {
    flex: 5;
}

.hero .text h2 {
    font-size: 45px;
    margin-bottom: 10px;
}

.hero .text .links {
    margin-top: 25px;
}

.hero .text .links a {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    transition: .1s;
}

.hero .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.hero .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero .headshot img {
    border-radius: 50%;
}

/* SECTION 2: Skills */
.skills {
    padding: 0 50px;
    margin-bottom: 100px;
}

.skills h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 10px;
}

.skills p {
    text-align: center;
    margin-bottom: 15px;
}

.skills .cells {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.skills .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 130px;
    padding: 10px 15px;
    margin: 10px;
    border: 2px solid #d3d3d3;
    border-radius: 5px;
}

.skills .cells .cell span {
    font-size: 18px;
    margin-left: 10px;
}

/* SECTION 3: Contact */
.contact {
    padding: 0 50px;
    margin-bottom: 100px;
}

.contact h2 {
    font-size: 35px;
}

.contact .group {
    display: flex;
    gap: 50px;
}

.contact .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.contact .group form input,
.contact .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: var(--background-color);
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
    transition: .1s;
}

.contact .group form textarea {
    height: 200px;
}

.contact .group form input:focus,
.contact .group form textarea:focus {
    border: 2px solid var(--text-color);
}

.contact .group form button {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    transition: .1s;
}

.contact .group form button:hover {
    color: #fff;
    background-color: var(--text-color);
}

.contact .group .text .q {
    font-weight: 600;
    font-size: 18px;
}

.contact .group .text .a {
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 850px) {
    /* SECTION 1: Hero */
    .hero .text h2 {
        font-size: 35px;
    }
}

@media (max-width: 740px) {
    /* Section 1: Hero */
    .hero {
        flex-direction: column-reverse;
    }

    .hero .headshot img {
        width: 300px;
    }

    /* Section 3: Contact */
    .contact .group {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    /* NAVBAR */
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;
    }

    nav .right a span {
        display: none;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0;
    }

    /* SECTION 1: Hero */
    .hero {
        padding: 0 20px;
    }

    .hero .text h2 {
        font-size: 30px;
    }

    /* SECTION 2: Skills */
    .skills {
        padding: 0 20px;
    }

    .skills .cells .cell span {
        font-size: 16px;
        margin-left: 10px;
    }

    /* Section 3: Contact */
    .contact {
        padding: 0 20px;
    }
}