@import url("utilities.css");

nav {
    height: 70px;
    background-color: var(--primary);
    background-color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 0.05rem 1rem rgba(78, 78, 78, 0.15) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;

    a {
        color: var(--primary) !important;
        transition: all 0.5s linear;

        &:hover {
            color: var(--orange) !important;
            letter-spacing: 1px;
        }
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    ul {
        list-style: none;
        display: flex;
        /* outline: 2px solid red; */
        padding-left: 0;
        padding-bottom: 0;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;

        a {
            text-decoration: none;
            color: white;
            font-family: "rajdhanisemibold";
            font-size: 17px;
            padding: 18px 24px;

            &:hover {
                color: var(--orange);
                cursor: pointer;
            }
        }
    }

    img {
        height: 60px;
    }

    #menu_toggler {
        display: none;
    }
}

#home_header,
#other_header {
    margin-top: 70px;
}
#home_header {
    height: 600px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.49), rgba(255, 255, 255, 0.12)), url("../img/home_header.jpg");
    background-size: cover;
    background-repeat: no-repeat;

    .container,
    .row {
        height: 100%;
    }

    .col-md-6 {
        height: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h1 {
            font-size: 58px;
        }
    }
}

#other_header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to right, #09162ae2, #09162aee), url("../img/home_header.jpg");

    h1 {
        font-size: 48px;
    }
}

#services_teaser {
    background-color: var(--primary);

    .card {
        height: 100%;
    }
}

#services,
#projects {
    .col-md-4 {
        margin-bottom: 32px;
    }

    .card {
        box-shadow: 1px 1px 25px 0px rgba(83, 95, 159, 0.15);
        height: 100%;
        border-radius: 0px !important;

        .card-img-top {
            border-radius: 0px !important;
        }
    }
}

#why_us {
    #left {
        background-image: url("../img/projects/1.png");
        background-size: cover;
        background-position: right;
    }

    #right {
        background: #f5f5f5;
        padding-left: 4em;

        .col-md-4 {
            .icon {
                width: 80px;
                height: 80px;
                background-color: white;
                border-radius: 150px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-bottom: 0.5em;

                img {
                    width: 44px;
                }
            }
        }
    }
}

#projects {
    .card {
        min-height: 550px;
        background-position: center;
        background-size: cover;
        transition: all 0.5s linear;
        overflow-y: hidden;

        &.koberg {
            background-image: url("../img/projects/koberg.png");
        }

        &.education {
            background-image: url("../img/projects/school.png") !important;
        }

        &.noval {
            background-image: url("../img/projects/naval.png") !important;
        }

        &.coral {
            background-image: url("../img/projects/mining.png") !important;
        }

        &.mine {
            background-image: url("../img/projects/namibia.png") !important;
        }

        .card-body {
            padding: 0;
        }

        .cover {
            height: 100%;
            width: 100%;
            background-color: #09162aa8;
            transition: all 0.5s linear;
            padding: 16px;
            font-size: 14px;
            display: flex;
            justify-content: flex-end;
            flex-direction: column;

            .item {
                transition: all 0.5s linear;
                transform: translateY(140px);
                padding: 14px 12px;
            }

            .list-group {
                border-radius: 0 !important;
                border: none !important;
                opacity: 0;

                .list-group-item {
                    background-color: transparent !important;
                    color: white;
                    display: flex;
                    justify-content: space-between;
                    padding-left: 0;
                    border: none !important;
                    border-bottom: 1px solid white !important;

                    .title {
                        font-weight: 600;
                    }

                    .value {
                        font-weight: 300;
                    }
                }
            }
        }

        &:hover {
            background-color: transparent;
            background-position: center;

            .cover {
                background-color: transparent;
            }

            .item {
                transform: translateY(0);
                background-color: var(--primary);
            }

            .list-group {
                opacity: 1;
            }
        }
    }
}

#map {
    padding: 0 !important;
    margin-top: 70px;

    iframe {
        margin: 0 !important;
        padding: 0 !important;
    }
}

#contact {
    position: relative;
    margin-bottom: 80px;
    background-color: white !important;

    a {
        color: var(--primary);
        text-decoration: none;
    }

    .card {
        box-shadow: 1px 1px 25px 0px rgba(83, 95, 159, 0.15);
    }
}

#footer {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    color: white;
}

#mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    background-color: white;
    z-index: 5000;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: all 0.4s linear;
    transform: translateX(-100%);

    &.active {
        transform: translateX(0);
    }

    ul {
        padding-left: 0;
        list-style: none;

        a {
            display: block;
            padding-top: 16px;
            padding-bottom: 16px;
            text-decoration: none;
            color: var(--primary);
            font-weight: bold;
        }
    }

    img {
        width: 40px;
        display: block;
        position: fixed;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* media queries */
@media only screen and (max-width: 768px) {
    nav {
        ul {
            display: none;
        }

        #menu_toggler {
            display: block !important;
            height: 40px;
            cursor: pointer;
        }
    }

    #services_teaser {
        .col-md-4 {
            margin-bottom: 16px;
        }
    }

    #about_teaser {
        a {
            margin-bottom: 32px;
        }
    }

    #services {
        .col-md-4 {
            margin-bottom: 12px;
        }
    }

    #projects {
        .card {
            min-height: 550px;

            background-position: center;
            background-size: cover;
            transition: all 0.5s linear;
            overflow-y: hidden;

            &.koberg {
                background-image: url("../img/projects/koberg.png");
            }

            &.education {
                background-image: url("../img/projects/school.png") !important;
            }

            &.noval {
                background-image: url("../img/projects/naval.png") !important;
            }

            &.coral {
                background-image: url("../img/projects/mining.png") !important;
            }

            &.mine {
                background-image: url("../img/projects/namibia.png") !important;
            }

            .cover {
                background-color: transparent;
            }

            .item {
                transform: translateY(0) !important;
                background-color: var(--primary);
            }

            .list-group {
                opacity: 1 !important;
            }
        }
    }

    #contact {
        .col-md-4 {
            margin-bottom: 32px;

            padding-left: 8px !important;
            padding-right: 8px !important;
        }
    }
}
