/* 🎮 Cyberpunk Neon Glow Buttons */
.card a {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 🔥 Neon animated border + halo */
.card a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 6px; /* thickness of neon frame */
  background: linear-gradient(
      135deg,
      #8a2be2, /* purple */
      #ff1493, /* pink */
      #00e5ff, /* aqua */
      #007bff  /* blue */
  );
  background-size: 300% 300%;
  animation: neonFlow 8s linear infinite;
  z-index: -1;

  /* keep glow only at edges */
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  opacity: 0.9;
  filter: blur(5px) brightness(1.2); /* softer glow */
}

/* Inner button fill */
.card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--Grey);
  z-index: -2;
  transition: background 0.3s ease;
}

/* Hover boost */
.card a:hover::after {
  background: var(--Dark-Grey);
}

.card a:hover::before {
  filter: blur(7px) brightness(1.4);
}

/* 🔹 Smooth Neon gradient flow */
@keyframes neonFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔥 Cyberpunk Flame Effect for Profile Image */
.card-pic {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: visible; /* let glow extend */
}

.card-pic img {
  z-index: 2;
  position: relative;
  border-radius: 50%;
  border: 3px solid var(--Dark-Grey);
  width: 88px;
  height: 88px;
  object-fit: cover;
}

/* Glow Layers */
.card-pic::before,
.card-pic::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  z-index: 1;
}

/* First glow layer */
.card-pic::before {
  background: radial-gradient(circle, rgba(138,43,226,0.7), rgba(255,20,147,0.5), transparent 70%);
  filter: blur(35px);
  animation: flameFlicker 4s infinite ease-in-out alternate;
}

/* Second glow layer for depth */
.card-pic::after {
  background: radial-gradient(circle, rgba(0,229,255,0.7), rgba(0,123,255,0.5), transparent 70%);
  filter: blur(50px);
  animation: flameFlicker2 5s infinite ease-in-out alternate;
}

/* Flame flicker animations */
@keyframes flameFlicker {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes flameFlicker2 {
  0% { transform: scale(1.2); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.9; }
  100% { transform: scale(1.1); opacity: 0.6; }
}
