/* ==========================================================================
   IX PACE — INNOVATION IN EVERY LINE
   Monochrome Animations & Micro-Interactions
   ========================================================================== */

/* Keyframe: Pulsing Dot */
@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px #ffffff;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
    box-shadow: 0 0 18px #ffffff;
  }
}

/* Keyframe: Laser Line Sweep */
@keyframes laserSweep {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 200%;
  }
}

.laser-border {
  position: relative;
  overflow: hidden;
}

.laser-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  animation: laserSweep 4s infinite linear;
}

/* Keyframe: Floating Subtle */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

/* Keyframe: Glowing Border Cycle */
@keyframes glowBorder {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  }
}

.glow-cycle {
  animation: glowBorder 4s infinite ease-in-out;
}

/* Keyframe: Toast Notification Slide */
@keyframes slideInToast {
  0% {
    opacity: 0;
    transform: translateX(50px) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* Keyframe: Shimmer Effect */
@keyframes shimmerPass {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #ffffff 0%, #777777 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerPass 4s linear infinite;
}

/* Reveal on Scroll Transitions */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover cursor aura */
.interactive-card {
  position: relative;
}

.interactive-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px circle at var(--mouse-x, -100px) var(--mouse-y, -100px), rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.12), transparent 45%);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interactive-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   COSMIC & ASTRAL UNIVERSE ANIMATIONS
   ========================================================================== */

/* Nebula Drift & Breathing */
@keyframes nebulaDrift1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(40px, -30px) scale(1.15);
    opacity: 0.9;
  }
  66% {
    transform: translate(-30px, 40px) scale(0.92);
    opacity: 0.65;
  }
}

@keyframes nebulaDrift2 {
  0%, 100% {
    transform: translate(0, 0) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50px, -40px) scale(0.9);
    opacity: 0.85;
  }
}

@keyframes nebulaDrift3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(35px, 35px) scale(1.2);
    opacity: 0.8;
  }
}

/* Starlight Glow Pulsar */
@keyframes cosmicStarlightPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2), 0 0 35px rgba(56, 189, 248, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45), 0 0 50px rgba(56, 189, 248, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
  }
}

.cosmic-pulsar-glow {
  animation: cosmicStarlightPulse 5s infinite ease-in-out;
}

/* 3D Celestial Orbit Rotate */
@keyframes celestialSpin3D {
  0% {
    transform: rotateX(68deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

.celestial-orbit-3d {
  animation: celestialSpin3D 45s linear infinite;
}

/* Cosmic Gradient Shimmer */
@keyframes cosmicShimmerText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cosmic-text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 35%, #38bdf8 70%, #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cosmicShimmerText 8s ease infinite;
}

