/* ==========================================================================
   AFFINITY SKY — ANIMATIONS & KEYFRAMES (WHITE & LIQUID GOLD LUXURY THEME)
   ========================================================================== */

/* --- Keyframe Definitions --- */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-1.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.25);
  }
  50% {
    box-shadow: 0 0 35px rgba(223, 186, 115, 0.55);
  }
}

@keyframes pulseAccentGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(232, 202, 136, 0.6);
  }
}

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

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

@keyframes badgeBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* --- Utility Animation Classes --- */
.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C5A059;
  display: inline-block;
  box-shadow: 0 0 10px #DFBA73;
  animation: badgeBlink 1.5s ease-in-out infinite;
}

/* --- Floating Background Particles --- */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.4) 0%, rgba(223, 186, 115, 0) 70%);
  pointer-events: none;
}

.particle:nth-child(1) {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -60px;
  animation: floatSlow 8s ease-in-out infinite;
}

.particle:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation: floatReverse 9s ease-in-out infinite;
}

.particle:nth-child(3) {
  width: 220px;
  height: 220px;
  top: 40%;
  left: 30%;
  animation: floatSlow 7s ease-in-out infinite;
}

.ambient-orb-1 {
  width: 440px !important;
  height: 440px !important;
  top: 8% !important;
  right: -60px !important;
  background: radial-gradient(circle, rgba(223, 186, 115, 0.22) 0%, rgba(197, 160, 89, 0.05) 55%, transparent 70%) !important;
  filter: blur(40px);
  animation: floatSlow 12s ease-in-out infinite !important;
}

.ambient-orb-2 {
  width: 360px !important;
  height: 360px !important;
  bottom: 8% !important;
  left: -60px !important;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, rgba(255, 245, 214, 0.08) 55%, transparent 70%) !important;
  filter: blur(50px);
  animation: floatReverse 14s ease-in-out infinite !important;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  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.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  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-zoom.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: opacity, transform, filter;
}

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

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

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

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

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Prevent horizontal overflow from side-reveal animations on touch screens */
@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(20px);
  }
  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.delay-4 {
  transition-delay: 0.48s;
}

/* --- 3D Perspective Tilt for Cards --- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
}

/* --- Card Hover Micro-Interactions --- */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(197, 160, 89, 0.25);
  border-color: var(--primary);
}

/* --- Continuous Institutional Partners Marquee --- */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-marquee-section {
  padding: 24px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.partners-marquee-section::before,
.partners-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF, transparent);
}

.partners-marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF, transparent);
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.marquee-item:hover {
  color: var(--gold-deep);
}

.marquee-star {
  color: var(--primary);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- Ambient Floating Orbs --- */
@keyframes orbFloatA {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -25px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes orbFloatB {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-35px, 30px) scale(1.1);
  }
  66% {
    transform: translate(25px, -15px) scale(0.92);
  }
}

.ambient-orb-1 {
  animation: orbFloatA 12s ease-in-out infinite;
}

.ambient-orb-2 {
  animation: orbFloatB 14s ease-in-out infinite;
}

/* --- Scroll Progress Glow --- */
.scroll-progress-bar {
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.8), 0 0 4px rgba(223, 186, 115, 0.9);
}
