﻿.services-section {
    background-color: #f8f9fa;
}

/* Card Flip Base */
.service-card {
    perspective: 1000px;
    height: 420px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}





.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0; /* <— Important */
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden; /* hides the back when rotated */
    -webkit-backface-visibility: hidden; /* for Safari */
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}


/* Front Face */
.service-card-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-align: center;
    padding: 2rem;
    position: relative;
}



    /* Transparent Overlay for Image */
    .service-card-front::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0,64,128,0.7), rgba(0,115,230,0.7));
        z-index: 1;
    }

    /* Text on top of overlay */
    .service-card-front h3,
    .service-card-front p {
        position: relative;
        z-index: 2;
    }

/* Back Face */
.service-card-back {
    background: #fff;
    color: #1f2937;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

        .feature-list li:last-child {
            border-bottom: none;
        }

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.25s ease;
}

    .hover-lift:hover {
        transform: translateY(-8px);
    }


/* Flip effect */
.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.button-bg {
    color: white;
    background-color: #004284;
}

.title-color {
    color: #004284;
}