*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

@viewport{
    width: device-width;
    zoom: 1.0;
}

html, body{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    position: relative;
}

.container{
    width: 100%;
    height: 100%;
}



.fixed-nav-bar{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;

    display: flex;
    justify-content: space-around;
    align-items:center;
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 8vh;
    background-color: rgba(0, 0, 0, 60%);
    font-family: Arial, Helvetica, sans-serif;
}

.logo{
    width: 20%;
    margin-left: 5vh;
}

/*Start of Navigation CSS*/
.nav-links{
    margin-left: 30vh;
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li{
    display: inline-block;
    list-style: none;
    position: relative;
    padding-top: 3vh;
    padding-bottom: 3vh;
}

.nav-links a{
    color: #eeeeee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    font-size: 18px;
    transition: all ease-in-out 250ms;
}

.nav-links a:hover{
    color:#1B407C;
    font-size: 19px;
    transition: all ease-in-out 250ms;
}

.nav-links a::after{
    content: '';
    display: block;
    height: 0.5vh;
    background-color: #41AA54;
    position: absolute;
    bottom: 0;
    width: 0%;

    transition: all ease-in-out 250ms;
}

.nav-links a:hover::after{
    width: 100%;
}

.burger{
    display:none;
    cursor: pointer;
}

.burger div{
    width: 25px;
    height: 3px;
    background-color: rgb(216, 216, 216);
    margin: 5px;
    transition: all 0.3s ease;
}

/*Changes navbar based on screen size*/
@media  screen and (max-width: 1024px) {
    .nav-links{
        margin-left: 10vh;
        display: flex;
        justify-content: space-around;
        width: 50%;
    }

}

/*Switches nav bar to mobile mode and activates burger*/
@media  only screen and (max-width: 540px) {
    body{
        overflow-x: hidden;
    }

    .nav-links{
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 100%;
        background-color: rgba(0, 0, 0, 60%);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li{
        opacity: 0;
    }

    .burger{
        display:block;
    }
}

.nav-active{
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from{
        opacity: 0;
        transform: translateX(50px)
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2{
    opacity: 0;
}

.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}

/*div containing banner img and text*/
.banner-wrapper{
    position: relative;
    width: 80%;
    margin: 10% auto;
}

/*Front Photo*/
.front-photo{
    width: 100%;
}

.banner-text-wrapper{
    width:100%;
    position: relative;
    text-align: center;
    margin-top:-50%;
    font-size: 6vw;
    font-family: 'Nunito', sans-serif;
}

section{
    height: 100vh;
    scroll-snap-align: start;
}

/*About Section*/
.about-wrapper{
    width: 100%;
    position: relative;
    margin: 20vw auto;
    top: 38%;
    padding: 10px;
}

.about-wrapper h1{
    font-size: 6vw;
    font-family: 'Nunito', sans-serif;
    margin-left: 1%;
    color: #1B407C;
    text-decoration: underline;
    text-decoration-color: #41AA54;
}

.about-wrapper h2{
    padding: 10px;
    font-size: 40px;
    font-family: 'Nunito', sans-serif;
    color: #eeeeee;
    line-height: 8vh;
    background-color:rgba(0, 0, 0, 60%);
}

/*Projects Section*/
.projects-wrapper{
    width: 100%;
    position: relative;
    margin-top: 10%;
    margin-bottom:10%;
    top: 20%;
}

.projects-wrapper h1{
    font-size: 6vw;
    font-family: 'Nunito', sans-serif;
    margin-left: 1%;
    color: #1B407C;
    text-decoration: underline;
    text-decoration-color: #41AA54;
}

.portfolio-wrapper {
    width: 100%;
    height: 100%;
    padding-top: 10px;
    padding-bottom:10%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-auto-rows: 100px 100px;
    grid-gap: 25vh;
}

.portfolio-item{
    max-width: 100%;
    height: auto;
    position: relative;
}

.portfolio-item .image img{
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
    object-fit: cover;
}

.middle {
    font-size:3vh;
    font-family: 'Nunito', sans-serif;
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align:center;
}

.portfolio-item:hover .image img{
    opacity: 0.3;
    height: auto;
}

.portfolio-item:hover .middle{
    opacity: 1;
}

/*Suppliers Section*/
.suppliers-wrapper{
    width: 100%;
    position: relative;
    margin: 20vw auto;
    top: 17%;
}

.suppliers-wrapper h1{
    font-size: 6vw;
    font-family: 'Nunito', sans-serif;
    margin-left: 1%;
    color: #1B407C;
    text-decoration: underline;
    text-decoration-color: #41AA54;
}

.suppliers-container {
    padding-top: 2%;
    margin-top: 10px;
    width: 100%;
    background-color: rgba(0, 0, 0, 60%);
}

.supplier-links {
    position: relative;
    display: inline-block;
    justify-content: space-around;
    align-items: center;
    margin-left: 1%;
}

.supplier-links li{
    position: relative;
    list-style: none;
    padding-top: 4vh;
    padding-bottom: 4vh;
}

.supplier-links a{
    font-family: 'Nunito', sans-serif;
    color: #eeeeee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 20px;
    transition: all ease-in-out 250ms;
}

.supplier-links a:hover{
    color:#1B407C;
    font-size: 21px;
    transition: all ease-in-out 250ms;
}

.supplier-links a::after{
    content: '';
    display: block;
    height: 0.5vh;
    background-color: #41AA54;
    position: absolute;
    bottom: 0;
    width: 0%;

    transition: all ease-in-out 250ms;
}

.supplier-links a:hover::after{
    width: 100%;
}

/*Contact Section*/
.contact-wrapper{
    width: 100%;
    position: relative;
    margin: 20vw auto;
    top: 20%;
}

.contact-wrapper h1{
    font-size: 6vw;
    font-family: 'Nunito', sans-serif;
    margin-left: 1%;
    color: #1B407C;
    text-decoration: underline;
    text-decoration-color: #41AA54;
}

.contact-container{
    font-family: 'Nunito', sans-serif;
    padding-top: 2%;
    padding-bottom: 2%;
    margin-top: 10px;
    width: 100%;
    color: #eeeeee;
    background: rgba(0, 0, 0, 60%);
}

.contact-container h2{
    margin-left: 1%;
}

/*Footer Section*/
.foot{
    height: 10vh;
    text-align: center;
    background: rgba(0, 0, 0, 60%);
}

.foot h4{
    padding-top: 20px;
    color: white;
    font-family: 'Nunito', sans-serif;
}

/*fade-in control*/
.fade-in {
    opacity: 0;
    transition: opacity 250ms ease-in;
}

.fade-in.appear {
    opacity: 1;
}

/*Changes the format of sections if screen is too small*/
@media only screen and (max-width: 614px) {

    .logo{
        width:40%;
    }

    .projects-wrapper{
        margin-top: 40%;
    }

    .portfolio-wrapper{
        display: grid;
        margin-left: 1%;
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 80px 80px;
        grid-gap: 4vh
    }

    .portfolio-item{
        max-width: 80%;
    }

    .about-wrapper{
        top:20%;
    }

    .about-wrapper h1{
        font-size: 5vh;
    }

    .about-wrapper h2{
        font-size: 2.8vh;
        line-height: 4vh;
    }

    .projects-wrapper h1{
        font-size: 5vh;
    }

    .suppliers-wrapper h1{
        font-size: 5vh;
    }
    
    .contact-wrapper h1{
        font-size: 5vh;
    }

    .suppliers-wrapper{
        top:20%;
    }

    .middle{
        font-size: 2.5vh;
    }
}