/* SpotlightCard CSS adapted from React Bits */
.card-spotlight {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid #20222B;
  background-color: #111218;
  padding: 2rem;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(124, 92, 255, 0.15);
  transition: border-color 0.3s ease;
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle 400px at var(--mouse-x) var(--mouse-y), 
    var(--spotlight-color), 
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
  opacity: 1;
}

.card-spotlight:hover {
  border-color: rgba(124, 92, 255, 0.4);
}

/* Ensure content is above the spotlight effect */
.card-spotlight > * {
  position: relative;
  z-index: 1;
}

/* Variants for different spotlight colors */
.card-spotlight.spotlight-purple {
  --spotlight-color: rgba(124, 92, 255, 0.15);
}

.card-spotlight.spotlight-teal {
  --spotlight-color: rgba(35, 196, 169, 0.15);
}

.card-spotlight.spotlight-blue {
  --spotlight-color: rgba(0, 122, 255, 0.15);
}

.card-spotlight.spotlight-pink {
  --spotlight-color: rgba(255, 45, 85, 0.15);
}

/* Enhanced hover state for spotlight cards */
.card-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth transition for all spotlight cards */
.card-spotlight {
  transition: 
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Icon animation on hover */
.card-spotlight:hover .floating-element {
  animation: float-enhanced 3s ease-in-out infinite;
}

@keyframes float-enhanced {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
  }
  50% { 
    transform: translateY(-12px) scale(1.05); 
  }
}

/* Spotlight card specific text styling */
.card-spotlight h2,
.card-spotlight h3 {
  color: #ECEFF4;
  margin-bottom: 1rem;
}

.card-spotlight p {
  color: #A6ADBB;
  line-height: 1.7;
}

/* Grid layout for spotlight cards */
.spotlight-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Value cards smaller size */
.card-spotlight.card-value {
  padding: 1.5rem;
}

.card-spotlight.card-value h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card-spotlight.card-value p {
  font-size: 0.875rem;
  line-height: 1.6;
}
