/* Palette halo par univers */
.project.astra {
  --halo-rgb: 95, 212, 208;
}
.project.celest {
  --halo-rgb: 217, 168, 90;
}
.project.exp {
  --halo-rgb: 241, 236, 225;
}

.project {
  border: 1px solid transparent;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.7s ease;
}

/* Lueur ambiante derrière la card */
.project::before {
  content: '';
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 75% 65% at 50% 40%,
    rgba(var(--halo-rgb), 0.18) 0%,
    rgba(var(--halo-rgb), 0.06) 38%,
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Anneau halo pulsant */
.project::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: haloBreath 3.2s ease-in-out infinite;
}

.project:hover::before,
.project:focus-within::before {
  opacity: 1;
}
.project:hover::after,
.project:focus-within::after {
  opacity: 1;
}

/* Project visual backgrounds */
.lotus-scene {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/astralumen-lotus.png');
  background-size: cover;
  background-position: center;
}
.net-scene {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/celestia-network.png');
  background-size: cover;
  background-position: center;
}
.lab-scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0d14, #04060a);
}
.lab-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 168, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 168, 90, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 70%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 70%, #000, transparent 80%);
}
