/* Architecture Component Styles */
.architecture-section {
  padding: 60px 0;
  background: var(--bg);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.tech-item {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.tech-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.tech-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
}

.tech-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.architecture-diagram {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  height: 300px;
}

.diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.diagram-modules {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.module-item {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 90px;
  transition: all 0.2s ease;
}

.module-item:hover {
  background: var(--surface-light);
  transform: scale(1.05);
}

.module-item:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.module-item:nth-child(2) { top: 20%; right: 0; }
.module-item:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); }
.module-item:nth-child(4) { bottom: 20%; right: 0; }
.module-item:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.module-item:nth-child(6) { bottom: 20%; left: 0; }
.module-item:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); }
.module-item:nth-child(8) { top: 20%; left: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .tech-item {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .tech-stack {
    grid-template-columns: 1fr;
  }
  
  .architecture-diagram {
    height: 250px;
    max-width: 100%;
  }
  
  .diagram-center {
    width: 120px;
    height: 120px;
    font-size: 12px;
  }
  
  .module-item {
    font-size: 10px;
    padding: 8px 12px;
    min-width: 80px;
  }
}
