/* ================================================================
   NETROFUSION LABS — Animations, Reveals & Visual Utilities
   ================================================================ */

/* ── Scroll Reveal ── */
.nf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.nf-reveal--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.nf-reveal--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.nf-reveal--scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.nf-reveal.is-visible,
.nf-reveal--left.is-visible,
.nf-reveal--right.is-visible,
.nf-reveal--scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for children */
.nf-stagger > *:nth-child(1) { transition-delay: 0ms; }
.nf-stagger > *:nth-child(2) { transition-delay: 80ms; }
.nf-stagger > *:nth-child(3) { transition-delay: 160ms; }
.nf-stagger > *:nth-child(4) { transition-delay: 240ms; }
.nf-stagger > *:nth-child(5) { transition-delay: 320ms; }
.nf-stagger > *:nth-child(6) { transition-delay: 400ms; }
.nf-stagger > *:nth-child(7) { transition-delay: 480ms; }

/* ── Hero Animations ── */
.nf-hero-title {
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s both;
}

.nf-hero-desc {
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s both;
}

.nf-hero-actions {
  animation: heroFadeUp 0.8s var(--ease-out) 0.6s both;
}

.nf-hero-stats {
  animation: heroFadeUp 0.8s var(--ease-out) 0.8s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Floating Orbs (decorative) ── */
.nf-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.nf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite;
}

.nf-orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.08);
  top: -10%;
  left: 20%;
  animation-delay: 0s;
}

.nf-orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.06);
  top: 30%;
  right: -5%;
  animation-delay: -7s;
}

.nf-orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.05);
  bottom: -5%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

/* ── Grid Background Pattern ── */
.nf-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ── Gradient Mesh Background ── */
.nf-mesh-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

/* ── Accent Line ── */
.nf-accent-line {
  width: 48px;
  height: 2px;
  background: var(--gradient-brand-h);
  border-radius: 1px;
}

/* ── Link Arrow ── */
.nf-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--nf-violet);
  transition: gap var(--duration-normal), color var(--duration-fast);
}

.nf-link-arrow:hover {
  gap: var(--space-3);
  color: var(--nf-cyan);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .nf-reveal,
  .nf-reveal--left,
  .nf-reveal--right,
  .nf-reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nf-hero-title,
  .nf-hero-desc,
  .nf-hero-actions,
  .nf-hero-stats {
    animation: none;
  }

  .nf-orb { animation: none; }

  .nf-card:hover {
    transform: none;
  }
}

/* ── Print ── */
@media print {
  .nf-nav,
  .nf-drawer,
  .nf-drawer__overlay,
  .nf-loader,
  .nf-orbs,
  .nf-mesh-bg,
  .nf-grid-bg {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .nf-card {
    border-color: #ccc !important;
    box-shadow: none !important;
  }
}
