﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --left-bg-color: rgba(87,84, 236, 0.7);
    --right-bg-color: rgba(43, 43, 43, 0.8);
    --left-btn-hover-color: rgba(87,84, 236, 1);
    --right-btn-hover-color: rgba(28, 122, 28, 1);
    --hover-width: 70%;
    --other-width: 30%;
    --speed: 1000ms;
    --color0: #fff;
    --color1: #0B9ED9;
    --color2: #0433BF;
    --color3: #032CA6;
    --color4: #021859;
    --color5: #0B9ED9;
    --color6: #000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

h1 {
    font-size: 4rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    white-space: nowrap;
}

a:hover {
    color: rgba(255, 255, 255, 255) !important
}


/*-------------navbar----------*/
header {
    width: 100%;
    background-color: var(--color4);
}

nav {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    width: 150px;
}

.navbar-brand i {
    font-size: 4rem;
    color: var(--color0);
    margin: auto;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    font-size: 16px;
    text-decoration: none;
    display: block;
    margin: 0 1rem;
    color: var(--color0);
    text-transform: capitalize;
    transform: scale(0);
    transition: transform 650ms;
}

.nav-item {
    position: relative;
    transition-delay: .4s;
    visibility: hidden;
}

    .nav-item::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color1);
        left: 0;
        bottom: 0;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 650ms cubic-bezier(.68, -.55, .265, 1.55);
    }

    .nav-item:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

/* Hamburger Menu */
.hamburger {
    width: 3.6rem;
    height: 1.8rem;
    position: relative;
    cursor: pointer;
    line-height: 5rem;
    z-index: 1500;
}

    .hamburger .line {
        width: 100%;
        height: 2px;
        background-color: var(--color0);
        position: absolute;
        display: block;
        right: 0;
        transition: all 650ms;
    }

        .hamburger .line:nth-child(1) {
            top: 0;
        }

        .hamburger .line:nth-child(2) {
            top: 50%;
            margin-top: -1px;
            width: 2.8rem;
        }

        .hamburger .line:nth-child(3) {
            top: 100%;
            margin-top: -2px;
            width: 2rem;
        }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(.8rem) rotate(45deg);
        width: 2rem;
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-.8rem) rotate(-45deg);
        width: 2rem;
    }


.nav-list.active .nav-link {
    transform: scale(1);
}

.nav-list.active .nav-item {
    transition-delay: initial;
    visibility: visible;
}

    .nav-list.active .nav-item:nth-child(1) .nav-link {
        transition-delay: .5s;
    }

    .nav-list.active .nav-item:nth-child(2) .nav-link {
        transition-delay: .4s;
    }

    .nav-list.active .nav-item:nth-child(3) .nav-link {
        transition-delay: .3s;
    }

    .nav-list.active .nav-item:nth-child(4) .nav-link {
        transition-delay: .2s;
    }

    .nav-list.active .nav-item:nth-child(5) .nav-link {
        transition-delay: .1s;
    }

/* reverse animation */

.nav-list .nav-item:nth-child(1) .nav-link {
    transition-delay: .1s;
}

.nav-list .nav-item:nth-child(2) .nav-link {
    transition-delay: .2s;
}

.nav-list .nav-item:nth-child(3) .nav-link {
    transition-delay: .3s;
}

.nav-list .nav-item:nth-child(4) .nav-link {
    transition-delay: .4s;
}

.nav-list .nav-item:nth-child(5) .nav-link {
    transition-delay: .5s;
}

@media screen and (max-width: 768px) {

    .nav-list {
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--color2);
        position: fixed;
        left: 0;
        bottom: -100vh;
        transform: bottom 650ms;
    }

        .nav-list.active {
            bottom: 0;
        }
}

/*-------------banner----------*/
.btn {
    position: relative;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    left: 40%;
    top: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: #fff;
    border: #fff solid .2rem;
    font-size: 1rem;
    font-weight: bold;
    width: 25%;
    text-transform: uppercase;
    padding: 15px 20px 15px 20px;
}

.split.left .btn:hover {
    background-color: var(--left-btn-hover-color);
    border-color: var(--left-btn-hover-color);
}

.split.right .btn:hover {
    background-color: var(--right-btn-hover-color);
    border-color: var(--right-btn-hover-color);
}

.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

    .split.left {
        left: 0;
        background: url('../img/customer.jpg');
        background-repeat: no-repeat;
        background-size: cover;
    }

        .split.left::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgb(84 117 236 / 70%);
        }

    .split.right {
        right: 0;
        background: url('../img/employee.jpg');
        background-repeat: no-repeat;
        background-size: cover;
    }

        .split.right::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(43, 43, 43, 0.8);
        }

        .split.right,
        .split.left,
        .split.right::before,
        .split.left::before {
            transition: all var(--speed) ease-in-out;
        }

.hover-left .left {
    width: var(--hover-width);
}

.hover-left .right {
    width: var(--other-width);
}

.hover-right .right {
    width: var(--hover-width);
}

.hover-right .left {
    width: var(--other-width);
}

@media(max-width: 425px) {

    .nav-list {
        height: 100vh;
        z-index:1;
    }

    .split {
        position: relative;
        width: 100%;
        height: 230px;
    }

        .split.left::before {
            height: 230px;
        }

        .split.right::before {
            position: absolute;
            height: 230px;
        }

    .container {
        padding-right: 0px;
        padding-left: 0px;
    }

    .btn {
        font-size: 12px;
        width: 30%;
        left: 35%;
        padding: 10px 20px 10px 20px;
        display: inline-block !important;
    }

    h1 {
        font-size: 25px;
        top: 30%;
    }

    .hover-left .left {
        width: 100%;
    }

    .hover-left .right {
        width: 100%;
    }

    .hover-right .right {
        width: 100%;
    }

    .hover-right .left {
        width: 100%;
    }
}

@media(max-width: 800px) {
    h1 {
        /*font-size: 2rem;*/
        top: 30%;
    }

    /*.btn {
            /*width: 8rem;
            display: flex
        }*/

   /* .hamburger {
        display: none;
    }*/
}
