/* ==========================================================================
   MOTOSPACE — Advanced Keyframe Animations & Neon Visual FX
   ========================================================================== */

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 30, 56, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 30, 56, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 30, 56, 0);
  }
}

@keyframes pulseCyan {
  0% {
    box-shadow: 0 0 5px rgba(0, 210, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.9), 0 0 35px rgba(0, 210, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 210, 255, 0.4);
  }
}

@keyframes drawWireframe {
  0% {
    stroke-dashoffset: 400;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -400;
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes rotatePlatformHalo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(1000%);
  }
}

.float-anim {
  animation: floatGentle 4s ease-in-out infinite;
}

.neon-border-pulse {
  animation: pulseCyan 3s infinite ease-in-out;
}

/* Glassmorphism background hover effects */
.hover-glow:hover {
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.35);
}

/* Scanline HUD overlay effect for workshop and customizer */
.scanline-overlay {
  position: relative;
  overflow: hidden;
}

.scanline-overlay::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
}

/* Tooltip badge for 3D interactions */
.interaction-hint {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 8px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  pointer-events: none;
  animation: floatGentle 3s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.interaction-hint svg {
  width: 16px;
  height: 16px;
  color: #00d2ff;
}

.interaction-hint strong {
  color: #ffffff;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(6, 9, 15, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-close-btn {
  align-self: flex-end;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
  margin-bottom: 20px;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-links a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
}

.drawer-links a:hover,
.drawer-links a.active {
  color: #ff1e38;
}
