/* CardSwap CSS adapted from React Bits */
.card-swap-wrapper {
  position: relative;
  width: 100%;
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  overflow: visible;
  margin-top: 2rem;
}

.card-swap-container {
  position: relative;
  perspective: 900px;
  overflow: visible;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 16px;
  border: 1px solid #20222B;
  background: linear-gradient(135deg, #111218 0%, #1a1c24 100%);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7C5CFF 0%, #23C4A9 100%);
  opacity: 0.8;
}

/* Card content styling */
.card-content {
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7C5CFF 0%, #23C4A9 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ECEFF4;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-description {
  font-size: 1rem;
  color: #A6ADBB;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 0;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #A6ADBB;
  font-size: 0.9rem;
}

.card-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #7C5CFF;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Special styling for the featured card (Full Package) */
.card.featured {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25) 0%, rgba(35, 196, 169, 0.2) 100%),
              linear-gradient(135deg, #111218 0%, #1a1c24 100%);
  border: 2px solid rgba(124, 92, 255, 0.5);
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.3), 0 0 0 1px rgba(124, 92, 255, 0.2) inset;
}

.card.featured::before {
  opacity: 1;
  height: 6px;
  background: linear-gradient(90deg, #7C5CFF 0%, #23C4A9 100%);
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.8);
}

.card.featured .card-title {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(124, 92, 255, 0.3);
}

.card.featured .card-description,
.card.featured .card-features {
  color: #E5E9F0;
}

/* Hover and click effects */
.card {
  cursor: pointer;
  user-select: none;
}

.card:hover {
  cursor: pointer;
}

.card:active {
  cursor: grabbing;
}

.card-content:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 1024px) {
  .card-swap-wrapper {
    min-height: 550px;
  }
  
  .card {
    border-radius: 14px;
  }
  
  .card-content {
    padding: 2rem;
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  .card-icon {
    width: 56px;
    height: 56px;
  }
  
  .card-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .card-swap-wrapper {
    min-height: 500px;
    padding: 3rem 1rem;
  }
  
  .card-swap-container {
    transform: scale(0.9);
  }
  
  .card-content {
    padding: 1.75rem;
  }
  
  .card-title {
    font-size: 1.35rem;
  }
  
  .card-description {
    font-size: 0.95rem;
  }
  
  .card-features {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .card-swap-wrapper {
    min-height: 450px;
    padding: 2rem 0.5rem;
  }
  
  .card-swap-container {
    transform: scale(0.78);
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .card-features {
    font-size: 0.8rem;
  }
  
  .card-features li {
    padding: 0.4rem 0;
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }
  
  .card-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Animation enhancements */
.card {
  transition: box-shadow 0.3s ease, transform 0.1s ease;
}

/* Ensure proper layering */
.card-swap-container {
  z-index: 1;
}

/* Add subtle background pattern to cards */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(35, 196, 169, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Enhanced hover state to indicate clickability */
.card:hover {
  box-shadow: 0 25px 70px rgba(124, 92, 255, 0.3);
}

.card:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.6);
}

/* Active state for immediate feedback on click */
.card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}
