/* ── SERVICES PAGE ── */

.services-page { padding-bottom: 6rem; }

/* Hex diagram */
#hex-diagram {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
#hex-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}
.hex-diagram-inner {
  position: relative;
  z-index: 2;
}
.hex-diagram-inner .section-head { margin-bottom: 4rem; }

/* SVG hex grid */
#hex-svg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
#hex-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  overflow: visible;
}
.hex-node {
  cursor: pointer;
  transition: all 0.3s;
}
.hex-node polygon {
  fill: rgba(0,198,212,0.08);
  stroke: rgba(0,198,212,0.4);
  stroke-width: 1.5;
  transition: all 0.3s;
  filter: drop-shadow(0 0 0px rgba(0,198,212,0));
}
.hex-node:hover polygon,
.hex-node.active polygon {
  fill: rgba(0,198,212,0.25);
  stroke: #00C6D4;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(0,198,212,0.7));
}
.hex-node text {
  fill: rgba(255,255,255,0.7);
  font-size: 9px;
  font-family: 'Segoe UI', sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill 0.3s;
}
.hex-node:hover text,
.hex-node.active text { fill: #00C6D4; font-weight: 700; }
.hex-center polygon {
  fill: rgba(0,198,212,0.2);
  stroke: #00C6D4;
  stroke-width: 2;
  animation: hexPulse 3s ease-in-out infinite;
}
.hex-center text { fill: #00C6D4; font-weight: 700; font-size: 10px; }
@keyframes hexPulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(0,198,212,0.4)); }
  50%      { filter: drop-shadow(0 0 18px rgba(0,198,212,0.8)); }
}

/* Connector lines */
.hex-connector {
  stroke: rgba(0,198,212,0.2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dashFlow 3s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

/* Service detail panels */
#service-panels {
  padding: 2rem 0 5rem;
}

#panel-display {
  min-height: 360px;
}

.svc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: rgba(0,198,212,0.03);
  border: 1px solid rgba(0,198,212,0.12);
  border-radius: 20px;
  animation: panelIn 0.4s ease forwards;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.svc-panel-text { padding: 1rem 0; }
.svc-panel-text .eyebrow { margin-bottom: 0.5rem; }
.svc-panel-text h2 { margin-bottom: 1rem; font-size: clamp(1.6rem,3vw,2.4rem); }
.svc-panel-text > p { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.8; }

.svc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.svc-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,198,212,0.06);
}
.svc-features li::before {
  content: '▸';
  color: #00C6D4;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.svc-panel-visual {
  background: linear-gradient(135deg, rgba(0,198,212,0.06) 0%, rgba(8,26,57,0.8) 100%);
  border: 1px solid rgba(0,198,212,0.18);
  border-radius: 16px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.svc-panel-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,198,212,0.08) 0%, transparent 70%);
}
.svc-panel-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.svc-panel-icon {
  font-size: 5.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(0,198,212,0.7));
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* All services list */
#all-services {
  padding: 4rem 0;
  border-top: 1px solid rgba(0,198,212,0.1);
}
.all-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.all-svc-item {
  background: rgba(0,198,212,0.04);
  border: 1px solid rgba(0,198,212,0.12);
  border-radius: var(--radius);
  padding: 1.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.all-svc-item:hover,
.all-svc-item.active {
  border-color: rgba(0,198,212,0.5);
  background: rgba(0,198,212,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,198,212,0.1);
}
.all-svc-item.active .num { color: #fff; }
.all-svc-item .num {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.all-svc-item h3 { color:#fff; margin-bottom:0.4rem; }
.all-svc-item p { font-size:0.88rem; }

@media (max-width: 768px) {
  .svc-panel.active { grid-template-columns: 1fr; gap: 2rem; }
  .svc-panel.animating { grid-template-columns: 1fr; gap: 2rem; }
  .svc-panel-visual { height: 220px; }
  .svc-panel { padding: 2rem 1.5rem; }
}
