/* AstroDekh Real Animated Effects & UI Stylesheet */

/* 1. Ambient Glows & Background Noise */
.bg-noise {
  background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* 2. Celestial Sky & Rotating Zodiac Wheel */
.hs-sky {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}
.hs-wheel {
  width: 100%;
  height: 100%;
  color: #7c3aed;
  animation: hs-spin 140s linear infinite;
  transform-origin: center center;
}
.hs-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: hs-twinkle 4s ease-in-out infinite;
}
.hs-star.s1 { top: 18%; left: 32%; animation-delay: 0.2s; }
.hs-star.s2 { top: 44%; left: 78%; animation-delay: 1.1s; }
.hs-star.s3 { top: 68%; left: 24%; animation-delay: 2.3s; }
.hs-star.s4 { top: 82%; left: 62%; animation-delay: 0.7s; }
.hs-star.s5 { top: 28%; left: 88%; animation-delay: 1.8s; }
.hs-star.s6 { top: 12%; left: 65%; animation-delay: 2.9s; }

@keyframes hs-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hs-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* 3. Concentric Planetary Orrery Scene (sr-scene) */
.sr-scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.sr-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 75%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  animation: sr-breathe 8s ease-in-out infinite;
  pointer-events: none;
}
.sr-svg {
  width: 100%;
  height: 100%;
  transform-origin: center center;
}
.sr-ring-1 { animation: sr-spin 18s linear infinite; transform-origin: 380px 380px; }
.sr-ring-2 { animation: sr-anti 32s linear infinite; transform-origin: 380px 380px; }
.sr-ring-3 { animation: sr-spin 50s linear infinite; transform-origin: 380px 380px; }
.sr-ring-4 { animation: sr-anti 75s linear infinite; transform-origin: 380px 380px; }
.sr-ring-5 { animation: sr-spin 110s linear infinite; transform-origin: 380px 380px; }

@keyframes sr-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes sr-anti {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes sr-breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* 4. Three Hero Choice Cards (hz-panel & hz-two) */
.hz-panel-t {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6d28d9;
  margin-bottom: 0.75rem;
  text-align: center;
}
.hz-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #ede9fe;
  box-shadow: 0 4px 15px -3px rgba(109, 40, 217, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hz-card:hover {
  transform: translateY(-3px);
  border-color: #a78bfa;
  box-shadow: 0 12px 25px -5px rgba(109, 40, 217, 0.12);
}
.hz-mini {
  width: 48px;
  height: 48px;
  display: inline-block;
}

/* Staggered Pulsing Lo Shu 3x3 Grid */
.hz-cells rect {
  fill: #faf7ff;
  stroke: #c4b5fd;
  stroke-width: 1.2;
  animation: hz-cell 2.2s ease-in-out infinite;
}
.hz-cells rect:nth-child(1) { animation-delay: 0.00s; }
.hz-cells rect:nth-child(2) { animation-delay: 0.08s; }
.hz-cells rect:nth-child(3) { animation-delay: 0.16s; }
.hz-cells rect:nth-child(4) { animation-delay: 0.24s; }
.hz-cells rect:nth-child(5) { animation-delay: 0.32s; }
.hz-cells rect:nth-child(6) { animation-delay: 0.40s; }
.hz-cells rect:nth-child(7) { animation-delay: 0.48s; }
.hz-cells rect:nth-child(8) { animation-delay: 0.56s; }
.hz-cells rect:nth-child(9) { animation-delay: 0.64s; }

@keyframes hz-cell {
  0%, 100% { fill: #faf7ff; stroke: #c4b5fd; }
  50% { fill: #ede7ff; stroke: #7c3aed; }
}

/* Drawing Lines for Vedic Kundali */
.hz-kl line {
  stroke: #d97706;
  stroke-width: 1.4;
  stroke-dasharray: 90;
  stroke-dashoffset: 0;
  animation: hz-draw 2.5s ease-out infinite alternate;
}
@keyframes hz-draw {
  0% { stroke-dashoffset: 90; }
  100% { stroke-dashoffset: 0; }
}

/* Beating Heart for Compatibility */
.hz-heart-pulse {
  animation: hz-beat 1.2s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes hz-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  45% { transform: scale(1.02); }
  65% { transform: scale(1.12); }
}

/* 5. Infinite Smooth Marquee Rows (wa-rows) */
.wa-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}
.wa-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
}
.wa-track-left {
  animation: wa-scroll-left 40s linear infinite;
}
.wa-track-right {
  animation: wa-scroll-right 40s linear infinite;
}
.wa-marquee-wrapper:hover .wa-marquee-track {
  animation-play-state: paused;
}
@keyframes wa-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes wa-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.wa-feat-card {
  width: 320px;
  flex-shrink: 0;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #ede9fe;
  padding: 1.25rem;
  box-shadow: 0 4px 12px -2px rgba(109, 40, 217, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(109, 40, 217, 0.1);
}

/* Floating number particles */
.floating-num {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  opacity: 0.12;
  color: #7c3aed;
  animation: float-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes float-drift {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-24px) rotate(8deg); }
}
