/* ==========================================================================
   RAJ MEDIA - ADVANCED MICRO-ANIMATIONS & INTERACTIVE MOTION ENGINE
   ========================================================================== */

/* Custom Animated Cursor */
.custom-cursor-core {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-50%, -50%, 0);
  transition: transform 0.06s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 10px var(--primary);
}

.custom-cursor-follower-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(118, 166, 84, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate3d(-50%, -50%, 0);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
  background: rgba(118, 166, 84, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: transparent;
  letter-spacing: 1px;
}

/* Cursor Hover States */
.cursor-hover .custom-cursor-core {
  transform: translate3d(-50%, -50%, 0) scale(0.3);
  opacity: 0;
}

.cursor-hover .custom-cursor-follower-ring {
  transform: translate3d(-50%, -50%, 0) scale(1.5);
  background: rgba(118, 166, 84, 0.18);
  border-color: var(--primary);
}

.cursor-play .custom-cursor-follower-ring {
  transform: translate3d(-50%, -50%, 0) scale(1.7);
  background: rgba(18, 24, 17, 0.85);
  border-color: var(--primary);
  color: var(--primary-bright);
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor-core, .custom-cursor-follower-ring {
    display: none !important;
  }
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Scroll-Triggered Reveals
   ========================================================================== */

.reveal-fade-up {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-down {
  opacity: 0;
  transform: translate3d(0, -30px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-left {
  opacity: 0;
  transform: translate3d(-35px, 0, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right {
  opacity: 0;
  transform: translate3d(35px, 0, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* 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; }
.delay-6 { transition-delay: 0.48s; }

/* 3D Tilt Card Class */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

/* Magnetic Interaction */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
