/* Styles for the bottlenecks section with tech circuit animation */

/* Layout for the title section */
.bottleneck-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Tech circuit container */
.tech-circuit-container {
  width: 200px;
  height: 200px;
  position: relative;
  display: block;
  margin: 0 0 2rem;
}

/* Gradient title styling */
.bottleneck-title .section-title {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Tech circuit components */
.chip-body {
  fill: #1c1f26;
  stroke: #5B98FF;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(91, 152, 255, 0.4));
}

.circuit-line {
  stroke: #38D6AE;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 15;
  stroke-dashoffset: 80;
  animation: circuitFlow 3s infinite linear;
}

.circuit-node {
  fill: #5B98FF;
  stroke: none;
  filter: drop-shadow(0 0 5px rgba(91, 152, 255, 0.8));
  animation: nodeGlow 2s infinite alternate;
}

.chip-detail {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
}

.data-pulse {
  fill: #38D6AE;
  opacity: 0;
}

.pulse-1 {
  animation: dataPulse 4s infinite linear;
  animation-delay: 0s;
}

.pulse-2 {
  animation: dataPulse 4s infinite linear;
  animation-delay: 1s;
}

.pulse-3 {
  animation: dataPulse 4s infinite linear;
  animation-delay: 2s;
}

.pulse-4 {
  animation: dataPulse 4s infinite linear;
  animation-delay: 3s;
}

/* Styled paragraph for tech challenge intro */
.tech-challenge-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Transformation cards container */
.transformation-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Problem card styling */
.problem-card {
  border-left-color: #e74c3c !important;
  background-color: rgba(231, 76, 60, 0.05) !important;
}

.problem-card h3 {
  color: #e74c3c !important;
}

.problem-card .card-header i {
  color: #e74c3c;
}

.problem-card li:before {
  color: #e74c3c !important;
}

/* Solution card styling */
.solution-card {
  border-left-color: #38D6AE !important;
  background-color: rgba(56, 214, 174, 0.05) !important;
}

.solution-card h3 {
  color: #38D6AE !important;
}

.solution-card .card-header i {
  color: #38D6AE;
}

.solution-card li:before {
  color: #38D6AE !important;
}

/* Card header with icon */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-header i {
  font-size: 1.25rem;
}

/* Connector between cards */
.transformation-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 2rem;
}

.connector-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e74c3c, #38D6AE);
  z-index: 1;
}

.connector-icon {
  background-color: var(--bs-dark-bg);
  padding: 0.25rem;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-icon i {
  color: #5B98FF;
  font-size: 1.25rem;
}

/* Circuit animation keyframes */
@keyframes circuitFlow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodeGlow {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes dataPulse {
  0% {
    opacity: 0;
    transform: translate(10px, 40px) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  40% {
    transform: translate(70px, 40px) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
    transform: translate(40px, 10px) scale(0.5);
  }
  90% {
    transform: translate(40px, 70px) scale(1);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Card styling */
.bottlenecks-card {
  background-color: var(--bs-light-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  height: 100%;
  border-left: 3px solid var(--bs-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottlenecks-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bottlenecks-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--bs-accent);
}

.bottlenecks-card li {
  margin-bottom: 0.75rem;
  list-style-type: none;
  position: relative;
  padding-left: 1.5rem;
}

.bottlenecks-card li:before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--bs-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Media queries for responsive design */
@media (max-width: 767px) {
  .tech-circuit-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
  }
  
  .bottleneck-title {
    display: block;
    text-align: center;
  }
  
  .bottleneck-title .section-title {
    text-align: center;
    font-size: 1.6rem;
  }
}
