.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5vw;
  padding: 3vh 1vw;
}

.feat-card {
  width: 250px;
  height: 300px;
  perspective: 1000px;
  position: relative;
  transition: transform 0.4s ease;
}

.feat-card.flipped .card-front {
  transform: rotateY(180deg);
}

.feat-card.flipped .card-back {
  transform: rotateY(0);
}

.card-front,
.card-back {
  width: 100%;
  height: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 2rem 1.5rem;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Front side: white background */
.card-front {
  transform: rotateY(0);
  background: #ffffff;
}

.card-front:hover {
  transform: scale(1.1) rotateY(30deg);
  box-shadow:
    0 8px 16px rgba(232, 248, 255, 0.7),
    inset -2px 0 10px rgba(1, 56, 80, 0.4);
  border-radius: 1.2rem;

}

/* Back side: white to very light blue gradient */
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #ffffff, #e8f8ff);
  color: #003366;
  justify-content: start;
  padding: 2rem 1.5rem;
  gap: 1.2rem;
}

/* Feature icon (same on front and back) */
.feature-icon,
.feature-icon-flip {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00bfff, #007bff);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
  color: #ffffff;
}

/* On card-front, use light background icon if needed */
.feature-icon-flip {
  color: #007bff;
  background: linear-gradient(135deg, #00bfff, #fff);
  box-shadow: none;
}

/* Title & description */
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
  text-align: center;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 1rem;
  color: #444;
  text-align: center;
  margin-bottom: 1rem;
}

.feat-flip-msg {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  font-size: 0.8rem;
  color: #444;
}

.feat-card:hover .card-front .feat-flip-msg {
  opacity: 1;
  visibility: visible;
}

.flip-cta-button {
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  background: #ff4500;
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.flip-cta-button:hover {
  background: #e63c00;
}

/* Back: Feature list */
.feat-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  width: 100%;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.5s ease-out forwards;
}

.feat-list li:nth-child(1) {
  animation-delay: 0.2s;
}

.feat-list li:nth-child(2) {
  animation-delay: 0.4s;
}

.feat-list li:nth-child(3) {
  animation-delay: 0.6s;
}

.feat-list li:nth-child(4) {
  animation-delay: 0.8s;
}

.feat-list li i {
  color: #00cc66;
  font-size: 1.1rem;
  margin-top: 2px;
}

/* CTA */
.cta-group.single-button {
  text-align: center;
  width: 100%;
}


/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    justify-content: center;
  }

  .feat-card {
    width: 85vw;
  }
}

/* Animations */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .feat-card {
    height: 320px;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-desc {
    font-size: 0.9rem;
  }
}

.feat-card {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.feat-list li {
  animation: fadeSlideIn 0.5s ease-out forwards;
}