.card-container {
  perspective: 1000px;
  margin: 2rem;
  display: flex;
  justify-content: center;
}

.tilt-card {
  background: linear-gradient(135deg, #1f4037, #99f2c8);
  width: 300px;
  height: 220px;
  border-radius: 15px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.tilt-card .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.flip-card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  margin: 2rem auto;
  position: relative;
}

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

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

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
}

.flip-front img,
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.flip-back {
  transform: rotateY(180deg);
}



.pop-card {
  background:rgba(131, 120, 27, 0.863);
  color: #000;
  width: 280px;
  height: 180px;
  margin: 2rem auto;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.5s, box-shadow 0.5s;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pop-card:hover {
  transform: scale(1.05) rotateX(8deg) rotateY(8deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .tilt-card,
  .flip-card,
  .pop-card {
    width: 90%;
    height: auto;
  }

  .tilt-card p,
  .pop-card p,
  .flip-back p {
    font-size: 16px;
  }

  .tilt-card h2,
  .pop-card h2,
  .flip-back h2 {
    font-size: 22px;
  }

  .tilt-card .icon {
    font-size: 30px;
  }
}
@media (max-width: 768px) {
  .flip-card {
    width: 90%;
    height: 200px;
  }
}
