:root {
    --text-color: #1a1c20;
    --link-color: #74c788;
    --background-color: #eeeff1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 80px;
    height: 80px;
    align-items: center;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/* SECTION 1: BIO */
.bio-section {
    display: flex;
    justify-content: space-between;
    padding: 0 80px;
    margin: 50px 0;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
}

.bio-section .text {
    flex: 5;
}

.bio-section .portrait {
    flex: 2;
    display: flex;
    justify-content: right;
}

.bio-section .portrait img {
    border-radius: 50%;

    width: 350px;
    
}

.bio-section .text h2 {
    font-size: 45px;
}

.bio-section .text .links {
    margin-top: 25px;
}

.bio-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 10px;
    transition: .2s;
}

.bio-section .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

/* SECTION 2 */

.skills-section img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    border-radius: 2px;
}

.skills-section {
    padding: 0 80px;
    margin-bottom: 100px;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;

}

.skills-section .cells .cell span {
    font-size: 18px;
}

/* SECTION 3 */

.projects-section {
    padding: 0 80px;
    margin-bottom: 100px;
    
}

.projects-section h2 {
    font-size: 35px;
    margin-bottom: 30px;
    text-align: center;
    
}

.projects-section .pcontent {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    gap: 25px;
}

.projects-section .pcontent .cells {
    flex: 3;
    justify-items: center;
    
}

.projects-section .pcontent .text {
    flex: 4;
    justify-items: left;
}

.projects-section .pcontent .cells .cell {
    margin-bottom: 10px;
    
}

.projects-section .pcontent .cells .cell a {
    display: inline-block;
    width: 300px;
    color: var(--text-color);
    border: 2px solid #d3d3d3;
    border-radius: 10px;
    padding: 10px 15px;
    
    text-align: center;
    transition: .2s;
    font-size: 18px;
}

.projects-section .pcontent .cells .cell a:hover {
    color: var(--link-color);
    border-color: var(--link-color);
}

/* SECTION 4 */

.contact-section {
    padding: 0 80px;
    margin-bottom: 100px;
}

.contact-section h2 {
    font-size: 35px;
}

.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;

}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.contact-section .group form button {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-section .group form button:hover {
    filter: brightness(.9);
}

@media (max-width: 850px) {
    /* SECTION 1 */
    .bio-section .text h2 {
        font-size: 35px;
    }
}

@media (max-width: 740px) {
    /* SECTION 1 */
    .bio-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    .bio-section h2 ,
    .bio-section p {
        text-align: left;
    }

    .bio-section .portrait img {
        width: 300px;
    }

    /* SECTION 3 */

    .projects-section {
        text-align: center;
    }

    .projects-section .text {
        text-align: left;
    }

    .projects-section .pcontent {
        flex-direction: column-reverse;
        
    }

    .projects-section .pcontent .cells .cell a {
        text-align: center;
    }


    /* SECTION 4 */

    .contact-section h2 {
        text-align: center;
    }

    .contact-section .group {
        flex-direction: column;
        
    }
}

@media (max-width: 660px) {
    /* NAVBAR */
    nav {
        padding: 0 20px;
    }
    nav .right a {
        font-size: 22px;
    }
    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }
    nav .right a span {
        display: none;
    }

    /* SECTION 1 */

    .bio-section {
        padding: 0 20px;
    }

    .bio-section .text h2 {
        font-size: 30px;
    }

    /* SECTION 2 */
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: 16px;
    }

    /* SECTION 3 */

    .projects-section {
        padding: 0 20px;
    }

    /* SECTION 4 */
    .contact-section {
        padding: 0 20px;
    }
}


