/* ============================================================
   ANIMATIONS — Immersive Motion System
   ============================================================ */

/* ── LOADING SCREEN (hidden) ── */
#loader { display: none; }

/* ── Hide old decorative elements ── */
.q-watermark, .orb, .orb-blue, .orb-violet, .orb-cyan,
.aqueous-canvas, .aqueous-veil, #aqueous-q-wrap,
.aqueous-shafts { display: none !important; }

/* ── MARQUEE TICKER — PREMIUM DUAL-ROW ── */
.marquee-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
/* Gradient edge masks */
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-surface), transparent);
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  margin: 0 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.marquee-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 4px rgba(79, 70, 229, 0.1);
}
.marquee-item:hover {
  border-color: rgba(79, 70, 229, 0.22);
  color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-3px);
  box-shadow:
    0 0 30px rgba(79, 70, 229, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.03);
}
.marquee-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  transform: scale(1.4);
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Floating particles — DISABLED ── */
.particle {
  display: none;
}

/* ── SVG SECTION DIVIDER ── */
.section-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ── ULTRA-PREMIUM TEXT REVEAL EFFECT ── */
.reveal-text {
  opacity: 1 !important;
}

/* Individual word styling. No wrapper required, preventing any clipping. */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.9) rotate(1deg) translateZ(0);
  will-change: transform, opacity;
  margin-right: 0.22em; /* Spacing between words */
  transition: 
    transform 1.0s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Active reveal state triggered via JS scroll/observer class */
.reveal-text.visible .reveal-word {
  transform: translateY(0) scale(1) rotate(0deg) translateZ(0);
  opacity: 1;
}

/* ── GRADIENT AND ACCENT REVEALS ── */
.hero-accent:has(.reveal-word) {
  background: none !important;
}
.hero-accent .reveal-word {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 20%, #C4B5FD 40%, #E0E7FF 55%, #A78BFA 70%, #818CF8 85%, #6366F1 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradient 6s ease-in-out infinite;
  font-weight: 800;
}

.gradient-text:has(.reveal-word) {
  background: none !important;
}
.gradient-text .reveal-word {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 25%, #818CF8 50%, #A78BFA 75%, #4F46E5 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 5s ease-in-out infinite;
}

