html, body, header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}

/* Services Section */
/* Main heading style for the services section */
.services-section {
    font-family: 'Playfair Display', serif;
    color: #800020; /* Deep Burgundy */
    padding: 80px 0 20px 0;
    font-size: 40px;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Footer styles removed. Footer now relies on style.css --- */

/* Service Card Styles (unchanged) */
/* Container for each service card with 3D perspective and pointer cursor */
.service-card {
    perspective: 1200px;
    cursor: pointer;
    height: 420px;
    margin: 0 auto;
    background: transparent;
}
/* Inner wrapper for card flip animation */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}
/* Flip the card when .flipped class is added */
.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}
/* Shared styles for card front and back faces */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(33,37,41,0.10);
    background:rgb(207, 199, 209);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 32px 24px;
    text-align: center;
    border: 2px solid #a99ebb;
}
/* Image styling for the front of the card */
.card-front img {
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 22px;
}
/* Heading styles for both card faces */
.card-front h5, .card-back h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 16px;
    color: #4a297c;
}
/* Back face of the card with flipped transform and white background */
.card-back {
    transform: rotateY(180deg);
    background: #fff;
    color: #212529;
}
/* Paragraph styling on the back of the card */
.card-back p {
    font-size: 1.12rem;
    margin: 0;
}
/* Responsive adjustments for medium screens */
@media (max-width: 991px) {
    .service-card {
        height: 340px;
    }
    .card-front img {
        max-height: 120px;
    }
}
/* Responsive adjustments for small screens */
@media (max-width: 767px) {
    .service-card {
        height: 250px;
    }
    .card-front img {
        max-height: 70px;
    }
    .card-front, .card-back {
        padding: 18px 8px 12px 8px;
    }
}