/* Three-Tier Architecture Animation System */

/* Architecture title styling */
.architecture-title {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
}

/* Parent container that provides the proper context */
.capabilities-right {
  position: relative;
  height: 100%;
  min-height: 600px;
  background: rgba(10, 10, 26, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

/* Main container for the three-tier architecture visualization */
.architecture-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Glass container for the funnel effect */
.glass-container {
  position: absolute;
  width: 90%;
  height: 95%;
  top: 2.5%;
  left: 5%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(3px);
  animation: glassBreath 10s ease-in-out infinite;
}

.tier-container {
  position: absolute;
  width: 80%;
  height: 85%;
  top: 10%;
  left: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier {
  width: 100%;
  height: 28%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.tier-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 200;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compiler-tier {
  background: linear-gradient(
    90deg,
    rgba(255, 100, 100, 0.4),
    rgba(255, 200, 0, 0.3)
  );
  animation: tierPulse1 6s ease-in-out infinite;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.orchestrator-tier {
  background: linear-gradient(
    90deg,
    rgba(128, 0, 255, 0.4),
    rgba(100, 150, 255, 0.4)
  );
  animation: tierPulse2 6s ease-in-out infinite;
  animation-delay: 1s;
  border: 1px solid rgba(128, 0, 255, 0.4);
}

.knowledge-tier {
  background: linear-gradient(
    90deg,
    rgba(0, 200, 100, 0.4),
    rgba(0, 180, 200, 0.35)
  );
  animation: tierPulse3 6s ease-in-out infinite;
  animation-delay: 2s;
  border: 1px solid rgba(0, 200, 100, 0.4);
  box-shadow: 0 0 20px rgba(0, 200, 100, 0.25);
}

.connector {
  position: absolute;
  width: 2px;
  height: 6%;
  background: rgba(255, 255, 255, 0.5);
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hide connectors */
}

.connector-1 {
  top: 28%;
}

.connector-2 {
  top: 66%;
}

/* Multi-particle system */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Compiler tier particles (spheres) */
.compiler-particles {
  position: absolute;
  top: 0%;
  width: 100%;
  height: 28%;
  perspective: 800px;
}

.sphere {
  position: absolute;
  opacity: 0;
  animation: sphereFlow 12s linear infinite;
}

.sphere::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  animation: chaosFlicker 3s ease-in-out infinite,
    blobMorph 4s ease-in-out infinite;
  filter: blur(0.3px);
}

.sphere:nth-child(1) {
  left: 15%;
  width: 18px;
  height: 18px;
  animation-delay: 0s;
}
.sphere:nth-child(1)::before {
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 100, 100, 0.9),
    rgba(255, 0, 0, 0.4)
  );
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  animation-delay: 0.5s;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

.sphere:nth-child(2) {
  left: 75%;
  width: 24px;
  height: 24px;
  animation-delay: 1.2s;
}
.sphere:nth-child(2)::before {
  background: radial-gradient(
    circle at 20% 60%,
    rgba(100, 255, 100, 0.8),
    rgba(0, 255, 0, 0.3)
  );
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
  animation-delay: 0.8s;
  border-radius: 40% 60% 70% 30% / 60% 40% 50% 50%;
}

.sphere:nth-child(3) {
  left: 35%;
  width: 16px;
  height: 16px;
  animation-delay: 2.7s;
}
.sphere:nth-child(3)::before {
  background: radial-gradient(
    circle at 70% 20%,
    rgba(100, 100, 255, 0.7),
    rgba(0, 0, 255, 0.5)
  );
  box-shadow: 0 0 15px rgba(0, 100, 255, 0.4);
  animation-delay: 1.3s;
  border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
}

.sphere:nth-child(4) {
  left: 85%;
  width: 22px;
  height: 22px;
  animation-delay: 3.1s;
}
.sphere:nth-child(4)::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 100, 0.9),
    rgba(255, 200, 0, 0.6)
  );
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
  animation-delay: 0.2s;
  border-radius: 50% 50% 60% 40% / 70% 30% 60% 40%;
}

.sphere:nth-child(5) {
  left: 60%;
  width: 14px;
  height: 14px;
  animation-delay: 4.8s;
}
.sphere:nth-child(5)::before {
  background: radial-gradient(
    circle at 30% 80%,
    rgba(255, 100, 255, 0.8),
    rgba(200, 0, 200, 0.4)
  );
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.6);
  animation-delay: 1.7s;
  border-radius: 30% 70% 40% 60% / 50% 50% 50% 50%;
}

.sphere:nth-child(6) {
  left: 25%;
  width: 26px;
  height: 26px;
  animation-delay: 5.5s;
}
.sphere:nth-child(6)::before {
  background: radial-gradient(
    circle at 60% 30%,
    rgba(100, 255, 255, 0.7),
    rgba(0, 200, 200, 0.5)
  );
  box-shadow: 0 0 9px rgba(0, 255, 255, 0.8);
  animation-delay: 0.9s;
  border-radius: 65% 35% 45% 55% / 35% 65% 35% 65%;
}

.sphere:nth-child(7) {
  left: 45%;
  width: 20px;
  height: 20px;
  animation-delay: 6.3s;
}
.sphere:nth-child(7)::before {
  background: radial-gradient(
    circle at 80% 60%,
    rgba(255, 150, 100, 0.6),
    rgba(255, 100, 0, 0.7)
  );
  box-shadow: 0 0 11px rgba(255, 100, 0, 0.5);
  animation-delay: 2.1s;
  border-radius: 45% 55% 65% 35% / 60% 40% 55% 45%;
}

.sphere:nth-child(8) {
  left: 10%;
  width: 15px;
  height: 15px;
  animation-delay: 7.9s;
}
.sphere:nth-child(8)::before {
  background: radial-gradient(
    circle at 25% 75%,
    rgba(150, 255, 150, 0.9),
    rgba(50, 255, 50, 0.3)
  );
  box-shadow: 0 0 13px rgba(100, 255, 100, 0.7);
  animation-delay: 1.4s;
  border-radius: 55% 45% 30% 70% / 45% 55% 45% 55%;
}

.sphere:nth-child(9) {
  left: 90%;
  width: 21px;
  height: 21px;
  animation-delay: 8.6s;
}
.sphere:nth-child(9)::before {
  background: radial-gradient(
    circle at 40% 20%,
    rgba(200, 150, 255, 0.8),
    rgba(150, 50, 255, 0.6)
  );
  box-shadow: 0 0 16px rgba(180, 100, 255, 0.4);
  animation-delay: 0.7s;
  border-radius: 40% 60% 50% 50% / 65% 35% 60% 40%;
}

.sphere:nth-child(10) {
  left: 55%;
  width: 17px;
  height: 17px;
  animation-delay: 9.4s;
}
.sphere:nth-child(10)::before {
  background: radial-gradient(
    circle at 90% 10%,
    rgba(255, 200, 200, 0.7),
    rgba(255, 150, 150, 0.5)
  );
  box-shadow: 0 0 8px rgba(255, 180, 180, 0.6);
  animation-delay: 1.8s;
  border-radius: 70% 30% 35% 65% / 40% 60% 50% 50%;
}

/* Orchestrator tier particles (organized spheres) */
.orchestrator-particles {
  position: absolute;
  top: 34%;
  width: 100%;
  height: 28%;
  perspective: 800px;
}

.organized-sphere {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  animation: organizedFlow 10s linear infinite;
}

.organized-sphere:nth-child(1) {
  left: 25%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 100, 100, 0.9),
    rgba(255, 0, 0, 0.6)
  );
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
  animation-delay: 0.5s;
}
.organized-sphere:nth-child(2) {
  left: 70%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(100, 255, 100, 0.9),
    rgba(0, 255, 0, 0.6)
  );
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  animation-delay: 1.8s;
}
.organized-sphere:nth-child(3) {
  left: 15%;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(100, 100, 255, 0.9),
    rgba(0, 0, 255, 0.6)
  );
  box-shadow: 0 0 11px rgba(0, 0, 255, 0.5);
  animation-delay: 3.2s;
}
.organized-sphere:nth-child(4) {
  left: 85%;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(255, 255, 100, 0.9),
    rgba(255, 200, 0, 0.6)
  );
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
  animation-delay: 0.2s;
}
.organized-sphere:nth-child(5) {
  left: 45%;
  background: radial-gradient(
    circle at 35% 65%,
    rgba(255, 100, 255, 0.9),
    rgba(200, 0, 200, 0.6)
  );
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
  animation-delay: 2.7s;
}
.organized-sphere:nth-child(6) {
  left: 60%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(100, 255, 255, 0.9),
    rgba(0, 200, 200, 0.6)
  );
  box-shadow: 0 0 9px rgba(0, 255, 255, 0.5);
  animation-delay: 1.1s;
}
.organized-sphere:nth-child(7) {
  left: 30%;
  background: radial-gradient(
    circle at 40% 60%,
    rgba(255, 150, 100, 0.9),
    rgba(255, 100, 0, 0.6)
  );
  box-shadow: 0 0 11px rgba(255, 100, 0, 0.5);
  animation-delay: 4.1s;
}
.organized-sphere:nth-child(8) {
  left: 80%;
  background: radial-gradient(
    circle at 55% 45%,
    rgba(150, 255, 150, 0.9),
    rgba(50, 255, 50, 0.6)
  );
  box-shadow: 0 0 10px rgba(100, 255, 100, 0.5);
  animation-delay: 2.3s;
}
.organized-sphere:nth-child(9) {
  left: 55%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(200, 150, 255, 0.9),
    rgba(150, 50, 255, 0.6)
  );
  box-shadow: 0 0 13px rgba(180, 100, 255, 0.5);
  animation-delay: 0.9s;
}
.organized-sphere:nth-child(10) {
  left: 35%;
  background: radial-gradient(
    circle at 45% 55%,
    rgba(255, 200, 200, 0.9),
    rgba(255, 150, 150, 0.6)
  );
  box-shadow: 0 0 8px rgba(255, 180, 180, 0.5);
  animation-delay: 3.6s;
}

/* Knowledge tier - Orbital Container */
.knowledge-particles {
  position: absolute;
  top: 66%;
  left: 0;
  width: 100%;
  height: 32%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 50;
  pointer-events: none;
}

.knowledge-logo-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 143px;
  overflow: hidden;
}

/* Knowledge Orbital System - Direct from orbits.html */

.knowledge-orbital-system {
  position: relative;
  width: 100%;
  height: 100%;
}

.knowledge-central-sphere {
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #ffff88, #ff8800);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 136, 0.8), 0 0 16px rgba(255, 136, 0, 0.4);
  opacity: 0.6;
  z-index: 10;
}

.knowledge-orbiting-sphere {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
}

/* Three orbital ellipses */
.knowledge-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0px solid rgba(0, 255, 136, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.knowledge-orbit-ring-1 {
  width: 151px;
  height: 40px;
}

.knowledge-orbit-ring-2 {
  width: 319px;
  height: 85px;
}

.knowledge-orbit-ring-3 {
  width: 486px;
  height: 129px;
}

/* Orbiting spheres */
.knowledge-dropping-sphere {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 5;
}

/* Inner ring spheres (2 spheres) */
.knowledge-inner-sphere-1 {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
  animation: knowledgeInnerOrbit 8s linear infinite;
  animation-delay: 0s;
}

.knowledge-inner-sphere-2 {
  background: radial-gradient(circle at 30% 30%, #4ecdc4, #2ca69b);
  box-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
  animation: knowledgeInnerOrbit 8s linear infinite;
  animation-delay: 4s;
}

/* Middle ring spheres (3 spheres) */
.knowledge-middle-sphere-1 {
  background: radial-gradient(circle at 30% 30%, #45b7d1, #2980b9);
  box-shadow: 0 0 8px rgba(69, 183, 209, 0.6);
  animation: knowledgeMiddleOrbit 12s linear infinite;
  animation-delay: 0s;
}

.knowledge-middle-sphere-2 {
  background: radial-gradient(circle at 30% 30%, #96ceb4, #6ab7a1);
  box-shadow: 0 0 8px rgba(150, 206, 180, 0.6);
  animation: knowledgeMiddleOrbit 12s linear infinite;
  animation-delay: 4s;
}

.knowledge-middle-sphere-3 {
  background: radial-gradient(circle at 30% 30%, #ffeaa7, #fdcb6e);
  box-shadow: 0 0 8px rgba(255, 234, 167, 0.6);
  animation: knowledgeMiddleOrbit 12s linear infinite;
  animation-delay: 8s;
}

/* Outer ring spheres (5 spheres) */
.knowledge-outer-sphere-1 {
  background: radial-gradient(circle at 30% 30%, #fd79a8, #e84393);
  box-shadow: 0 0 8px rgba(253, 121, 168, 0.6);
  animation: knowledgeOuterOrbit 16s linear infinite;
  animation-delay: 0s;
}

.knowledge-outer-sphere-2 {
  background: radial-gradient(circle at 30% 30%, #a29bfe, #6c5ce7);
  box-shadow: 0 0 8px rgba(162, 155, 254, 0.6);
  animation: knowledgeOuterOrbit 16s linear infinite;
  animation-delay: 3.2s;
}

.knowledge-outer-sphere-3 {
  background: radial-gradient(circle at 30% 30%, #ff7675, #d63031);
  box-shadow: 0 0 8px rgba(255, 118, 117, 0.6);
  animation: knowledgeOuterOrbit 16s linear infinite;
  animation-delay: 6.4s;
}

.knowledge-outer-sphere-4 {
  background: radial-gradient(circle at 30% 30%, #74b9ff, #0984e3);
  box-shadow: 0 0 8px rgba(116, 185, 255, 0.6);
  animation: knowledgeOuterOrbit 16s linear infinite;
  animation-delay: 9.6s;
}

.knowledge-outer-sphere-5 {
  background: radial-gradient(circle at 30% 30%, #00cec9, #00b894);
  box-shadow: 0 0 8px rgba(0, 206, 201, 0.6);
  animation: knowledgeOuterOrbit 16s linear infinite;
  animation-delay: 12.8s;
}

/* Exact elliptical paths using left/top positioning */

/* Inner ring orbit (151px × 40px) */
@keyframes knowledgeInnerOrbit {
  0% {
    left: calc(50% + 75.5px);
    top: 50%;
  }
  12.5% {
    left: calc(50% + 53px);
    top: calc(50% - 14px);
  }
  25% {
    left: 50%;
    top: calc(50% - 20px);
  }
  37.5% {
    left: calc(50% - 53px);
    top: calc(50% - 14px);
  }
  50% {
    left: calc(50% - 75.5px);
    top: 50%;
  }
  62.5% {
    left: calc(50% - 53px);
    top: calc(50% + 14px);
  }
  75% {
    left: 50%;
    top: calc(50% + 20px);
  }
  87.5% {
    left: calc(50% + 53px);
    top: calc(50% + 14px);
  }
  100% {
    left: calc(50% + 75.5px);
    top: 50%;
  }
}

/* Middle ring orbit (319px × 85px) */
@keyframes knowledgeMiddleOrbit {
  0% {
    left: calc(50% + 159.5px);
    top: 50%;
  }
  12.5% {
    left: calc(50% + 113px);
    top: calc(50% - 30px);
  }
  25% {
    left: 50%;
    top: calc(50% - 42.5px);
  }
  37.5% {
    left: calc(50% - 113px);
    top: calc(50% - 30px);
  }
  50% {
    left: calc(50% - 159.5px);
    top: 50%;
  }
  62.5% {
    left: calc(50% - 113px);
    top: calc(50% + 30px);
  }
  75% {
    left: 50%;
    top: calc(50% + 42.5px);
  }
  87.5% {
    left: calc(50% + 113px);
    top: calc(50% + 30px);
  }
  100% {
    left: calc(50% + 159.5px);
    top: 50%;
  }
}

/* Outer ring orbit (486px × 129px) */
@keyframes knowledgeOuterOrbit {
  0% {
    left: calc(50% + 243px);
    top: 50%;
  }
  12.5% {
    left: calc(50% + 172px);
    top: calc(50% - 46px);
  }
  25% {
    left: 50%;
    top: calc(50% - 64.5px);
  }
  37.5% {
    left: calc(50% - 172px);
    top: calc(50% - 46px);
  }
  50% {
    left: calc(50% - 243px);
    top: 50%;
  }
  62.5% {
    left: calc(50% - 172px);
    top: calc(50% + 46px);
  }
  75% {
    left: 50%;
    top: calc(50% + 64.5px);
  }
  87.5% {
    left: calc(50% + 172px);
    top: calc(50% + 46px);
  }
  100% {
    left: calc(50% + 243px);
    top: 50%;
  }
}

/* Knowledge flow pulse */
@keyframes knowledgeFlow {
  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  }
}

/* Animation Keyframes */

@keyframes glassBreath {
  0%,
  100% {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    opacity: 0.7;
    border-color: rgba(0, 255, 136, 0.4);
  }
}

@keyframes tierPulse1 {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1) scaleX(1);
    background-size: 100% 100%;
  }
  25% {
    opacity: 0.6;
    transform: scaleY(1.03) scaleX(1.01);
    background-size: 110% 110%;
  }
  50% {
    opacity: 0.5;
    transform: scaleY(1.01) scaleX(1.02);
    background-size: 105% 105%;
  }
  75% {
    opacity: 0.7;
    transform: scaleY(1.02) scaleX(1.01);
    background-size: 108% 108%;
  }
}

@keyframes tierPulse2 {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1) scaleX(1);
    background-size: 100% 100%;
  }
  33% {
    opacity: 0.7;
    transform: scaleY(1.02) scaleX(1.02);
    background-size: 108% 108%;
  }
  66% {
    opacity: 0.8;
    transform: scaleY(1.03) scaleX(1.01);
    background-size: 112% 112%;
  }
}

@keyframes tierPulse3 {
  0%,
  100% {
    opacity: 0.7;
    transform: scaleY(1) scaleX(1);
    background-size: 100% 100%;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1.01) scaleX(1.01);
    background-size: 105% 105%;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  }
}

@keyframes sphereFlow {
  0% {
    top: -20px;
    opacity: 0;
    transform: scale(0.2) translateX(0) rotate(0deg);
  }
  5% {
    opacity: 0.3;
    transform: scale(0.8) translateX(-15px) rotate(45deg);
  }
  15% {
    opacity: 0.8;
    transform: scale(1.3) translateX(25px) rotate(-30deg);
  }
  25% {
    opacity: 0.4;
    transform: scale(0.6) translateX(-10px) rotate(120deg);
  }
  35% {
    top: 60%;
    opacity: 0.9;
    transform: scale(1.1) translateX(35px) rotate(-80deg);
  }
  45% {
    top: 70%;
    opacity: 0.3;
    transform: scale(0.4) translateX(-25px) rotate(200deg);
  }
  60% {
    top: 85%;
    opacity: 0.7;
    transform: scale(1) translateX(15px) rotate(-150deg);
  }
  75% {
    top: 95%;
    opacity: 0.2;
    transform: scale(0.8) translateX(-5px) rotate(280deg);
  }
  90% {
    top: 100%;
    opacity: 0.1;
    transform: scale(0.3) translateX(20px) rotate(-320deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: scale(0) translateX(0) rotate(360deg);
  }
}

@keyframes chaosFlicker {
  0%,
  100% {
    opacity: 0.8;
  }
  25% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.1;
  }
}

@keyframes blobMorph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    transform: scale(1) rotate(0deg);
  }
  25% {
    border-radius: 40% 60% 70% 30% / 60% 40% 50% 50%;
    transform: scale(1.05) rotate(90deg);
  }
  50% {
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
    transform: scale(0.95) rotate(180deg);
  }
  75% {
    border-radius: 50% 50% 60% 40% / 70% 30% 60% 40%;
    transform: scale(1.02) rotate(270deg);
  }
}

@keyframes organizedFlow {
  0% {
    top: -20px;
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
  10% {
    opacity: 0.4;
    transform: translateX(5px) scale(1);
  }
  20% {
    top: 20%;
    opacity: 0.5;
    transform: translateX(-5px) scale(1);
  }
  30% {
    top: 30%;
    opacity: 0.6;
    transform: translateX(8px) scale(1);
  }
  40% {
    top: 40%;
    opacity: 0.6;
    transform: translateX(-8px) scale(1);
  }
  50% {
    top: 50%;
    opacity: 0.6;
    transform: translateX(10px) scale(1);
  }
  60% {
    top: 60%;
    opacity: 0.6;
    transform: translateX(-10px) scale(1);
  }
  70% {
    top: 70%;
    opacity: 0.5;
    transform: translateX(8px) scale(1);
  }
  80% {
    top: 80%;
    opacity: 0.4;
    transform: translateX(-5px) scale(0.95);
  }
  90% {
    top: 90%;
    opacity: 0.4;
    transform: translateX(0) scale(0.9);
  }
  100% {
    top: 105%;
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .tier-container {
    top: 12%;
    height: 82%;
  }

  .architecture-title {
    margin-bottom: 5px;
  }
}