/* ============================================================
   BUCK ROGERS — ANIMATIONS CINÉMATOGRAPHIQUES
   ============================================================ */

/* === FADE & SLIDE ENTRANCES === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === GLITCH EFFECT === */
.glitch-text {
  position: relative;
  animation: text-glitch 2.5s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.glitch-text::before {
  color: var(--color-cyan);
  animation: glitch-1 1.2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
  color: var(--color-primary);
  animation: glitch-2 1.5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(4px, -1px); }
  50% { transform: translate(-2px, 3px); }
}

/* === WARP SPEED === */
.warp-transition {
  transition: all 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* === PARTICLES & NEBULA === */
.nebula {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(45, 27, 105, 0.25) 0%, transparent 70%),
    radial-gradient(circle at 70% 65%, rgba(139, 0, 0, 0.2) 0%, transparent 65%);
  animation: nebula-drift 35s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes nebula-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

/* === STARFIELD === */
#starfield {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* === HOLOGRAPHIC EFFECTS === */
.holo-border {
  position: relative;
}

.holo-border::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--color-cyan), var(--color-gold), var(--color-primary));
  z-index: -1;
  border-radius: inherit;
  opacity: 0.15;
  animation: holo-pulse 3s ease-in-out infinite;
}

@keyframes holo-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

/* === TIMELINE === */
.timeline-item {
  transition: all 0.4s ease;
}

.timeline-item:hover {
  transform: scale(1.02);
}

/* === COUNTER ANIMATION === */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}