/* ========================================================
   KALEIDO WHAT WE DO - 3D FLIP CARDS STYLING
   ======================================================== */

.bg-black {
    background-color: #2c2020 !important;
}

/* Ambient Red Glowing Lights */
.services-glow-1 {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 172, 176, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.services-glow-2 {
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(177, 18, 38, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* Header Pill Badge */
.services-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.services-pill-badge .badge-dot {
    width: 8px;
    height: 8px;
    background-color: #B11226;
    border-radius: 50%;
    box-shadow: 0 0 10px #B11226;
}

.services-pill-badge .badge-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FFFFFF;
}

/* --- 3D FLIP CARD ENGINE --- */
.service-flip-wrapper {
    background-color: transparent;
    height: 380px;
    perspective: 1200px; /* Perspective for 3D depth */
    cursor: pointer;
}

.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* Flip Trigger */
.service-flip-wrapper:hover .service-flip-inner,
.service-flip-wrapper.flipped .service-flip-inner {
    transform: rotateY(180deg);
}

/* Front & Back Base Settings */
.service-flip-front,
.service-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- FRONT CARD SIDE --- */
.service-flip-front {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-flip-wrapper:hover .service-flip-front {
    border-color: #B11226;
}

.card-num-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #B11226 0%, #8E0E1C 100%);
    color: #FFFFFF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(177, 18, 38, 0.35);
    transition: transform 0.3s ease;
}

.service-flip-wrapper:hover .card-icon-box {
    transform: scale(1.1);
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0;
}

.flip-hint-btn {
    font-size: 13px;
    font-weight: 600;
    color: #FF3E55;
    display: inline-flex;
    align-items: center;
}

/* --- BACK CARD SIDE --- */
.service-flip-back {
    background: linear-gradient(135deg, #18080A 0%, #0D0D0D 100%);
    border: 1px solid #B11226;
    transform: rotateY(180deg); /* Crucial: Rotates back side so text is NOT mirrored */
    box-shadow: inset 0 0 50px rgba(177, 18, 38, 0.2);
}

.back-card-num {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: #FF3E55;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.back-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.back-desc {
    font-size: 13.5px;
    color: #DDDDDD;
    line-height: 1.6;
    margin-bottom: 15px;
}

.back-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.back-highlights li {
    font-size: 12.5px;
    color: #CCCCCC;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.btn-card-back {
    background: linear-gradient(135deg, #B11226 0%, #8E0E1C 100%);
    color: #FFFFFF !important;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card-back:hover {
    box-shadow: 0 8px 20px rgba(177, 18, 38, 0.5);
    transform: translateY(-2px);
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
    .service-flip-wrapper {
        height: 360px;
    }
}