/* ============================================================================
   V15 — Holographic AI Agents Hub
   Transforms the 5 agents grid into a holographic hub with connections
   ============================================================================ */

.ai-agents {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.ai-agents::before {
  content: 'ELI TECH AI';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(99, 102, 241, 0.5);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  padding: 8px 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.05);
  backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}

.ai-agent {
  position: relative;
  background: rgba(15, 21, 48, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s,
              border-color 0.4s;
}

.ai-agent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, #ec4899, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.ai-agent:hover::before {
  opacity: 1;
}

.ai-agent:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px -12px rgba(99, 102, 241, 0.3),
              0 0 0 1px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.25) !important;
}

.ai-agent-icon {
  font-family: 'Space Grotesk', var(--font) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15)) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  color: #8b5cf6 !important;
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.ai-agent-meta {
  border-top-color: rgba(99, 102, 241, 0.1) !important;
}

.ai-agent h3 {
  color: var(--ink) !important;
}

.ai-agent h3 + p,
.ai-agent-sub {
  color: var(--ink-3) !important;
}

@keyframes v15-hologram-scan {
  0% { top: -10%; }
  100% { top: 110%; }
}

.ai-agent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04), transparent);
  pointer-events: none;
  animation: v15-hologram-scan 6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s;
}

.ai-agent:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ai-agent::after {
    animation: none !important;
    display: none;
  }
  .ai-agent:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .ai-agents::before {
    top: -48px;
    font-size: 0.65rem;
  }
}
