/* =========================
   STACKING CARDS SECTION
========================= */

.stacking-container {
    padding: 100px 0;
    overflow: visible;
}

.stack-card {
    position: sticky;
    top: 120px;
    padding-bottom: 80px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card stacking effect */
.stack-card:nth-child(1) {
    z-index: 1;
    transform: translateY(0);
}

.stack-card:nth-child(2) {
    z-index: 2;
    transform: translateY(20px);
}

.stack-card:nth-child(3) {
    z-index: 3;
    transform: translateY(40px);
}

.stack-card:nth-child(4) {
    z-index: 4;
    transform: translateY(60px);
}

.stack-card:nth-child(5) {
    z-index: 5;
    transform: translateY(80px);
}

.stack-card:nth-child(6) {
    z-index: 6;
    transform: translateY(100px);
}

.stack-card:nth-child(7) {
    z-index: 7;
    transform: translateY(120px);
}

.service-panel {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    min-height: 550px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
}

/* =========================
   CONTENT STYLES
========================= */

.card-count {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 4px;
    opacity: 0.8;
}

.visual-side {
    position: relative;
    overflow: hidden;
}

.visual-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.service-panel:hover .visual-side img {
    transform: scale(1.1) rotate(1deg);
}

/* =========================
   FEATURE BADGES
========================= */

.badge-feature {
    background: var(--light-gray);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.badge-feature:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {

    .stack-card {
        position: relative;
        top: 0 !important;
        padding-bottom: 40px;
        transform: none !important;
    }

    .service-panel {
        flex-direction: column;
    }

    .visual-side {
        height: 300px;
    }
}