﻿
.service-card {
    width: 100%;
    height: 210px;
    perspective: 1200px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-front {
    background: #fff;
}

    .card-front img {
        width: 100%;
        height: 80%;
        object-fit: inherit;
        display: block;
    }

    .card-front h6 {
        height: 20%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        background: #ffffff;
        color: #000;
        text-align: center;
        padding: 0 10px;
    }

.card-back {
    transform: rotateY(180deg);
    background: #fcfcfc;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

    .card-back h6 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .card-back p {
        font-size: 14px;
        opacity: 0.9;
    }

a.text-decoration-none {
    color: inherit;
}