/* ==============================================
   Animated Gradient Background - Neon Dreams
   ============================================== */
[data-theme="dark"] body {
  background: #0f172a;
  background: linear-gradient(
    -45deg,
    #0f172a,
    #1e1b4b,
    #1e293b,
    #134e4a,
    #581c87
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  will-change: background-position;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==============================================
   Animated Motto v2 - 20 Languages with Neon Glow
   ============================================== */
.motto-animated {
  font-family: 'Story Script', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  padding: 0 1rem 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.motto-line-1 {
  display: block;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.motto-line-2-container {
  display: block;
  position: relative;
  min-height: 1.4em;
  margin-bottom: 0.5rem;
}

.motto-line-3 {
  display: block;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.motto-animated-text {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  opacity: 0;
  background: linear-gradient(to right, #818cf8, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  animation: neonFade 60s infinite;
  white-space: nowrap;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4));
}

/* Animation delays for 20 languages (3s each, 60s total cycle) */
.motto-animated-text:nth-child(1) { animation-delay: 0s; }
.motto-animated-text:nth-child(2) { animation-delay: 3s; }
.motto-animated-text:nth-child(3) { animation-delay: 6s; }
.motto-animated-text:nth-child(4) { animation-delay: 9s; }
.motto-animated-text:nth-child(5) { animation-delay: 12s; }
.motto-animated-text:nth-child(6) { animation-delay: 15s; }
.motto-animated-text:nth-child(7) { animation-delay: 18s; }
.motto-animated-text:nth-child(8) { animation-delay: 21s; }
.motto-animated-text:nth-child(9) { animation-delay: 24s; }
.motto-animated-text:nth-child(10) { animation-delay: 27s; }
.motto-animated-text:nth-child(11) { animation-delay: 30s; }
.motto-animated-text:nth-child(12) { animation-delay: 33s; }
.motto-animated-text:nth-child(13) { animation-delay: 36s; }
.motto-animated-text:nth-child(14) { animation-delay: 39s; }
.motto-animated-text:nth-child(15) { animation-delay: 42s; }
.motto-animated-text:nth-child(16) { animation-delay: 45s; }
.motto-animated-text:nth-child(17) { animation-delay: 48s; }
.motto-animated-text:nth-child(18) { animation-delay: 51s; }
.motto-animated-text:nth-child(19) { animation-delay: 54s; }
.motto-animated-text:nth-child(20) { animation-delay: 57s; }

@keyframes neonFade {
  0%, 3.5% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  5%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px) scale(0.98);
  }
}

/* Responsive Motto Styles */
@media (max-width: 1024px) {
  .motto-animated {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .motto-animated {
    font-size: clamp(1.2rem, 3vw, 2rem);
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .motto-animated {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .motto-line-1,
  .motto-line-2-container {
    margin-bottom: 0.25rem;
  }
}
