/* Animations */
.animate-text {
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  from {
      transform: translateX(-50px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

.typewriter h2 {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
      border-color: transparent;
  }
  50% {
      border-color: var(--primary-color);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.7);
  }
  70% {
      box-shadow: 0 0 0 15px rgba(58, 134, 255, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
  }
}

/* Skill Bar Animation */
.skill-progress.animated {
  width: var(--width);
}

/* Counter Animation */
.stat-number.animated {
  animation: countUp var(--duration) ease-out forwards;
}

@keyframes countUp {
  to {
      --num: var(--count);
  }
}