:root {
    --primary-color: #70D7F7;
    --light-bg-color: #F7FEFF;
    --footer-color: #0B3C9B
    ;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body,
div {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    color: #000000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Open Sans", Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Scrollbar - Not neccessary */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    /* box-shadow: inset 0 0 5px grey; */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(112, 215, 247, 0.8);
}

.nav {
    width: 80%;
    margin: auto;
    height: 50px;
    background-color: white;
    position: relative;
    margin-top: 30px;
}

.nav>.nav-header {
    display: inline;
}

.nav>.nav-header>.nav-title {
    display: inline-block;
    padding: 10px;

    & img {
        width: 100%;
    }
}

.nav>.nav-btn {
    display: none;
}

.nav>.nav-links {
    display: inline;
    float: right;
    font-size: 17px;
}

.nav>.nav-links>a {
    display: inline-block;
    padding: 10px 12px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.nav>.nav-links a:last-child {
    color: white;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
}

.nav>.nav-links a:last-child:hover {
    color: var(--primary-color);
    background-color: white;
}

.nav>.nav-links>a:hover {
    color: var(--primary-color);
}

.nav>#nav-check {
    display: none;
}

@media (max-width:600px) {
    .nav>.nav-btn {
        display: inline-block;
        position: absolute;
        right: 0px;
        top: 0px;
    }

    .nav>.nav-btn>label {
        display: inline-block;
        width: 50px;
        height: 50px;
        padding: 13px;
    }

    .nav>.nav-btn>label:hover,
    .nav #nav-check:checked~.nav-btn>label {
        background-color: rgba(112, 215, 247, 0.2);
    }

    .nav>.nav-btn>label>span {
        display: block;
        width: 25px;
        height: 10px;
        border-top: 2px solid #000000;
    }

    .nav>.nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background-color: white;
        height: 0px;
        transition: all 0.3s ease-in;
        overflow-y: hidden;
        top: 70px;
        left: 0px;
    }

    .nav>.nav-links>a {
        display: block;
        width: 100%;
    }

    .nav>#nav-check:not(:checked)~.nav-links {
        height: 0px;
    }

    .nav>#nav-check:checked~.nav-links {
        height: 50vh;
        overflow-y: auto;
    }
}

.hero-section {
    width: 80%;
    margin: auto;
    margin-top: 80px;
    margin-bottom: 150px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.hero-section .hero-left {
    align-self: center;
    margin-top: 100px;

    & h4 {
        color: var(--primary-color);
        font-weight: 800;
        font-size: 1.3vw;
    }

    & h1 {
        font-size: 4vw;
        font-weight: 750;
        letter-spacing: 2%;
    }

    & p {
        width: 70%;
        font-size: 1.1vw;
        color: #282828;
    }

    & button {
        margin-top: 20px;
        padding: 15px 25px;
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        font-size: 1vw;
        border: 2px solid var(--primary-color);
        border-radius: 30px;
        transition: all 0.4s ease-in-out;

        &:hover,
        &:focus {
            cursor: pointer;
            box-shadow: inset 11.5em 0 0 0 white;
            color: var(--primary-color);
        }
    }
}

.hero-section .hero-right {
    position: relative;
}

.hero-section .hero-right img {
    width: 90%;
    float: right;
}

.hero-section .hero-right img.first-img {
    position: absolute;
    width: 48%;
    bottom: -60px;
    left: -60px;
}

.about-section {
    background-color: var(--light-bg-color);
    padding: 50px 0 50px 0;
}

.about-section .container {
    margin: auto;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.about-section .about-right {
    align-self: center;
    float: right;
    width: 50%;
    margin-left: 50px;

    & h1 {
        font-size: 3.5vw;
        font-weight: 700;
        letter-spacing: 2%;
    }

    & span {
        position: relative;
    }

    & h1 span::after {
        display: block;
        content: '';
        width: 100%;
        height: 8px;
        background: var(--primary-color);
        position: absolute;
        bottom: 3px;
        left: 0;
    }

    & p {
        font-size: 1.3vw;
        font-weight: 400;
        line-height: 30px;
    }

    & a {
        font-weight: 600;
        text-decoration: none;
        color: var(--primary-color);
    }
}

.about-section .about-left {
    position: relative;
}

.about-section .about-left .bg-rect {
    width: 300px;
    height: 500px;
    border: 6px solid var(--primary-color);
    position: absolute;
    left: 60px;
    top: 30px;
    z-index: 1;
}

.about-section .about-left .about-images {
    position: relative;
    z-index: 999;

    & img {
        width: 280px;
        height: 280px;
    }

    & .offset-img {
        position: absolute;
        top: 140px;
        left: 140px;
        border: 6px solid white;
    }

    & :last-child {
        margin-top: 70px;
        border: 6px solid white;
    }
}

.services-section {
    padding: 100px 0 50px 0;

    & a {
        font-weight: 600;
        text-decoration: none;
        color: var(--primary-color);
    }

    & h1 {
        font-size: 3.5vw;
        font-weight: 700;
        letter-spacing: 2%;
    }
}

.services-section .container {
    margin: auto;
    width: 80%;
}

.services-section .services-cards {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.services-section .service-card {
    border-radius: 20px;
    padding: 40px 20px;
    margin: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;


    &:first-child {
        margin-left: 0;
    }


    & img {
        width: 80px;
        padding: 10px;
    }

    & .service-icon {
        width: 100px;
        padding: 10px;
        background-color: var(--light-bg-color);
        border-radius: 50%;

        &.second {
            background-color: #F8F7FF;
        }

        &.third {
            background-color: #F5EFFF;
        }
    }

    & h3 {
        color: #1F5769;
        font-size: 1.3vw;
        margin: 20px 0;
    }

    & p {
        font-size: 1vw;
        color: #808082;
        margin-bottom: 30px;
    }
}

.contact-section {
    background-image: url('resources/homepage/contact-bg.png');
    background-repeat: no-repeat;
    background-position: 100% 0;
    background-size: 40%;
    background-color: var(--light-bg-color);
    padding: 50px 0 50px 0;

    & h1 {
        font-size: 3.5vw;
        font-weight: 700;
        letter-spacing: 2%;
    }
}

.contact-section .container {
    margin: auto;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.contact-section .contact-left {
    width: 40%;

    & p {
        color: #808082;
        font-weight: 400;
        font-size: 16px;
    }

    & .contacts-tag {
        font-size: 14px;
    }
}

.contact-details {
    margin-bottom: 30px;
}

.contact {
    width: 100%;
    margin-bottom: 10px;
}

p.contact-icon {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px;

    & i {
        margin-right: 7px;
    }
}

.contact-1 {
    font-size: 18px !important;
    font-weight: 400;
    margin-left: 30px;
    margin-top: 0;
    margin-bottom: 0;
}

.contact-left h4 {
    font-size: 16px;
    font-weight: 800;
}

.contact-left .social-icons {
    font-size: 26px;
    margin-top: 20px;

    & a {
        margin-right: 20px;
        color: var(--primary-color);

        &:hover {
            opacity: .7;
        }
    }
}

.contact-right {
    margin-left: 50px;

    & form {
        background-color: white;
        padding: 20px 25px;
        border-radius: 7px;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

        & h3 {
            font-size: 24px;
            font-weight: 650;
            margin-bottom: 20px;
        }

        >div {
            margin-bottom: 15px;
        }

        & input,
        textarea {
            width: 360px;
            padding-left: 10px;
            margin-top: 7px;
            background-color: #F9F5FF;
            border: 1px solid #d9d9d9;
            border-radius: 5px;

            &:focus {
                outline: 1px solid var(--primary-color);
            }
        }

        & input {
            height: 40px;
        }

        & label {
            font-size: 14px;
            font-weight: 500;
        }

        & .name-container {
            display: flex;
            flex-direction: row;
            justify-content: space-between;

            & input {
                width: 170px;
            }

            & span {
                font-size: 11px;
                color: #808082;
            }
        }

        & button {
            background-color: white;
            border: 0;
            font-weight: 600;
            font-size: 14px;
            & span {
                position: relative;

                &::after {
                    display: block;
                    content: '';
                    width: 90%;
                    height: 3px;
                    background: var(--primary-color);
                    position: absolute;
                    bottom: -2px;
                    left: 0;
                }
            }

            &:hover{
                cursor: pointer;
                & span::after {
                    transition: all 0.3s ease-in-out;
                    width: 100%;
                    bottom: -5px;
                }
            }
        }
    }
}

footer{
    background-color:  var(--footer-color);
    margin-bottom: 0;
    padding: 30px 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    & .links a{
        color: white;
        text-decoration: none;
        margin-right: 20px;
        transition: all 0.3s ease-in-out;

        &:hover{
            color: var(--primary-color);
        }

        &:last-child{
            margin-right: 0;
        }
    }

    & .copyright{
        color: white;

        & .rights{
            margin-left: 15px;
        }
    }
}

