.banner {
    background-image: linear-gradient(to left, #3e0201, rgba(76, 2, 2, 0.1), rgba(74, 7, 7, 0.8)),
        url('../images/Banner/mep15.jpeg');
    /* background-image: linear-gradient(to left, #02213c, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('../images/Banner/mepWorks-5.jpg'); */
    /* background: linear-gradient(to top, #2a6496, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('../images/Banner/mepWorks.jpg'); */
    -webkit-background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 568px;
    filter: blur(3px);
    /* transition: all 2s ease-in-out; */
    /* animation: bannerImage 2s linear infinite; */
    opacity: 1;
    transition: opacity 1s linear;
    z-index: 2;
    /* animation: change 25s linear infinite; */
    animation-name: bannerImage;
    animation-direction: alternate;
    animation-duration: 30s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-play-state: running;
    /* animation-timing-function: ease-in-out; */
}

/* linear-gradient(to left, #3e0201, rgba(76, 2, 2, 0.1), rgba(74, 7, 7, 0.8)), */


@keyframes bannerImage {
    0% {
        background-image: url('../images/Banner/mepaa1.jpg');
    }

    12% {
        background-image: url('../images/Banner/fire.jpeg');
    }

    24% {
        background-image: url('../images/Banner/security.jpeg');
    }

    48% {
        background-image: url('../images/Banner/hvacbg.png');
    }

    60% {
        background-image: linear-gradient(to left, #3e0201, rgba(76, 2, 2, 0.1), rgba(74, 7, 7, 0.8)),
            url('../images/Banner/building.jpeg');
    }

    72% {
        background-image: url('../images/Banner/itsolution.jpg');

    }

    84% {
        background-image: linear-gradient(to left, #3e0201, rgba(76, 2, 2, 0.1), rgba(74, 7, 7, 0.8)),
            url('../images/Banner/plumbing.jpeg');
    }

    100% {
        background-image: linear-gradient(to left, #3e0201, rgba(76, 2, 2, 0.1), rgba(74, 7, 7, 0.8)),
            url('../images/Banner/trading.jpeg');
    }

    /* 165% {
        background-image: url('/assets/images/electricsoln.jpg');
    } */
}


.banner-carousel {
    margin-top: 100px;
}

.carousel .carousel-item {
    height: 400px;
}

.carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* border-radius: 10px; */
    object-fit: cover;
    transition: 2s;
}

.carousel .carousel-item .carousel-caption {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 45%;
    height: 65%;
    padding: 45px 0;
    text-align: center;
    background-color: rgb(0 0 0 / 80%);
    color: #fff;
    border-top-left-radius: 70px;
    border-bottom-right-radius: 70px;
    border: 3px inset #7e0204;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.carousel .carousel-item .carousel-caption h1 {
    text-transform: uppercase;
    color: var(--whiteclr);
}
.carousel .carousel-item .carousel-caption .carousel-para {
    font-size: 0.8rem;
}

.carousel .carousel-item .certification-caption {
    /* margin-left: -50%; */
    text-align: start;
    width: 75%;
    transform: translate(-110%, -40%);
    opacity: 1;
    animation: isocaption 3s forwards;
}

@keyframes isocaption {
    100% {
        transform: translate(-110%, -120%);
    }
}

.carousel .carousel-item .certification-caption .main-caption {
    background-color: var(--mainclr);
}

.carousel .carousel-item .certification-caption .sub-caption {
    margin-top: 3px;
    background-color:#013e5b99;
}

.carousel .carousel-indicators {
    display: none;
}

.carousel .carousel-control-prev-icon, 
.carousel .carousel-control-next-icon{
    background-color: transparent;
    border-radius: 50px;
    transition: 0.5s;
}

.carousel .carousel-control-prev-icon:hover, 
.carousel .carousel-control-next-icon:hover {
    background-color: var(--mainclr);
} 



.banner-box-round {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 40%;
    height: 65%;
    padding: 45px 0;
    text-align: center;
    /* background-color: rgb(0 0 0 / 50%); */
    color: #fff;
    /* border-top-left-radius: 70px;
    border-bottom-right-radius: 70px; */
    /* border-radius: 100%; */
    /* border: 3px inset #7e0204; */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logoappend {
    background: url('../images/logo.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-size: 20%;
    /* height: 100px; */
    animation: logo 10s alternate infinite;
    background-position: 0 50px;
}


@keyframes logo {
    0% {
        background-position: 0px 50px;
    }

    100% {
        background-position: 400px 50px;
    }
}

/* section .logoappend h1 {
    padding-top: 50px;
    text-transform: uppercase;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    background: url('../images/Banner/maroon.jpg');
    -webkit-background-clip: text;
    background-position: 0 0;
    animation: back 15s linear infinite;
} */

@keyframes back {
    100% {
        background-position: 2000px 0;
    }
}

section .logoappend h1 span::before {
    opacity: 1;
    transition: opacity 1s linear;
    font-size: 3rem;
    z-index: 2;
    content: '';
    animation: text-change alternate 30s forwards infinite running ease-in-out;
    text-transform: uppercase;
    /* color: var(--mainclr); */
}

.logo-watermark:before {
    content: '';
    position: absolute;
    top: 300%;
    left: 0;
    background: url('../images/logo.png');
    background-size: 500px;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 2;
}

@keyframes text-change {
    0% {
        content: 'MEP';
    }

    12% {
        content: 'Fire Protection';

    }

    24% {
        content: 'ELV & Security';
    }

    48% {
        content: 'HVAC';
    }

    60% {
        content: 'Building Maintenance';
    }

    72% {
        content: 'IT SOLUTIONS';
    }

    84% {
        content: 'Plumbing & Drainage System';
    }

    100% {
        content: 'Trading';
    }

    /* 165% {
        content: 'Electrical Solutions';
    } */
}

section .logoappend p {
    /* font-size: 12px; */
}

section .logoappend p span::before {
    opacity: 1;
    transition: opacity 1s linear;
    z-index: 2;
    content: '';
    animation: para-change alternate 30s forwards infinite running ease-in-out;
}

@keyframes para-change {
    0% {
        content: 'we offer all the MEP work solutions.';
    }

    12% {
        content: 'we offer Fire Protection on your site';
    }

    24% {
        content: 'We offer all the ELV & Security solutions.';
    }

    48% {
        content: 'we offer all the HVAC works.';
    }

    60% {
        content: 'we offer all the Building Maintenance works.';
    }

    72% {

        content: 'we offer all the IT work solutions.';
    }

    84% {
        content: 'we offer all the Plumbing & Drainage System works';
    }

    100% {
        content: 'we trade "Hand Tools", "Safety and Security Products", "Hardware" & "Electrical and Plumbing Products".';
    }

    /* 165% {
        content: 'Electrical Solutions';
    } */
}

section a {
    padding: 10px 20px;
    margin-right: 20px;
}

.slider-btn .learn {
    background-color: var(--mainclr);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.slider-btn .contact {
    background-color: transparent;
    color: #fff;
    border: 1px solid #013f5c;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.slider-btn .learn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.slider-btn .contact::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.slider-btn .learn:hover:before {
    width: 100%;
}

.slider-btn .contact:hover:before {
    width: 100%;
}

.slider-btn .contact:hover {
    background-color: var(--headerclr);
    /* background-color: #fff; */
    color: var(--whiteclr);
    /* color: #013f5c; */
    transition: all 1s;
}

.slider-btn .learn:hover {
    background-color: transparent;
    color: #fff;
    /* color: #013f5c; */
    transition: all 1s;
}

.learn {
    background-color: var(--mainclr);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact {
    background-color: transparent;
    color: #fff;
    border: 1px solid #013f5c;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.learn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.contact::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.learn:hover:before {
    width: 100%;
}

.contact:hover:before {
    width: 100%;
}

.contact:hover {
    background-color: var(--headerclr);
    /* background-color: #fff; */
    color: var(--whiteclr);
    /* color: #013f5c; */
    transition: all 1s;
}

.learn:hover {
    background-color: transparent;
    color: #fff;
    /* color: #013f5c; */
    transition: all 1s;
}

/* --------------------------------PROJECT STARTS -------------------  */
.project {
    background-color: #f1f1f1;
    margin-top: -40px;
}

.project .project-heading {
    margin-top: 70px;
    color: #013f5c;
    letter-spacing: 2px;
    /* font-weight: 300; */
    width: 85%;
}

.project .project-para {
    letter-spacing: 1px;
    color: #504a4a;
    font-weight: 200;
    width: 85%;
}

.successBtn {
    background-color: var(--mainclr);
    color: var(--whiteclr);
    border: 1px solid #013f5c;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.successBtn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.successBtn:hover:before {
    width: 100%;
}

.successBtn:hover {
    background-color: var(--headerclr);
    color: var(--whiteclr);
    transition: all 1s;
}

.slider-body {
    /* background: linear-gradient(to right, #2c5364, #0f2027); */
    height: 70vh;
    /* width: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 250px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);

    }

}

.slider span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    transform-origin: center;
    transform-style: preserve-3d;
    /* transform: rotateY(calc(var(--i)*30deg)) translateZ(360px); */
    transform: rotateY(calc(var(--i)*40deg)) translateZ(360px);
}

.slider span img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: 2s;
}

.slider span .caption {
    width: 100%;
    height: 100%;
    position: absolute;
    padding: 15px;
    top: 0;
    left: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    /* background-color: rgba(255, 255, 255, 0.5); */
    background: #b6004d73;
    color: #fff;
    opacity: 0;
    transition: opacity 0.30s;
    text-transform: uppercase;
    /* font-size: 10px; */
    font-weight: bold;
    /* color: transparent;
    background: url('../images/Banner/bk9.jpg');
    -webkit-background-clip: text; */
    background-position: 0 0;
    animation: back 15s linear infinite;

}

.slider span .caption:hover {
    opacity: 1;

}

.project .showOnMobile {
    display: none;
}

.project .success-img {
    background: linear-gradient(to left, #495057, #f8f9fab3, #dee2e6), url("../images/about/success1blue.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
}


/* .slider span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    color: #7e0204;
    border: 1px solid #013f5c;
    top: 0;
    left: 0;
    z-index: 0;
    transition: all 1s;
}

.slider span:hover:before{
    content: 'projects';
    color: #7e0204;
} */

/* .slider span:hover img {
    transform: translateY(-10px) scale(1.2);
}  */

/* --------------------------------PROJECT ENDS -------------------  */
/* --------------------------------MISSION ENDS -------------------  */
.mission {
    margin-top: 100px;
}

.missionContainer {
    background-color: #f1f1f1;
    /* margin-top: 100px; */
}

.mission .mission-heading {
    margin-top: 70px;
    color: #013f5c;
    letter-spacing: 2px;
    /* font-weight: 300; */
}

.mission .mission-para {
    letter-spacing: 1px;
    color: #504a4a;
    font-weight: 200;
    width: 85%;
}

/* --------------------------------MISSION ENDS -------------------  */
/* --------------------------------ENG SERVICE STARTS -------------------  */
.eng-services {
    margin-top: 100PX;
    /* background-color: #eee; */
}

.service-box-container {
   grid-area: 25rem;
}


.service-box {
    background: var(--whiteclr);
    padding: 3rem;
    height: 250px;
    width: 250px;
    background-color: #eee;
    cursor: pointer;
}

.service-box:hover img {
    transform: translateY(-40px);
    cursor: pointer;
}

.first-row:hover {
    transform: translateY(-30px);
}
.second-row:hover {
    transform: translateY(30px);
}

.service-box img {
    height: 100px;
    width: 100px;
}

.service-box p {
    font-size: 10px;
}





/* --------------------------------ENG SERVICE ENDS -------------------  */
/* --------------------------------COMPANY STARTS -------------------  */
.company {
    margin-top: 100px;
}

.companyContainer {
    /* background-color: var(--headerclr); */
    color: var(--headerclr);
}

.company .company-heading {
    color: var(--headerclr);
    letter-spacing: 2px;
    /* font-weight: 300; */
}

.company .company-para {
    letter-spacing: 1px;
    color: var(--mainclr);
    font-weight: 200;
    width: 85%;
}


.comany-successBtn {
    background-color: var(--mainclr);
    color: var(--whiteclr);
    border: 1px solid #013f5c;
    border-radius: 0px;
    transition: all 1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.comany-successBtn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: var(--headerclr);
    /* background-color: #fff;  */
    border: 1px solid var(--mainclr);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 1s;
}

.comany-successBtn:hover:before {
    width: 100%;
}

.comany-successBtn:hover {
    background-color: var(--headerclr);
    color: var(--whiteclr);
    transition: all 1s;
}



/* --------------------------------COMPANY ENDS -------------------  */
/* --------------------------------GALLERY STARTS -------------------  */


.box {
    display: grid;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: auto;
    transition: transform 0.5s ease-in;
    margin: 8px auto;
}

.box img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

.box:hover {
    transform: scale(1.2);
}

.gallery {
    margin-top: 100px;
    background: url('../images/projects/gallery.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.gallery .gallery-heading {
    margin-top: 30px;
    color: var(--whiteclr);
    text-transform: initial;
    color: transparent;
    -webkit-text-stroke: 0.6px var(--whiteclr);
    background: url('../images/projects/bk1.jpeg');
    background: url('../images/Banner/maroon.jpg');
    -webkit-background-clip: text;
    background-position: 0 0;
    animation: back 15s linear infinite;
}

.gallery img {
    height: 180px;
    object-fit: cover;
    width: 100%;
    border-radius: 0px;
    border-color: var(--headerclr);
}


.gallery .project-name {
    margin-left: 0.5px;
    margin-right: 1px;
    background-color: var(--mainclr);
    color: var(--whiteclr);
    text-align: center;
}

.gallery .galleryimg1 {
    background: url('../images/projects/Kempinski.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 85%;
}

.gallery .galleryimg2 {
    background: url('../images/projects/regishotel.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 85%;
}

.gallery .galleryimg1 .caption,
.gallery .galleryimg2 .caption {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 15px;
    top: 0;
    left: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: var(--whiteclr);
    background: #b6004d73;
    opacity: 0;
    transition-duration: 1.2s;
    transition-timing-function: ease-in-out;
}

.gallery .galleryimg1:hover .caption,
.gallery .galleryimg2:hover .caption {
    opacity: 1;
}


/* --------------------------------GALLERY STARTS -------------------  */
/* --------------------------------ABOUT STARTS -------------------  */
.about {
    margin-top: 100px;
}

/* .about .logo-attach {
    background: url('../images/logo.png');
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: 0 50px;
} */

.about .about-para {
    color: #013f5c;
}

/* --------------------------------ABOUT ENDS -------------------  */



/* @media screen and (max-width: 769px) {
    .logo-watermark:before {
        top: 300%;
    }
} */

@media (max-device-width: 400px) {
    /* styles for mobile browsers smaller than 480px; (iPhone) */
    .logo-watermark:before {
        top: 390%;
    }
 } 
@media (device-width: 412px) {
    /* styles for mobile browsers smaller than 430px; (iPhone) */
    .logo-watermark:before {
        top: 360%;
    }
 }

@media (max-device-width: 370px) {
    /* styles for mobile browsers smaller than 370px; (iPhone) */
    .logo-watermark:before {
        top: 450%;
    }
 }


@media(max-width: 900px) {

    .carousel .carousel-control-prev-icon {
        display: none;
    }

    .carousel .carousel-control-next-icon {
        display: none;
    }

    .carousel .carousel-item .carousel-caption {
        background-color: transparent;
        border-radius: 0px;
        border: 0px inset transparent;
    }

    .carousel .carousel-item {
        margin-top: 100px;
        height: 200px;
    }

    .carousel .carousel-item .carousel-caption h1,
    .carousel .carousel-item .carousel-caption .carousel-para,
    .carousel .carousel-item .carousel-caption .slider-btn {
        display: none;

    }

    .banner-carousel {
        margin-top: 0px;
    }

    .carousel .carousel-item .carousel-caption .certification-caption .sub-caption {
        display: none;
    }

    .carousel .carousel-item .certification-caption {
        /* margin-left: -50%; */
        text-align: center;
        width: 100%;
        transform: translate(-90%, -50%);
        opacity: 1;
        animation: none;
    }

    .carousel .carousel-item img {
        object-fit: contain;
    }

    .banner-box-round {
        top: 40%;
        width: 72%;
        height: auto;
        padding: 0px 0px;
        border-radius: 0%;
        border: 0px inset transparent;
        background-color: transparent;
    }

    section .logoappend h1 {
        font-size: 30px;

    }

    .logoappend {
        background-size: 20%;
        background-repeat: no-repeat;
        background-size: 20%;
        /* height: 100px; */
        animation: logo 7s forwards infinite;
        background-position: 0px 30px;
    }


    @keyframes logo {
        100% {
            background-position: 200px 30px;
        }
    }

    .slider-body {
        width: 46vh;
        height: fit-content;
    }

    .project .hideOnMobile {
        display: none;
    }

    .project .showOnMobile {
        display: block;
    }
    /* .logo-watermark:before {
        top: 450%;
    } */
}

@media (max-width: 1000px) {
    .project .hideOnMobile {
        display: none;
    }

    .project .showOnMobile {
        display: block;
    }

    .slider-body {
        width: 46vh;
        height: fit-content;
        
    }

    
}


/* @media(max-width: 900px){
    .banner-box-round {
        top: 35%;
        width: 70%;
        height: 50%;
        border-radius: 0%;
        background-color: transparent;
        border: 0px solid;
    }

    .logoappend {
        background-size: 20%;
        background-position: 0px 80px;
    }

    @keyframes logo {
        100% {
            background-position: 400px 100px;
        }
    }

    section .logoappend h1 {
        font-size: 60px;
    }

    .logoappend p {
        font-size: 20px;
    }
} */