/* Orbit System Animation */
.orbit-system {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.core {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(237, 28, 36, 0.6);
  z-index: 10;
  animation: pulse 2s infinite alternate;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(0, 157, 1, 0.3);
  animation: spin infinite linear;
}

.orbit-1 {
  width: 160px;
  height: 160px;
  animation-duration: 10s;
}

.orbit-2 {
  width: 260px;
  height: 260px;
  animation-duration: 25s;
  animation-direction: reverse;
  border-color: rgba(237, 28, 36, 0.3);
  border-style: dotted;
}

.orbit-3 {
  width: 380px;
  height: 380px;
  animation-duration: 40s;
  border-style: solid;
  border-color: rgba(0,0,0,0.05);
}

.satellite {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.sat-1 {
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  box-shadow: 0 0 15px rgba(0, 157, 1, 0.8);
}

.sat-2 {
  width: 15px;
  height: 15px;
  background: var(--text-color);
}

.sat-3 {
  width: 12px;
  height: 12px;
  background: var(--primary-red);
  box-shadow: 0 0 15px rgba(237, 28, 36, 0.8);
}

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

@keyframes pulse {
  from { transform: scale(0.95); box-shadow: 0 0 20px rgba(237, 28, 36, 0.4); }
  to { transform: scale(1.05); box-shadow: 0 0 40px rgba(237, 28, 36, 0.8); }
}

/* DNA Animation in About */
.dna-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  height: 300px;
  justify-content: center;
  perspective: 500px;
}

.dna-strand {
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
  position: relative;
  animation: dna-spin 3s infinite linear;
  transform-style: preserve-3d;
}

.dna-strand::before, .dna-strand::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.dna-strand::before {
  left: -5px;
  background: var(--primary-red);
}

.dna-strand::after {
  right: -5px;
  background: var(--primary-green);
}

.dna-strand:nth-child(1) { animation-delay: 0s; }
.dna-strand:nth-child(2) { animation-delay: -0.2s; }
.dna-strand:nth-child(3) { animation-delay: -0.4s; }
.dna-strand:nth-child(4) { animation-delay: -0.6s; }
.dna-strand:nth-child(5) { animation-delay: -0.8s; }
.dna-strand:nth-child(6) { animation-delay: -1.0s; }
.dna-strand:nth-child(7) { animation-delay: -1.2s; }
.dna-strand:nth-child(8) { animation-delay: -1.4s; }

@keyframes dna-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* --- Floating Tech Particles --- */
.tech-particle {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
  animation: floatUpDown 4s ease-in-out infinite;
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.tp-1 { background: var(--primary-red); top: -30px; left: -60px; animation-delay: 0s; }
.tp-2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); top: 40px; right: -70px; animation-delay: -1s; animation-duration: 3.5s; }
.tp-3 { background: var(--primary-green); bottom: 40px; left: -50px; animation-delay: -2s; animation-duration: 4.5s; }
.tp-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); bottom: -20px; right: -40px; animation-delay: -0.5s; animation-duration: 3s; }
.tp-5 { background: linear-gradient(135deg, #06b6d4, #0891b2); top: -10px; right: 40px; animation-delay: -3s; animation-duration: 5s; }

/* --- Floating hexagons --- */
.tech-hex {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0,157,1,0.3);
  animation: hexFloat 6s ease-in-out infinite;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex-1 { top: -60px; right: -30px; border-color: rgba(237,28,36,0.3); animation-delay: -1s; }
.hex-2 { bottom: -50px; left: -80px; animation-delay: -3s; animation-duration: 7s; }

/* --- Pulsing rings --- */
.tech-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(237,28,36,0.2);
  animation: ringPulse 3s ease-out infinite;
}
.ring-1 { width: 100px; height: 100px; top: -70px; left: 20px; animation-delay: 0s; }
.ring-2 { width: 60px; height: 60px; bottom: -40px; right: 30px; border-color: rgba(0,157,1,0.2); animation-delay: -1.5s; }

/* --- Floating dots --- */
.tech-dot {
  position: absolute;
  border-radius: 50%;
  animation: dotDrift 8s ease-in-out infinite;
  opacity: 0.6;
}
.dot-1 { width: 6px; height: 6px; background: var(--primary-red); top: -80px; left: -30px; animation-delay: 0s; }
.dot-2 { width: 4px; height: 4px; background: var(--primary-green); top: 70px; left: -90px; animation-delay: -2s; }
.dot-3 { width: 5px; height: 5px; background: #6366f1; bottom: -60px; right: -50px; animation-delay: -4s; }
.dot-4 { width: 3px; height: 3px; background: var(--primary-red); top: -50px; right: -80px; animation-delay: -1s; animation-duration: 6s; }
.dot-5 { width: 7px; height: 7px; background: var(--primary-green); bottom: 80px; right: -60px; animation-delay: -3s; animation-duration: 7s; }
.dot-6 { width: 4px; height: 4px; background: #f59e0b; top: 100px; left: -70px; animation-delay: -5s; animation-duration: 9s; }

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

@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-15px) rotate(30deg); opacity: 0.8; }
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

@keyframes dotDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -10px); }
  50% { transform: translate(-5px, -18px); }
  75% { transform: translate(10px, -6px); }
}

@media (max-width: 768px) {
  .orbit-3 { width: 300px; height: 300px; }
  .orbit-2 { width: 220px; height: 220px; }
  .orbit-1 { width: 140px; height: 140px; }
  .core { width: 45px; height: 45px; }
  .tech-particle { font-size: 0.5rem; padding: 3px 7px; }
  .tech-hex, .tech-ring, .tech-dot { display: none; }
}
