/* Keyframe Animations */

/* Infinite marquee track loop */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Floating animation on Y-axis for decorations */
@keyframes float-y {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Floating animation on X-axis */
@keyframes float-x {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

/* Smooth zoom-in background loop */
@keyframes slow-zoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Fade in and lift animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing cursor blink */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Animation triggers */
.animate-float-y {
  animation: float-y 6s ease-in-out infinite;
}

.animate-float-x {
  animation: float-x 5s ease-in-out infinite;
}

/* Typing animation cursor styling */
.typed-cursor {
  font-weight: 300;
  color: var(--accent-primary);
  animation: blink 0.8s step-end infinite;
  border-right: 3px solid;
  margin-left: 2px;
}

/* Hover glow borders effect for Bento Cards */
.bento-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05),
              0 0 30px 2px rgba(139, 92, 246, 0.05);
}

/* Scroll reveal utility classes */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive parallax grid layout movement */
.interactive-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.interactive-image-wrap img {
  transition: transform 1.5s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.interactive-image-wrap:hover img {
  transform: scale(1.08) rotate(1deg);
}

/* Ambient glow blobs in backgrounds */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: slow-zoom 10s ease-in-out infinite;
}

.blob-purple {
  width: 400px;
  height: 400px;
  background-color: var(--pastel-lavender);
}

.blob-blue {
  width: 350px;
  height: 350px;
  background-color: var(--pastel-sky);
}

.blob-mint {
  width: 300px;
  height: 300px;
  background-color: var(--pastel-mint);
}
