: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;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

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

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

.goto:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);   
}

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

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

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

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

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

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

}

.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;
    border-radius: 50%;

}


/* SKILLS */
.skills-section {
    padding: 0 50px;
    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;
    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
    gap: 10px;
}

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

}

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

.frameworks-title {
    margin-top: 100px;
}

/* EXPERIENCE */
.experiences-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.experiences-section .group {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

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

.experiences-section .group .experience-details {
    text-align: center;
    flex: 2;
}

.experiences-section .group .text {
    flex: 8;

}

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

.experiences-section .group .experience-details p {
    font-weight: 600;
}

.experiences-section .group .experience-details p:last-child {
    font-weight: normal;
}


/* PROJECTS */
.projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.projects-section .group {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

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

.projects-section .group .project-details {
    text-align: center;
    flex: 2;
}

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

.projects-section .group .project-details video {
    width: 400px;
    object-fit: cover;
    border-radius: 5%;
}

.projects-section .group .project-details p {
    font-weight: 600;
}

.projects-section .group .project-details p:last-child {
    font-weight: normal;
}


/* 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', 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: white;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;

}

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

.contact-section .contact-button {
    text-align: center;
    padding: 15px;
}

@media (max-width: 768px) {
    /* NAVBAR */
    nav {
        padding: 0 24px;
    }

    nav .right a {
        font-size: 24px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
    }

    nav .right a span {
        display: none;
    }

    /* HERO */
    .hero-section  {
        flex-direction: column-reverse;
        padding: 0 20px;
    }

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

    .hero-section .text .typewriter-text {
        font-size: 25px;
    }


    .hero-section .headshot img{
        width: 300px;
    }

    /* SKILLS */

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

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

    /* EXPERIENCE */
    .experiences-section {
        text-align: center;
        padding: 0 20px;
    }

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

     /* PROJECTS */
    .projects-section {
        text-align: center;
        padding: 0 20px;
    }

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

    /* CONTACT */

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

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