.page-description {
  position: relative;
}

.processor-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.processor-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Centralny punkt świetlny */
.center-light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 255, 170, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.7), 0 0 20px rgba(0, 255, 170, 0.5),
    0 0 40px rgba(0, 255, 170, 0.3);
  transform: translate(-50%, -50%);
  animation: pulsate 4s ease-in-out infinite;
  z-index: 10;
}

/* Linie obwodów procesora */
.circuit-line {
  position: absolute;
  background-color: rgba(0, 255, 170, 0.2);
  transform-origin: right;
  z-index: 1;
  opacity: 0;
  animation: fadeInLine 0.5s ease-out forwards;
}

/* Punkty połączeń na liniach */
.circuit-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 255, 170, 0.6);
  box-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
  z-index: 2;
  opacity: 0;
  animation: fadeInNode 0.3s ease-out forwards;
}

/* Efekt przepływu energii po liniach */
.energy-pulse {
  position: absolute;
  height: 100%;
  width: 15px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 170, 0) 0%,
    rgba(0, 255, 170, 0.8) 50%,
    rgba(0, 255, 170, 0) 100%
  );
  animation: flowEnergy 3s linear infinite;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
  z-index: 3;
}

/* Małe gwiazdki w tle */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: rgba(0, 255, 170, 0.7);
  border-radius: 50%;
  z-index: 0;
  animation: twinkle 4s ease-in-out infinite;
}

/* Rozplysk energii z centralnego punktu */
.energy-burst {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 170, 0.2) 0%,
    rgba(0, 255, 170, 0.1) 30%,
    rgba(0, 255, 170, 0.05) 60%,
    transparent 100%
  );
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

.energy-burst.active {
  animation: energyBurst 2s ease-out forwards;
}

/* Fala energii rozchodząca się od centrum */
.energy-wave {
  position: absolute;
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

.energy-wave.active {
  animation: energyWave 3s ease-out forwards;
}

/* Linie wychodzące z centralnego punktu */
.central-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 170, 0.8) 0%,
    rgba(0, 255, 170, 0.4) 50%,
    rgba(0, 255, 170, 0) 100%
  );
  height: 2px;
  transform-origin: left;
  opacity: 0;
  z-index: 1;
}

.central-line.active {
  animation: centralLineGrow 1s ease-out forwards;
}

/* ANIMACJE */

/* Animacja pulsowania centralnego punktu */
@keyframes pulsate {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.7), 0 0 30px rgba(0, 255, 170, 0.5),
      0 0 60px rgba(0, 255, 170, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.8), 0 0 40px rgba(0, 255, 170, 0.6),
      0 0 80px rgba(0, 255, 170, 0.4);
  }
}

/* Animacja przepływu energii - od prawej do lewej */
@keyframes flowEnergy {
  0% {
    right: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    right: calc(100% - 15px);
    opacity: 0;
  }
}

/* Animacja migotania gwiazd */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

/* Animacja pojawiania się linii */
@keyframes fadeInLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Animacja pojawiania się węzłów */
@keyframes fadeInNode {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animacja rozplysku energii */
@keyframes energyBurst {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: scale(15);
    opacity: 0.1;
  }
}

/* Animacja fali energii */
@keyframes energyWave {
  0% {
    transform: scale(0);
    opacity: 1;
    border-width: 1px;
  }
  50% {
    opacity: 0.6;
    border-width: 1px;
  }
  100% {
    transform: scale(20);
    opacity: 0;
    border-width: 0.5px;
  }
}

@keyframes centralLineGrow {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Dostosowanie do urządzeń mobilnych */
@media (max-width: 992px) {
  .center-light {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.7), 0 0 20px rgba(0, 255, 170, 0.5);
  }
}

@media (max-width: 768px) {
  .center-light {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.7), 0 0 15px rgba(0, 255, 170, 0.5);
  }
  
  /* Animacje na tabletach - nadal duże */
  @keyframes energyBurst {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    20% {
      opacity: 0.7;
    }
    100% {
      transform: scale(12);
      opacity: 0.1;
    }
  }
  
  @keyframes energyWave {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      transform: scale(15);
      opacity: 0;
    }
  }
}

@media (max-width: 576px) {
  .center-light {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px rgba(0, 255, 170, 0.7), 0 0 12px rgba(0, 255, 170, 0.5);
  }
  
  /* Animacje na mobilkach - średnie, ale widoczne */
  @keyframes energyBurst {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    20% {
      opacity: 0.6;
    }
    100% {
      transform: scale(8);
      opacity: 0.1;
    }
  }
  
  @keyframes energyWave {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    50% {
      opacity: 0.4;
    }
    100% {
      transform: scale(10);
      opacity: 0;
    }
  }
}