/* ==========================================================================
   MAYAMUSING PORTFOLIO - ANIMATIONS & ETHEREAL EFFECTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* --------------------------------------------------------------------------
   2. ETHEREAL GLOW & AMBIENCE
   -------------------------------------------------------------------------- */
@keyframes etherealPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.15), 0 0 40px rgba(139, 92, 246, 0.08);
  }
  50% {
    box-shadow: 0 0 35px rgba(196, 181, 253, 0.3), 0 0 60px rgba(139, 92, 246, 0.2);
  }
}

.glow-ethereal {
  animation: etherealPulse 4s infinite ease-in-out;
}

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

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

/* --------------------------------------------------------------------------
   3. CELESTIAL TWINKLE & FLOAT
   -------------------------------------------------------------------------- */
@keyframes celestialFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

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

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.twinkle-star {
  animation: starTwinkle 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   4. BUTTON SHIMMER & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.like-pop {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   5. ACCESSIBILITY OVERRIDES (Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .float-slow,
  .twinkle-star,
  .glow-ethereal,
  .floating-badge {
    animation: none !important;
  }
}
