.card-swap-container {
  position: relative;
  margin: 0 auto;
  transform: none;
  transform-origin: center center;
  display: flex;
  justify-content: center;
  align-items: center;

  perspective: 900px;
  overflow: visible;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 12px;
  border: 1px solid #fff;
  background: #000;

  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card:hover {
  border-color: #3B82F6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card p {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
}

.card-image {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .card-swap-container {
    transform: scale(0.8);
    width: 400px !important;
    height: 320px !important;
  }
  
  .card {
    font-size: 14px;
  }
  
  .card h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card-swap-container {
    transform: scale(0.6);
    width: 300px !important;
    height: 240px !important;
  }
  
  .card {
    font-size: 12px;
  }
  
  .card h3 {
    font-size: 14px;
  }
  
  .card-image {
    height: 120px;
  }
}