.pixel-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pixel-dot {
  position: absolute;
  background-color: var(--glow-color);
  border-radius: 50%;
  width: 2px;
  height: 2px;
  animation: pulse 4s infinite;
}

.pixel-card {
  --card-bg: #0f1524;
  --glow-color: rgba(59, 130, 246, 0.5);
  position: relative;
  background-color: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.3), 0 2px 10px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pixel-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glow-color);
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%), 
    var(--glow-color) 0%, 
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.pixel-card:hover .glow {
  opacity: 0.6;
}

.content {
  position: relative;
  z-index: 2;
}

/* Variants */
.pixel-card.blue {
  --glow-color: rgba(59, 130, 246, 0.8);
}

.pixel-card.emerald {
  --glow-color: rgba(16, 185, 129, 0.8);
}

.pixel-card.amber {
  --glow-color: rgba(245, 158, 11, 0.8);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  20% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  40% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
} 
