/* ============================================================
   ANIMATIONS — animations.css
   Reusable keyframes and utility animation classes
   ============================================================ */

/* Pulse glow for active nav circle */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(168, 85, 247, 0.7),
      0 0 30px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow:
      0 0 20px rgba(168, 85, 247, 0.9),
      0 0 50px rgba(168, 85, 247, 0.5),
      0 0 80px rgba(168, 85, 247, 0.2);
  }
}

.nav-item.active .nav-circle {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Floating animation for profile photo */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.profile-photo-wrapper {
  animation: fadeIn 1s ease 1s forwards, floatY 5s ease-in-out 2.2s infinite;
}

/* Shimmer text effect utility */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-2);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* Scroll indicator bounce */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-arrow-svg {
  animation: bounceDown 1.5s ease-in-out infinite;
  display: block;
}
