/*
===============================
Global Styles
===============================
*/

:root
{
    --light-primary: #FAFAFA;
    --dark-primary: #171717;
    --light-gradient: #7FE3EF;
    --dark-gradient: #3D4988;
    --accent: #FD6F16;
}

*
{
    margin: 0;
    padding: 0;
    font-family: "Roboto", serif;
    box-sizing: border-box;
    text-decoration: none;
}

html
{
    background-color: var(--light-primary);
    color: var(--dark-primary);
}

h1
{
    font-size: 72px;
    font-weight: 900;
    line-height: 72px;
    margin-bottom: 36px;
}

h2
{
    font-size: 60px;
    font-weight: 900;
    line-height: 60px;
    margin-bottom: 24px;
}

h3
{
    font-size: 48px;
    font-weight: 900;
    line-height: 48px;
    margin-bottom: 12px;
}

p, a
{
    font-size: 18px;
    margin-bottom: 12px;
}

.buttonLink
{
    width: 150px;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: 12px;
    text-align: center;
    transition: color .25s ease-in-out, background-color .25s ease-in-out;
}

.buttonLink:hover
{
    color: var(--light-primary);
    background-color: var(--accent);
}

.inlineLink
{
    color: var(--accent);
    text-decoration: underline;
}

.contentWrapper
{
    width: 85%;
    margin: auto;
}

.backgroundGradient
{
    background: linear-gradient(90deg, var(--light-gradient) 0%, var(--dark-gradient) 100%);
    z-index: 0;
}

/*
===============================
Header Styles
===============================
*/

#headerWrapper
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: right;
    padding: 24px;
    z-index: 3;
}

#headerWrapper i, #navigationHeaderMenu i
{
    font-size: 24px;
}

#headerWrapper i:hover, #navigationHeaderMenu i:hover
{
    cursor: pointer;
}

#navigationHeaderMenu
{
    position: fixed;
    right: -500px;
    width: 500px;
    height: 100vh;
    padding: 24px;
    background-color: var(--accent);
    color: var(--dark-primary);
    transition: right .25s ease-in-out;
    z-index: 3;
}

#navigationHeaderMenu li
{
    display: flex;
    flex-direction: column;
}

#navigationHeaderMenu a
{
    padding: 24px 0;
    border-bottom: 2px solid var(--dark-primary);
    color: var(--dark-primary);
    transition: border-bottom .25s ease-in-out, color .25s ease-in-out;
}

#navigationHeaderMenu a:hover
{
    border-bottom: 2px solid var(--light-primary);
    color: var(--light-primary);
}

#fadedBackground
{
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-primary);
    opacity: 0;
    transition: visibility .5s ease-in-out, opacity .5s ease-in-out;
    z-index: 2;
}

/*
===============================
Page Title Section
===============================
*/

#pageTitleSection
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100vh;
}

#pageTitleSection .backgroundGradient
{
    height: 50vh;
}

#pageTitleSection h1
{
    margin-top: 36px;
}

/*
===============================
Hero Section Styles
===============================
*/

#heroWrapper
{
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    grid-template-rows: .25fr 1fr 1fr 1fr .25fr;
    height: 900px;
}

#heroTextWrapper
{
    grid-column: 1/4;
    grid-row: 3/4;
    z-index: 1;
}

#heroNavigation
{
    display: flex;
    flex-direction: column;
    
}

#heroBackground
{
    grid-column: 2/4;
    grid-row: 2/5;
}

/*
===============================
About Section Styles
===============================
*/

#aboutWrapper
{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 900px;
}

#aboutInfoWrapper
{
    display: grid;
    grid-template-columns: 3.5fr .5fr .25fr 1.65fr .1fr;
    grid-template-rows: .1fr 1.05fr .05fr;
    height: 500px;
}

#aboutInfoContent
{
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    grid-column: 1/2;
    grid-row: 1/4;
}

#aboutText p
{
    margin-bottom: 24px;
}

#techStackWrapper
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.techStackImage
{
    width: 50px;
    height: 50px;
    margin: 12px 24px;
}

.techStackImage i
{
    font-size: 48px;
}

#aboutInfoImage
{
    grid-column: 3/5;
    grid-row: 1/3;
    z-index: 1;
}

#aboutInfoImage img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#aboutInfoWrapper .backgroundGradient
{
    grid-column: 4/6;
    grid-row: 2/4;
}

/*
===============================
Project Showcase Section Styles
===============================
*/

.projectItemWrapper
{
    display: grid;
    grid-template-columns: .1fr 2.7fr .25fr .25fr 2.7fr .1fr;
    grid-template-rows: .1fr 1.05fr .05fr;
    height: 60vh;
    margin-bottom: 48px;
}

.projectTextWrapper
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 85%;
    margin: auto;
    text-align: center;
}

.projectTextWrapper a
{
    margin: auto;
}

.projectImage
{
    z-index: 1;
}

.projectImage img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.projectItemWrapperOdd .projectTextWrapper
{
    grid-column: 5/7;
    grid-row: 1/3;
}

.projectItemWrapperOdd .projectImage
{
    grid-column: 2/4;
    grid-row: 1/3;
}

.projectItemWrapperOdd .backgroundGradient
{
    grid-column: 1/3;
    grid-row: 2/4;
}

.projectItemWrapperEven .projectTextWrapper
{
    grid-column: 1/3;
    grid-row: 1/3;
}

.projectItemWrapperEven .projectImage
{
    grid-column: 4/6;
    grid-row: 1/3;
}

.projectItemWrapperEven .backgroundGradient
{
    grid-column: 5/7;
    grid-row: 2/4;
}

/*
===============================
Footer Styles
===============================
*/

footer
{
    background-color: var(--dark-primary);
    color: var(--light-primary);
}

#footerWrapper
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

#footerWrapper p
{
    margin: 0;
}

#footerWrapper li
{
    display: inline-block;
    margin-left: 12px;
}

#footerWrapper a
{
    color: var(--light-primary);
    transition: color .25s ease-in-out;
}

#footerWrapper a:hover
{
    color: var(--accent);
}

/*
===============================
Contact Section
===============================
*/

/*
===============================
Project Content Section
===============================
*/

#pageContentSection
{
    margin-bottom: 48px;
    text-align: center;
}

#pageContentSection h3:nth-child(1)
{
    margin-bottom: 12px;
}

#pageContentSection p
{
    width: 75%;
    margin: auto;
    margin-bottom: 48px;
}

.projectScreenshots
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.projectScreenshot
{
    width: 375px;
    height: 375px;
    margin: 12px 0 0 12px;
}

.projectScreenshot img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/*
===============================
Mobile Styles
===============================
*/

@media only screen and (max-width: 1024px)
{
    /*
    ===============================
    Global Styles
    ===============================
    */

    h1
    {
        font-size: 48px;
        line-height: 44px;
    }

    h2
    {
        font-size: 32px;
    }

    h3
    {
        font-size: 24px;
    }

    .buttonLink:hover
    {
        color: var(--accent);
        background-color: var(--light-primary);
    }

    /*
    ===============================
    Header Styles
    ===============================
    */

    #navigationHeaderMenu a
    {
        padding: 12px 0;
    }

    #navigationHeaderMenu a:hover
    {
        border-bottom: 2px solid var(--dark-primary);
        color: var(--dark-primary);
    }

    /*
    ===============================
    Project Showcase Section Styles
    ===============================
    */

    .projectItemWrapper
    {
        margin-bottom: 24px;
    }

    /*
    ===============================
    Footer Styles
    ===============================
    */

    #footerWrapper a:hover
    {
        color: var(--light-primary);
    }

    /*
    ===============================
    Project Content Section
    ===============================
    */

    #pageContentSection
    {
        margin-bottom: 48px;
    }

    #pageContentSection p
    {
        width: 100%;
        margin-bottom: 24px;
    }

    .projectScreenshots
    {
        flex-direction: column;
        align-items: center;
    }
    
    .projectScreenshot {
        margin-left: 0;
    }
}

@media only screen and (max-width: 580px)
{
    /*
    ===============================
    Global Styles
    ===============================
    */

    h1
    {
        font-size: 38px;
        line-height: 34px;
    }

    /*
    ===============================
    Header Styles
    ===============================
    */

    #navigationHeaderMenu
    {
        width: 100%;
        right: -100%;
    }

    /*
    ===============================
    Hero Section Styles
    ===============================
    */

    #heroWrapper, #heroTextWrapper
    {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    #heroTextWrapper
    {
        margin-top: 24px;
    }

    #heroBackground
    {
        height: 450px;
    }

    /*
    ===============================
    About Section Styles
    ===============================
    */

    #aboutWrapper
    {
        display: block;
        height: auto;
        margin-bottom: 48px;
    }

    #aboutInfoWrapper
    {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    #techStackWrapper
    {
        margin-bottom: 24px;
    }

    #aboutInfoWrapper .backgroundGradient
    {
        display: none;
    }

    /*
    ===============================
    Project Section Styles
    ===============================
    */

    .projectItemWrapper
    {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .projectImage
    {
        margin-bottom: 12px;
    }

    .projectItemWrapperOdd .backgroundGradient, .projectItemWrapperEven .backgroundGradient
    {
        display: none;
    }

    /*
    ===============================
    Project Content Section
    ===============================
    */

    .projectScreenshot
    {
        width: 100%;
    }
}