/* =========================================================
   BELYORE EFFECTS — Model Glitch + Logo + Hero Animations
   ========================================================= */

/* ---- MODEL CONTAINER ---- */
#bel-model-wrap {
  position: absolute;
  right: clamp(2%, 6vw, 10%);
  top: 50%;
  transform: translateY(-42%);
  width: clamp(180px, 26vw, 340px);
  height: clamp(280px, 40vw, 520px);
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

/* ---- MODEL SVG LAYERS ---- */
.bel-model-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bel-model-svg--main {
  animation: modelFloat 8s ease-in-out infinite;
  opacity: 0.85;
}

.bel-model-svg--red {
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitchRed 5s steps(1) infinite;
}

.bel-model-svg--cyan {
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitchCyan 5s steps(1) infinite;
}

.bel-model-svg--slice {
  opacity: 0;
  animation: glitchSlice 5s steps(1) infinite;
}

.bel-routes-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: routesDraw 12s ease-in-out infinite;
}

/* ---- MODEL ANIMATIONS ---- */
@keyframes modelFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  30%       { transform: translateY(-10px) scale(1.01); }
  60%       { transform: translateY(-5px) scale(0.99); }
}

@keyframes glitchRed {
  0%, 88%, 100% {
    opacity: 0;
    transform: translate(0,0);
    clip-path: inset(0 0 100% 0);
  }
  89% {
    opacity: 0.65;
    transform: translate(6px, 0);
    clip-path: inset(20% 0 50% 0);
    filter: hue-rotate(-40deg) saturate(3);
  }
  90% {
    opacity: 0.55;
    transform: translate(-4px, 1px);
    clip-path: inset(55% 0 10% 0);
    filter: hue-rotate(-40deg) saturate(3);
  }
  91% {
    opacity: 0.7;
    transform: translate(8px, -2px);
    clip-path: inset(5% 0 75% 0);
    filter: hue-rotate(-40deg) saturate(3);
  }
  92% {
    opacity: 0;
    transform: translate(0,0);
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes glitchCyan {
  0%, 88%, 100% {
    opacity: 0;
    transform: translate(0,0);
    clip-path: inset(0 0 100% 0);
  }
  89% {
    opacity: 0.5;
    transform: translate(-7px, 0);
    clip-path: inset(35% 0 40% 0);
    filter: hue-rotate(140deg) saturate(3);
  }
  90% {
    opacity: 0.6;
    transform: translate(4px, 1px);
    clip-path: inset(65% 0 5% 0);
    filter: hue-rotate(140deg) saturate(3);
  }
  91% {
    opacity: 0.4;
    transform: translate(-9px, -1px);
    clip-path: inset(0% 0 85% 0);
    filter: hue-rotate(140deg) saturate(3);
  }
  92% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes glitchSlice {
  0%, 88%, 100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  88.5% {
    opacity: 1;
    clip-path: inset(42% 0 44% 0);
    transform: translate(12px);
  }
  89% {
    clip-path: inset(15% 0 72% 0);
    transform: translate(-10px);
  }
  89.5% {
    clip-path: inset(70% 0 8% 0);
    transform: translate(6px);
  }
  90% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

/* Route line draw animation */
@keyframes routesDraw {
  0%, 100% { opacity: 0.25; filter: drop-shadow(0 0 2px rgba(255,107,53,0.3)); }
  50%       { opacity: 0.55; filter: drop-shadow(0 0 8px rgba(255,107,53,0.7)); }
}

/* Animated route dash */
.bel-route-path {
  stroke-dasharray: 6 8;
  animation: routeDash 3s linear infinite;
}
.bel-route-path--slow {
  stroke-dasharray: 4 12;
  animation: routeDash 5s linear infinite reverse;
}

@keyframes routeDash {
  to { stroke-dashoffset: -100; }
}

.bel-node-pulse {
  animation: nodePulse 2.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.bel-node-pulse:nth-child(2) { animation-delay: 0.6s; }
.bel-node-pulse:nth-child(3) { animation-delay: 1.2s; }
.bel-node-pulse:nth-child(4) { animation-delay: 1.8s; }

@keyframes nodePulse {
  0%, 100% { r: 3; opacity: 0.6; }
  50%       { r: 5.5; opacity: 1; }
}

/* ---- NAV LOGO ---- */
#bel-nav-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
  animation: logoSpin 18s linear infinite;
}

@keyframes logoSpin {
  0%   { filter: drop-shadow(0 0 4px rgba(255,107,53,0.4)); }
  50%  { filter: drop-shadow(0 0 10px rgba(255,107,53,0.9)); }
  100% { filter: drop-shadow(0 0 4px rgba(255,107,53,0.4)); }
}

#bel-nav-logo svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ---- HERO OUTER AURA (behind model) ---- */
#bel-aura {
  position: absolute;
  right: clamp(2%, 8vw, 12%);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 30vw, 380px);
  height: clamp(200px, 30vw, 380px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.12) 0%,
    rgba(255, 60, 0, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 3;
  animation: auraPulse 6s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: translateY(-50%) scale(1);   opacity: 0.7; }
  50%       { transform: translateY(-50%) scale(1.15); opacity: 1;   }
}

/* ---- GIF GLOW PULSE ---- */
@keyframes gifGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255,107,53,0.30), 0 4px 50px rgba(0,0,0,0.55); }
  50%       { box-shadow: 0 0 60px rgba(255,107,53,0.70), 0 4px 80px rgba(255,60,0,0.30); }
}

/* ---- SCAN LINE OVERLAY on model ---- */
#bel-model-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: multiply;
}
