﻿/* ==========================================================================
   PADILLA - CINEMATIC ANIMATIONS & GPU-ACCELERATED MOBILE LOOPS
   Continuous motion designed for mobile/TikTok visitors (No hover required)
   ========================================================================== */

/* Page Entrance Cascades */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Continuous Infinite Marquee Loops (100% Seamless Subpixel Loop) */
@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.track-left {
  animation: marqueeLeft 42s linear infinite;
}

.track-right {
  animation: marqueeRight 48s linear infinite;
}

.track-left-fast {
  animation: marqueeLeft 36s linear infinite;
}

/* Avatar Pulsing Glow Loop */
@keyframes pulseAvatarGlow {
  0% {
    box-shadow: 
      0 0 0 2px rgba(255, 30, 30, 0.45),
      0 0 22px rgba(255, 30, 30, 0.45),
      0 0 45px rgba(255, 30, 30, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 
      0 0 0 3.5px rgba(255, 30, 30, 0.85),
      0 0 38px rgba(255, 30, 30, 0.75),
      0 0 70px rgba(255, 30, 30, 0.4);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 
      0 0 0 2px rgba(255, 30, 30, 0.55),
      0 0 26px rgba(255, 30, 30, 0.5),
      0 0 50px rgba(255, 30, 30, 0.25);
    transform: translateY(1px);
  }
}

/* Autonomous Mobile Card Aura Pulse (Sequential Wave) */
@keyframes cardAuraPulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  }
  25% {
    border-color: rgba(255, 30, 30, 0.65);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 30, 30, 0.25);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  }
}

/* Autonomous Arrow / Chevron Glide for Mobile */
@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0);
    filter: drop-shadow(0 0 0px transparent);
  }
  30% {
    transform: translateX(4px);
    filter: drop-shadow(0 0 8px rgba(255, 30, 30, 0.9));
    color: #FF4D4D;
  }
  60% {
    transform: translateX(0);
    filter: drop-shadow(0 0 0px transparent);
  }
}

/* Autonomous Card Specular Sweep */
@keyframes sheenSweep {
  0% {
    left: -120%;
  }
  20% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

/* Stagger Animation Trigger Classes */
.animate-item {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-avatar {
  animation-name: fadeInScale;
  animation-duration: 0.7s;
  animation-delay: 0ms;
}

.stagger-name {
  animation-name: fadeInUp;
  animation-duration: 0.65s;
  animation-delay: 150ms;
}

.stagger-card-1 {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 280ms;
}

.stagger-card-2 {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 380ms;
}

.stagger-card-3 {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 480ms;
}

.stagger-card-4 {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 580ms;
}

.stagger-socials {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 700ms;
}

.stagger-app {
  animation-name: slideInUp;
  animation-duration: 0.6s;
  animation-delay: 820ms;
}

/* Ripple Touch Feedback */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 30, 0.45) 0%, rgba(255, 255, 255, 0.15) 60%, transparent 80%);
  transform: scale(0);
  animation: rippleAnimation 0.55s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}