/* Roadmap Flip Cards Styles */
:root {
  --roadmap-bg: #0a0c10;
  --roadmap-card-bg: rgba(20, 25, 35, 0.9);
  --roadmap-accent: #ffffff;
  --roadmap-text: #fafbfd;
  --roadmap-text-dim: #c6c7cc;
  --roadmap-radius: 20px;
  --roadmap-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.roadmap-section {
  background-color: #000000;
  padding: 4rem 2rem;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-flip-container {
  width: 100%;
  max-width: auto;
  position: relative;
}

.roadmap-smoke {
  width: 500px;
  height: 500px;
  position: absolute;
  top: -200px;
  left: 45%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.roadmap-smoke img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
}

.roadmap-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
  font-family: 'Codec Pro', sans-serif;
  text-transform: uppercase;
}

.roadmap-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 380px);
  gap: 30px;
  width: 1630px;
  margin-left: auto;
  margin-right: auto;
}

.roadmap-flip-card {
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}

.roadmap-card-inner {
  position: relative;
  width: 100%;
  min-height: 600px;
  transform-style: preserve-3d;
  border-radius: var(--roadmap-radius);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.roadmap-flip-card.flipped .roadmap-card-inner {
  transform: rotateY(180deg);
}

.roadmap-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--roadmap-radius);
  background: var(--roadmap-card-bg);
  box-shadow: var(--roadmap-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, filter 0.3s;
}

.roadmap-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--roadmap-radius);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25),
    0 0 25px rgba(0, 255, 255, 0.15) inset;
  opacity: 0;
  transition: opacity 0.4s;
}

.roadmap-flip-card:hover .roadmap-card-face::before,
.roadmap-flip-card.flipped .roadmap-card-face::before {
  opacity: 1;
  animation: roadmap-pulse 2s infinite alternate;
}

@keyframes roadmap-pulse {
  0% {
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.25),
      0 0 25px rgba(0, 255, 255, 0.15) inset;
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.4),
      0 0 35px rgba(0, 255, 255, 0.25) inset;
  }
  100% {
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.25),
      0 0 25px rgba(0, 255, 255, 0.15) inset;
  }
}

.roadmap-card-front h2 {
  font-family: 'Codec Pro', sans-serif;
  font-size: 1.6rem;
  color: var(--roadmap-accent);
  margin-bottom: 0.5rem;
}

.roadmap-card-front p {
  font-size: 1rem;
  color: var(--roadmap-text-dim);
  line-height: 1.5;
}

.roadmap-card-one {
  background: url("./media/roadmapcards/one.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.roadmap-card-two {
  background: url("./media/roadmapcards/two.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.roadmap-card-three {
  background: url("./media/roadmapcards/three.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.roadmap-card-four {
  background: url("./media/roadmapcards/four.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.roadmap-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roadmap-card-back h3 {
  font-family: 'Codec Pro', sans-serif;
  font-size: 1.4rem;
  color: var(--roadmap-accent);
  margin-bottom: 1rem;
}

ul.roadmap-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.roadmap-features li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--roadmap-text-dim);
  font-size: 1.2rem;
  line-height: 1.5;
}

ul.roadmap-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--roadmap-accent);
}

.roadmap-cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  display: none;
}

.roadmap-cta-buttons a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  font-family: 'Codec Pro', sans-serif;
}

.roadmap-cta-buttons a.roadmap-primary {
  background: var(--roadmap-accent);
  color: #000;
}

.roadmap-cta-buttons a.roadmap-primary:hover {
  background: #00ffff;
}

.roadmap-cta-buttons a.roadmap-secondary {
  border: 1px solid var(--roadmap-accent);
  color: var(--roadmap-accent);
}

.roadmap-cta-buttons a.roadmap-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .roadmap-section {
    padding: 2rem 1rem;
  }
  
  .roadmap-card-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 20px;
  }
  
  .roadmap-card-inner {
    min-height: 300px;
  }
  
  .roadmap-card-face {
    padding: 18px;
  }
  
  .roadmap-card-front h2 {
    font-size: 1.3rem;
  }
  
  .roadmap-card-back h3 {
    font-size: 1.2rem;
  }
  
  ul.roadmap-features li {
    font-size: 0.9rem;
  }
}

