* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}  

.header{
    min-height: 650px;
    width: 100%;
    background-image: linear-gradient(rgba(116, 125, 159, 0.2), rgba(86, 97, 139, 0.1)),url(images/office.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    height: 15px;
    box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
    background-color: #8fbbe8;
}   
nav img{
    width: 60px;
    margin-left: -70px;
    margin-top: 3px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.60s;
}
.nav-links ul li:hover::after{
    width: 100%;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 30px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin-top: -50%;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background:#f44336;
    transition: 2s;
}
nav .fa{
    display: none;
}

@media (min-width: 1600px) {
    .header{
        min-height: 750px;
    }
}

.services{
    display: grid;
    padding: 0px 16.5% 1px;
    position: relative;
    height: 100%;
}
.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
    margin-top: 200px;
    align-items: center;
    box-sizing: border-box;
    gap: 30px; 
    position: relative;
    justify-content: center;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

/* ALL boxes - box1 through box8 */
.box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
    width: 400px;
    min-height: 325px;
    height: auto;
    background: #083763;
    border-radius: 12px;
    transition: 0.52s;
    padding-bottom: 20px;
}

.services h1{
    margin-top: 100px;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
}
.services h2{
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
    color: #BDBDBD;
}

.container p{
    color: #BDBDBD;
    font-size: 20px;
    font-weight: 250;
    line-height: 40px;
    margin-top: 20px;
    text-align: left;
    display: block;
    padding-left: 20px;
}
.container h3{
    text-align: center;
    font-weight: 600;
    font-size: 23px;
    color: #ffffff;
    margin: 10px 0px;
    margin-top: 20px;
}
.back-video{
    position: absolute;
    z-index: -1;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    margin-top: 0px;
    object-fit: cover;
}
.color-overlay{
    position: absolute;
    z-index: -1;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    background-color: #0077B3;
    opacity: 0.88;   
    overflow-x: hidden;
    margin-top: 0px;
}

/* Hide additional text for all boxes */
.box1 .additional-text,
.box2 .additional-text,
.box3 .additional-text,
.box4 .additional-text,
.box5 .additional-text,
.box6 .additional-text,
.box7 .additional-text,
.box8 .additional-text {
    display: none; 
}

/* Show additional text when expanded */
.box1 .additional-text.show,
.box2 .additional-text.show,
.box3 .additional-text.show,
.box4 .additional-text.show,
.box5 .additional-text.show,
.box6 .additional-text.show,
.box7 .additional-text.show,
.box8 .additional-text.show {
    color: #BDBDBD;
    font-size: 20px;
    font-weight: 250;
    line-height: 40px;
    margin-top: 20px;
    text-align: left;
    display: block;
    padding-left: 19px;
}

.read-more-btn {
    background-color: #0077B3;
    border: none;
    width: 110px;
    height: 32px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    margin-top: 25px;
    color: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    transition: background 0.3s;
}
.read-more-btn:hover {
    background-color: #005a8a;
}

.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover, .box6:hover, .box7:hover, .box8:hover {
    box-shadow: 0 0 20px 20px rgba(2, 57, 91, 0.4);
}

.services p{
    font-size: 20px;
    line-height: 35px;
    display: block;
    max-width: 94%;
}

@media(max-aspect-ratio: 16/9){
    .back-video{
        width:auto;
        min-height: 100%;
    }
}

@media (min-width: 1150px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        justify-content: center;
        align-items: center;
        gap: 50px;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 375px;
        min-height: 325px;
        height: auto;
        align-items: center;
    }
    .services h1{
        font-size: 50px;
    }
}

@media (min-width: 1150px) and (max-width: 1165px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 370px;
        min-height: 320px;
        height: auto;
        align-items: center;
    }
}

@media (min-width: 992px) and (max-width: 1149px) {
    .container {
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: calc((100% - 30px) / 2);
        min-height: 300px;
        height: auto;
        align-items: center;
    }
}

@media (min-width: 1612px) {
    .container {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: repeat(3, minmax(400px, 1fr));
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 375px;
        min-height: 325px;
        height: auto;
    }
}

@media(min-aspect-ratio: 16/9){
    .back-video{
        width:100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9){
    .container{
        grid-template-columns: 2fr;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        box-sizing: border-box;
        margin-top: 50px;
        align-items: center;
    }
}

@media (min-width: 1600px) {
    .color-overlay {
        min-height: 100%;
        margin-top: 0px;
    }
    .back-video {
        height: 100%;
        margin-top: 0px;
        width: 100%;
        object-fit: cover;
    }
    .container {
        margin-top: 75px;
    }
}

@media(max-width: 1200px){
    .container{
        justify-content: center;
        align-items: center;
        display: flex;
        grid-template-columns: 2fr;
        box-sizing: border-box;
        gap: 30px;
    }
    .services h1{
        font-size: 40px;
    }
    .services h2 {
        font-size: 15px;
    }
    .services h3{
        font-size: 25px;
    }
    .services p{
        font-size: 17px;
        line-height: 33px;
        display: block;
        max-width: 91%;
    }
    .read-more-btn{
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media (max-width: 992px) {
    .container {
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: calc((100% - 30px) / 2);
        min-height: 300px;
        height: auto;
        align-items: center;
    }
    .services h1{
        font-size: 40px;
    }
    .services h2 {
        font-size: 15px;
    }
    .services h3{
        font-size: 22px;
    }
    .services p{
        font-size: 15.5px;
        line-height: 33px;
        display: block;
        max-width: 91%;
    }
    .read-more-btn{
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media(max-width: 900px){
    .container{
        justify-content: center;
        align-items: center;
        display: flex;
        grid-template-columns: 2fr;
        box-sizing: border-box;
        gap: 30px;
    }
    .services h1{
        font-size: 35px;
    }
    .services h2 {
        font-size: 12px;
    }
    .services h3{
        font-size: 25px;
    }
    .services p{
        font-size: 19.5px;
        line-height: 30px;
        display: block;
        max-width: 91.75%;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 375px;
        min-height: 325px;
        height: auto;
        align-items: center;
    }
    .read-more-btn{
        margin: 35px auto;
        width: 100px;
        height: 40px;
        font-size: 14px;
        display: block;
    }
}

@media(max-width: 600px){
    .container{
        justify-content: center;
        align-items: center;
        display: flex;
        grid-template-columns: 2fr;
        box-sizing: border-box;
        gap: 30px;
    }
    .services h1{
        font-size: 30px;
    }
    .services h2 {
        font-size: 15px;
    }
    .services h3{
        font-size: 25px;
    }
    .services p{
        font-size: 16px;
        line-height: 30px;
        display: block;
        max-width: 90%;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 325px;
        min-height: 300px;
        height: auto;
        align-items: center;
    }
    .read-more-btn{
        margin: 30px auto;
        display: block;
    }
}

@media(max-width: 430px){
    .services{
        text-align: center;
        padding: 14px;
    }
    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        gap: 25px;
    }
    .services h1{
        font-size: 26px;
    }
    .services h2 {
        font-size: 14px;
    }
    .services h3{
        font-size: 22px;
    }
    .services p{
        font-size: 16px;
        line-height: 25px;
        display: block;
        max-width: 90%;
    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        width: 290px;
        min-height: 275px;
        height: auto;
        box-sizing: border-box;
    }
    .read-more-btn{
        margin: 30px auto;
        width: 75px;
        font-size: 11px;
        height: 25px;
        box-sizing: border-box;
        display: block;
    }
}

/* FOOTER */
.footer-distributed{
    background: #282828;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font: bold 16px sans-serif;
    padding: 20px 20px;
}
.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
    display: inline-block;
    vertical-align: top;
}
.footer-distributed .footer-left{
    width: 40%;
}
.footer-distributed h3{
    color: #ffffff;
    font: normal 36px 'Open Sans';
    margin: 0;
}
.footer-distributed h3 span{
    color: lightseagreen;
}
.footer-distributed .footer-links{
    color: #ffffff;
    margin: 20px 0 12px;
    padding: 0;
}
.footer-distributed .footer-links a{
    display:inline-block;
    line-height: 1.8;
    font-weight:400;
    text-decoration: none;
    color: inherit;
}
.footer-distributed .footer-company-name{
    color: #92999f;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}
.footer-distributed .footer-center{
    width: 35%;
}
.footer-distributed .footer-center i{
    background-color: #33383b;
    color: #ffffff;
    font-size: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 10px 15px;
    vertical-align: middle;
}
.footer-distributed .footer-center i.fa-envelope{
    font-size: 17px;
    line-height: 38px;
}
.footer-distributed .footer-center p{
    display: inline-block;
    color: #ffffff;
    font-weight:400;
    vertical-align: middle;
    margin:0;
}
.footer-distributed .footer-center p span{
    display:block;
    font-weight: normal;
    font-size:14px;
    line-height:2;
}
.footer-distributed .footer-center p a{
    color: lightseagreen;
    text-decoration: none;
}
.footer-distributed .footer-links a:before {
    content: "|";
    font-weight:300;
    font-size: 20px;
    left: 0;
    color: #fff;
    display: inline-block;
    padding-right: 5px;
}
.footer-distributed .footer-links .link-1:before {
    content: none;
}
.footer-distributed .footer-right{
    width: 20%;
}
.footer-distributed .footer-icons{
    margin-top: 25px;
}
.footer-distributed .footer-icons a{
    display: inline-block;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: #33383b;
    border-radius: 2px;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 35px;
    margin-right: 3px;
    margin-bottom: 5px;
}

@media(max-width:1200px){
    nav{
        display: flex;
        padding: 2% 6%;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
        background-color: #8fbbe8;
    }   
    nav img {
        padding-left: 35px;
        width: 75px;
        margin-top: 1px;
    }
}

@media(max-width:1000px){
    nav{
        display: flex;
        padding: 2% 6%;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
        background-color: #8fbbe8;
    }   
    nav img {
        padding-left: 55px;
        width: 65px;
        margin-top: 1px;
    }
}

@media (max-width: 880px) {
    .footer-distributed{
        font: bold 14px sans-serif;
    }
    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-distributed .footer-center {
        display: inline-block;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }
    .footer-distributed .footer-center i{
        align-items: center;
        justify-content: center;
        background-color: #33383b;
        color: #ffffff;
        font-size: 25px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        line-height: 38px;
        margin: 10px;
    }
    .phone{
        padding-right: 60px;
    }
    .envelope{
        margin-right: 10px;
    }
    .footer-center p{
        font-size: 15px;
    }
}

@media(max-width:768px){
    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-distributed .footer-center {
        display: inline-block;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }
    .footer-distributed .footer-center i{
        align-items: center;
        justify-content: center;
        background-color: #33383b;
        color: #ffffff;
        font-size: 25px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        line-height: 38px;
        margin: 10px;
    }
    .phone{ padding-right: 60px; }
    .envelope{ margin-right: 10px; }
    .footer-center p{ font-size: 15px; }
    .footer-company-about{ display: none; }
    nav{
        display: flex;
        padding: 2% 6%;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
        background-color: #8fbbe8;
    }   
    nav img {
        padding-left: 55px;
        width: 60px;
        margin-top: 1px;
    }
}

@media (max-width: 700px){
    .nav-links ul li{ display: block; }
    .nav-links{
        position: fixed;
        background: #f20000;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{ padding: 30px; }
}

@media(max-width:600px){
    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-distributed .footer-center i{
        background-color: #33383b;
        color: #ffffff;
        font-size: 25px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        line-height: 38px;
        margin: 10px;
    }
    .footer-center p{ font-size: 15px; }
    .phone{ padding-right: 60px; }
    .envelope{ padding-right: 5px; }
    nav{
        height: 40px;
        background-color: #8fbbe8;
    }
    nav img {
        padding-left: 55px;
        width: 55px;
        margin-top: 1px;
    }
    .header{ min-height: 500px; }
}

@media(max-width:430px){
    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-distributed .footer-center i{
        background-color: #33383b;
        color: #ffffff;
        font-size: 25px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        line-height: 38px;
        margin: 10px;
    }
    .phone{ padding-right: 65px; }
    .envelope{ padding-right: 10px; }
    .footer-links{ font-size: 14px; }
    .footer-company-name{ font-size: 13px; }
    .footer-center p{ font-size: 14px; }
    nav{
        height: 40px;
        background-color: #8fbbe8;
    }
    nav img {
        padding-left: 55px;
        width: 50px;
        margin-top: 1px;
    }
    .header{ min-height: 400px; }
}