/* ============================================================
   SECTIONS.CSS — About, Stats, CTA Section Styles
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════════════════════ */

.about-section {
  position: relative;
}

.about-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.015) 59px, rgba(255,255,255,0.015) 60px);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-title { margin-bottom: 24px; }
.about-desc {
  font-size: 1.1rem;
  color: rgba(180, 200, 230, 0.55);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-features {
  display: flex;
  gap: 16px;
}

.about-feat {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-feat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 20px var(--glow-cyan),
    0 0 40px var(--glow-purple),
    0 0 80px var(--glow-blue);
  animation: rainbow-cycle 3s linear infinite;
}

.about-feat-label {
  font-size: 0.8rem;
  color: rgba(180, 200, 230, 0.5);
}

/* ── About Visual Orb ── */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb-main {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--grad-rainbow);
  background-size: 400% 400%;
  box-shadow:
    0 0 540px rgba(168, 85, 247, 0.6),
    0 0 1000px rgba(77, 166, 255, 0.4),
    0 0 1600px rgba(0, 229, 255, 0.3),
    inset 0 4px 0 rgba(255,255,255,0.4);
  animation:
    orb-core-pulse 1.5s ease-in-out infinite,
    rainbow-spin 4s linear infinite;
}

@keyframes orb-core-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}
.about-orb-ring {
  position: absolute;
  border-radius: 50%;
  background: var(--grad-rainbow);
  background-size: 400% 400%;
  animation: rainbow-spin 4s linear infinite;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 1px), black calc(100% - 1px));
  mask: radial-gradient(circle, transparent calc(100% - 1px), black calc(100% - 1px));
  filter: drop-shadow(0 0 20px var(--glow-cyan)) drop-shadow(0 0 40px var(--glow-blue)) drop-shadow(0 0 80px var(--glow-purple));
}
.about-orb-ring--1 {
  width: 240px; height: 240px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  box-shadow: 0 0 30px rgba(77,166,255,0.6), inset 0 0 30px rgba(77,166,255,0.2);
  animation: orb-ring-spin 5s linear infinite, rainbow-spin 4s linear infinite;
}

.about-orb-ring--2 {
  width: 200px; height: 200px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  box-shadow: 0 0 30px rgba(168,85,247,0.6), inset 0 0 30px rgba(168,85,247,0.2);
  animation: orb-ring-spin 3s linear infinite reverse, rainbow-spin 4s linear infinite;
}
.about-orb-ring--3 {
  width: 280px; height: 280px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  box-shadow: 0 0 30px rgba(0,229,160,0.6), inset 0 0 30px rgba(0,229,160,0.2);
  animation: orb-ring-spin 8s linear infinite, rainbow-spin 4s linear infinite;
}
/* ── Extra Rings via CSS pseudo-elements ── */
.about-orb-main::before,
.about-orb-main::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--grad-rainbow);
  background-size: 400% 400%;
  animation: rainbow-spin 4s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 20px var(--glow-purple)) drop-shadow(0 0 40px var(--glow-pink)) drop-shadow(0 0 80px var(--glow-cyan));
}
.about-orb-main::before {
  width: 320px; height: 320px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  animation: orb-ring-spin 7s linear infinite reverse, rainbow-spin 4s linear infinite;
}
.about-orb-main::after {
  width: 160px; height: 160px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 1px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 1px));
  animation: orb-ring-spin 2.5s linear infinite, rainbow-spin 4s linear infinite;
}


@keyframes orb-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Background Orbs ── */
.about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.about-orb--large {
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  background: rgba(168, 85, 247, 0.08);
}

.about-orb--small {
  width: 300px; height: 300px;
  bottom: -50px; left: -50px;
  background: rgba(77, 166, 255, 0.06);
}

/* ════════════════════════════════════════════════════════════
   STATS SECTION
   ════════════════════════════════════════════════════════════ */

.stats-section {
  position: relative;
}

.stats-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 229, 255, 0.05);
}

.stats-glow-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,166,255,0.3), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-electric);
  background-size: 300% 300%;
  z-index: -1;
  animation: electric-shift 2s linear infinite;
  filter: blur(12px);
  opacity: 0.85;
}


.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-icon-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grad-aurora);
  filter: blur(30px);
  opacity: 0.8;
}

.stat-icon {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow:
    0 0 20px var(--glow-blue),
    0 0 40px var(--glow-cyan),
    0 0 80px var(--glow-purple),
    0 0 120px var(--glow-blue),
    0 0 160px var(--glow-pink),
    0 0 200px var(--glow-orange);
  animation: breathe 1.5s ease-in-out infinite;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aero-cyan);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(180, 200, 230, 0.5);
}

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════════ */

.cta-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

/* ── CTA Aurora Background ── */
.cta-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 50%, rgba(77,166,255,0.25), transparent),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(168,85,247,0.20), transparent),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(0,229,160,0.15), transparent),
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255,92,176,0.10), transparent);
  animation: cta-aurora-shift 3s ease-in-out infinite alternate, cta-aurora-strobe 0.15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-aurora-shift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(60deg) brightness(1.3); }
  100% { filter: hue-rotate(-30deg) brightness(1.2); }
}

@keyframes cta-aurora-strobe {
  0%, 100% { opacity: 1; }
  3%       { opacity: 0.7; }
  6%       { opacity: 1; }
  50%      { opacity: 0.85; }
  53%      { opacity: 0.6; }
  56%      { opacity: 0.9; }
}

/* ── CTA Rings ── */
.cta-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 30px var(--glow-cyan)) drop-shadow(0 0 60px var(--glow-purple)) drop-shadow(0 0 120px var(--glow-blue));
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad-rainbow);
  background-size: 400% 400%;
  animation: cta-ring-expand 4s ease-out infinite, rainbow-spin 4s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 68%, black 69%);
  mask: radial-gradient(circle, transparent 68%, black 69%);
}

.cta-ring--1 { animation-delay: 0s; }
.cta-ring--2 { animation-delay: 1s; }
.cta-ring--3 { animation-delay: 2s; }

@keyframes cta-ring-expand {
  0%   { width: 0; height: 0; opacity: 0.6; }
  100% { width: 600px; height: 600px; opacity: 0; }
}

/* ── CTA Content ── */
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.cta-content::before {
  content: '';
  display: block;
  height: 2px;
  margin: 0 auto 40px;
  background: var(--grad-rainbow);
  background-size: 300% 100%;
  animation: rainbow-spin 3s linear infinite;
  border-radius: 1px;
  box-shadow:
    0 0 10px var(--glow-cyan),
    0 0 30px var(--glow-purple),
    0 0 60px var(--glow-blue);
  max-width: 600px;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  background: var(--grad-rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-cycle 3s linear infinite;
  text-shadow:
    0 0 30px var(--glow-cyan),
    0 0 60px var(--glow-purple),
    0 0 120px var(--glow-blue);
}

.cta-desc {
  font-size: 1.15rem;
  color: rgba(180, 200, 230, 0.55);
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CTA Floating Bubbles ── */
.cta-bubbles { position: absolute; inset: 0; pointer-events: none; }

.cta-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), rgba(0,229,255,0.3) 50%, transparent 70%);
  opacity: 0.8;
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.5),
    0 0 80px rgba(180, 77, 255, 0.4),
    0 0 120px rgba(77, 166, 255, 0.3);
  animation: cta-bubble-pulse 2s ease-in-out infinite;
}
.cta-bubble--1 { width: 60px; height: 60px; top: 15%; left: 10%; animation-delay: 0s; }
.cta-bubble--2 { width: 40px; height: 40px; top: 25%; right: 15%; animation-delay: 0.3s; }
.cta-bubble--3 { width: 80px; height: 80px; bottom: 20%; left: 20%; animation-delay: 0.6s; }
.cta-bubble--4 { width: 50px; height: 50px; bottom: 30%; right: 10%; animation-delay: 0.9s; }
.cta-bubble--5 { width: 30px; height: 30px; top: 50%; left: 5%; animation-delay: 1.2s; }
.cta-bubble--6 { width: 70px; height: 70px; top: 60%; right: 5%; animation-delay: 1.5s; }

/* ── CTA Bubble Pulse ── */
@keyframes cta-bubble-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 20px rgba(0,229,255,0.4)) drop-shadow(0 0 40px rgba(180,77,255,0.3));
  }
  50% {
    transform: scale(1.15);
    filter: brightness(1.4) drop-shadow(0 0 40px rgba(0,229,255,0.6)) drop-shadow(0 0 80px rgba(180,77,255,0.5)) drop-shadow(0 0 120px rgba(77,166,255,0.4));
  }
}

/* ════════════════════════════════════════════════════════════
   ANIMATED GRAIN OVERLAY — All Sections
   ════════════════════════════════════════════════════════════ */

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  15%  { transform: translate(-4px, 3px); }
  30%  { transform: translate(5px, -4px); }
  45%  { transform: translate(-3px, -5px); }
  60%  { transform: translate(4px, 4px); }
  75%  { transform: translate(-5px, -2px); }
  90%  { transform: translate(2px, -3px); }
  100% { transform: translate(0, 0); }
}

.about-section::before,
.stats-section::before,
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.06) 2px, rgba(255,255,255,0.06) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.06) 2px, rgba(255,255,255,0.06) 3px);
  background-size: 4px 4px;
  animation: grain-shift 0.25s steps(3) infinite;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* ════════════════════════════════════════════════════════════
   ENERGY DIVIDERS — Between Sections
   ════════════════════════════════════════════════════════════ */

.about-section::after,
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 80%;
  max-width: 600px;
  background: var(--grad-rainbow);
  background-size: 300% 100%;
  animation: energy-divider-rainbow 2s linear infinite;
  border-radius: 2px;
  box-shadow:
    0 0 20px var(--glow-cyan),
    0 0 50px var(--glow-purple),
    0 0 100px var(--glow-blue),
    0 0 150px var(--glow-pink);
  z-index: 10;
}
