/* ==========================================================================
   COMPONENT STYLES - HERO SECTION
   ========================================================================== */

.fda-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px 0;
  overflow: hidden;
  background: var(--hero-bg);
}

/* Full-section starfield background */
.fda-hero-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
  contain: layout paint;
  --star-size-multiplier: 1;
}

.fda-hero-starfield.is-paused .fda-star {
  animation-play-state: paused !important;
}

/* Background Glowing Orbs */
.fda-hero-glow-left {
  top: 10%;
  left: -200px;
  background: var(--gradient-glow-left);
}

.fda-hero-glow-right {
  bottom: 10%;
  right: -200px;
  background: var(--gradient-glow-right);
}

/* Premium Badge */
.fda-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(108, 93, 211, 0.08);
  border: 1px solid var(--color-border-glow);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--spacing-lg);
}

.fda-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
}

.fda-hero-badge-text {
  color: var(--color-text-light);
  font-size: var(--fs-xs);
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}

/* Headline */
.fda-hero-title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--spacing-md);
}

@media (min-width: 992px) {
  .fda-hero-title {
    font-size: var(--fs-hero);
  }
}

/* Description text */
.fda-hero-desc {
  max-width: 720px;
  margin: 0 auto var(--spacing-xl) auto;
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
}

/* CTA buttons inside Hero */
.fda-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

@media (min-width: 576px) {
  .fda-hero-ctas {
    flex-direction: row;

  }
}

/* Primary CTA styling */
.fda-btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--color-always-light);
  box-shadow: var(--shadow-glow);
}

.fda-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-hover);
  color: var(--color-text-light);
}

.fda-btn-primary:hover .fda-btn-circle {
  transform: rotate(45deg);
}

/* Secondary CTA styling */
.fda-btn-secondary {
  background: var(--color-btn-secondary-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.fda-btn-secondary:hover {
  background: var(--color-btn-secondary-hover-bg);
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(108, 93, 211, 0.15);
  color: var(--color-text-light);
}

.fda-btn-secondary:hover .fda-btn-circle {
  transform: translateY(-2px);
}

/* Decorative Spheres Placement */
.fda-sphere-container {
  position: absolute;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: var(--z-decorations);
  opacity: var(--sphere-opacity);
  mix-blend-mode: var(--sphere-blend-mode);
  filter: var(--sphere-filter, none);
  overflow: visible;
  /* Ensure particles are allowed to spread outward */
}

/* Pause animations when off-screen (GPU & Battery Optimization) */
.fda-sphere-container.is-paused .animate-slow-rotate,
.fda-sphere-container.is-paused .fda-particle {
  animation-play-state: paused !important;
}

.fda-sphere-left {
  left: -280px;
  /* half of sphere width to slide partially out of viewport */
}

.fda-sphere-right {
  right: -280px;
  /* half of sphere width to slide partially out of viewport */
}

.fda-sphere-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Separate Non-Rotating Particle System Layer */
.fda-sphere-particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
  /* Render particles in front of the sphere image to mask rotation */
  --size-multiplier: 1;
}

/* Breakpoint Sizing Multipliers (Pure CSS scaling for mobile/tablet) */
@media (max-width: 991.98px) {
  .fda-sphere-particles-layer {
    --size-multiplier: 0.75;
  }

  .fda-hero-starfield {
    --star-size-multiplier: 0.84;
  }
}

@media (max-width: 767.98px) {
  .fda-sphere-particles-layer {
    --size-multiplier: 0.55;
  }

  .fda-hero-starfield {
    --star-size-multiplier: 0.7;
  }

  .fda-hero-section {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding-top: calc(74px + 20px) !important;
    /* Navbar height + 20px breathing space */
    padding-bottom: 20px !important;
    /* 20px bottom breathing space */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .fda-hero-section .container {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .fda-hero-section .row {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .fda-hero-section .col-lg-10 {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .fda-hero-badge {
    margin-top: 0 !important;
    margin-bottom: clamp(10px, 2.5vh, 24px) !important;
  }

  .fda-hero-badge-text {
    color: var(--color-text-light);
    font-size: 0.50rem;
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
  }

  .fda-hero-title {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
    margin-bottom: clamp(10px, 2.5vh, 24px) !important;
  }

  .fda-hero-desc {
    font-size: clamp(12.5px, 3.5vw, 14px) !important;
    line-height: 1.55 !important;
    margin-bottom: clamp(16px, 3.5vh, 32px) !important;
    padding: 0 4px !important;
  }

  .fda-hero-ctas {
    margin-bottom: 0 !important;
    gap: clamp(10px, 2vh, 16px) !important;
    width: 100% !important;
  }

  .fda-hero-ctas .fda-btn {
    width: 100% !important;
    max-width: 320px !important;
  }
}

.fda-star {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: calc(var(--size, 3px) * var(--star-size-multiplier, 1));
  height: calc(var(--size, 3px) * var(--star-size-multiplier, 1));
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(1);
  transform-origin: center;
  color: var(--star-color, rgba(168, 148, 255, 0.85));
  opacity: var(--base-opacity, 0.4);
  will-change: opacity, transform;
  animation: fdaStarTwinkle var(--duration, 3s) ease-in-out var(--delay, 0s) infinite;
}

.fda-star--blob {
  --rotate: 38deg;
  background: var(--star-color, rgba(139, 92, 246, 1));
  border-radius: 30%;
  box-shadow:
    0 0 2px #ffffff,
    /* bright white inner flash */
    0 0 5px var(--star-color, rgba(139, 92, 246, 1)),
    0 0 10px rgba(139, 92, 246, 0.9),
    0 0 16px rgba(139, 92, 246, 0.5);
  /* extra outer glow layer */
}

.fda-star--lensflare {
  --rotate: 0deg;
  background: transparent;
}

/* Bright white core */
.fda-star--lensflare::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: rgba(216, 190, 255, 0.95);
  /* white ki jagah halka lavender */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 6px rgba(216, 190, 255, 0.9),
    0 0 12px var(--star-color, rgba(168, 148, 255, 0.85)),
    0 0 24px var(--star-color, rgba(168, 148, 255, 0.85));
  z-index: 2;
}

/* Horizontal Ray */
.fda-star--lensflare::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ray-length, 28px);
  height: var(--ray-thickness, 1.2px);
  background: linear-gradient(90deg, transparent, #ffffff 50%, transparent);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 1.5px var(--star-color, rgba(168, 148, 255, 0.85)));
  z-index: 1;
}

/* Vertical Ray */
.fda-star--lensflare .fda-star-ray-v {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ray-thickness, 1.2px);
  height: var(--ray-length, 28px);
  background: linear-gradient(180deg, transparent, #ffffff 50%, transparent);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 1.5px var(--star-color, rgba(168, 148, 255, 0.85)));
  z-index: 1;
}

@keyframes fdaStarTwinkle {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(1);
    opacity: var(--base-opacity, 0.4);
  }

  50% {
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(1.15);
    opacity: var(--peak-opacity, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fda-star {
    animation: none !important;
  }
}

@keyframes fdaStarTwinkle {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(1);
    opacity: var(--base-opacity, 0.4);
  }

  50% {
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(1.35);
    /* pehle 1.15 tha */
    opacity: var(--peak-opacity, 0.8);
  }
}

.fda-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background-color: var(--color);
  box-shadow:
    0 0 var(--core-glow, 1.5px) #ffffff,
    /* Luminous white inner core flash */
    0 0 var(--glow-size-1, 3px) var(--color),
    0 0 var(--glow-size-2, 6px) var(--color),
    0 0 var(--glow-size-3, 12px) rgba(139, 92, 246, 0.45);
  will-change: transform, opacity;
  animation: fda-float-particle var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes fda-float-particle {
  0% {
    transform: scale(var(--scale-min));
    opacity: var(--base-opacity);
  }

  50% {
    transform: scale(var(--scale-max));
    opacity: var(--mid-opacity);
  }

  100% {
    transform: scale(var(--scale-min));
    opacity: var(--target-opacity);
  }
}

/* ==========================================
   4. LIGHT THEME VIBRANCY & SPHERE AURA GLOWS
   ========================================== */

/* Sphere aura glow */
[data-theme="light"] .fda-sphere-container::before {
  content: '';
  position: absolute;
  left: 10%;
  top: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  filter: blur(15px);
  z-index: -1;
  animation: fdaSphereGlowPulse 4s ease-in-out infinite alternate;
}

[data-theme="light"] .fda-sphere-image {
  filter: saturate(1.28) contrast(1.12) drop-shadow(0 0 12px rgba(139, 92, 246, 0.25));
}

/* Particles core and shadows (visible dark-theme violet core instead of white) */
[data-theme="light"] .fda-particle {
  background-color: var(--color);
  /* Solid colored core */
  box-shadow:
    0 0 var(--core-glow, 1.5px) var(--color),
    0 0 var(--glow-size-1, 3px) var(--color),
    0 0 var(--glow-size-2, 6px) rgba(139, 92, 246, 0.6);
}

/* Starfield blobs and lens flares */
[data-theme="light"] .fda-star--blob {
  background: var(--star-color, rgba(139, 92, 246, 1));
  box-shadow:
    0 0 3px var(--star-color, rgba(139, 92, 246, 1)),
    0 0 6px rgba(139, 92, 246, 0.5);
}

[data-theme="light"] .fda-star--lensflare::before {
  background: var(--star-color, rgba(139, 92, 246, 1));
  box-shadow:
    0 0 5px var(--star-color, rgba(139, 92, 246, 1)),
    0 0 10px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .fda-star--lensflare::after {
  background: linear-gradient(90deg, transparent, var(--star-color, rgba(139, 92, 246, 1)) 50%, transparent);
  filter: drop-shadow(0 0 1px var(--star-color, rgba(139, 92, 246, 1)));
}

[data-theme="light"] .fda-star--lensflare .fda-star-ray-v {
  background: linear-gradient(180deg, transparent, var(--star-color, rgba(139, 92, 246, 1)) 50%, transparent);
  filter: drop-shadow(0 0 1px var(--star-color, rgba(139, 92, 246, 1)));
}

@keyframes fdaSphereGlowPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}