
/* *************************** Header Navigation *************************** */

/* Delcaring global variables to be used in css */
:root {
    --font-color: #F2FDFF;
    --font-hover: #ca9388;
    --background: #272F3C;
    --container-background: rgba(40, 29, 30, 0.5);
    --before-background: rgba(51, 53, 65, 0.95);
}

/* setting scroll behavior */
html {
    scroll-behavior: smooth;
}

/* setting background color with a margin and padding set to zero */
body {
    background-color: var(--background);
}

/* setting all a tags to be have no text-decoration */
a {
    text-decoration: none;
}

/* *************************** Header Navigation *************************** */

/* navigation container with a background-image and position set to relative */
.nav-container {
    width: 100%;
    height: 75vh;
    background-image: url(../Images/mountains-edit2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* nav set to display flex */
.nav-container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #272F3C;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    padding: 0px 5%;
}

/* list items set to flex-end to the right of the page */
.nav-container nav ul {
    display: flex;
    width: 75%;
    justify-content: flex-end;
}

.nav-container nav ul li {
    padding: 2%;
}


.nav-container nav ul li a {
    font-family: 'Nunito', sans-serif;
    color: #F2FDFF;
    font-size: 0.9375em;
    font-weight: 700;
}

/* setting a hover color for font */
.nav-container nav ul li a:hover {
    color: var(--font-hover);
}

/* styling h1 */
.logo {
    font-family: 'Sriracha', cursive;
    color: #F2FDFF;
    font-size: 22px;
    padding: 2%;
}


/* *************************** Main Content *************************** */


/* ***** About Me ***** */

/* about me container width set to 80% and with a background color */
.about-container {
    width: 80%;
    background-color: var(--container-background);
    border-radius: 20px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    margin: 2% auto;
    padding: 2%;
}


.about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* styling about me img */
.about-container img {
    width: 15.128249737146662%;
    padding: 1% 0;
}


.about-text h2 {
    color: var(--font-color);
    font-family: 'Sriracha', cursive;
    font-weight: bold;
    font-size: 1.4375em;
    line-height: 0px;
    border-bottom: 2px solid;
    margin-bottom: 2%;
}

/* about me paragraphs styling */
.about-text p {
    color: var(--font-color);
    font-size: 0.875em;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    line-height: 1.2rem;
    padding: 1% 0;
    text-align: center;
}


/* ***** My Work ***** */

/* my work container set to 80% width with a background color */
.my-work-container {
    width: 80%;
    margin: 2% auto;
    background-color: var(--container-background);
    border-radius: 20px;
    padding: 1%;
}

/* setting my work to be 80% width of the my work container and display flex */
.my-work {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: auto;
}



.my-work h2{
    color: var(--font-color);
    font-family: 'Sriracha', cursive;
    font-weight: bold;
    font-size: 1.4375em;
    line-height: 0px;
    border-bottom: 2px solid;
    margin: 2% 0;
}

/* setting the width of project1 and setting a brightness filter overlay of 50% */
.project1 {
    width: 100%;
    padding-top: 1%;
    filter: brightness(0.5);
    margin: 1% 0;
}

/* setting project1 a tags to flex and width of 100% */
.project1 a {
    display: flex;
    align-items: flex-end;
    width: 100%;
    position: relative;
}


.project2,
.project3,
.project4,
.project5 {
    width: 50%;
    display: flex;
    margin: 1% 0;
    filter: brightness(0.5);
}

.project3,
.project5 {
    justify-content: flex-end;
}


.project2 div,
.project3 div,
.project4 div,
.project5 div {
    width: 98%
}

.my-work .project2 a,
.my-work .project3 a,
.my-work .project4 a,
.my-work .project5 a {
    display: flex;
    width: 100%;
    position: relative;
}

.project2 a,
.project4 a {
    align-items: flex-end;
}

.project3 a,
.project5 a {
    align-items: flex-end;
}

/* project images set to 100% width */
.my-work img {
    width: 100%;
}

/* setting a before content for image link to projects */
.project1 a::before,
.project2 a::before,
.project3 a::before,
.project4 a::before, 
.project5 a::before {
    color: var(--font-color);
    position: absolute;
    background-color: var(--before-background);
    padding: 1%;
    width: 100%;
    text-align: center;
}

.project1 a::before {
    content: 'Horiseon';   
}

.project2 a::before {
    content: 'Project 2';
}

.project3 a::before {
    content: 'Project 3';
}

.project4 a::before {
    content: 'Project 4';
}

.project5 a::before {
    content: 'Project 5';
}

/* setting hover on before to change font color when hovering over image */
.project1 a:hover::before,
.project2 a:hover::before,
.project3 a:hover::before,
.project4 a:hover::before,
.project5 a:hover::before {
    color: var(--font-hover);
}

/* removing filter of image that is hovered over */
.my-work .project1:hover,
.my-work .project2:hover,
.my-work .project3:hover,
.my-work .project4:hover,
.my-work .project5:hover {
    filter: none;
}


/* *************************** Footer Navigation *************************** */

/* footer nav container */
.footer-nav-container nav {
    display: flex;
    align-items: center;
    background-color: #272F3C;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    flex-direction: column;
}

.footer-nav-container nav h2 {
    font-family: 'Sriracha', cursive;
    color: #F2FDFF;
    font-size: 22px;
    padding: 1%;
    border-bottom: 2px solid;
}

.footer-nav-container nav ul {
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-nav-container nav ul li {
    padding: 2%;
}

.footer-nav-container nav ul li a {
    font-family: 'Nunito', sans-serif;
    color: #F2FDFF;
    font-size: 0.9375em;
    font-weight: 700;
}

/* setting font color to change when hovered over */
.footer-nav-container nav ul li a:hover {
    color: var(--font-hover);
}


/* *************************** Media Queries *************************** */


/* for mobile */

@media screen and (max-width: 600px) {
    .nav-container nav,
    .footer-nav-container nav {
        flex-direction: column;
        padding: 2% 0;
    }

    .nav-container nav ul,
    .footer-nav-container nav ul {
        width: 100%;
        flex-direction: column;
    }

    .nav-container nav ul li,
    .footer-nav-container nav ul li {
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        padding: 2%;
    }

    .about-container,
    .my-work-container {
        width: 100%;
        margin: 5% 0;
    }

    .about-text h2,
    .my-work h2 {
        padding: 4%;
    }

    .my-work {
        flex-direction: column;
        align-items: center;
    }

    .project2,
    .project3,
    .project4,
    .project5 {
        justify-content: center;
        width: 80%;
    }
    
    .project2 div,
    .project3 div,
    .project4 div,
    .project5 div {
        width: 100%;
    }
} 

/* for small tablets */
@media screen and (min-width: 600px) {
    .about-text h2,
    .my-work h2 {
        padding: 4%;
    }
}

/* for tablets */
@media screen and (min-width: 768px) {
    .about-text h2,
    .my-work h2{
        padding: 3%;
    }
}

