/* -------------------------------------------------------------- */
/* BASIC SETUP */
/* -------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #fff;
    color: #555;
    font-family: 'Lato', 'Arial', 'san-serif';
    font-size: 20px;
    font-weight: 300;
    text-rendering: optimizeLegibility;
}

.clearfix {
    zoom: 1
}

.clearfix:after {
    content: '.';
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}


/* -------------------------------------------------------------- */
/* REUSABLE COMPONENTS */
/* -------------------------------------------------------------- */


.row {
    max-width: 1140px;
    margin: 0 auto;
}

section {
    padding: 4% 0;
    outline: none;
}

.center {
    text-align: center;
}

.caps {
    text-transform: capitalize;
}

.nomargin {
    margin: 0%;
}


/* ------------HEADINGS------------ */

h1 {
    margin-top: 10px;
    margin-bottom: 30px;
    color: black;
    font-size: 160%;
    font-weight: 300;
    word-spacing: 4px;
    line-height: 130%;
}



h2 {
    margin-top: 10px;
    margin-bottom: 30px;
    color: black;
    font-size: 200%;
    font-weight: 300;
    word-spacing: 4px;
}


h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: black;
    font-size: 100%;
    font-weight: 300;
    word-spacing: 3px;
}

h4 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: black;
    font-size: 200%;
    font-weight: 400;
    word-spacing: 4px;
}

h4:after {
    display: block;
    height: 2px;
    background-color: #00c9ed;
    content: " ";
    width: 100px;
    margin: 0 auto;
    margin-bottom: 15px;
    margin-top: 15px;
}

h5 {
    margin-top: 10px;
    margin-bottom: 30px;
    color: black;
    font-size: 200%;
    font-weight: 500;
    word-spacing: 4px;
}


/* ------------PARAGRAPHS------------ */

.long-copy {
    line-height: 145%;
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    margin-bottom: 50px;
}

.page-copy {
    margin-top: 20px;
    padding: 0% 5%;
}

.page-copy:first-child {
     margin-top: 50px;
}

.secondary-copy {
     margin-top: 0px;
     padding: 0% 5%;
}

.center-copy {
    padding: 0% 5%;
}

.about-copy {
    line-height: 150%;
    color: black;
}

.sub-text {
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    line-height: 150%;
    margin-bottom: 4%;
}

/* ------------ICONS------------ */

.icon-big {
    font-size: 200%;
    display: block;
    color: #00c9ed;
    margin-bottom: 10px;
    margin-top: 20px;
}

.icon-small {
    display: inline-block;
    width: 30px;
    text-align: center;
    color: #00c9ed;
    font-size: 120%;
    margin-right: 10px;

    /*secrets to align text and icons*/
    line-height: 120%;
    vertical-align: middle;
    margin-top: -4px;

}

/* ------------LINKS------------ */

a:link,
a:active {
    color: aqua;
    text-decoration: none;
}

a:hover,
a:active {
    color: #555;
}

a:link,
a:visited {
    color: black;
    text-decoration: none;
}

a {
    display: block;
}

/* ------------BUTTONS------------ */

.btn:link,
.btn:visited,
input[type=submit] {
    display: inline-block;
    padding: 8px 30px 10px;
    font-weight: 300;
    text-decoration: none;
    color: black;
    border-radius: 200px;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
}

.btn-full:link,
.btn-full:visited,
input[type=submit] {
    background-image: linear-gradient(#15a0b9, #00c9ed);
    color: white;
    font-size: 80%;
}

.btn:hover,
.btn:active {
    background-color: black;
}

.btn-full:hover,
.btn-full:active,
input[type=submit] {
    background-image: linear-gradient(#1494ac, #18b5d3);
    color: white;
}

.width {
    width: 150px;
}

.margin {
    margin-left: 16px;
}

/* ------------IMAGES------------ */

.main-product-image {
    display: block;
    width: 90%;
    margin: 5% 5%;
    box-shadow: box-shadow 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
  0 12.5px 10px rgba(0, 0, 0, 0.06),
  0 22.3px 17.9px rgba(0, 0, 0, 0.072),
  0 41.8px 33.4px rgba(0, 0, 0, 0.086),
  0 100px 80px rgba(0, 0, 0, 0.12);
}

.last-product-image {
    display: block;
    width: 90%;
    margin: 5% 5% 0 5%;
}

.hero-image {
    display: block;
    width: 100%;
    margin-top: 64px;
}

/* -------------------------------------------------------------- */
/* MAIN NAVIGATION */
/* -------------------------------------------------------------- */

.logo{
    width:200px;
    height: auto;
    margin-top: 4px;
}

.main-nav{
    display: inline-flex;
    justify-content: space-around;
    list-style: none;
    text-decoration: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e8e8e8;
    z-index: 9999;
    
}

.main-nav li {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.main-nav li:last-child {
    margin-right: 0px;
}

.main-nav li a:link,
.main-nav li a:visited {
    padding: 8px 0;
    color: #000000;
    text-decoration: none;
    font-weight: 400; 
    font-size: 80%;
    transition: color 0.5s;
}

.main-nav li a:hover,
.main-nav li a:active{
    color: #18b5d3;
}

/* -------------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------------- */


header {
    background-size: cover;
    background-position: center;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(0, 201, 237, 0.1) 0%, #ffffff 100%);
}

.header-text-box {
    position: absolute;
    width: 1140px;
    display: inline-block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding-left: 5%
}

.title {
    width: 90%;
    margin: 20px 0px 10px 0px;
}

.header-nav {
    float: left;
    list-style: none;
    margin-top: 1%;
    text-decoration: none;
    margin-left: 0.2%;
}

.header-nav li {
    display: inline-block;
    margin-right: 20px;
}

.header-nav li a:link,
.header-nav li a:visited {
    padding: 8px 0;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    font-size: 110%;
    transition: color 0.5s;
}

.header-nav li a:hover,
.header-nav li a:active {
    color: #18b5d3;
}

/* Sticky navigation */

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px #ededed;
    z-index: 9999;
}

.sticky li a:link,
.sticky li a:visited {
    padding: 8px 0;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 400;
    font-size: 80%;
    transition: color 0.5s;
}

.main-nav li a:hover,
.main-nav li a:active {
    color: #18b5d3;
}

.sticky .main-nav {
    margin-top: 20px;
}


.sticky .logo {
    margin-top: 20px;
    margin-bottom: 20px;
}


/* -------------------------------------------------------------- */
/* WORK */
/* -------------------------------------------------------------- */

.section-work {
    padding-top: 7%;
}

.project {
    height: 400px;
    width: 80%;
    position: relative;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(128, 128, 128, 0.20);
    border-radius: 5px;
    margin: 1% 10%;
    transition: transform .5s;
    margin-bottom: 3%;
    display: table;
}


.project:hover {
    transform: scale(1.03);
    color: #18b5d3;
}

.project-copy {
    width: 50%;
    height: 100%;
    padding: 5% 5%;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}

.project-copy p:last-child {
    margin-top: 50px;
}



.project-copy h1 {margin-bottom: 20px;}

.project img {
    display: table-cell;
    vertical-align: top;
    height: 400px;
    width: auto;
    margin: auto;
}

/* -------------------------------------------------------------- */
/* PROCESS */
/* -------------------------------------------------------------- */

.section-how {
    padding: 0px;
    padding-bottom: 60px;
    background-image: linear-gradient(to bottom, #ffffff 0%, rgba(0, 201, 237, 0.15) 100%);
}

.card-holder {
    text-align: center;
}

.card {
    width: 360px;
    height: 90px;
    background-color: #ffffff;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 12px 20px 12px 24px;
    display: inline-block;
    margin: 0.5% 0.5%;
}

.feature-copy {
    float: left;
    margin-left: 24px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left !important;
    word-wrap: break-word;
}

.feature-icon {
    float: left;
}

.feature-heading {
    margin: 4px 24px;
    font-size: 16px;
    font-weight: 500;
    float: left;
}


/* -------------------------------------------------------------- */
/* ABOUT */
/* -------------------------------------------------------------- */

.section-testimonials {
    background-image: linear-gradient(to bottom, #ffffff 0%, rgba(0, 201, 237, 0.15) 100%);
}

.about-image {
    width: 30%;
}
/* -------------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------------- */

footer {
    background-color: #fff;
    padding: 5px;
    border-top: 1px solid #e7e7e9;
    height: 50px;
}

.footercontent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.footernav {
    list-style: none;
    text-decoration: none;
}

.footernav li {
    display: inline-block;
    padding-right: 10px;
}



.footernav li img {
    width:24px;
    height: auto;
}

footer p {
    color: #4e4e4e;
    font-size: 70%;
}


/* -------------------------------------------------------------- */
/* DIALOG */
/* -------------------------------------------------------------- */

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: #3498db;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 9999
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.modal-copy {
    line-height: 145%;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
}

.modal-header {
    line-height: 145%;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 400;
    font-size: 24px;
}

.popup .btn-full {
    margin-bottom: 20px;
    line-height: 150%;
}
