/* Visual explanation of voice translation */
.translation-section {
  position: relative;
  overflow: hidden;
}

.translation-section .section-head {
  max-width: 850px;
}

.translation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 42px;
  border: 1px solid rgba(151, 116, 255, .2);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(101, 60, 220, .13), transparent 75%),
    linear-gradient(135deg, #10152f, #080e21);
}

.translation-node {
  position: relative;
  text-align: center;
  padding: 30px 16px;
}

.translation-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 38%;
  color: #9b80ff;
  font-size: 28px;
}

.translation-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 42px;
  background: radial-gradient(circle, #302369, #121b3a 75%);
  border: 1px solid rgba(170, 140, 255, .4);
  box-shadow: 0 0 45px rgba(116, 77, 255, .2);
  animation: translation-glow 4s ease-in-out infinite;
}

.translation-node:nth-child(even) .translation-icon {
  animation-delay: 1.5s;
}

.translation-node h3 {
  font-size: 19px;
  margin: 0 0 12px;
}

.translation-node p {
  color: #aebbd4;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

@keyframes translation-glow {
  50% {
    box-shadow: 0 0 65px rgba(116, 77, 255, .38);
  }
}

@media (max-width: 850px) {
  .translation-flow {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .translation-node:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -20px;
    right: calc(50% - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .translation-icon {
    animation: none;
  }
}
