/* ═══════════════════════════════════════════════════════════════
   HERO ENHANCEMENTS — Living Orbits, Transit CTA, Cosmic Effects
   AstroKamya™ 2026 — Design Overhaul
   ═══════════════════════════════════════════════════════════════ */

/* ── Living Navagraha Orbit Lines (behind planet carousel) ── */
.h9-orbit-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.h9-orbit-rings svg {
  width: 100%;
  height: 100%;
}

.h9-orbit-ring {
  fill: none;
  stroke-width: 0.6;
  opacity: 0.12;
  transition: opacity 0.6s ease, stroke-width 0.4s ease;
}

.h9-orbit-ring.active {
  opacity: 0.45;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px currentColor);
}

/* Energy pulse traveling along the active orbit */
.h9-orbit-energy {
  fill: none;
  stroke-width: 2;
  opacity: 0;
  stroke-dasharray: 20 280;
  transition: opacity 0.4s ease;
}

.h9-orbit-energy.active {
  opacity: 0.6;
  animation: orbitEnergyFlow 3s linear infinite;
}

@keyframes orbitEnergyFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* ── Planetary Transit CTA Button ── */
.h9-btn-primary {
  position: relative;
  overflow: hidden;
}

/* Orbiting golden dot on CTA button border */
.h9-btn-primary::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFB800;
  box-shadow: 0 0 8px 2px rgba(255,184,0,0.6), 0 0 16px 4px rgba(255,184,0,0.3);
  animation: ctaOrbit 4s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes ctaOrbit {
  0%   { top: 0; left: 0; }
  25%  { top: 0; left: 100%; }
  50%  { top: 100%; left: 100%; }
  75%  { top: 100%; left: 0; }
  100% { top: 0; left: 0; }
}

.h9-btn-primary:hover::after {
  animation-duration: 1.5s;
  box-shadow: 0 0 12px 3px rgba(255,184,0,0.8), 0 0 24px 6px rgba(255,184,0,0.4);
}

/* ── Cosmic CTA Glow Pulse ── */
.h9-btn-primary .h9-btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--cta-glow-angle, 0deg),
    transparent 0deg,
    rgba(255,184,0,0.15) 60deg,
    transparent 120deg,
    rgba(124,58,237,0.1) 240deg,
    transparent 360deg
  );
  animation: ctaGlowSpin 6s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes ctaGlowSpin {
  0% { --cta-glow-angle: 0deg; transform: rotate(0deg); }
  100% { --cta-glow-angle: 360deg; transform: rotate(360deg); }
}

/* ── Gravitational Lensing Text Effect ── */
.h9-hero-title {
  position: relative;
}

.h9-hero-title .h9-word {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subtle text displacement near planets on hover */
.h9-hero-left:hover .h9-line-2 .h9-big {
  animation: gravitationalShimmer 3s ease-in-out infinite;
}

@keyframes gravitationalShimmer {
  0%, 100% {
    filter: blur(0px);
    transform: scale(1) translateX(0);
  }
  25% {
    filter: blur(0.3px);
    transform: scale(1.003) translateX(0.5px);
  }
  50% {
    filter: blur(0px);
    transform: scale(1) translateX(0);
  }
  75% {
    filter: blur(0.2px);
    transform: scale(0.998) translateX(-0.3px);
  }
}

/* ── Enhanced Insight Card — Floating Animation ── */
.h9-insight-card {
  animation: insightFloat 6s ease-in-out infinite;
}

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

/* ── Scroll Hint — Breathing Pulse ── */
.h9-scroll-hint {
  animation: scrollHintBreath 2.5s ease-in-out infinite;
}

@keyframes scrollHintBreath {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(5px); }
}

/* ── Zodiac Ring — Slow Rotation ── */
.h9-zodiac-ring svg {
  animation: zodiacRotate 120s linear infinite;
}

@keyframes zodiacRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Planet Scan Beam — Enhanced Glow ── */
.h9-scan-beam.h9-beam-active {
  box-shadow: 
    0 0 20px 2px rgba(125,211,192,0.15),
    0 0 40px 4px rgba(125,211,192,0.06);
}

/* ── Hero Section — Premium Vignette ── */
#hero-v9::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 40%,
    rgba(7,7,12,0.3) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Trust Row — Subtle Entrance Animation ── */
.h9-trust-row {
  animation: trustFadeIn 1.2s ease-out 0.8s both;
}

@keyframes trustFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Eyebrow Pulse Dot — Living Indicator ── */
.h9-pulse-dot {
  position: relative;
}

.h9-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  animation: pulseDotRing 2s ease-out infinite;
}

@keyframes pulseDotRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}

/* ── Ephemeris Bar — Gradient Shimmer ── */
.h9-ephemeris-bar {
  position: relative;
  overflow: hidden;
}

.h9-ephemeris-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,184,0,0.04),
    transparent
  );
  animation: ephemerisShimmer 8s linear infinite;
}

@keyframes ephemerisShimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ── Mobile Optimizations ── */
@media (max-width: 768px) {
  .h9-btn-primary::after {
    width: 4px;
    height: 4px;
  }
  
  .h9-orbit-rings {
    opacity: 0.3;
  }
  
  @keyframes gravitationalShimmer {
    0%, 100% { filter: none; transform: none; }
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .h9-btn-primary::after,
  .h9-orbit-energy,
  .h9-zodiac-ring svg,
  .h9-insight-card,
  .h9-scroll-hint,
  .h9-ephemeris-bar::after {
    animation: none;
  }
  
  .h9-hero-left:hover .h9-line-2 .h9-big {
    animation: none;
  }
}
