:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

* {
    /* this * element targets everything */
    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;
}

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

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 HERO */

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 100px;
    gap: 40px;
}

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

.hero-section .text .link {
    margin-top: 25px;
}

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

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

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

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
} 

/* REMEMBER TO CHANGE THE NAME OF MY IMAGE IT NEEDS CONVERTING */
.hero-section .headshot img {
    width: 350px;
    height: auto;
    border-radius: 100%;
    object-fit: cover;
} 

/* SECTION 2 Skills */
.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

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

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

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

.skills-section .cells .cell {
    display: flex;
    justify-content: left;
    align-items: left   ;
    gap: 10px;

    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    /* border: 1.5px solid #d3d3d3;
    border-radius: 5px; */
}

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

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

/* SECTION 3 Testimony */
.testimony-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.testimony-section h2 {
    font-size: 35px;
    margin-bottom: 30px;
}

.testimony-section p {
    font-size: 20px;
    margin-bottom: 15px;
}

.testimony-section .group {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100vh;
}

.testimony-section .group .person-details {
    text-align: center;
    flex: 2;
}

.testimony-section .group .person-details img {
    width: 200px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimony-section .group .person-details p {
    font-weight: 600;
}

.testimony-section .group .person-details p:last-child {
    font-weight: normal;

}

.testimony-section .group .text {
    flex: 8;
}

/* SECTION 4 contact */
.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

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

.social-links {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.social-links a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    transition: all 0.3s ease;

}

.social-links a:hover {
    background-color: #333;
    color: #fff;
}

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

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

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

.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: .1s;

}

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



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

@media (max-width 740px) {
    /* SECTION 1: Hero */
    .hero-section {
        flex-direction: column-reverse;
    } 
    .hero-section .headshot img {
        width: 300px;
    } 

    /* SECTION 3 Testimony */
    .testimony-section {
        text-align: center;
    }

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

    /* SECTION 4 Contact
    .contact-section .group {
        flex-direction: column;
    } */
} 


@media (max-width: 600px) {
    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  here*/
    .hero-section {
        padding: 0 20px;
    }
    .hero-section .text h2 {
        font-size: 30px;
    }

    /* SECTION 2 Skills */

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

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

    /* SECTION 3: Testimony */
    .testimony-section {
        padding: 0 20px;
    }

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