/*=========================================
Services Section
=========================================*/

.services-section{

    padding:50px 0;

    background:#f8fafc;

    overflow:hidden;

}

.section-heading{

    max-width:760px;

    margin:0 auto 70px;

    text-align:center;

}

.section-heading h2{

    font-size:40px;

    margin:20px 0;

    line-height:1.2;

}

.section-heading p{
    max-width:650px;

    margin:auto;
    color:var(--gray-600);

    font-size:17px;

    line-height:1.8;

}

/*=========================================
Bento Grid
=========================================*/

.services-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    grid-auto-rows:280px;

    gap:20px;
    margin-top:20px;


}

.service-card{

    position:relative;

    overflow:hidden;

    border-radius:28px;

    isolation:isolate;

    cursor:pointer;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

    transition:.45s;

}

.service-card.large{

    grid-row:span 2;

}

.service-card.wide{

    grid-column:span 2;

}

/*=========================================
Image
=========================================*/

.service-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:1s;

}

/*=========================================
Overlay
=========================================*/

.service-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

        180deg,

        rgba(0,0,0,.05),

        rgba(0,0,0,.78)

    );

    transition:.45s;

}

/*=========================================
Content
=========================================*/

.service-content{

    position:absolute;

    left:35px;

    right:35px;

    bottom:35px;

    color:#fff;

    z-index:2;

}

.service-content span{

    display:inline-block;

    padding:8px 18px;

    border-radius:40px;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(18px);

    margin-bottom:16px;

    font-size:14px;

    font-weight:600;

}

.service-content h3{

    font-size:30px;

    color:#fff;

    line-height:1.25;

}

/*=========================================
Hover
=========================================*/

.service-card:hover{

    transform:translateY(-12px);

    box-shadow:0 30px 80px rgba(0,0,0,.18);

}

.service-card:hover img{

    transform:scale(1.12);

}

.service-card:hover .service-overlay{

    background:linear-gradient(

        180deg,

        rgba(160,0,0,.05),

        rgba(0,0,0,.85)

    );

}

/*=========================================
Responsive
=========================================*/

@media(max-width:991px){

    .services-grid{

        grid-template-columns:1fr 1fr;

        grid-auto-rows:240px;

    }

    .service-card.large,

    .service-card.wide{

        grid-column:auto;

        grid-row:auto;

    }

}

@media(max-width:767px){

    .services-section{

        padding:80px 0;

    }

    .section-heading h2{

        font-size:34px;

    }

    .services-grid{

        grid-template-columns:1fr;

        grid-auto-rows:260px;

    }

    .service-content{

        left:22px;

        right:22px;

        bottom:22px;

    }

    .service-content h3{

        font-size:22px;

    }

}
.service-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    border:1px solid rgba(255,255,255,.18);

    z-index:2;

    transition:.45s;

}

.service-card:hover::before{

    border-color:rgba(255,255,255,.5);

}
.service-card::after{

    content:"";

    position:absolute;

    top:-120%;

    left:-40%;

    width:60%;

    height:250%;

    background:linear-gradient(

        to right,

        transparent,

        rgba(255,255,255,.28),

        transparent

    );

    transform:rotate(25deg);

    transition:1s;

    z-index:3;

}

.service-card:hover::after{

    left:130%;

}
.service-footer{

    margin-top:25px;

}

.learn-more{

    display:inline-flex;

    align-items:center;

    gap:10px;

    font-size:15px;

    font-weight:700;

    color:#fff;

    transition:.4s;

}

.learn-more i{

    transition:.4s;

}

.service-card:hover .learn-more{

    letter-spacing:1px;

}

.service-card:hover .learn-more i{

    transform:translateX(8px);

}
.service-card{

    animation:serviceFloat 5s ease-in-out infinite;

}

.service-card:nth-child(2){

    animation-delay:.5s;

}

.service-card:nth-child(3){

    animation-delay:1s;

}

.service-card:nth-child(4){

    animation-delay:1.5s;

}

.service-card:nth-child(5){

    animation-delay:2s;

}

.service-card:nth-child(6){

    animation-delay:2.5s;

}

@keyframes serviceFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

    100%{

        transform:translateY(0);

    }

}
.services-veiw-more-btn
{
    margin-top:20px;
    display: flex;
    align-items: center;
    justify-content:center;
}

