/* ==========================================================================
   YEAGOOD TECH - Animations & Micro-Interactions
   ========================================================================== */

/* Ambient Glowing Background Orbs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .ambient-glow {
  opacity: 0.2;
}

.ambient-glow-1 {
  top: 5%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(28, 135, 227, 0.4) 0%, rgba(28, 135, 227, 0) 70%);
  animation: float-slow 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  top: 35%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  animation: float-reverse 22s ease-in-out infinite alternate;
}

.ambient-glow-3 {
  bottom: 15%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
  animation: float-slow 25s ease-in-out infinite alternate;
}

/* Keyframe Animations */
@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

@keyframes float-reverse {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, 40px) scale(1.05);
  }
  100% {
    transform: translate(30px, -50px) scale(0.92);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

@keyframes shimmer-sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Subtle Card Glow Effect */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 100%
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-shine:hover::after {
  opacity: 1;
  animation: shimmer-sweep 2s ease-in-out infinite;
}

/* Scroll Animation classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
