/* AI AGENTS SPECIFIC STYLING - V4 Technical Brutalist */

/* Agent Swarm Visualization */
.agents-swarm {
  background: var(--charcoal);
  border: 1px solid var(--dark-gray);
  height: 400px;
}

.agents-swarm .diagram-content {
  height: calc(100% - 40px);
  position: relative;
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Brain/LLM */
.central-brain {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.brain-core {
  width: 100px;
  height: 100px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  position: relative;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.brain-text {
  font-family: var(--font-mono);
}

.brain-pulse {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid var(--orange);
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  animation: brain-pulse 3s infinite;
}

/* Neural Connections */
.neural-connections {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.neural-line {
  position: absolute;
  background: var(--medium-gray);
  height: 2px;
  opacity: 0;
  transition: all var(--transition-fast);
  animation: neural-flow 4s infinite;
}

.neural-line.line-1 {
  top: 20%;
  left: 50%;
  width: 140px;
  transform: translate(-50%, -50%) rotate(-60deg);
  animation-delay: 0s;
}

.neural-line.line-2 {
  top: 30%;
  right: 20%;
  width: 120px;
  transform: translate(50%, -50%) rotate(30deg);
  animation-delay: 0.5s;
}

.neural-line.line-3 {
  bottom: 20%;
  right: 25%;
  width: 130px;
  transform: translate(50%, 50%) rotate(-30deg);
  animation-delay: 1s;
}

.neural-line.line-4 {
  bottom: 30%;
  left: 50%;
  width: 125px;
  transform: translate(-50%, 50%) rotate(60deg);
  animation-delay: 1.5s;
}

.neural-line.line-5 {
  top: 50%;
  left: 20%;
  width: 110px;
  transform: translate(-50%, -50%) rotate(0deg);
  animation-delay: 2s;
}

.neural-line.line-6 {
  top: 50%;
  right: 20%;
  width: 115px;
  transform: translate(50%, -50%) rotate(0deg);
  animation-delay: 2.5s;
}

/* Agent Nodes */
.agent-nodes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.agent-node {
  position: absolute;
  width: 80px;
  height: 70px;
  background: var(--dark-gray);
  border: 2px solid var(--medium-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  transition: all var(--transition-fast);
  cursor: pointer;
  opacity: 0.6;
}

.agent-node:hover {
  border-color: var(--orange);
  background: var(--medium-gray);
  transform: scale(1.05);
}

.agent-node.active {
  border-color: var(--orange);
  opacity: 1;
  animation: node-activity 3s infinite;
}

.agent-node.selected {
  background: var(--orange-glow);
  border-color: var(--orange);
}

.agent-node.sales {
  top: 15%;
  left: 15%;
}

.agent-node.support {
  top: 15%;
  right: 15%;
}

.agent-node.marketing {
  bottom: 15%;
  left: 15%;
}

.agent-node.ops {
  bottom: 15%;
  right: 15%;
}

.agent-node.data {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

.agent-node.integration {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

.node-icon {
  font-size: 20px;
}

.node-label {
  font-size: 9px;
  color: var(--light-gray);
  text-align: center;
  font-family: var(--font-mono);
}

.node-activity {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 50%;
  opacity: 0;
}

.agent-node.active .node-activity {
  opacity: 1;
  animation: activity-pulse 2s infinite;
}

/* Agent Use Cases Section */
.agent-use-cases {
  padding: var(--space-20) 0;
  background: var(--charcoal);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.use-case-category {
  background: var(--black);
  border: 1px solid var(--dark-gray);
  padding: var(--space-6);
  transition: border-color var(--transition-fast);
}

.use-case-category:hover {
  border-color: var(--orange);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--dark-gray);
}

.category-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-gray);
  border: 2px solid var(--orange);
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.use-case-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.use-case-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--dark-gray);
  border-left: 3px solid var(--medium-gray);
  transition: all var(--transition-fast);
}

.use-case-item:hover {
  border-left-color: var(--orange);
  transform: translateX(4px);
}

.item-indicator {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: var(--space-2);
  flex-shrink: 0;
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.item-description {
  font-size: 12px;
  color: var(--light-gray);
  line-height: 1.4;
}

/* Animations */
@keyframes brain-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes neural-flow {
  0% {
    background: var(--medium-gray);
  }
  50% {
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
  }
  100% {
    background: var(--medium-gray);
  }
}

@keyframes node-activity {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes activity-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.3);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .agents-swarm {
    height: 350px;
  }
  
  .brain-core {
    width: 80px;
    height: 80px;
    font-size: 16px;
  }
  
  .neural-line {
    width: 100px !important;
  }
  
  .agent-node {
    width: 60px;
    height: 55px;
  }
  
  .node-icon {
    font-size: 16px;
  }
  
  .node-label {
    font-size: 8px;
  }
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .agents-swarm {
    height: 300px;
  }
  
  .brain-core {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }
  
  .agent-node {
    width: 50px;
    height: 45px;
  }
  
  .node-icon {
    font-size: 14px;
  }
  
  .node-label {
    font-size: 7px;
  }
  
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .use-case-item {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .item-indicator {
    align-self: flex-start;
    margin-top: 0;
  }
  
  .agents-swarm {
    height: 250px;
  }
  
  .neural-line {
    width: 60px !important;
  }
  
  .agent-node {
    width: 40px;
    height: 35px;
  }
  
  .node-icon {
    font-size: 12px;
  }
  
  .node-label {
    font-size: 6px;
  }
}
