/* ============================================================
   VDH MOTION & ANIMATION LAYER  — vdh_motion.css
   Dark theme: bg #050b18, accent #ff7b00
   SAFE: page never blank — reveal only works when JS loaded
   ============================================================ */

/* ── Floating orb background ─────────────────────────────── */
.vdh-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.vdh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: vdhFloat linear infinite;
}
.vdh-orb:nth-child(1){width:420px;height:420px;background:#ff7b00;top:-120px;left:-80px;animation-duration:22s;}
.vdh-orb:nth-child(2){width:300px;height:300px;background:#ff4500;top:30%;right:-60px;animation-duration:28s;animation-delay:-8s;}
.vdh-orb:nth-child(3){width:260px;height:260px;background:#ff7b00;bottom:10%;left:20%;animation-duration:18s;animation-delay:-14s;}
.vdh-orb:nth-child(4){width:180px;height:180px;background:#ffa040;top:55%;left:55%;animation-duration:24s;animation-delay:-5s;}

@keyframes vdhFloat {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-40px) scale(1.08); }
  50%  { transform: translate(-20px,30px) scale(0.94); }
  75%  { transform: translate(40px,20px) scale(1.05); }
  100% { transform: translate(0,0) scale(1); }
}

/* ── Animated grid / dot background ──────────────────────── */
.vdh-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,123,0,.10) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: vdhGridDrift 60s linear infinite;
}
@keyframes vdhGridDrift {
  from { background-position: 0 0; }
  to   { background-position: 400px 400px; }
}

/* ── Scroll-reveal — ONLY active when JS loaded ───────────── */
/* Without .vdh-js-ready, elements are fully visible (safe fallback) */
.vdh-js-ready [data-vdh-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.vdh-js-ready [data-vdh-reveal="left"]  { transform: translateX(-40px); }
.vdh-js-ready [data-vdh-reveal="right"] { transform: translateX( 40px); }
.vdh-js-ready [data-vdh-reveal="scale"] { transform: scale(.88); }
[data-vdh-reveal].vdh-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* stagger — also only hides when JS ready */
.vdh-js-ready [data-vdh-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1),
              transform .55s cubic-bezier(.22,1,.36,1);
}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(1){transition-delay:.05s}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(2){transition-delay:.15s}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(3){transition-delay:.25s}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(4){transition-delay:.35s}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(5){transition-delay:.45s}
.vdh-js-ready [data-vdh-stagger].vdh-visible > *:nth-child(6){transition-delay:.55s}
[data-vdh-stagger].vdh-visible > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Network card hover glow ──────────────────────────────── */
.vdh-net-card, .network-card, .vdh-net-tab {
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.vdh-net-card:hover, .network-card:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 12px 40px rgba(255,123,0,.30) !important;
}
.vdh-net-tab:hover {
  transform: translateY(-3px) !important;
}

/* ── Plan tile hover lift ─────────────────────────────────── */
.plan-tile, .pt-card {
  transition: transform .22s ease, box-shadow .22s ease !important;
}
.plan-tile:hover, .pt-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 32px rgba(255,123,0,.25) !important;
}

/* ── Button shine sweep ───────────────────────────────────── */
.btn-primary, .btn-warning {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-warning::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-warning:hover::after {
  left: 140%;
}

/* ── Glowing orange line divider ─────────────────────────── */
.vdh-glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff7b00, transparent);
  border: none;
  margin: 2rem auto;
  width: 80%;
  animation: vdhLinePulse 3s ease-in-out infinite;
}
@keyframes vdhLinePulse {
  0%,100% { opacity: .4; }
  50%     { opacity: 1; box-shadow: 0 0 12px #ff7b00; }
}

/* ── Navbar scroll shrink ─────────────────────────────────── */
.vdh-navbar-shrink {
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease !important;
}
.vdh-navbar-shrink.scrolled {
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
  background: rgba(5,11,24,.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.4) !important;
}

/* ── Loading skeleton shimmer ─────────────────────────────── */
.vdh-shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: vdhShimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes vdhShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Reduce motion for accessibility ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .vdh-orb, .vdh-grid-bg { display: none; }
}