/* ==============================================================================
   Akram Akl Portfolio - Motion Choreography & Animations
   ==============================================================================
   Physics-Inspired Cubic-Beziers, GPU Transitions & 3D Depth
   ============================================================================== */

/* Scroll Reveal Base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s var(--ease-elastic), transform 0.8s var(--ease-elastic);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

/* Gentle Weightless Floating */
.floating-element {
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

/* Hologram Scanning Line */
.hologram-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-cyan), transparent);
  box-shadow: 0 0 10px var(--secondary-cyan);
  opacity: 0.6;
  animation: scanline-move 3s linear infinite;
  pointer-events: none;
}

@keyframes scanline-move {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Shimmer Loading Effect */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer-swipe 2.5s infinite;
}

@keyframes shimmer-swipe {
  100% {
    transform: translateX(100%);
  }
}

/* Glow Orb Pulse */
.glowing-aura {
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 35px rgba(76, 215, 246, 0.6));
  }
}

/* Micro-Interaction Tap Feedback */
.press-tactile:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* Respect User Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
