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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'poppins', sans-serif;
    background-color: var(--backroung-color);

}

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

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: 100px;

    padding: 20px 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(--backroung-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 10px
}

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


/* SECTION1: Hero */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 50px;
    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;
    border-radius: 50%;

}


.education-section {
    padding: 60px 50px;
    text-align: center;
}

.education-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.education-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.education-list .edu {
    background: rgba(74,118,238,0.06);
    border: 1px solid rgba(74,118,238,0.12);
    padding: 18px;
    border-radius: 8px;
    min-width: 260px;
    flex: 1 1 280px;
}

.education-list .edu h3 {
    margin-bottom: 6px;
    font-size: 18px;
    color: var(--text-color);
}

.education-list .edu p {
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* small screens */
@media (max-width: 740px) {
    .education-list {
        flex-direction: column;
    }
}


/* Section2: skills */
.skills_sections {
    padding: 0 50px;
    margin-bottom: 100px;
    
}

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

.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;
    background: rgba(74,118,238,0.06);

    width: 160px;
    padding: 10px 10px;
    margin: 10px;
    border: 0.5px solid #d3d3d3;
    border-radius: 6px;
}

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

}

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

@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: contact */

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

.contact-section h2 {
    font-size: 35px;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

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

.contact-section .group form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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;
    width: 500px;
    border-radius: 10px;
}

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

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


footer {
    display:flex;
    justify-content:center;
    align-items: center;
    padding: 20px 5px;
    color: #888;
    font-size: 16px;
    background:  rgba(5, 15, 41, 0.06);
}

@media (max-width: 600px) {

    /* NAVBAR */
    nav {
        padding: 0 10px;

    }

    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: hero */
    .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;
    }

}



.experience-section {
    padding: 60px 50px;
    text-align: left;
}

.experience-section h2 {
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--text-color);
}

.experience-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.experience-list .exp {
    background: rgba(74,118,238,0.04);
    border: 1px solid rgba(74,118,238,0.1);
    padding: 16px;
    border-radius: 8px;
    flex: 1 1 300px;
}

.experience-section {
    scroll-margin-top: 90px; 
}

