/* ================================================
   TOOLS HUB SECTION — Advanced Radial "Neural Network"
   10 logos in a perfect circle → center ZENTIC hub
   All in Crimson/Espresso palette
   ================================================ */

.tools-orbit-section {
  position: relative;
  padding: 110px 0 130px;
  background: #08010E;
  overflow: hidden;
  text-align: center;
}

/* Deep ambient glow */
.tools-orbit-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(184, 0, 245, 0.14) 0%, rgba(88, 11, 130, 0.07) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────── */
.tools-header {
  position: relative;
  z-index: 3;
  margin-bottom: 52px;
}
.tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Coolvetica', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E879F9;
  background: rgba(184, 0, 245, 0.1);
  border: 1px solid rgba(184, 0, 245, 0.3);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.tools-title {
  font-family: 'Coolvetica', sans-serif !important;
  font-size: clamp(28px, 4vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: #fff !important;
  letter-spacing: -0.3px !important;
  margin-bottom: 10px !important;
}
.tools-title em {
  font-style: normal;
  background: linear-gradient(135deg, #E879F9 0%, #B800F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tools-subtitle {
  font-family: 'Coolvetica', sans-serif;
  font-size: 15px;
  color: rgba(225, 200, 250, 0.55);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Hub Wrapper (radial canvas) ─────────────── */
.hub-wrapper {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;
  transform-origin: center center;
  z-index: 2;
}

/* SVG overlay for lines + particles */
.hub-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* ── Center Hub ──────────────────────────────── */
.hub-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Outer glow rings */
.hub-glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.hub-glow-ring-1 {
  width: 116px; height: 116px;
  background: radial-gradient(circle, rgba(184, 0, 245, 0.25) 0%, transparent 70%);
  animation: hubRingPulse1 3s ease-in-out infinite;
}
.hub-glow-ring-2 {
  width: 160px; height: 160px;
  border: 1px solid rgba(184, 0, 245, 0.25);
  animation: hubRingPulse2 3s ease-in-out infinite 0.5s;
}
.hub-glow-ring-3 {
  width: 210px; height: 210px;
  border: 1px solid rgba(88, 11, 130, 0.2);
  animation: hubRingPulse2 3s ease-in-out infinite 1s;
}
@keyframes hubRingPulse1 {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}
@keyframes hubRingPulse2 {
  0%,100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 0.8; transform: translate(-50%,-50%) scale(1.04); }
}

.hub-logo-box {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: rgba(14, 4, 22, 0.95);
  border: 2px solid rgba(184, 0, 245, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px rgba(184, 0, 245, 0.45),
    0 12px 40px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 8px;
}
.hub-logo-box img {
  width: 86px; height: auto;
  object-fit: contain;
  filter: none !important;
}
.hub-label {
  margin-top: 10px;
  font-family: 'Coolvetica', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232, 121, 249, 0.75);
  position: relative;
  z-index: 2;
}

/* ── Individual Logo Pills (absolutely positioned) ── */
.hub-logo-pill {
  position: absolute;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: rgba(18, 5, 28, 0.92);
  border: 1px solid rgba(88, 11, 130, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  z-index: 4;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.65),
    0 0 0 0 rgba(184, 0, 245, 0);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hub-logo-pill:hover {
  transform: scale(1.18) !important;
  border-color: rgba(184, 0, 245, 0.8) !important;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.8),
    0 0 22px rgba(184, 0, 245, 0.45) !important;
  z-index: 6;
}
/* Tooltip */
.hub-logo-pill::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: rgba(8, 1, 14, 0.96);
  border: 1px solid rgba(184, 0, 245, 0.45);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Coolvetica', sans-serif;
  font-size: 11px;
  color: #FFE2D1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.hub-logo-pill:hover::after { opacity: 1; }

/* Subtle float animation per logo (staggered) */
.hub-logo-pill { animation: pillFloat 5s ease-in-out infinite; }
.hub-logo-pill:nth-child(2)  { animation-delay: -0.5s; }
.hub-logo-pill:nth-child(3)  { animation-delay: -1.0s; }
.hub-logo-pill:nth-child(4)  { animation-delay: -1.5s; }
.hub-logo-pill:nth-child(5)  { animation-delay: -2.0s; }
.hub-logo-pill:nth-child(6)  { animation-delay: -2.5s; }
.hub-logo-pill:nth-child(7)  { animation-delay: -3.0s; }
.hub-logo-pill:nth-child(8)  { animation-delay: -3.5s; }
.hub-logo-pill:nth-child(9)  { animation-delay: -4.0s; }
.hub-logo-pill:nth-child(10) { animation-delay: -4.5s; }
@keyframes pillFloat {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-5px); }
}
/* Override float during hover */
.hub-logo-pill:hover {
  animation: none !important;
}

/* ── Stats Row below hub ─────────────────────── */
.hub-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.hub-stat-pill {
  background: rgba(18, 5, 28, 0.85);
  border: 1px solid rgba(88, 11, 130, 0.5);
  border-radius: 12px;
  padding: 14px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}
.hub-stat-pill:hover { border-color: rgba(184, 0, 245, 0.6); }
.hub-stat-val {
  font-family: 'Coolvetica', sans-serif;
  font-size: 26px;
  color: #E879F9;
  line-height: 1;
  margin-bottom: 4px;
}
.hub-stat-label {
  font-family: 'Coolvetica', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(243, 232, 255, 0.5);
}

/* ── Responsive Mobile Optimization ──────────── */
@media screen and (max-width: 768px) {
  .tools-orbit-section {
    padding: 70px 16px 85px;
  }
  .tools-header {
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 580px) {
  .tools-orbit-section {
    padding: 55px 0 65px;
    overflow: hidden;
  }
  .tools-header {
    margin-bottom: 16px;
    padding: 0 12px;
  }
  .tools-eyebrow {
    font-size: 11px;
    padding: 4px 14px;
    margin-bottom: 12px;
  }
  .tools-title {
    font-size: clamp(22px, 6.5vw, 32px) !important;
    margin-bottom: 8px !important;
  }
  .tools-subtitle {
    font-size: 13px;
    max-width: 300px;
    line-height: 1.5;
  }

  /* Seamless scalable radial hub — calc centers the 520px box precisely */
  .hub-wrapper {
    display: block !important;
    width: 520px !important;
    height: 520px !important;
    margin-left: calc(50% - 260px) !important;
    margin-right: 0 !important;
    margin-top: -60px !important;
    margin-bottom: -55px !important;
    transform-origin: center center !important;
    transform: scale(0.66) !important;
  }

  .hub-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-width: 340px;
    margin: 12px auto 0 auto !important;
    padding: 0 12px;
  }
  .hub-stat-pill {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-align: center;
  }
  .hub-stat-val {
    font-size: 20px !important;
  }
  .hub-stat-label {
    font-size: 9.5px !important;
  }
}

@media screen and (max-width: 420px) {
  .hub-wrapper {
    transform: scale(0.57) !important;
    margin-left: calc(50% - 260px) !important;
    margin-top: -88px !important;
    margin-bottom: -82px !important;
  }
  .hub-stats {
    max-width: 300px;
    gap: 7px !important;
  }
  .hub-stat-pill {
    padding: 8px 10px !important;
  }
  .hub-stat-val {
    font-size: 18px !important;
  }
}

@media screen and (max-width: 360px) {
  .hub-wrapper {
    transform: scale(0.50) !important;
    margin-left: calc(50% - 260px) !important;
    margin-top: -110px !important;
    margin-bottom: -105px !important;
  }
  .hub-stats {
    max-width: 270px;
    gap: 6px !important;
  }
  .hub-stat-val {
    font-size: 16px !important;
  }
}
