/* ========================================
   NESAM MEDIA — Scroll Animations
   ======================================== */

/* ─── Scroll reveal base states ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.9);
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* ─── Staggered delay helpers ────────────── */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ─── Counter animation ──────────────────── */
.count-up { transition: var(--transition); }

/* ─── Floating animation (hero icon) ────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-14px) rotate(2deg); }
  66%  { transform: translateY(-7px) rotate(-1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Hero specific text animation ──────── */
.hero-animate-1 { animation: fadeInDown 0.8s ease 0.2s both; }
.hero-animate-2 { animation: fadeInUp  0.8s ease 0.4s both; }
.hero-animate-3 { animation: fadeInUp  0.8s ease 0.6s both; }
.hero-animate-4 { animation: fadeInUp  0.8s ease 0.8s both; }
.hero-animate-5 { animation: fadeInUp  0.8s ease 1.0s both; }

/* ─── Floating card in hero ──────────────── */
.hero-visual      { animation: floatSlow 5s ease-in-out infinite; }
.hero-icon-badge  { animation: float 3s ease-in-out infinite; }

/* ─── Pulse ring for CTA ─────────────────── */
.pulse-btn {
  position: relative;
  overflow: visible !important;
}
.pulse-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease-out infinite;
}

/* ─── Orbit spinner (hero background) ───── */
.orbit { animation: spin-slow 15s linear infinite; }
.orbit-reverse { animation: spin-slow 20s linear infinite reverse; }

/* ─── Gradient text ──────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, #FF6B2B, #FFB347, #FF6B2B);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s linear infinite;
}

/* ─── Shimmer effect on cards hover ─────── */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.shimmer:hover::after { transform: translateX(100%); }

/* ─── Page transition ────────────────────── */
.page-transition {
  animation: fadeInUp 0.6s ease both;
}

/* ─── Typing cursor ──────────────────────── */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
  border-radius: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
