:root {
    --text-color: #1c1c1c;
    --link-color: #157fa8;
    --background-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;   
}

body {
    font-family: "Stack Sans Headline", sans-serif;
    background-color: var(--background-color);
    max-width: 1920px;
    min-width: 320px;
    margin: 0 auto;
    line-height: 2;
    letter-spacing: 0.8px;
}

body p {
    padding-bottom: 10px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* Navigation Bar */
nav {
    position: sticky;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;

    background-color: rgba(204, 204, 204, 0.5); backdrop-filter:blur(15px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

/*This will give color to my name and change the size!*/
nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

/*This will give space between the right elements!*/
nav .right a {
    color: var(--text-color);
    margin: 0 10px;
}

/*This will create a button look and invert the color!*/
nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

/*This will give the span margin to the left!*/
nav .right a span {
    margin-left: 5px;
}

/*Section 1: Hero*/
.hero-section {
    background-color: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    margin: 50px auto;
    max-width: 1600px;
    margin-bottom: 50px;
    gap: 40px;
}

/*This gives the text 5 of 7 width of the page!*/
.hero-section .text {
    flex: 5;
    text-align: justify;
}

/*This changes the title of the text to be bigger!*/
.hero-section .text h2 {
    font-size: 50px;
}

/*This gives the links a margin against the text!*/
.hero-section .text .links {
    margin-top: 25px;
}

/*This creates the border for the links!*/
.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(--background-color);
    border: 2px solid var(--background-color);
    background-color: var(--text-color);
}

/*This gives the headshot 2 of 7 width of the page!*/
.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    width: 350px;
    border-radius: 50%;
}

/* Section 2: Software Experiece*/
.software-section {
    padding: 80px 50px;
    margin: 0 auto;
    max-width: 1600px;
}

.software-section h2 {
    text-align: center;
    font-size: 35px;
}

.software-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.software-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}

.software-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: 200px;
    height: 80px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
}

.software-section .cells .cell:hover {
    border-color: #b4b4b4;
}

.software-section .cells .cell span {
    font-size: 18px;
}

.software-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/*Section 3: Work Experience*/
.work-section {
    padding: 80px 50px;
    margin: 0 auto;
    max-width: 1600px;
}

.work-section h2 {
    font-size: 35px;
    margin-bottom: 30px;
    text-align: center;
}

.work-section .group {
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.work-section .group .person-details {
    text-align: center;
    flex: 4;
}

.work-section .group .person-details img {
    width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.work-section .group .person-details p {
    font-weight: 600;
}
.work-section .group .person-details p:last-child {
    font-weight: normal;
}

.work-section .group .text {
    flex: 6;
}

.work-section .group .text h3 {
    font-size: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.work-section .group .text p {
    text-indent: 50px;
    text-align: justify;
    margin-top: 10px;
    margin-bottom: 30px;
}

/*Section 4: Contact*/
.contact-section {
    padding: 80px 100px;
    margin: 0 auto;
    max-width: 1920px;
    background-color: #202020;
    color: var(--background-color);
}

.contact-section h2 {
    font-size: 35px;
    max-width: 1600px;
    margin: 0 auto;
}

.contact-section .group {
    display: flex;
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
}

.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 transparent;
    background-color: var(--background-color);
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
    border-radius: 3px;
}

.contact-section .group form button {
    font-size: 16px;
    font-family: "poppins", sans-serif;
    color: #ffffff;
    background-color: #326ff1;
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
    border-radius: 3px;
    margin-top: 20px;
}

.contact-section .group form button:hover {
    filter: brightness(.9);
}

@media (max-width: 850px) {
    /* Section 1: Hero*/
    .hero-section .text h2 {
        font-size: 35px;
    }

    /*Section 3: Work Experience*/
    .work-section .group .person-details img {
        width: 250px;
    }
}

@media (max-width: 740px) {
    /* Section 1: Hero*/
    .hero-section {
        flex-direction: column-reverse;
    }

    .hero-section .text {
        text-align: center;
    }

    .hero-section .headshot img {
        width: 300px;
    }

    /*Section 3: Work Experience*/
    .work-section {
        text-align: center;
    }

    .work-section .group .person-details img {
        width: 250px;
    }

    .work-section .group {
        flex-direction: column;
    }

    /*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 {
        border-radius: 50%;
        padding: 2px 4px;
        /*color: var(--text-color);
        background-color: var(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: Software Experiece*/
    .software-section {
        padding: 0 20px;
    }

    .software-section .cells .cell span {
        font-size: 16px;
    }

    /* Section 3: Work Experiece*/
    .work-section {
        padding: 0 20px;
    }

    .work-section .group .text {
        align-items: center;
    }

    .work-section .group .person-details img {
        width: 250px;
    }

    /*Section 4: Contact*/
    .contact-section {
        padding: 0 20px;
    }

    .contact-section .text {
        text-align: justify;
    }
    
}
