body { font-family: 'Inter', sans-serif; }
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.neon-glow:hover {
  box-shadow: 0 0 20px rgba(43, 108, 238, 0.3);
}
html {
  scroll-behavior: smooth;
}

/* Animated Liquid Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #101622;
}

.liquid-shape {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(40px); /* Réduit par défaut */
  opacity: 0.4;
  animation: morph 20s ease-in-out infinite, float 15s ease-in-out infinite;
  will-change: transform, border-radius;
}

/* On ne remet le gros flou que sur Desktop */
@media (min-width: 1024px) {
  .liquid-shape { filter: blur(80px); }
}

.liquid-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 108, 238, 0.9) 0%, rgba(43, 108, 238, 0.4) 50%, transparent 100%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.liquid-shape-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0.4) 50%, transparent 100%);
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.liquid-shape-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(43, 108, 238, 0.7) 0%, rgba(43, 108, 238, 0.3) 50%, transparent 100%);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

.liquid-shape-4 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.75) 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
  top: 40%;
  right: 30%;
  animation-delay: -15s;
}

@keyframes morph {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 70% 30% 50% 60% / 40% 60% 50% 70%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Light effects that respond to scroll */
.light-beam {
  position: absolute;
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(43, 108, 238, 0.5), transparent);
  opacity: 0;
  animation: beam 8s ease-in-out infinite;
  will-change: opacity, transform;
}

.light-beam-1 {
  left: 20%;
  top: -200px;
  animation-delay: 0s;
}

.light-beam-2 {
  left: 50%;
  top: -200px;
  animation-delay: 2s;
}

.light-beam-3 {
  left: 80%;
  top: -200px;
  animation-delay: 4s;
}

@keyframes beam {
  0%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(100vh);
  }
}

/* Particle effects */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(43, 108, 238, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(43, 108, 238, 0.5);
  animation: particle-float 15s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -100vh);
    opacity: 0;
  }
}

/* Optimisation Mobile : Moins de calculs de flou sur les cartes */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(4px); /* Flou beaucoup plus léger */
    background: rgba(255, 255, 255, 0.05);
  }

  /* Désactiver les animations de fond sur mobile */
  .liquid-shape {
    animation: none !important;
  }

  /* Masquer les éléments de particules et de lumière trop lourds */
  .light-beam, .particle {
    display: none;
  }
}