* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: arial;
}

body {

    height: 100vh;
    background-position: center;

}

header {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 99;
    box-shadow: 0 10px 10px #000;
    background: black;
    opacity: 0.7;
}

#chk1 {
    display: none;
}

i {
    color: #fff;
    cursor: pointer;
}

header .logo {
    flex: 1;
    color: #fff;
    margin-left: 50px;
    text-transform: uppercase;
    font-size: 15px;
}

header .search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    outline: none;
    width: 100%;
    height: 40px;
    border: none;
    background: #f2f2f2;
    border-radius: 30px;
    color: gray;
    font-size: 16px;
    text-align: center;
    padding-left: 5px;
    padding-right: 40px;
}

.search-box button {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: scale(0.9);
    background: green;
}

header ul {
    flex: 2;
    display: flex;
    justify-content: space-evenly;
}

header ul li {
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
}

header ul li a:hover {
    border-bottom: 2px solid cadetblue;
}

header .menu {
    font-size: 2.5em;
    display: none;
}


.card {
    width: 500px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
    flex-basis: 30%;
    perspective: 1000px;
    box-shadow: 0 5px 5px 5px #000;

}



.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(60, 28, 202, 0.685);
}

.card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    transform-origin: bottom;
}

.card:hover .card__content {
    transform: rotateX(0deg);
}

.card__title {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}



.card__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

.bd_grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    grid-column-gap: 2rem;
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

.service_container {
    position: absolute;
    padding: 25px;
    color: #777;
    line-height: 1.4;
    top: 140px;
    opacity: 0.8;
    height: 400px;
}
.img{
    position: relative;
    display: flex;
    width: 150px;
    height: 150px;
    opacity: 0.5;
    left: 0;
}
@media(max-width:1000px) {
    .search-box button {
        position: absolute;
    }

    header ul {
        position: fixed;
        top: 100px;
        right: -100%;
        background:black;
        height: calc(100vh - 100px);
        width: 50%;
        flex-direction: column;
        align-items: center;
        transition: right 0.5s linear;

    }

    header .menu {
        display: block;
        width: 100px;
        text-align: center;
    }

    #chk1:checked~ul {
        right: 0;
    }

}

@media(max-width:600px) {
    header .logo {
        font-size: 10px;
        margin-left: 8px;
    }

    header ul {
        width: 100%;
    }

    .service_container {
        width: 100%;
        display: inline-block;
        position: relative;
        align-items: center;
        text-align: initial;
        line-height: 1.4;

    }
    .card {
        position: relative;
        width: 100%;
    }
}