/* ── Scroll Reveal ─────────────────────────── */

/* On mobile: disable scroll reveal entirely to prevent invisible content */
@media (max-width: 768px) {
  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="scale"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .animate-float {
    animation: none !important;
  }

  .hero-section .fade-in-up,
  .hero-content .fade-in-up,
  .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    animation-delay: 0s !important;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

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

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* ── Marquee ───────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

/* ── Pulse glow ────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 24px var(--color-primary-glow); }
  50%       { box-shadow: 0 0 48px var(--color-primary-glow), 0 0 80px rgba(91,127,255,0.15); }
}

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

/* ── Fade in ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

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

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

/* ── Chat bubble appear ────────────────────── */
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.bubble-animate {
  animation: bubbleIn 0.35s ease both;
}
