body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: #ffde06;
    border-radius: 50%;
    z-index: 0;
    filter: blur(20px);
    opacity: 0.7;
}

.card-stack {
    position: relative;
    width: 250px;
    height: 350px;
    transform-style: preserve-3d;
    z-index: 1;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Configuração original que você curtiu */
    transform: rotateX(60deg) translateZ(calc(var(--i) * 30px)) translateY(calc(var(--i) * -10px));
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffde06;
}

.card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-stack:hover .card {
    transform: rotateX(0deg) translateZ(0) translateX(calc(var(--i) * 270px - 270px));
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card:hover {
    transform: rotateX(0deg) translateZ(50px) translateX(calc(var(--i) * 270px - 270px)) scale(1.05) !important;
    z-index: 10;
}