/* KNOWLEDGE MATRIX STYLES */
.nodes-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  margin: 5rem 0;
}

.matrix-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 247, 255, 0.2);
}

#knowledge-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.matrix-info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--quantum-blue);
  border-radius: 8px;
  padding: 1.5rem;
  z-index: 10;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.matrix-info-panel.active {
  transform: translateY(0);
  opacity: 1;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.node-icon-large {
  font-size: 2rem;
  color: var(--quantum-blue);
}

.node-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.node-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.connection-pill {
  background: rgba(0, 247, 255, 0.1);
  border: 1px solid var(--quantum-blue);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.matrix-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.matrix-control {
  background: rgba(0, 247, 255, 0.1);
  border: 1px solid var(--quantum-blue);
  color: var(--star-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.matrix-control:hover {
  background: rgba(0, 247, 255, 0.3);
  box-shadow: 0 0 10px var(--quantum-blue);
}

/* Connection lines */
.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--quantum-blue), transparent);
  transform-origin: left center;
  z-index: 1;
  opacity: 0.6;
}