.gw-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center; /* ensures cards stay in a line */
  margin-top: 2rem;
}

.gw-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  padding: 2px;
  border-radius: 24px;
  overflow: hidden;
  line-height: 1.6;
  background: transparent; /* keep transparent because card-content handles bg */
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.gw-card::before {
  content: "";
  position: absolute;
  height: 160%;
  width: 160%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7a00ff, #00d0ff);
  transform-origin: center;
  animation: moving 4.8s linear infinite paused;
  transition: all 0.88s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.gw-card:hover::before {
  animation-play-state: running;
  width: 20%;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 34px;
  border-radius: 22px;
  background-color: rgba(30, 30, 30, 0.6); /* translucent dark background by default */
  backdrop-filter: blur(10px); /* glass effect */
  color: #f1f1f1;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-content * {
  transition: color 0.35s ease;
}

.gw-card:hover .card-content {
  background-color: #ffffff; /* solid white background on hover */
  color: #121212;
}

.gw-card:hover .card-content .heading,
.gw-card:hover .card-content .para,
.gw-card:hover .card-content i,
.gw-card:hover .card-content a {
  color: #121212;
}

.card-content i {
  font-size: 2.5rem;
  color: #7a00ff;
}

.card-content .heading {
  font-family: "Crimson Text", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
}

.card-content .para {
  opacity: 0.9;
  font-size: 1rem;
  text-align: center;
}

@keyframes moving {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .gw-cards {
    flex-direction: column;
    align-items: center;
  }

  .gw-card {
    width: 90%;
  }
} */
