@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Funnel+Display:wght@300..800&family=Mona+Sans:ital,wght@0,200..900;1,200..900&family=Parkinsans:wght@300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

: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", serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a{
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    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 h2{
    font-size: 45px;
}

.hero-section .text .links{
    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 .headshot{
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img{
    width: 350px;
}

/* SECTION 2: SKILLS */
.skills-section{
    padding: 0 50px;
    margin-bottom: 100px;

}

.skills-section h2{
    text-align: center;
    font-size: 20px;
}

.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: 5px;

    width: 200px;
    margin: 10px;
    padding: 10px 20px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
}
.skills-section .cells .cell span{
    font-size: 18px;
}

.skills-section .cells .cell i{
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* border-radius: 2px; */

} 

/* SECTION 3: ABOUT */
.about-section{
    padding: 0 50px;
    margin-bottom: 100px;
}

.about-section h2{
    text-align: center;
    font-size: 35px;
}
.about-section .about-text{
    display: flex;
    text-align: center;
    margin-bottom: 20px;
}
/*SECTION 4: CONTACT */
.contact-section{
    padding: 0 50px;
    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", serif;
    border: 2px solid var(--link-color);
    background-color: 5px solid var(--link-color);
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.contact-section .group form input[type="text"],
.contact-section .group form input[type="email"]{
    width: 100%;
}

.contact-section .group form textarea{
    height: 150px;
}

.contact-section .group form button{
    font-size: 16px;
    font-family: "Poppins", serif;
    color: #4a76ee;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
}
    
/* From Email Js*/
.field {
    margin-bottom: 10px;
  }
  
  .field label {
    display: block;
    font-size: 12px;
    color: #777;
  }
  
  .field input {
    display: block;
    min-width: 250px;
    line-height: 1.5;
    font-size: 14px;
  }
  
  /* input[type="submit"] {
    display: block;
    padding: 6px 30px;
    font-size: 14px;
    background-color: #4460AA;
    color: #fff;
    border: none
  } */
  input[type="text"], input[type="submit"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
}

input[type="submit"] {
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #355a99;
}


@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 4: CONTACT */
    .contact-section .group{
        flex-direction: column;

    }
}


@media(max-width: 600px){
    /* 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;
    }
    /* SECTION1 : HERO */
    .hero-section{
        padding: 0 20px;
    }
    .hero-section .text h2{
        font-size: 30px;
    }
    /* SECTION2: SKILLS */
    .skills-section{
        padding: 0 20px;

    }
    .skills-section .cells .cell span{
        font-size: 16px;
    }
    /* SECTION 3: ABOUT */
    .about-section{
        padding: 0 20px;
    }
    .about-section .about-text{
        font-size: 16px;
    }
     /*SECTION 4: CONTACT */
     .contact-section{
        padding: 0 20px;
     }
}

