/* ============================================================
   COSMIC VORTEX BACKGROUND - Reflect.app inspired
   Website colors: #B800F5 | #580B82 | #7000A8 | #E879F9
   ============================================================ */

/* ─── Hero Atmospheric Stage ─────────────────────────────── */
#bg-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 850px;
  max-height: 1150px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ─── Guaranteed Foreground Stacking ────────────────────────
   Ensures ALL text, buttons, logos, cards, and interactive 
   elements sit strictly IN FRONT of the 3D vortex background.
   ────────────────────────────────────────────────────────── */
.header-section,
.navbar-2 {
  position: relative;
  z-index: 30 !important;
}

.hero-section {
  position: relative;
  z-index: 1;
}

.hero-content-block,
.hero-left-block,
.hero-title-block,
.hero-button-block,
.hero-brands-block,
.hero-3d-scene,
.hero-3d-card-wrapper,
.hero-edit-decorations,
.trusted_wrap,
.button-03,
.brands-logo-row,
.brands-logo-row img,
.holder.hero.hero-3d-card {
  position: relative;
  z-index: 10 !important;
}

.edit-floating-badge {
  z-index: 15 !important;
}

/* ─── Corner Atmospheric Glows ────────────────────────────── */
.bg-corner-tl {
  position: absolute;
  width: 52vw;
  height: 54vh;
  top: -10vh;
  left: -8vw;
  background: radial-gradient(ellipse at 30% 25%, rgba(184, 0, 245, 0.18) 0%, rgba(112, 0, 168, 0.08) 45%, transparent 75%);
  filter: blur(85px);
  opacity: 0.9;
}

.bg-corner-tr {
  position: absolute;
  width: 52vw;
  height: 54vh;
  top: -10vh;
  right: -8vw;
  background: radial-gradient(ellipse at 70% 25%, rgba(184, 0, 245, 0.14) 0%, rgba(88, 11, 130, 0.07) 45%, transparent 75%);
  filter: blur(95px);
  opacity: 0.9;
}

/* ─── 3D Vortex Ring System ───────────────────────────────── */
.bg-vortex-wrap {
  position: absolute;
  width: 660px;
  height: 660px;
  left: 50%;
  top: 72%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
}

/* Main ring - tilted with 3D perspective to form cosmic torus */
.bg-vortex-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 121, 249, 0.85);
  transform: perspective(900px) rotateX(68deg);
  box-shadow:
    inset 0 0 35px rgba(184, 0, 245, 0.40),
    0 0 16px rgba(232, 121, 249, 0.80),
    0 0 45px rgba(184, 0, 245, 0.50),
    0 0 110px rgba(184, 0, 245, 0.28),
    0 0 220px rgba(112, 0, 168, 0.16),
    0 0 360px rgba(88, 11, 130, 0.08);
}

/* Concentric inner accretion ring */
.bg-vortex-ring::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(184, 0, 245, 0.38);
  box-shadow: 0 0 18px rgba(184, 0, 245, 0.30), inset 0 0 18px rgba(184, 0, 245, 0.18);
}

/* Concentric outer accretion halo */
.bg-vortex-ring::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(112, 0, 168, 0.22);
  box-shadow: 0 0 25px rgba(112, 0, 168, 0.14);
}

/* ─── Vertical Light Pillar ───────────────────────────────── */
.bg-light-pillar {
  position: absolute;
  width: 300px;
  height: 500px;
  left: 50%;
  top: 66%;
  transform: translateX(-50%) translateY(-90%);
  background: radial-gradient(ellipse 55% 100% at 50% 95%,
    rgba(232, 121, 249, 0.13) 0%,
    rgba(184, 0, 245, 0.06) 25%,
    rgba(112, 0, 168, 0.02) 60%,
    transparent 100%);
  filter: blur(22px);
  opacity: 0.9;
  z-index: 1;
}

.bg-light-pillar::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 55%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 100% 100% at 50% 90%,
    rgba(255, 210, 255, 0.18) 0%,
    rgba(232, 121, 249, 0.08) 40%,
    transparent 80%);
  filter: blur(14px);
}

/* ─── Floor Glow Disk ─────────────────────────────────────── */
.bg-vortex-floor {
  position: absolute;
  width: 720px;
  height: 180px;
  left: 50%;
  top: 68%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 80% 100% at 50% 30%,
    rgba(184, 0, 245, 0.18) 0%,
    rgba(112, 0, 168, 0.08) 50%,
    transparent 80%);
  filter: blur(35px);
  opacity: 0.85;
  z-index: 1;
}

/* ─── CSS Particle Starfield ──────────────────────────────── */
.bg-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-particles::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(232, 121, 249, 0.75);
  top: 50%;
  left: 50%;
  box-shadow:
    -280px -180px 0 rgba(232, 121, 249, 0.50),
     180px -220px 0 rgba(184, 0, 245, 0.45),
    -150px  120px 0 rgba(184, 0, 245, 0.40),
     310px   80px 0 rgba(232, 121, 249, 0.55),
    -320px   60px 0 rgba(184, 0, 245, 0.35),
     200px -300px 0 rgba(232, 121, 249, 0.42),
    -240px -300px 0 rgba(184, 0, 245, 0.38),
      90px  200px 0 rgba(232, 121, 249, 0.48),
    -400px -100px 0 rgba(184, 0, 245, 0.30),
     380px -150px 0 rgba(232, 121, 249, 0.36),
    -100px  280px 0 rgba(184, 0, 245, 0.42),
     260px  220px 0 rgba(232, 121, 249, 0.38),
    -360px  200px 0 rgba(184, 0, 245, 0.28),
     420px   40px 0 rgba(232, 121, 249, 0.32),
    -200px -380px 0 rgba(184, 0, 245, 0.34),
      50px -340px 0 rgba(232, 121, 249, 0.44),
     340px -260px 0 rgba(184, 0, 245, 0.26),
    -440px -200px 0 rgba(232, 121, 249, 0.22),
     160px  340px 0 rgba(184, 0, 245, 0.36),
    -300px  340px 0 rgba(232, 121, 249, 0.28),
     480px  200px 0 rgba(184, 0, 245, 0.20),
    -500px  -60px 0 rgba(232, 121, 249, 0.18),
     120px -420px 0 rgba(184, 0, 245, 0.30),
     -80px -260px 0 rgba(232, 121, 249, 0.46),
     440px -320px 0 rgba(184, 0, 245, 0.22),
    -380px -320px 0 rgba(232, 121, 249, 0.24),
     280px  380px 0 rgba(184, 0, 245, 0.28),
    -460px  160px 0 rgba(232, 121, 249, 0.20),
     500px  120px 0 rgba(184, 0, 245, 0.18),
    -180px  420px 0 rgba(232, 121, 249, 0.26);
  animation: particles-drift 60s linear infinite;
}

/* ─── Cinematic Micro Grain ───────────────────────────────── */
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.030;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  z-index: 2;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes ring-pulse {
  0%, 100% {
    box-shadow:
      inset 0 0 35px rgba(184, 0, 245, 0.40),
      0 0 16px rgba(232, 121, 249, 0.80),
      0 0 45px rgba(184, 0, 245, 0.50),
      0 0 110px rgba(184, 0, 245, 0.28),
      0 0 220px rgba(112, 0, 168, 0.16),
      0 0 360px rgba(88, 11, 130, 0.08);
  }
  50% {
    box-shadow:
      inset 0 0 50px rgba(184, 0, 245, 0.55),
      0 0 24px rgba(232, 121, 249, 1.00),
      0 0 65px rgba(184, 0, 245, 0.65),
      0 0 140px rgba(184, 0, 245, 0.36),
      0 0 270px rgba(112, 0, 168, 0.22),
      0 0 400px rgba(88, 11, 130, 0.12);
  }
}

@keyframes pillar-glow {
  0% {
    opacity: 0.75;
    transform: translateX(-50%) translateY(-85%) scaleX(0.95);
  }
  100% {
    opacity: 1.00;
    transform: translateX(-50%) translateY(-85%) scaleX(1.05);
  }
}

@keyframes floor-pulse {
  0% {
    opacity: 0.70;
    transform: translateX(-50%) scaleX(0.95);
  }
  100% {
    opacity: 1.00;
    transform: translateX(-50%) scaleX(1.05);
  }
}

@keyframes corner-breathe {
  0% {
    opacity: 0.80;
    transform: scale(1.00);
  }
  100% {
    opacity: 1.00;
    transform: scale(1.06);
  }
}

@keyframes particles-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(8px, -12px); }
  50%  { transform: translate(-6px, -20px); }
  75%  { transform: translate(12px, -8px); }
  100% { transform: translate(0, 0); }
}

/* ─── Responsive Adjustments ──────────────────────────────── */
@media (max-width: 991px) {
  .bg-vortex-wrap {
    width: 480px;
    height: 480px;
    top: 48%;
  }
  .bg-light-pillar {
    width: 220px;
    height: 400px;
  }
  .bg-vortex-floor {
    width: 520px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .bg-vortex-wrap {
    width: 340px;
    height: 340px;
    top: 46%;
  }
  .bg-light-pillar {
    width: 160px;
    height: 300px;
  }
  .bg-vortex-floor {
    width: 380px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-vortex-ring,
  .bg-light-pillar,
  .bg-vortex-floor,
  .bg-corner-tl,
  .bg-corner-tr,
  .bg-particles::before {
    animation: none !important;
  }
}