* {
    box-sizing: border-box;
}

/* Base Styles : body, header, nav, section, etc. */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight:900;
    font-size: 1em;
    letter-spacing: 0.08em;
}


p {
    letter-spacing: 0.10em;
    font-weight: 400;
    font-size: 1.2em;
}

.content {
    width: 60%;
    line-height: 1.5em;
}


header {
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/banner_lg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px;
    color: white;
}

header a{
    text-align: center;
}

#contact-header {
    background-color: black;
    background-image: none;
}


h1 {
    text-transform: uppercase;
    font-size: 3em;
    letter-spacing: 0.10em;
    line-height: 1.5em;
    margin-bottom: 0px;
}

section:nth-child(even) h1 {
    text-align: center;
}


.heading-emphasis {
    font-size: 2em;
}

.heading-line {
    width: 100px;
    height: 5px;
    background-color: #F04C23;
    margin-bottom: 40px;
}



.top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 600px;

}

.cta h1 {
    text-transform: uppercase;
    font-size: 4em;
    text-align: center;
    letter-spacing: 0.15em;
    line-height: 1.5em;
}

#what-we-do {
    opacity: 1.0;
    font-size: 2em;
    transition: opacity ease 1s;
}

.fade-out {
    opacity:0.0;
    transition: opacity ease 1s;

}

.cta>h1>span:nth-child(3) {
    color:#F04C23;
}
nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.8));
    transition: width 1s;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav>a {
    display: none;
    text-transform: uppercase;
    padding: 20px 0px 20px 0px;
    font-size: 3em;
    letter-spacing: 0.05em;
    color: white;
    text-decoration-line: none;
    
}

nav>a:hover {
    text-decoration: line-through;
    text-decoration-color: orangered;
}

.visible {
    display: block;
}

.open {
    width: 100%;
    transition: width 1s;
}

section {
    padding: 40px;
    top: 20;
}

section:nth-child(odd) {
    background-color: #000000;
    color: white;
    -webkit-clip-path: polygon(90% 0, 100% 5%, 100% 95%, 10% 100%, 0 90%, 0 10%);
    clip-path: polygon(90% 0, 100% 5%, 100% 95%, 10% 100%, 0 90%, 0 10%);
}

article {
    margin: 50px;
    padding: 50px;
}

section:nth-child(even) > article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section:nth-child(odd) > article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

section:nth-child(even) > .left {
   align-items: flex-start;
}

section:nth-child(even) > .left > h1 {
   text-align: left;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding-top: 20px;
    text-align: center;
}


/* SVG Image Styles */

.logo-symbol {
    width: 60px;
}

.back-symbol {
    color:white;
    font-size: 1.5em;
    text-decoration: none;
    padding: 30px 0px 30px 0px;
    font-weight: normal;
}

.back-symbol > i {
    padding-right: 10px;    
}


.menu-button {
    z-index: 102;
}

.menu-button > img {
    width: 60px;
}

/* Portfolio Styles */

.portfolio-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.portfolio-items > a {
    height: 400px;
    width: 400px;
    text-decoration: none;
}

.portfolio-item{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}



.portfolio-title {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.0);
    text-decoration: none;
}

.portfolio-title > h1 {
    color: rgba(255,255,255,0.0);
    font-size: 2em;
    font-weight:400;
    margin-top: 0;
}

.portfolio-title > h2 {
    color: rgba(255,255,255,0.0);
    font-size: 1.2em;
    font-weight: 100;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 0;
}

.portfolio-item:hover .portfolio-title {
    transition: all ease 1s;
    background-color: rgba(0,0,0,0.8);
}

.portfolio-item:hover h1{
    transition: all ease 1s;
    color: rgba(255,255,255,1.0);
}

.portfolio-item:hover h2{
    transition: all ease 1s;
    color: rgba(255,255,255,1.0);
}

.portfolio-item:first-of-type {
    background-image: url("../img/mfat_lg.png");
}

.portfolio-item:nth-of-type(2) {
    background-image: url("../img/psquared_lg.png");
}

.portfolio-item:nth-of-type(3) {
    background-image: url("../img/fcmaster_lg.png");
}

/* Service Icon Styles */

.services-list {
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    margin-top: 50px;
}

.service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    padding: 25px;
}

.title {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.circle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    border: 3px solid #9F9F9F;
    border-radius: 100%;
}

.number {
    padding: 1em;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

/* Button Styles */

.button {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.3em;
    padding: 20px;       
    margin-top: 20px;
    text-decoration: none;
    
}

.white-button {
    border: solid white 2px;
    color: white;
    transition: all ease 0.5s;

}

.white-button:hover {
    color: black;
    background-color: white;
    transition: all ease 0.5s;
}

.black-button {
    border: solid black 2px;
    color: black;
    transition: all ease 0.5s;
    display: none;
    transition: all ease 0.5s;
}

.black-button:hover {
    color: white;
    background-color: black;
    transition: all ease 0.5s;
}

/* Dot Nav Styles */

.dot-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 100;
    margin: 10px 10px 10px 30px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50px;
    background-color: #9F9F9F;
    margin: 10px;
    transition: background-color ease 0.5s;
}

.dot:first-of-type {
    background-color: orangered;
}

/* Project Page Styles */

.project-image {
    height: 400px;
    width: 100%;
    background-color: black;
    margin-bottom: 100px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.project-image#mfat {
    background-image:url("../img/mfat_rectangle.png");
}

.project-image#psquared {
    background-image:url("../img/psquared_rectangle.png");
}

.project-image#fcmaster {
    background-image:url("../img/fcmaster_rectangle.png");
}

.project-name {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
    height: 400px;
}

.project-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.project-info > .about {
    width: 70%;
}


.details h2 {
    font-weight: normal;
    font-size: 1.3em;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.project-labels {
    font-weight: bold;
}

.livesite-button {
    display: none;
}

/*Contact Form Styles*/

form {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    letter-spacing: 0.1em;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin: 20px 0px 20px 0px;
}
    
label {
    text-transform: uppercase;
    font-size: 1.5em;
    padding-bottom: 10px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    font-size: 1.3em;
    background-color:lightgrey;
    border: none;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;

}

input[type="submit"] {
    font-family: 'Montserrat', sans-serif;
    background-color:white;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
}

#subject{
    width: 100%;
}

textarea {
    min-height: 400px;
    width: 100%;
    font-size: 1.3em;
    background-color:lightgrey;
    border: none;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    resize: none;
}

textarea:focus {
    outline: none;
}

.form-field:nth-of-type(1) {
    flex-basis: 45%;
}
.form-field:nth-of-type(2) {
    flex-basis: 45%;
}

.form-field:nth-of-type(3) {
    flex-basis: 100%;
}
.form-field:nth-of-type(4) {
    flex-basis: 100%;
}

.form-field:last-of-type {
    display: flex;
    flex-direction: column;
}

.required {
    color: orangered;
    padding-left: 3px;
}

.form-field:last-of-type > .black-button {
    display: block;
    padding: 20px 40px 20px 40px;
    
}

.form-response > i {
    font-size: 5em;
}

.form-response > p {
    width: 60%;
}


/* Contact Footer Styles */

.contact-footer {
    background-color: black;
    color: white;
    clip-path: polygon(100% 25%, 75% 0, 0 25%, 0 100%, 100% 100%);
    -webkit-clip-path: polygon(100% 25%, 75% 0, 0 25%, 0 100%, 100% 100%);
    padding-top: 100px;
}

/* Social Media Icon Styles */

.sm-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.sm-icons a {
    width: 60px;
    padding: 20px 10px 10px 10px;

}

/* Mobile Styles */

@media(max-width: 990px) {
    
    .logo-symbol {
        width: 125px;
    }
    
    .back-symbol {
        font-size: 3em;
    }

    .menu-button > img {
        width: 125px;
    }
    
    h1 {
        font-size: 4em;
        margin-top: 100px;
    }
    
    h2 {
        font-size: 3em;
    }
    
    p {
        font-size: 2.5em;
    }
    
    article {
        margin: 50px;
        padding: 100px 0px;
    }
    
    article.left {
        padding: 0;
    }
    
    .content {
        width: 100%;
    }

    .heading-emphasis {
        font-size: 1.65em;
    }

    .heading-line {
        width: 200px;
        height: 10px;
        background-color: #F04C23;
        margin-bottom: 40px;
    }
    
    .sm-icons > a {
        width: 125px;
        padding: 20px 10px 10px 10px;
    }
    
    /*Mobile - CTA Styles */
    
    .cta h1 {
        font-size: 4.5em;
    }
    
    #what-we-do {
        font-size: 1.8em;
    }
    
    /* Mobile - Button Styles */
    
    .button {
        font-size: 3em;
        margin-top: 80px;
        padding: 50px;

    }
    
    /* Mobile - Portfolio Styles */
    
    .portfolio-items {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    
    .portfolio-items a {
        height: 800px;
        min-width: 800px;
        background-color: black;
        margin: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .portfolio-title {
        height: 25%;
        background-color: rgba(0,0,0,0.8);
    }

    .portfolio-title > h1 {
        color: rgba(255,255,255,1.0);
        font-size: 2.5em;
    }

    .portfolio-title > h2 {
        color: rgba(255,255,255,1.0);
        font-size: 2em;

    }
    /* Mobile - Service Icon Styles */
    
    .services-list {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    
    .service-icon {
        width: 100%;
        margin: 50px 0px 50px 0px;
    }
    
    .circle {
        height: 300px;
        width: 300px;
    }
    
    /* Mobile - Dot Navigation Styling */
    .dot-nav {
        display: none;
    }
    
    /*Mobile - Form Styling*/
    
    form {
        display: flex;
        flex-direction: column;
        align-items:center;
        justify-content: space-around;
    }
    
    .form-field {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 6em;
    }
    label {
        font-size: 3em;
        padding: 40px;
    }
    
    input[type="text"] {
        font-size: 3em;
        padding: 50px;
    }
    
    input[type="submit"] {
        width: 70%;
        margin: auto;
        padding: 30px;
        height: 2.7em;
        font-size: 3.5em;
    }
    textarea {
        overflow:scroll;
        font-size: 3em;
        padding: 20px;
        min-height: 700px;
    }
    
    .form-response > p {
        width: 100%;
    }
    
    /*Mobile - Nav Styles */
    nav>a {
        font-size: 5em;
        padding: 50px;
    }
    
    /* Project Styles */
    .project-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-info > .about {
        width: 100%;
        margin-top: 50px;
        line-height: 1.5;
    }
    
    .details {
        font-size: 2em;
    }

    .top {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-content: center;
        transition: background ease 0.5s;
        padding: 50px;
        z-index: 105;
    }  

    .cta {
        min-height: 700px;
        margin-top: 100px;

    }

    nav {
        padding-top: 100px;
    }

    span.warning {
        font-size: 2em;
        letter-spacing: 0.10em;
    }

    header {
        background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(../img/banner_sm.png);

    }

    .portfolio-item:first-of-type {
        background-image: url(../img/mfat_sm.png);
    }

    .portfolio-item:nth-of-type(2) {
        background-image: url(../img/psquared_sm.png);
    }

    .portfolio-item:nth-of-type(3) {
        background-image: url(../img/fcmaster_sm .png);
    }

    .fixed-nav {
        background-color: black;
        transition: background ease 0.5s;
    }

    #contact-page {
        padding-top: 100px;
    }
}
