/* ───────────────────────────────────────────────────────────────────────────
   Pulse Portal - Background Animation Effects
   ─────────────────────────────────────────────────────────────────────────── */

/* Background canvas container */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--om-bg);
}

/* Particle animation effects */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

/* Light streaks - decorative background elements */
.light-streak {
  position: absolute;
  background: linear-gradient(
    to right,
    rgba(79, 70, 229, 0),
    rgba(79, 70, 229, 0.3),
    rgba(79, 70, 229, 0)
  );
  height: 1px;
  width: 100px;
  transform-origin: center;
  opacity: 0;
  animation: streak-float 10s infinite ease-in-out;
}

@keyframes streak-float {
  0% {
    opacity: 0;
    transform: translateX(-50px) rotate(45deg);
  }
  20% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100vw) rotate(45deg);
  }
}

/* Pulse glows - distant pulse node representations */
.pulse-glow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(79, 70, 229, 0.6);
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0;
  animation: pulse-beat 5s infinite ease-in-out;
}

@keyframes pulse-beat {
  0%, 100% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Grid lines - subtle tech background */
.grid-line {
  position: absolute;
  background: rgba(79, 70, 229, 0.05);
}

.grid-line-horizontal {
  width: 100%;
  height: 1px;
}

.grid-line-vertical {
  height: 100%;
  width: 1px;
}

/* Connection lines between particles */
.connection-line {
  position: absolute;
  height: 1px;
  background: rgba(79, 70, 229, 0.2);
  transform-origin: left center;
  opacity: 0.3;
}

/* Global animation for elements appearing */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {
  .background-canvas * {
    animation: none !important;
    transition: none !important;
  }
  
  .pulse-glow, .light-streak {
    opacity: 0.3 !important;
  }
}

/* Add a slight color transition on hover for interactive elements */
.om-btn, .om-link, .om-card {
  transition: all 0.2s ease-in-out;
}

/* Optional loading animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  border-top-color: var(--om-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Content fade-in animation */
.om-panel {
  animation: content-fade-in 0.5s ease-out;
}

@keyframes content-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}