/* ==========================================
   3D AI ARCHITECTURE VISUALIZATION
   Interactive 3D node network with depth
   ========================================== */

.ai-architecture-section-full {
  position: relative;
  width: 100%;
  padding: 120px 0 100px;
  overflow: visible;
  background: linear-gradient(180deg, #0a0a1a 0%, #050510 50%, #0a0a1a 100%);
}

.ai-architecture-section-full::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1600px;
  height: 1600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, rgba(139, 92, 246, 0.02) 50%, transparent 70%);
  pointer-events: none;
  animation: glowRotate 20s linear infinite;
}

@keyframes glowRotate {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Header Section */
.arch-header-modern {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00d4ff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
  margin-bottom: 1.5rem;
}

.architecture-title {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.architecture-subtitle {
  font-size: 1.15rem;
  color: rgba(200, 215, 235, 0.8);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* 3D Architecture Container */
.arch-3d-scene {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 700px;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.arch-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Node System */
.arch-node-3d {
  position: absolute;
  width: 140px;
  height: 120px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.arch-node-3d:hover {
  z-index: 100 !important;
}

.node-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 212, 255, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.arch-node-3d:hover .node-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow:
    0 16px 48px rgba(0, 212, 255, 0.3),
    0 0 100px rgba(0, 212, 255, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transform: translateZ(40px) scale(1.05);
}

.node-icon-3d {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.4s ease;
}

.arch-node-3d:hover .node-icon-3d {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: scale(1.1) rotate(5deg);
}

.node-label-3d {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
}

.node-sublabel {
  font-size: 0.7rem;
  color: rgba(180, 200, 220, 0.6);
  text-align: center;
}

/* 3D Connection Lines */
.arch-connection-3d {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.arch-connection-3d.active {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.6), rgba(139, 92, 246, 0.6), rgba(0, 212, 255, 0.6));
  opacity: 1;
  height: 3px;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  animation: connectionFlow 2s linear infinite;
}

@keyframes connectionFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Floating Animation for Different Layers */
@keyframes float-layer1 {
  0%, 100% {
    transform: translate(-50%, -50%) translateZ(0px) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateZ(20px) translateY(-10px);
  }
}

@keyframes float-layer2 {
  0%, 100% {
    transform: translate(-50%, -50%) translateZ(100px) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateZ(120px) translateY(-15px);
  }
}

@keyframes float-layer3 {
  0%, 100% {
    transform: translate(-50%, -50%) translateZ(200px) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateZ(220px) translateY(-20px);
  }
}

.layer-1 { animation: float-layer1 4s ease-in-out infinite; }
.layer-2 { animation: float-layer2 5s ease-in-out infinite; }
.layer-3 { animation: float-layer3 6s ease-in-out infinite; }

/* Rotation Controls */
.arch-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 100;
}

.control-btn {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.control-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
}

.control-label {
  font-size: 0.85rem;
  color: rgba(180, 200, 220, 0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Info Panel */
.arch-info-panel {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 280px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.arch-info-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.5rem;
}

.info-desc {
  font-size: 0.9rem;
  color: rgba(200, 215, 235, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(100, 180, 255, 0.1);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(180, 200, 220, 0.7);
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #00d4ff;
}

/* Metrics Row */
.arch-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.arch-metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 180, 255, 0.12);
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.arch-metric-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.035);
}

.metric-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #00d4ff;
  transition: all 0.3s ease;
}

.arch-metric-card:hover .metric-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(180, 200, 220, 0.7);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .arch-3d-scene {
    height: 600px;
  }

  .arch-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-info-panel {
    position: static;
    width: 100%;
    margin-top: 2rem;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .architecture-title {
    font-size: 2.5rem;
  }

  .arch-3d-scene {
    height: 500px;
  }

  .arch-node-3d {
    width: 110px;
    height: 100px;
  }

  .node-card {
    padding: 0.75rem;
  }

  .node-icon-3d {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .node-label-3d {
    font-size: 0.75rem;
  }

  .arch-metrics-row {
    grid-template-columns: 1fr;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
