/* System Flow Section */
.system-flow-section {
  padding: 8rem 0;
  background: #ffffff;
}

.flow-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flow-header {
  text-align: center;
  margin-bottom: 6rem;
}

.flow-title {
  font-size: 4rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2rem;
}

.flow-subtitle {
  font-size: 2rem;
  color: #6c757d;
  max-width: 800px;
  margin: 0 auto;
}

.flow-diagrams {
  display: grid;
  gap: 4rem;
}

.flow-item {
  background: #f8f9fa;
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid #e9ecef;
}

.flow-item h3 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 3rem;
  text-align: center;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.device-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.device-icon.camera { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.device-icon.microphone { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.device-icon.dsp { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.device-icon.nameplate { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.device-icon.display { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.device-icon.control { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.device-icon.bridge { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }

.device-icon i {
  color: #ffffff;
  font-size: 2.4rem;
}

.device-label {
  font-size: 1.8rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.device-description {
  font-size: 1.4rem;
  color: #6c757d;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  position: relative;
  height: 60px;
}

.flow-arrow::before {
  content: '';
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #212529 0%, #6c757d 100%);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.flow-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid #212529;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  position: absolute;
  top: 16px;
  left: calc(50% + 24px);
}

.flow-protocol {
  font-size: 1.4rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 30px;
  text-align: center;
}

/* Remote Flow Specific */
.flow-item.full-width {
  grid-column: 1 / -1;
}

.remote-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.local-classroom,
.platform-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.device-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.bridge-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bridge-arrow,
.platform-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80px;
  height: 40px;
}

.bridge-arrow::before,
.platform-arrow::before {
  content: '';
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #212529 0%, #6c757d 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bridge-arrow::after,
.platform-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid #212529;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  position: absolute;
  top: 50%;
  left: calc(50% + 22px);
  transform: translateY(-50%);
}

.platform-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-icon i {
  color: #ffffff;
  font-size: 2rem;
}

.service-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: #212529;
}

/* Responsive Design for System Flow Section */
@media (max-width: 1200px) {
  .flow-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .remote-flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    text-align: center;
    gap: 3rem;
  }
  
  .bridge-arrow,
  .platform-arrow {
    transform: rotate(90deg);
    margin: 2rem auto;
    height: 60px;
    width: 60px;
    align-self: center;
  }
  
  .bridge-arrow::before,
  .platform-arrow::before {
    width: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .bridge-arrow::after,
  .platform-arrow::after {
    top: 50%;
    left: calc(50% + 16px);
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .flow-title {
    font-size: 3rem;
  }
  
  .flow-subtitle {
    font-size: 1.8rem;
  }
  
  .flow-diagram {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 2rem auto;
    height: 60px;
    width: 60px;
    align-self: center;
  }
  
  .flow-arrow::before {
    width: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .flow-arrow::after {
    top: 50%;
    left: calc(50% + 16px);
    transform: translateY(-50%);
  }
  
  .remote-flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 3rem;
  }
  
  .bridge-arrow,
  .platform-arrow {
    transform: rotate(90deg);
    margin: 2rem auto;
    height: 60px;
    width: 60px;
    align-self: center;
  }
  
  .bridge-arrow::before,
  .platform-arrow::before {
    width: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .bridge-arrow::after,
  .platform-arrow::after {
    top: 50%;
    left: calc(50% + 16px);
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .flow-container {
    padding: 0 1rem;
  }
  
  .flow-title {
    font-size: 2.5rem;
  }
} 