/**
 * CSS for the smooth word transition animation
 */

/* Element with the animated text */
.hero-typing {
  position: relative;
  display: inline-block;
}

/* Container for the changing words */
.word-container {
  position: relative;
  display: inline-block;
  min-width: 80px;
  text-align: left;
  height: 1.3em;
  vertical-align: bottom;
}

/* Individual animated words */
.animated-word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: var(--link-col);
}

/* Visible word state */
.animated-word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode support already handled by CSS variables */

/* Responsive styles */
@media (max-width: 768px) {
  .word-container {
    min-width: 60px;
  }
}