/* === Animationen & Dekorative Elemente === */

/* --- Noise-Overlay --- */
.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .55) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .55) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, .45) 0 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 160px 160px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* --- Cursor-Glow --- */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--cursor-x) var(--cursor-y),
    rgba(86, 177, 255, .16), transparent 70%);
  z-index: 1;
}

/* --- Floating Particles --- */
.floating-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.floating-particles span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 218, 255, .85), rgba(47, 115, 218, 0));
  filter: blur(.2px);
  animation: floatParticle 18s linear infinite;
}
.floating-particles span:nth-child(1)  { left: 10%; top: 90%; animation-duration: 16s; animation-delay: -2s; }
.floating-particles span:nth-child(2)  { left: 20%; top: 70%; animation-duration: 22s; animation-delay: -8s; }
.floating-particles span:nth-child(3)  { left: 30%; top: 95%; animation-duration: 17s; animation-delay: -5s; }
.floating-particles span:nth-child(4)  { left: 45%; top: 80%; animation-duration: 21s; animation-delay: -11s; }
.floating-particles span:nth-child(5)  { left: 58%; top: 92%; animation-duration: 19s; animation-delay: -3s; }
.floating-particles span:nth-child(6)  { left: 66%; top: 76%; animation-duration: 24s; animation-delay: -9s; }
.floating-particles span:nth-child(7)  { left: 74%; top: 88%; animation-duration: 18s; animation-delay: -4s; }
.floating-particles span:nth-child(8)  { left: 82%; top: 70%; animation-duration: 26s; animation-delay: -12s; }
.floating-particles span:nth-child(9)  { left: 89%; top: 94%; animation-duration: 20s; animation-delay: -7s; }
.floating-particles span:nth-child(10) { left: 14%; top: 58%; animation-duration: 23s; animation-delay: -10s; }
.floating-particles span:nth-child(11) { left: 54%; top: 60%; animation-duration: 17s; animation-delay: -6s; }
.floating-particles span:nth-child(12) { left: 92%; top: 54%; animation-duration: 19s; animation-delay: -1s; }

@keyframes floatParticle {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  10%  { opacity: .9; }
  80%  { opacity: .35; }
  100% { transform: translate3d(0, -110vh, 0) scale(1.35); opacity: 0; }
}

/* --- Scroll-Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s cubic-bezier(.19, 1, .22, 1),
    transform .85s cubic-bezier(.19, 1, .22, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal[data-reveal="zoom"] {
  transform: scale(.92) translateY(18px);
}
.reveal[data-reveal="fade"] {
  transform: none;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* --- Tilt-Karten --- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tilt-card:hover {
  box-shadow: 0 22px 50px rgba(5, 20, 40, .18);
}

/* --- Magnetic-Buttons --- */
.magnetic {
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
}
