/* Header Slide Down Animation */
.navbar {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.navbar.show {
  transform: translateY(0);
  opacity: 1;
}

/* Section Animations */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
}

.animate-slide-left.show {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-out;
}

.animate-slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* Button animation */
.animate-buttons button {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-buttons.show button {
  opacity: 1;
  transform: translateY(0);
}

.animate-buttons.show button:nth-child(1) {
  transition-delay: 0.3s;
}

.animate-buttons.show button:nth-child(2) {
  transition-delay: 0.5s;
}

/* Optional: blinking cursor */
#typewriter::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 2px;
  background: linear-gradient(90deg, #2563EB, #9333EA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}