/* ── DevOps Animations ── NextRobic v5 */

/* Orbiting circles around a central icon */
.orbit-system {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.orbit-core {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  z-index: 5;
  box-shadow: 0 0 40px rgba(99,102,241,0.5);
  animation: coreGlow 3s ease-in-out infinite;
}
@keyframes coreGlow {
  0%,100% { box-shadow: 0 0 30px rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 55px rgba(99,102,241,0.7), 0 0 80px rgba(34,211,238,0.2); }
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.2);
}
.orbit-ring-1 { width: 130px; height: 130px; animation: orbitSpin 10s linear infinite; }
.orbit-ring-2 { width: 185px; height: 185px; animation: orbitSpin 18s linear infinite reverse; }
.orbit-ring-3 { width: 220px; height: 220px; animation: orbitSpin 26s linear infinite; }
@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.orbit-dot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.orbit-dot-1 { top: -17px; left: calc(50% - 17px); }
.orbit-dot-2 { right: -17px; top: calc(50% - 17px); }
.orbit-dot-3 { bottom: -17px; left: calc(50% - 17px); }

/* Code terminal animation */
.terminal-window {
  background: #0a0d16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
}
.terminal-bar {
  background: #111827;
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot-r { background: #ff5f56; }
.terminal-dot-y { background: #ffbd2e; }
.terminal-dot-g { background: #27c93f; }
.terminal-title { color: #475569; font-size: 0.75rem; font-family: var(--font-mono); margin-left: 8px; }
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
}
.t-prompt { color: #34d399; }
.t-cmd    { color: #e2e8f0; }
.t-output { color: #64748b; }
.t-success{ color: #10b981; }
.t-info   { color: #60a5fa; }
.t-warn   { color: #f59e0b; }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: #6366f1;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Typing animation */
.type-line { overflow: hidden; white-space: nowrap; width: 0; }
.type-line:nth-child(1) { animation: typeIn 0.6s steps(30) 0.3s forwards; }
.type-line:nth-child(2) { animation: typeIn 0.8s steps(40) 1.2s forwards; }
.type-line:nth-child(3) { animation: typeIn 0.5s steps(25) 2.3s forwards; }
.type-line:nth-child(4) { animation: typeIn 0.7s steps(35) 3.0s forwards; }
.type-line:nth-child(5) { animation: typeIn 0.6s steps(30) 4.0s forwards; }
.type-line:nth-child(6) { animation: typeIn 0.7s steps(35) 4.8s forwards; }
@keyframes typeIn { to { width: 100%; } }

/* Rotating gear */
.spin-slow  { animation: spin 12s linear infinite; }
.spin-rev   { animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scanning line effect */
.scan-anim {
  position: relative; overflow: hidden;
}
.scan-anim::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.7), transparent);
  animation: scanLine 3s ease-in-out infinite;
  top: 0;
}
@keyframes scanLine {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
