.header {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--main-color);
}

.header>.headerImg {
    background-size: cover;
    width: 100%;
    z-index: 1;
}

.title {
    margin: 0;
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 30%;
    border: 0;
    padding: 15px;
    color: #fff;
    border-block-start: 10px solid var(--yellow);
    border-inline-start: 10px solid var(--yellow);
    font-size: 42px;
    overflow: hidden;
    animation: outer-left 1s 1s ease both;
    z-index: 5;
    text-transform: capitalize;
    background-color: #00000025;
    border-end-end-radius: 25px;
}

.title.ar {
    animation: outer-right 1s 1s ease both;
}

.title legend {
    text-transform: capitalize;
    color: #FFF;
    padding: 0 15px;
    margin: 0 15px;
    font-size: 20px;
    font-weight: 900;
}

.inner {
    animation: text-clip 1s 0s cubic-bezier(0.5, 0, 0.1, 1) both;
}

@media (max-width: 900px) {
    .title {
        font-size: 23px;
        font-weight: 700;
    }
}

@keyframes text-clip {
    from {
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes outer-left {
    from {
        transform: translateX(50%);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes outer-right {
    from {
        transform: translateX(50%);
    }

    to {
        transform: translateX(150%);
    }
}

@media (max-width:720px) {

    @keyframes outer-left {
        from {
            transform: translateX(25%);
        }

        to {
            transform: translateX(-25%);
        }
    }

    @keyframes outer-right {
        from {
            transform: translateX(-25%);
        }

        to {
            transform: translateX(0%);
        }
    }
}

@media (max-width:970px) {
    .title {
        width: 70%;
    }

    @keyframes outer-left {
        from {
            transform: translateX(-5%);
        }

        to {
            transform: translateX(-20%);
        }
    }
}

.petroServices {
    color: var(--main-color);
    padding: 5%;
}

.petroServices h1 {
    font-size: 35px;
    text-align: center;
    margin: 0 auto 5%;
    width: 40%;
}

.petroServices .servicesHeading::before {
    top: -25px;
    left: -25px;
}

@media (max-width:920px) {
    .servicesHeading {
        font-size: 30px;
        margin: 20px auto;
        width: 80%;
        text-align: center;
    }

    .petroServices h1 {
        width: 100%;
    }

    .petroServices .servicesHeading::before {
        top: -15px;
        left: 5px;
    }
}

.serviceBox {
    padding: 10px 30px 0px;
    width: 100%;
}

.serviceBox img {
    min-width: 300px;
    width: 40%;
    height: 310px;
}

.serviceBox .serviceCard {
    color: #000;
}

.serviceBox .serviceCard>div {
    cursor: pointer;
    background-color: #fff;
    transition: all .2s ease-out;
    position: relative;
    bottom: 107px;
    left: 80px;
    width: 80%;
    padding: 20px 96px 20px 32px;
    border-inline-end: 5px solid var(--orange);
    box-shadow:
        0 2.8px 2.2px rgba(0, 0, 0, 0.034),
        0 6.7px 5.3px rgba(0, 0, 0, 0.048),
        0 12.5px 10px rgba(0, 0, 0, 0.06),
        0 22.3px 17.9px rgba(0, 0, 0, 0.072),
        0 41.8px 33.4px rgba(0, 0, 0, 0.086),
        0 100px 80px rgba(0, 0, 0, 0.12);
}

.serviceBox .serviceCard>div:hover {
    background-color: #EEE;
}

.serviceBox .serviceCard .exploreButton {
    color: var(--orange);
    font-size: 25px;
}

.serviceBox .serviceCard:hover .exploreButton {
    text-decoration: underline;
}

.serviceBox .serviceCard h2 {
    font-size: 36px;
    font-weight: 900;
    line-height: 36px;
    color: var(--main-color);
}

.serviceBox .serviceCard p {
    font-size: 18px;
    line-height: 1.2;
    margin: 18px 0;
}

@media (max-width:720px) {
    .serviceBox .serviceCard>div {
        text-align: center;
    }

    .serviceBox .serviceCard h2 {
        font-size: 25px;
    }
}

@media (max-width:970px) {
    .serviceBox img {
        width: 100%;
    }

    .serviceBox .serviceCard>div {
        width: 90%;
        left: 5%;
        padding: 20px;
    }
}