/* Spotlight Card Effect */
.card-spotlight {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(244, 196, 48, 0.08);
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card-spotlight:hover::before {
  opacity: 1;
}

/* Ensure content stays above the spotlight */
.card-spotlight > * {
  position: relative;
  z-index: 2;
}

/* Specific spotlight colors for different card types */
.stat-card.card-spotlight {
  --spotlight-color: rgba(244, 196, 48, 0.1);
}

.timeline-content.card-spotlight {
  --spotlight-color: rgba(244, 196, 48, 0.08);
}

.project-card.card-spotlight {
  --spotlight-color: rgba(244, 196, 48, 0.08);
}
