/* ═══════════════════════════════════════════════════════════
   AMIABLE GROUP — Animations & Motion
   ═══════════════════════════════════════════════════════════ */

/* ── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(24px); }
.stagger > *.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Float Animation ────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.float { animation: float 6s ease-in-out infinite; }
.float-delay-1 { animation: float 6s ease-in-out 1s infinite; }
.float-delay-2 { animation: float 6s ease-in-out 2s infinite; }

/* ── Gradient Flow ──────────────────────────────────────── */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradient-flow 4s ease infinite;
}

/* ── Glow Pulse ─────────────────────────────────────────── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(196,151,58,0.3); }
  50% { box-shadow: 0 0 60px rgba(196,151,58,0.6), 0 0 120px rgba(196,151,58,0.2); }
}

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

/* ── Shimmer Effect ─────────────────────────────────────── */
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.shimmer-wrapper {
  position: relative;
  overflow: hidden;
}

.shimmer-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 3s infinite;
}

/* ── Typing Cursor ──────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-electric);
  border-radius: 1px;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

/* ── Count-up Numbers ───────────────────────────────────── */
.count-up {
  display: inline-block;
  transition: all 0.1s;
}

/* ── Orbit Animation ────────────────────────────────────── */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes orbit-reverse {
  from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  to { transform: rotate(-360deg) translateX(80px) rotate(360deg); }
}

/* ── Particle Field ─────────────────────────────────────── */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-electric);
  border-radius: 50%;
  animation: particle-float linear infinite;
  opacity: 0;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* ── Mouse Cursor ───────────────────────────────────────── */
.custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--color-electric);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196,151,58,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
}

.custom-cursor.hovering { width: 6px; height: 6px; background: white; }
.custom-cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(196,151,58,0.3); }
.custom-cursor.clicking { transform: translate(-50%, -50%) scale(0.8); }

/* ── Magnetic Button ────────────────────────────────────── */
.btn-magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Page Transition ────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-obsidian);
  z-index: 99999;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.entering { transform: translateY(0%); }
.page-transition.leaving { transform: translateY(-100%); }

/* ── Marquee / Ticker ───────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee__inner {
  display: inline-flex;
  gap: var(--space-12);
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Glitch Effect ──────────────────────────────────────── */
@keyframes glitch-1 {
  0%, 94%, 100% { clip-path: none; transform: none; }
  95% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  97% { clip-path: inset(70% 0 10% 0); transform: translateX(4px); }
}

@keyframes glitch-2 {
  0%, 94%, 100% { clip-path: none; transform: none; }
  96% { clip-path: inset(40% 0 40% 0); transform: translateX(3px); }
  98% { clip-path: inset(10% 0 80% 0); transform: translateX(-3px); }
}

/* ── Rotate ─────────────────────────────────────────────── */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-slow { animation: rotate-slow 20s linear infinite; }
.rotate-slow-reverse { animation: rotate-slow 20s linear infinite reverse; }

/* ── Gradient Border ────────────────────────────────────── */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gradient-border:hover::before { opacity: 1; }

/* ── Hero Blob ──────────────────────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob--1 {
  width: 600px;
  height: 600px;
  background: rgba(196,151,58,0.12);
  top: -200px;
  right: -100px;
  animation: blob-morph 8s ease-in-out infinite;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: rgba(196,151,58,0.1);
  bottom: -100px;
  left: -50px;
  animation: blob-morph 10s ease-in-out 2s infinite;
}

.hero-blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(196,151,58,0.06);
  top: 40%;
  right: 30%;
  animation: blob-morph 12s ease-in-out 4s infinite;
}

@keyframes blob-morph {
  0%, 100% { border-radius: 50%; transform: scale(1) rotate(0deg); }
  25% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%; transform: scale(1.05) rotate(5deg); }
  50% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 50%; transform: scale(0.95) rotate(-5deg); }
  75% { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; transform: scale(1.03) rotate(3deg); }
}

/* ── Delay Utilities ────────────────────────────────────── */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }
.delay-800 { transition-delay: 800ms !important; }

/* ── Reduce Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
}
