.step-card {
  width: 250px;
  height: 260px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 12px var(--cyan), 0 0 20px rgba(0, 255, 255, 0.3);
}

.step-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: 2px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover::after {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 30px var(--magenta);
}

.step-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Quando virado */
.step-card.flipped .step-inner {
  transform: rotateY(180deg);
}

/* Faces */
.step-front, .step-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 1rem;
  background-color: #111;
  border: 1px solid var(--cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

/* Frente */
.step-front {
  z-index: 2;
  opacity: 1;
}

/* Verso */
.step-back {
  transform: rotateY(180deg);
  z-index: 1;
  opacity: 0;
}

/* Virando manualmente visibilidade com opacidade */
.step-card.flipped .step-front {
  opacity: 0;
  z-index: 1;
}

.step-card.flipped .step-back {
  opacity: 1;
  z-index: 2;
}

/* Tipografia */
.step-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--magenta);
  margin-bottom: 1rem;
}

.step-front h3, .step-back h3 {
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-front p, .step-back p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}
