/* ═══════════════════════════════════════════════════
   OwnerSeg — Hero 3D Background Effect
   ═══════════════════════════════════════════════════ */

/* ── BASE 3D CONTAINER ───────────────────────── */
.hero-3d {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ── FLOATING SHAPES (via extra markup .hero-3d-shapes) ── */
.hero-3d-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Large soft glow — top right */
.hero-3d-shape-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153,244,115,.18) 0%, rgba(153,244,115,.04) 40%, transparent 70%);
  top: -180px; right: -140px;
  filter: blur(40px);
  animation: heroFloat1 12s ease-in-out infinite;
}

/* Medium glow — bottom left */
.hero-3d-shape-2 {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,72,156,.22) 0%, rgba(49,72,156,.06) 40%, transparent 70%);
  bottom: -120px; left: -80px;
  filter: blur(50px);
  animation: heroFloat2 15s ease-in-out infinite;
}

/* Small accent — center-right */
.hero-3d-shape-3 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153,244,115,.12) 0%, transparent 60%);
  top: 40%; right: 10%;
  filter: blur(35px);
  animation: heroFloat3 10s ease-in-out infinite;
}

/* Glass polygon — floating depth */
.hero-3d-shape-4 {
  position: absolute;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  top: 20%; left: 15%;
  filter: blur(12px);
  transform: rotate(25deg) translateZ(0);
  animation: heroFloat4 18s ease-in-out infinite;
}

/* Tiny bright dot — depth highlight */
.hero-3d-shape-5 {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(153,244,115,.5);
  top: 30%; left: 40%;
  filter: blur(4px);
  animation: heroPulse 4s ease-in-out infinite;
}

.hero-3d-shape-6 {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  top: 55%; right: 25%;
  filter: blur(3px);
  animation: heroPulse 5s ease-in-out infinite 1s;
}

/* Wireframe cube hint */
.hero-3d-shape-7 {
  position: absolute;
  width: 160px; height: 160px;
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 20px;
  bottom: 25%; right: 18%;
  filter: blur(8px);
  transform: rotate(-15deg) perspective(600px) rotateY(15deg) rotateX(10deg);
  animation: heroFloat5 20s ease-in-out infinite;
}

.hero-3d-shape-8 {
  position: absolute;
  width: 100px; height: 100px;
  border: 1px solid rgba(153,244,115,.08);
  border-radius: 16px;
  top: 60%; left: 8%;
  filter: blur(10px);
  transform: rotate(35deg) perspective(500px) rotateX(-12deg);
  animation: heroFloat6 16s ease-in-out infinite;
}

/* ── DEPTH OVERLAY (subtle grain + gradient) ─── */
.hero-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(49,72,156,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(17,24,39,.2) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* ── FLOAT ANIMATIONS ────────────────────────── */
@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.05); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.08); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -18px); }
}

@keyframes heroFloat4 {
  0%, 100% { transform: rotate(25deg) translateZ(0) translateY(0); }
  50% { transform: rotate(30deg) translateZ(0) translateY(-12px); }
}

@keyframes heroFloat5 {
  0%, 100% { transform: rotate(-15deg) perspective(600px) rotateY(15deg) rotateX(10deg); }
  50% { transform: rotate(-10deg) perspective(600px) rotateY(20deg) rotateX(15deg) translateY(-8px); }
}

@keyframes heroFloat6 {
  0%, 100% { transform: rotate(35deg) perspective(500px) rotateX(-12deg); }
  50% { transform: rotate(40deg) perspective(500px) rotateX(-18deg) translateY(-10px); }
}

@keyframes heroPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}

/* ── RESPONSIVE — hide some shapes on mobile ─── */
@media (max-width: 768px) {
  .hero-3d-shape-1 { width: 350px; height: 350px; filter: blur(30px); }
  .hero-3d-shape-2 { width: 260px; height: 260px; filter: blur(35px); }
  .hero-3d-shape-4 { display: none; }
  .hero-3d-shape-7 { display: none; }
  .hero-3d-shape-8 { display: none; }
}
