/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font: normal 16px sans-serif;
    color: #555;
}


ul, nav {
    list-style: none;
}

a { 
    text-decoration: none;
    opacity: 0.75;
    color: #fff;
}

a:hover {
    opacity: 1;
}
a.btn{
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    background-color: #3f51b5;
    opacity: 1;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 80px;
}

section:not(.hero):nth-child(even) {
    background-color: #f5f5f5;
}

.grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

hr {
    width: 250px;
    height: 3px;
    background-color: #607d8b;
    border: 0;
    margin-bottom: 50px;
}

section h3.title {
    text-transform: capitalize;
    font: bold 32px "Open Sans", sans-serif;
    margin-bottom: 30px;
    text-align: center;
}

section p {
    max-width: 775px;
    line-height: 2;
    padding: 0 20px;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 800px) {
    section {
        padding: 50px 20px;
    }
}

/* Header styles */
header {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 100px 0;
    animation: .5s fadein 0.5s forwards;
    opacity: 0;
    color: #fff;
    z-index: 1;
}

@keyframes fadein {
    100% {
        opacity: 1;
    }
}

header h2 {
    font-family: "Quicksand, sans-serif";
    margin-left: 60px;
    margin-top: 15px;
}

header nav {
    display: flex;
    margin-right: -15px;
}

header nav li {
    margin: 0 15px;
}

@media (max-width: 800px) {
    header {
        padding: 20px 50px;
        flex-direction: column;
    }
}
header div {
    height: 40px;
}
.boat {
    position: absolute; 
    align-items: center;
    height: 40px;
    padding-right:0px;
    vertical-align: baseline;
    margin-right: auto;
}

/* Hero styles */

.hero {
    position: relative;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -1;
    background-color: #80a3db;
}

.hero h1 {
    font: bold 60px "Open Sans", sans-serif ;
    margin-bottom: 15px;
}

.hero h3 {
    font: normal 28px "Open Sans", sans-serif ;
    margin-bottom: 40px;
}

.hero a.btn {
    padding: 20px;
}

@keyframes slidefade {
    100% {
        opacity: 1;
        margin: 0;
    }
}

@media (max-width: 800px) {
    .hero {
        min-height: 600px;
    }
    .hero h1 {
        font-size: 48px;
    }
    .hero h3 {
        font-size: 24px;
    }
    .hero a.btn {
        padding: 15px 40px;
    }
}

/* Projects Section */

.projects .grid li {
    height: 350px;
    padding: 20px;
    background-clip: content-box;
    background-size: cover;
    background-position: center;
}

.projects .grid li.small {
    flex-basis: 30%;
}

.projects .grid li.large {
    flex-basis: 70%;
}

@media (max-width: 1100px) {
    .projects .grid li.small,
    .projects .grid li.large {
        flex-basis: 50%;
    }
}

@media (max-width: 800px) {
    .projects .grid li.small,
    .projects  .grid li.large {
        flex-basis: 100%;
    }
}

/* Offerings section */

.offerings .grid li {
    padding: 50px;
    flex-basis: 50%;
    text-align: center;
}

.offerings .grid li i {
    color: #607d8b;
}

.offerings .grid li h4 {
    font-size: 30px;
    margin: 25px 0;
}

@media (max-width: 800px) {
    .offerings .grid li {
        flex-basis: 100%;
        padding: 20px;
    }
}

/* About us section */

.about-us .quote {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.5;
    margin: 40px 0 25px;
}


@media (max-width: 800px) {
    .about-us .quote {
        font-size: 22px;
        font-weight: 300;
        line-height: 1.5;
        margin: 40px 0 25px;
    }
    .about-us .author {
        font-size: 14px;

    }
}
/* Testimonial section */

.testimonials .quote {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.5;
    margin: 40px 0 25px;
}

@media (max-width: 800px) {
    .testimonials .quote {
        font-size: 22px;
        font-weight: 300;
        line-height: 1.5;
        margin: 40px 0 25px;
    }
    .testimonials .author {
        font-size: 14px;

    }
}

/* Contact section */

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 60%;
}

.contact form .btn {
    padding: 18px 42px;
}

.contact form input {
    padding: 15px;
    margin-right: 30px;
    font-size: 18px;
    color: #555;
    flex: 1;
}
.contact .email{
    color: #555;
}

@media (max-width: 1000px) {
    .contact form input{
        flex-basis: 100%;
        margin: 0 0 20px 0;
    }
}

/* Footer section */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #607d8b;
    color: #fff;
    padding: 20px 10px;
}

footer ul {
    display: flex;
}

footer ul li {
    margin-left: 16px;
}

footer p {
    text-transform: uppercase;
    font-size: 14px;
    opacity: 0.6;
    align-self: center;
}



@media (max-width: 1100px) {
    footer {
        flex-direction: column;
    }
    footer p {
        text-align: center;
        margin-bottom: 20px;
    }

    footer ul li {
        margin: 0 8px;
    }
}
