/* AI Network Animation Styles */
.ai-network-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.ai-network-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: rgba(59, 130, 246, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.4);
  transition: transform 0.5s ease;
}

.ai-network-node.pulse {
  animation: pulse 1.5s infinite alternate;
}

.ai-network-node.primary {
  background-color: rgba(59, 130, 246, 0.9);
  width: 10px;
  height: 10px;
}

.ai-network-node.secondary {
  background-color: rgba(124, 58, 237, 0.8);
}

.ai-network-node.tertiary {
  background-color: rgba(16, 185, 129, 0.7);
}

.ai-network-line {
  position: absolute;
  height: 1px;
  transform-origin: 0 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
  opacity: 0.4;
  z-index: 1;
}

.ai-network-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  animation: glow 5s infinite alternate;
}

.ai-network-floating-text {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(15, 23, 42, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ai-network-floating-text.active {
  opacity: 1;
  transform: translateY(0);
}

.ai-network-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 5;
  color: white;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ai-network-text-overlay h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.ai-network-text-overlay p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 1s;
}

.ai-interact-prompt {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

@keyframes glow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes moveData {
  0% {
    opacity: 0.1;
    transform: translateX(0) scaleX(0);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.1;
    transform: translateX(100%) scaleX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 0.8;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai-network-container {
    height: 300px;
  }
  
  .ai-network-text-overlay h3 {
    font-size: 1.5rem;
  }
  
  .ai-network-text-overlay p {
    font-size: 0.9rem;
  }
}

/* Dark mode enhancements */
html.dark .ai-network-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

html.dark .ai-network-node {
  box-shadow: 0 0 12px 4px rgba(59, 130, 246, 0.6);
} 