html {
  scroll-behavior: smooth;
}


/* Typing animation */

.typing {
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(30, end) infinite alternate;
}

@keyframes typing {
  0% { width: 0 }
  100% { width: 100% }
}


/* Fade-in on scroll */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}