.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.flip-card {
    perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    backface-visibility: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.flip-card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .flip-card-front img {
        width: 100%;
        height: auto;
        max-height: 180px; 
        object-fit: contain;
        border-radius: 10px;
    }

    .flip-card-front h4 {
        margin-top: 15px;
        color: #6a1b9a;
        font-weight: 600;
    }

.flip-card-back {
    background: #006CCC;
    color: #fff;
    transform: rotateY(180deg);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .flip-card-back p {
        font-size: 15px;
        margin-bottom: 20px;
    }

.service-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #8e24aa;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .service-btn:hover {
        background: #f3e5f5;
        transform: scale(1.05);
    }

.highlight .flip-card-back {
    background: #006CCC;
}
