/* ===== KEYFRAME ANIMATIONS ===== */
/* Includes Stunning Rotating Scroll Effect */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateInBorder {
  from {
    border-color: transparent;
    box-shadow: 0 0 0 0 rgba(91,99,255,0);
  }
  to {
    border-color: rgba(91,99,255,0.4);
    box-shadow: 0 0 20px rgba(91,99,255,0.2);
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(91,99,255,0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(91,99,255,0.6);
  }
}

@keyframes orbitRadius {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(91,99,255,0.2), 0 12px 32px rgba(26,32,44,0.12);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(91,99,255,0.1), 0 12px 32px rgba(26,32,44,0.12);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes rotateCircle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes skillPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Animation utility classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-float-up {
  animation: floatUp 0.7s ease-out;
}

.animate-glow {
  animation: rotateInBorder 0.8s ease-out;
}

/* Delay stagger effects */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

.animated {
  animation-fill-mode: forwards;
}

section > p.animated {
  opacity: 1;
}

section h2.visible::after {
  animation: expandWidth 0.6s ease-out 0.2s forwards;
}

/* Skill carousel animation */
.skills-carousel {
  animation: rotateCircle 30s linear infinite;
}

.skills-carousel.paused {
  animation-play-state: paused;
}

.skill-item {
  animation: skillPulse 2s ease-in-out infinite;
}

.skill-item:hover {
  animation-play-state: paused;
}
