/* ========================================
   3D Earth Network Section Styles
   Based on demo.fcynet.com ArcoNetworkEarth
   ======================================== */

/* Section container */
.nq-network-section {
  position: relative;
  padding: 60px 0 84px;
  background: #fff;
}

.nq-network-section .comp_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Title */
.nq-network-section .sk-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
}

.nq-network-section .sk-title {
  margin: 0;
  color: #1f2329;
  font-size: 32px;
  font-weight: 600;
  line-height: 44px;
}

.nq-network-section .sk-desc {
  max-width: 880px;
  margin-top: 12px;
  color: #8a8f99;
  font-size: 15px;
  line-height: 26px;
}

/* Network container - holds features + earth */
.nq-network-section .network_container {
  position: relative;
  height: 280px;
}

/* Feature items (left side) */
.nq-network-section .feature-wrapper {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 4;
}

.nq-network-section .feature-row {
  max-width: 400px;
}

.nq-network-section .feature-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
}

.nq-network-section .feature-title {
  margin: 0;
  color: #1f2329;
  font-size: 24px;
  font-weight: 600;
}

.nq-network-section .feature-desc {
  margin: 10px 0 0;
  color: #8a8f99;
  font-size: 14px;
  line-height: 24px;
}

/* Earth canvas (right side) */
.nq-network-section .network_canvas {
  position: absolute;
  top: -36px;
  right: -24px;
  height: 318px;
  overflow: hidden;
  z-index: 1;
}

.nq-network-section .network_right {
  /* empty spacer */
}

/* ========================================
   3D Earth Globe (arco-network-earth)
   ======================================== */

.arco-network-earth {
  position: relative;
  display: grid;
  width: min(640px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  pointer-events: none;
}

.earth-core {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(78, 146, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(96, 183, 255, 0.32), transparent 28%),
    radial-gradient(circle at 50% 56%, rgba(14, 89, 214, 0.18), rgba(3, 18, 54, 0.9) 68%),
    linear-gradient(145deg, rgba(20, 102, 224, 0.32), rgba(1, 14, 42, 0.92));
  box-shadow:
    inset -22px -18px 44px rgba(0, 0, 0, 0.36),
    0 0 80px rgba(22, 106, 235, 0.3);
  animation: earth-breathe 5.5s ease-in-out infinite;
}

.earth-core::before,
.earth-core::after {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgba(89, 159, 255, 0.24);
  border-radius: 50%;
}

.earth-core::after {
  inset: 19%;
  border-color: rgba(89, 159, 255, 0.18);
}

.longitude,
.latitude,
.network-orbit {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(107, 176, 255, 0.23);
  border-radius: 50%;
}

.longitude-one {
  transform: scaleX(0.45);
}

.longitude-two {
  transform: rotate(62deg) scaleX(0.42);
}

.latitude-one {
  transform: scaleY(0.42);
}

.latitude-two {
  transform: rotate(24deg) scaleY(0.56);
}

.network-orbit {
  inset: -7%;
  border-color: rgba(83, 157, 255, 0.32);
  border-style: dashed;
  animation: orbit-rotate 18s linear infinite;
}

.orbit-two {
  inset: -15% 4%;
  transform: rotate(58deg);
  animation-duration: 24s;
  animation-direction: reverse;
}

.orbit-three {
  inset: 4% -18%;
  transform: rotate(-32deg);
  animation-duration: 28s;
}

.network-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(220, 241, 255, 0.88);
  border-radius: 50%;
  background: #4da8ff;
  box-shadow: 0 0 0 4px rgba(77, 168, 255, 0.12), 0 0 16px #4da8ff;
  transform: translate(-50%, -50%);
  animation: node-pulse 2.2s ease-in-out infinite;
}

@keyframes earth-breathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.025);
    filter: brightness(1.12);
  }
}

@keyframes orbit-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes node-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.78);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* ========================================
   Location Cards (certificates)
   ======================================== */

.nq-network-section .network_footer {
  position: relative;
  z-index: 3;
  margin-top: 42px;
}

.nq-network-section .network_footer_row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.nq-network-section .certificate_item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 18px rgba(192, 205, 232, 0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nq-network-section .certificate_item:hover {
  box-shadow: 0 4px 24px rgba(78, 146, 255, 0.25);
  transform: translateY(-2px);
}

.nq-network-section .certificate_icon img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.nq-network-section .certificate_title h1 {
  margin: 0;
  color: #1f2329;
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .nq-network-section {
    padding: 48px 0 72px;
  }

  .nq-network-section .sk-title {
    font-size: 24px;
    line-height: 34px;
  }

  .nq-network-section .network_container {
    height: auto;
    min-height: 280px;
  }

  .nq-network-section .feature-wrapper {
    position: relative;
    top: auto;
    left: auto;
  }

  .nq-network-section .network_canvas {
    position: relative;
    top: auto;
    right: auto;
    left: 0;
    margin-top: 24px;
    opacity: 0.28;
  }

  .arco-network-earth {
    width: min(520px, 94vw);
  }

  .nq-network-section .network_footer_row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nq-network-section .network_footer_row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .earth-core,
  .network-orbit,
  .network-node {
    animation: none;
  }
}
