* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 70px;
}

body {
    padding-top: var(--nav-height);
}

.navbars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: var(--nav-height);
    z-index: 999;
    padding: 5px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0px 50px;
}

.nav-list li a {
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* BOX CONTAINER */
.box-loader {
    display: flex;
    gap: 10px;
}

/* EACH BOX */
.box-loader span {
    width: 20px;
    height: 20px;
    background: teal;
    animation: bounce 0.6s infinite alternate;
}

/* DELAY FOR EACH BOX */
.box-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.box-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ANIMATION */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}


/* NAVBAR-LOGO RESIZE HERE */
.nav-img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* WHOLE NAVBAR DESIGN */


.nav-list {
    display: flex;
    /* border: solid; */
    align-items: center;
    list-style-type: none;
    gap: 30px;
}

.nav-list li {
    font-weight: bold;
    width: auto;
    background-color: teal;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    transition: 0.4s;

}

/* NAVLINK HOVER HERE */


.nav-list li a {
    color: #fff;
    transition: 0.3s;
    text-decoration: none;

}

.nav-list li:hover a {
    color: #000;
}

/* UNDERLINE DESIGN HERE */
.under-line {
    width: 100%;
    height: 3px;
    background-color: rgb(226, 226, 226);
}

.dropdown {
    position: relative;
}

/* hidden */
.dropdown-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 20px;
    display: none;
    min-width: 290px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* items */
.dropdown-menu li {
    padding: 10px 20px;
    background: none;
}

.dropdown-menu li a {
    color: black;
}

/* show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.btns {
    display: none;
}

/* BANNER DESIGN HERE */
.banner {
    background-image: url('../images/tr-up-service.png');
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0px;
}

.banner h1 {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 0;
}

.serv-left {
    border: solid;
    width: 600px;
}

.serv-left img {
    width: 100%;
}

.card-layout {

    width: 25%;
    padding: 20px 20px;
    height: 350px;
    background-color: #fff !important;
}

.layer-2 {
    height: fit-content;
    padding: 100px 20px;
    justify-content: center;
    display: flex;
    gap: 40px;
    background-color: rgb(250, 250, 250);
}


.layer2-imgdiv {
    border-radius: 20px;
    color: #000;
    padding: 20px;
    width: 350px;
    justify-items: center;
    height: fit-content;
    background-color: white;
    transition: 0.3s;
}

.layer2-imgdiv button,
.layer2-imgdiv2 button,
.layer2-imgdiv3 button {
    background-color: #BE3538;
    padding: 10px;
    border: none;
}

.layer2-imgdiv button a,
.layer2-imgdiv2 button a,
.layer2-imgdiv3 button a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.layer2-imgdiv,
.layer2-imgdiv2,
.layer2-imgdiv3 {
    text-align: center;
}

.layer2-imgdiv img {
    width: 100%;
    height: auto;
    display: block;
}

.layer2-imgdiv2 {

    border-radius: 20px;
    color: #000;
    padding: 20px;
    width: 350px;
    background-color: white;
    transition: 0.3s;
    height: fit-content;
}

.layer2-imgdiv img,
.layer2-imgdiv2 img,
.layer2-imgdiv3 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.layer2-imgdiv3 {

    border-radius: 20px;
    color: #000;
    padding: 20px;
    width: 350px;
    background-color: white;
    transition: 0.3s;
    height: fit-content;
}

#topBtn {
    background-color: #BE3538;
    color: #fff;
    border: none;
    outline: none;
    padding: 10px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

#topBtn:hover {
    background-color: #055c52;
    transform: scale(1.1);
}

footer {
    background-color: teal;
    padding: 30px 0;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.layer2-box-content {
    font-size: 16px;
}

@media(max-width:1080px) {
    .banner {
        background-size: contain;
        height: 400px;
        margin-top: -50px;
    }
}

@media(max-width:1000px) {
    .banner {
        margin-top: -70px;
    }

    .layer-2 {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .layer2-imgdiv,
    .layer2-imgdiv3,
    .layer2-imgdiv2 {
        width: 100%;
    }

    .layer2-imgdiv button,
    .layer2-imgdiv3 button,
    .layer2-imgdiv2 button {
        font-size: 16px;
    }

    .card-layout {

        width: 95%;
    }

    .banner {
        width: 100%;
    }

    .nav-list {
        display: none;
        position: absolute;
        z-index: 999;
        left: 0;
        top: 70px;
        padding: 20px;
        width: 100%;
        background-color: #fff;
        animation: slide-down 0.5s linear;
    }

    .nav-list.active {
        display: block;
    }

    .nav-list li {
        background-color: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
        align-items: center;
    }

    .nav-list li a {
        color: #000;

    }

    .btns {
        display: block;
        border: none;
        background-color: transparent;
        font-size: 20px;
    }

    .dropdown-menu {
        left: 0;
        width: 100%;
    }

}

@media(max-width:768px) {
    .dropdown-menu {
        left: 200px;
    }

    .banner {
        background-size: contain;
        margin-top: -95px;
    }

    .nav-img {
        width: 140px;
    }

    .navbars {
        justify-content: space-between !important;
        padding: 0 10px;
        align-items: center;
    }
}

@media(max-width:600px) {
    .dropdown-menu {
        left: 50px;
    }

    .banner {
        background-size: contain;
        margin-top: -125px;
    }


}

@media(max-width:480px) {
    .banner {
        margin-top: 0;
        background-size: cover;
        height: 20%;
    }

    .card-layout {
        width: 100%;
        font-size: 1rem;
    }

    footer {
        font-size: 14px;
    }

    .dropdown-menu {
        left: 10px;
        min-width: 200px;
        padding: 10px;
    }


    .layer2-imgdiv,
    .layer2-imgdiv2,
    .layer2-imgdiv3 {
        padding: 30px;
        text-align: center;
        justify-items: center;
    }

    .layer2-imgdiv img,
    .layer2-imgdiv2 img,
    .layer2-imgdiv3 img {
        width: 70%;
        height: auto;
    }

    .nav-img {
        width: 110px;
    }
}