.cascading-cards-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
}

.cc-card {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, z-index 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

/* Cascading layout (overlapping, staggered) */
.cc-card-1 {
    transform: translate(-40px, -20px) rotate(-4deg);
    z-index: 1;
}

.cc-card-2 {
    transform: translate(0, 0) rotate(0deg);
    z-index: 2;
}

.cc-card-3 {
    transform: translate(40px, 20px) rotate(4deg);
    z-index: 3;
}

/* Hover shifts */
.cascading-cards-container:hover .cc-card-1 {
    transform: translate(-80px, -40px) rotate(-8deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cascading-cards-container:hover .cc-card-2 {
    transform: translate(0, -20px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 4;
}

.cascading-cards-container:hover .cc-card-3 {
    transform: translate(80px, 40px) rotate(8deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
