/* ============================================
   SIHIA AFRICA LTD — ANIMATIONS CSS v2
   Blue × Gold cursor, modern motion design
   ============================================ */

/* ── Custom Cursor ───────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 10px var(--blue), 0 0 24px rgba(29,78,216,0.4);
}

#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(29, 78, 216, 0.07) 0%,
    rgba(29, 78, 216, 0.03) 40%,
    transparent 70%
  );
  transition: width 0.4s ease, height 0.4s ease;
}

/* Hover state — gold cursor */
body.cursor-hover #cursor-dot {
  width: 18px;
  height: 18px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold), 0 0 32px rgba(217,119,6,0.4);
}

body.cursor-hover #cursor-glow {
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.07) 0%,
    rgba(217, 119, 6, 0.02) 40%,
    transparent 70%
  );
}

/* ── Light Beams ─────────────────────────── */
.light-beam {
  position: absolute;
  width: 2px;
  height: 60%;
  top: 0;
  border-radius: 0 0 4px 4px;
  opacity: 0.5;
  pointer-events: none;
}

.light-beam-gold {
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: beamFlicker 3.5s ease-in-out infinite;
}

.light-beam-blue {
  background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: beamFlicker 2.8s ease-in-out infinite 0.9s;
}

/* Keep legacy cyan class pointing to blue */
.light-beam-cyan {
  background: linear-gradient(to bottom, #38BDF8, transparent);
  animation: beamFlicker 2.8s ease-in-out infinite 0.9s;
}

@keyframes beamFlicker {
  0%   { opacity: 0.5; transform: scaleY(1); }
  25%  { opacity: 0.25; transform: scaleY(0.92); }
  50%  { opacity: 0.6; transform: scaleY(1.04); }
  75%  { opacity: 0.35; transform: scaleY(0.96); }
  100% { opacity: 0.5; transform: scaleY(1); }
}

/* ── Sound Wave Lines ────────────────────── */
.sound-wave-lines {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  opacity: 0.35;
}

.sound-wave-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
  animation: wavePulse 2.2s ease-in-out infinite;
}

.sound-wave-line:nth-child(1) { width: 120px; animation-delay: 0s; }
.sound-wave-line:nth-child(2) { width: 80px;  animation-delay: 0.25s; }
.sound-wave-line:nth-child(3) { width: 140px; animation-delay: 0.5s; }
.sound-wave-line:nth-child(4) { width: 60px;  animation-delay: 0.75s; }

@keyframes wavePulse {
  0%, 100% { opacity: 0.3; transform: scaleX(1); }
  50%       { opacity: 0.9; transform: scaleX(1.08); }
}

/* ── Sound Visualizer ────────────────────── */
.sound-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.viz-bar {
  width: 4px;
  background: linear-gradient(to top, var(--blue), var(--gold-light));
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease;
  min-height: 4px;
  box-shadow: 0 0 6px rgba(29,78,216,0.4);
}

/* ── Ticker Bar ──────────────────────────── */
.ticker-wrapper {
  overflow: hidden;
  background: rgba(29, 78, 216, 0.06);
  border-top: 1px solid rgba(29,78,216,0.12);
  border-bottom: 1px solid rgba(29,78,216,0.12);
  padding: 0.75rem 0;
  position: relative;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

/* Fade edges based on section background */
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--blue-dark), transparent); }
.ticker-wrapper::after  { right: 0; background: linear-gradient(to left, var(--blue-dark), transparent); }

/* When ticker is on white bg */
.ticker-wrapper.on-white::before { background: linear-gradient(to right, var(--white), transparent); }
.ticker-wrapper.on-white::after  { background: linear-gradient(to left, var(--white), transparent); }

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  will-change: transform;
  white-space: nowrap;
}

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

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0 2rem;
  white-space: nowrap;
}

.ticker-item span { color: var(--gold-light); margin: 0 0.5rem; }

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

/* ── Testimonials Auto-scroll ────────────── */
.testimonials-track {
  display: flex;
  gap: var(--space-md);
  animation: testimonialsScroll 32s linear infinite;
}

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

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

/* ── Orbital Rings ───────────────────────── */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(29,78,216,0.12);
  animation: orbit 10s linear infinite;
}

.orbital-ring:nth-child(2) {
  animation-duration: 14s;
  animation-direction: reverse;
  border-color: rgba(217,119,6,0.08);
}

.orbital-ring:nth-child(3) {
  animation-duration: 18s;
  border-color: rgba(29,78,216,0.07);
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Light Blob ──────────────────────────── */
.light-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(29,78,216,0.18) 0%, transparent 70%);
  animation: blobDrift 7s ease-in-out infinite;
  mix-blend-mode: multiply;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(22px, -16px) scale(1.08); }
  66%       { transform: translate(-16px, 12px) scale(0.92); }
}

/* ── Stat Number ─────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--blue);
  line-height: 1;
  display: block;
}

/* ── Ghost Text ──────────────────────────── */
.ghost-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(29,78,216,0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
  user-select: none;
}

/* ── Scanline Effect ─────────────────────── */
.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(29,78,216,0.02) 2px,
    rgba(29,78,216,0.02) 4px
  );
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover .scanline-overlay { opacity: 1; }

/* ── Spotlight Hint ──────────────────────── */
.spotlight-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: pulse 2s ease-in-out infinite;
  z-index: 10;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.spotlight-hint.hidden { opacity: 0; }

/* ── Shimmer Loading ─────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(90deg, var(--light) 25%, var(--white) 50%, var(--light) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ── Card Hover Ripple ───────────────────── */
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* ── Gradient Border Animation ───────────── */
@keyframes borderRotate {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

/* ── Hero Number Count ───────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating Badge ──────────────────────── */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(0deg); }
}

.float-badge { animation: floatBadge 3s ease-in-out infinite; }

/* ── Bounce ──────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-8px); }
  60%       { transform: translateY(-4px); }
}

/* ── Spin ────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Background Gradient Animation ──────── */
@keyframes bgGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-bg {
  background: linear-gradient(135deg, var(--blue-pale), var(--white), var(--gold-pale), var(--white), var(--blue-pale));
  background-size: 300% 300%;
  animation: bgGradient 8s ease infinite;
}

/* ── Gradient Text Shimmer ───────────────── */
@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(125deg, var(--blue-dark) 0%, var(--blue) 30%, var(--gold) 60%, var(--blue-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}
