/* OmiBeams Website Animation System
   GSAP-powered entrance, scroll, and hover effects
   Colors: Cyan #6FE3DC, Magenta #E97ED6, Gold #F2B75C, BG #0A0C12
*/

/* ============================================
   1. GPU ACCELERATION & 3D SETUP
   ============================================ */
.anim-3d-space {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.anim-gpu {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================
   2. HERO ENTRANCE ANIMATIONS
   ============================================ */

/* Text clip-path reveal */
.hero-text-reveal {
  clip-path: inset(0 100% 0 0);
}

.hero-text-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Hero image initial state */
.hero-image-enter {
  opacity: 0;
  transform: scale(0.92);
}

/* Projector beam ambient glow pulse */
@keyframes beamGlow {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(111, 227, 220, 0.08),
      0 0 120px rgba(233, 126, 214, 0.04);
  }
  50% {
    box-shadow:
      0 0 80px rgba(111, 227, 220, 0.12),
      0 0 160px rgba(233, 126, 214, 0.06);
  }
}

.beam-glow-pulse {
  animation: beamGlow 4s ease-in-out infinite;
}

/* CTA buttons initial state */
.cta-slide-up {
  opacity: 0;
  transform: translateY(24px);
}

/* ============================================
   3. SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Section number - slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

/* Section header - fade up */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

/* Content paragraphs */
.reveal-fade {
  opacity: 0;
}

/* Scale entrance */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* Featured cards - alternating directions */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ============================================
   4. 3D CARD HOVER EFFECTS
   ============================================ */

/* Featured card with mouse-tracking tilt */
.card-hover {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease-out;
}

.card-hover:hover {
  z-index: 2;
}

/* Card glow overlay (hidden by default) */
.card-glow-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 10;
}

.card-glow-overlay--cyan {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(111, 227, 220, 0.15) 0%, transparent 70%);
}

.card-glow-overlay--magenta {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(233, 126, 214, 0.12) 0%, transparent 70%);
}

.card-glow-overlay--gold {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(242, 183, 92, 0.10) 0%, transparent 70%);
}

.card-hover:hover .card-glow-overlay {
  opacity: 1;
}

/* Grid cards - subtle lift */
.card-lift {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Image zoom on card hover */
.card-lift .card-image,
.card-hover .card-image {
  transition: transform 0.4s ease-out;
}

.card-lift:hover .card-image,
.card-hover:hover .card-image {
  transform: scale(1.06);
}

/* Image shine sweep effect */
.card-image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.card-hover:hover .card-image-shine,
.card-lift:hover .card-image-shine {
  animation: shineSwipe 0.6s ease-out forwards;
}

@keyframes shineSwipe {
  to {
    transform: translateX(100%);
  }
}

/* ============================================
   5. PARALLAX DEPTH MARKERS
   ============================================ */
.parallax-slow {
  will-change: transform;
}

.parallax-medium {
  will-change: transform;
}

.parallax-fast {
  will-change: transform;
}

/* ============================================
   6. PAGE TRANSITION EFFECTS
   ============================================ */
.page-transition-out {
  opacity: 0;
  transform: translateY(-12px);
}

.page-transition-in {
  opacity: 1;
  transform: translateY(0);
}

/* Main content wrapper for page transitions */
.page-content {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* ============================================
   7. NAVIGATION ENHANCEMENTS
   ============================================ */
.nav-link-glow {
  position: relative;
}

.nav-link-glow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6FE3DC, #E97ED6);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}

.nav-link-glow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   8. FLOATING PARTICLES (optional enhancement)
   ============================================ */
.particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(1px);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* ============================================
   9. SECTION DIVIDER GLOW
   ============================================ */
.section-divider-glow {
  position: relative;
}

.section-divider-glow::before {
  content: '';
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(ellipse 100% 200% at 50% 50%, rgba(111, 227, 220, 0.05) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.section-divider-glow.in-view::before {
  opacity: 1;
}

/* ============================================
   10. REDUCED MOTION - ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-text-reveal {
    clip-path: inset(0 0 0 0) !important;
  }

  .hero-image-enter {
    opacity: 1 !important;
    transform: none !important;
  }

  .cta-slide-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-fade,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .card-hover,
  .card-lift {
    transform: none !important;
  }

  .card-image-shine {
    display: none !important;
  }

  .beam-glow-pulse {
    animation: none !important;
  }

  .parallax-slow,
  .parallax-medium,
  .parallax-fast {
    transform: none !important;
  }
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */
.anim-delay-100 { transition-delay: 0.1s; }
.anim-delay-200 { transition-delay: 0.2s; }
.anim-delay-300 { transition-delay: 0.3s; }
.anim-delay-400 { transition-delay: 0.4s; }
.anim-delay-500 { transition-delay: 0.5s; }

.anim-visible {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) scale(1) !important;
}
