/* ==========================================================================
   PSP Ventures Redesigned Animations (Lovable Recreation)
   ========================================================================== */

/* Ambient Glowing Background Elements */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-accent);
  top: -10%;
  right: -5%;
  animation: float-glow-1 25s infinite alternate ease-in-out;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--primary-accent-alt);
  bottom: 10%;
  left: -10%;
  animation: float-glow-2 30s infinite alternate ease-in-out;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: var(--secondary-accent-alt);
  top: 40%;
  right: 15%;
  animation: float-glow-3 22s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.14; }
  50% { transform: translate(-80px, 60px) scale(1.1); opacity: 0.24; }
  100% { transform: translate(40px, -40px) scale(0.9); opacity: 0.14; }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); opacity: 0.11; }
  50% { transform: translate(60px, -90px) scale(0.95); opacity: 0.2; }
  100% { transform: translate(-40px, 40px) scale(1.05); opacity: 0.11; }
}

@keyframes float-glow-3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.08; }
  50% { transform: translate(-60px, -60px) scale(1.15); opacity: 0.16; }
  100% { transform: translate(50px, 70px) scale(0.85); opacity: 0.08; }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left { transform: translateX(-35px); }
.reveal.reveal-right { transform: translateX(35px); }
.reveal.reveal-scale { transform: scale(0.95); }

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Status Badges Pulsing
   ========================================================================== */

@keyframes status-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(124, 255, 0, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(124, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 255, 0, 0); }
}

@keyframes status-pulse-cyan {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

@keyframes status-pulse-purple {
  0% { box-shadow: 0 0 0 0 rgba(138, 92, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(138, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 92, 255, 0); }
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(124, 255, 0, 0.08);
  color: var(--primary-accent);
  border: 1px solid rgba(124, 255, 0, 0.2);
}

.pulse-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
  animation: status-pulse-green 2s infinite;
}

.pulse-badge.dev-status {
  background: rgba(0, 229, 255, 0.08);
  color: var(--primary-accent-alt);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.pulse-badge.dev-status::before {
  background: var(--primary-accent-alt);
  animation: status-pulse-cyan 2s infinite;
}

.pulse-badge.soon-status {
  background: rgba(138, 92, 255, 0.08);
  color: var(--secondary-accent-alt);
  border: 1px solid rgba(138, 92, 255, 0.2);
}

.pulse-badge.soon-status::before {
  background: var(--secondary-accent-alt);
  animation: status-pulse-purple 2s infinite;
}

/* Geometric Grid Background Overlay */
.grid-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/grid-bg.svg');
  background-repeat: repeat;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.1) 85%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.1) 85%, rgba(0, 0, 0, 0));
}

/* ==========================================================================
   Holographic Logo & Orbit Rings Animations
   ========================================================================== */

/* Outer Hologram Wrapper */
.hologram-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Logo */
.holographic-logo {
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 0 30px rgba(127, 255, 0, 0.45)) drop-shadow(0 0 60px rgba(168, 255, 0, 0.2));
  animation: hologram-float 6s ease-in-out infinite alternate;
}

@keyframes hologram-float {
  0% {
    transform: translateY(10px) rotate(0deg);
  }
  100% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* 3D Perspective Digital Floor Grid */
.digital-floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(65deg);
  transform-origin: bottom center;
  width: 550px;
  height: 250px;
  background-image: 
    linear-gradient(rgba(127, 255, 0, 0.2) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(127, 255, 0, 0.2) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  background-position: center bottom;
  opacity: 0.7;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 90%);
  z-index: 2;
  animation: grid-scroll 12s linear infinite;
}

@keyframes grid-scroll {
  0% { background-position: center bottom 0px; }
  100% { background-position: center bottom 300px; }
}

/* Glowing Planet Sphere */
.planet-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(127, 255, 0, 0.75) 0%, rgba(14, 14, 14, 0.95) 60%, #000000 100%);
  box-shadow: 
    0 0 50px rgba(127, 255, 0, 0.25),
    0 0 100px rgba(127, 255, 0, 0.15),
    inset 10px 10px 30px rgba(255, 255, 255, 0.08),
    inset -10px -10px 30px rgba(0, 0, 0, 0.9);
  z-index: 3;
  pointer-events: none;
  animation: planet-float 6s ease-in-out infinite alternate;
}

@keyframes planet-float {
  0% {
    transform: translate(-50%, -50%) scale(0.98);
    box-shadow: 0 0 50px rgba(127, 255, 0, 0.2), 0 0 90px rgba(127, 255, 0, 0.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 0 70px rgba(127, 255, 0, 0.35), 0 0 130px rgba(127, 255, 0, 0.25);
  }
}

/* Vertical Energy Beam */
.energy-beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 180px;
  background: linear-gradient(to top, rgba(127, 255, 0, 0.75) 0%, rgba(168, 255, 0, 0.2) 60%, rgba(168, 255, 0, 0) 100%);
  box-shadow: 0 0 8px rgba(127, 255, 0, 0.6), 0 0 15px rgba(127, 255, 0, 0.3);
  z-index: 2;
  pointer-events: none;
  animation: beam-pulse 3s ease-in-out infinite alternate;
}

@keyframes beam-pulse {
  0% { opacity: 0.5; width: 3px; }
  100% { opacity: 0.9; width: 6px; }
}

/* Concentric Rings */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.ring-1 {
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.03) inset;
  animation: rotate-clockwise 30s linear infinite;
}

.ring-2 {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(124, 255, 0, 0.1);
  border-left: 2px solid rgba(124, 255, 0, 0.4);
  border-right: 2px solid rgba(124, 255, 0, 0.4);
  animation: rotate-counter-clockwise 30s linear infinite;
}

.ring-3 {
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(138, 92, 255, 0.08);
  border-top: 2px solid rgba(138, 92, 255, 0.3);
  animation: rotate-clockwise 30s linear infinite;
}

/* Energy Portal Background Pulsing Glow & Waves */
.energy-portal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 0, 0.16) 0%, rgba(0, 229, 255, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(25px);
  z-index: 1;
  pointer-events: none;
  animation: energy-glow-pulse 6s ease-in-out infinite alternate;
  will-change: transform, opacity, filter;
}

@keyframes energy-glow-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
    filter: blur(25px);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    filter: blur(15px);
  }
}

.energy-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid var(--primary-accent);
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: wave-ripple 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  will-change: transform, opacity;
}

.energy-wave:nth-child(2) {
  animation-delay: 2s;
  border-color: var(--primary-accent-alt);
}

.energy-wave:nth-child(3) {
  animation-delay: 4s;
  border-color: var(--secondary-accent-alt);
}

@keyframes wave-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.hero-featured-card-wrapper {
  position: absolute;
  bottom: -10px;
  left: -60px;
  width: 290px;
  z-index: 10;
  pointer-events: none;
  animation: float-card 6s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes rotate-clockwise {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Orbit Line (Elliptical) */
.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  pointer-events: none;
}

/* Orbit Node (glowing particle orbiting) */
.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-accent-alt);
  box-shadow: 0 0 12px var(--primary-accent-alt);
  animation: orbit-move 8s linear infinite;
}

@keyframes orbit-move {
  0% { transform: rotate(0deg) translate(250px) rotate(0deg); }
  100% { transform: rotate(360deg) translate(250px) rotate(-360deg); }
}

/* Hologram Scanning Line overlay effect */
.hologram-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0) 0%,
    rgba(0, 229, 255, 0.05) 50%,
    rgba(0, 229, 255, 0) 100%
  );
  background-size: 100% 30px;
  pointer-events: none;
  animation: scanning 10s linear infinite;
}

@keyframes scanning {
  0% { background-position: 0 0; }
  100% { background-position: 0 600px; }
}

/* Achievement bar glowing checkmark pulse */
.checkmark-glow {
  color: var(--primary-accent);
  filter: drop-shadow(0 0 5px rgba(124, 255, 0, 0.6));
  font-weight: bold;
}

/* Floating Card Animation */
@keyframes float-card {
  0% {
    transform: translateY(0px) rotate(-1.5deg);
  }
  100% {
    transform: translateY(-20px) rotate(1.5deg);
  }
}

/* ==========================================================================
   Background Floating Particles CSS
   ========================================================================== */

.particles-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle-item {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-accent-alt);
  box-shadow: 0 0 8px var(--primary-accent-alt);
  pointer-events: none;
  opacity: 0.15;
  animation: float-upwards 8s linear infinite;
}

@keyframes float-upwards {
  0% {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-500px) scale(1.2);
    opacity: 0;
  }
}

@keyframes glow-pulse-primary {
  0% { box-shadow: 0 12px 35px rgba(124, 255, 0, 0.4), 0 0 0 0 rgba(124, 255, 0, 0.4); }
  70% { box-shadow: 0 12px 35px rgba(124, 255, 0, 0.4), 0 0 0 10px rgba(124, 255, 0, 0); }
  100% { box-shadow: 0 12px 35px rgba(124, 255, 0, 0.4), 0 0 0 0 rgba(124, 255, 0, 0); }
}

@keyframes glow-pulse-secondary {
  0% { box-shadow: 0 12px 35px rgba(0, 229, 255, 0.25), 0 0 0 0 rgba(0, 229, 255, 0.4); }
  70% { box-shadow: 0 12px 35px rgba(0, 229, 255, 0.25), 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 12px 35px rgba(0, 229, 255, 0.25), 0 0 0 0 rgba(0, 229, 255, 0); }
}
