/* AI Workflow and Integration Styles */

/* Workflow Diagram */
.ai-workflow-diagram {
  background: rgba(26, 26, 53, 0.7);
  border: 1px solid rgba(0, 194, 255, 0.4);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 194, 255, 0.15) inset;
}

.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 194, 255, 0.3);
}

.workflow-title {
  color: var(--off-white);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.workflow-status {
  background-color: rgba(0, 194, 255, 0.2);
  color: var(--primary-teal);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  position: relative;
}

.workflow-status::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #00ffff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-status 2s infinite;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

@keyframes pulse-status {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 1);
  }
  100% {
    opacity: 0.8;
    transform: scale(0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  }
}

.workflow-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 25px;
  position: relative;
}

.workflow-node {
  display: flex;
  align-items: center;
  position: relative;
}

.workflow-node i {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.4);
  z-index: 2;
}

.node-label {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 500;
}

.node-connection {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 3px;
  height: 25px;
  background: linear-gradient(to bottom, #00ffff, rgba(0, 255, 255, 0.3));
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
  animation: pulse-connection 2s infinite alternate;
}

.workflow-node:hover .node-connection {
  width: 4px;
  background: linear-gradient(to bottom, #00ffff, rgba(0, 255, 255, 0.6));
  box-shadow: 0 0 15px rgba(0, 255, 255, 1);
}

@keyframes pulse-connection {
  0% {
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
  }
}

.workflow-metrics {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 194, 255, 0.3);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  color: var(--primary-teal);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

.metric-label {
  color: var(--off-white);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Data Streams Animation */
.data-streams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.data-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary-teal), transparent);
  opacity: 0.6;
  animation-name: dataFlow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.data-stream:nth-child(1) {
  height: 150px;
  left: 30%;
  top: -150px;
  animation-duration: 3s;
  animation-delay: 0.5s;
}

.data-stream:nth-child(2) {
  height: 200px;
  left: 65%;
  top: -200px;
  animation-duration: 4s;
  animation-delay: 1s;
}

.data-stream:nth-child(3) {
  height: 120px;
  left: 45%;
  top: -120px;
  animation-duration: 2.5s;
  animation-delay: 0s;
}

@keyframes dataFlow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(500px);
  }
}

/* Integration Badges */
.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.integration-badge {
  background: rgba(0, 194, 255, 0.1);
  color: var(--primary-teal);
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.85rem;
  display: inline-block;
  transition: all 0.3s;
}

.integration-badge:hover {
  background: rgba(0, 194, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
  transform: translateY(-3px);
}

/* Updates to Demo Features */
.demo-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 25px;
}

.demo-features li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--off-white);
}

.demo-features li i {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--primary-teal);
  font-size: 16px;
  text-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

.demo-description {
  padding: 20px 0;
}

.demo-description h3 {
  margin-bottom: 20px;
  color: var(--off-white);
  text-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}

.demo-description p {
  color: rgba(245, 249, 255, 0.9);
  margin-bottom: 20px;
}