: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;
}

/* Nav Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 24px;
    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 Section */
.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 {
    border-radius: 50%;
    width: 350px;
}

/*Section 2: Skills Section */
.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
    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;
    gap: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
}

.skills-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;

}

.skills-section .cells .cell span {
    font-size: 18px;
}


/*Section 3: Activities Section */
.activities-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.activities-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.activities-section .cells {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activities-section .cells .cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
    width: 100%;
}

.activities-section .cells .cell .left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.activities-section .cells .cell .left img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
}

.activities-section .cells .cell .left span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activities-section .cells .cell .left span h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.activities-section .cells .cell .left span h4 {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.activities-section .cells .cell .right h4 {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

/*Section 3: Activities Section */
.education-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.education-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.education-section .cells {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.education-section .cells .cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
    width: 100%;
}

.education-section .cells .cell .left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.education-section .cells .cell .left img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
}

.education-section .cells .cell .left span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.education-section .cells .cell .left span h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.education-section .cells .cell .left span h4 {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.education-section .cells .cell .right h4 {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

@media(max-width: 850px) {

    /* Section 1: Hero Section */
    .hero-section .text h2 {
        font-size: 35px;
    }
}

@media(max-width: 740px) {

    /* Section 1: Hero Section */
    .hero-section {
        flex-direction: column-reverse;
    }

    .hero-section .headshot img {
        width: 300px;
    }
}

@media(max-width: 600px) {

    /*Nav Bar */
    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: Hero Section */
    .hero-section {
        padding: 0 20px;
    }

    .hero-section .text h2 {
        font-size: 30px;
    }

    /*Section 2: Skills Section */
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: 16px;
    }

    /*Section 3: Activities Section */
    .activities-section {
        padding: 0 20px;
    }

    .activities-section .cells .cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .activities-section .cells .cell .right h4 {
        align-self: flex-start;
    }

    /*Section 4: Education Section */
    .education-section {
        padding: 0 20px;
    }

    .education-section .cells .cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .education-section .cells .cell .right h4 {
        align-self: flex-start;
    }

}

