/* ========================================
   Forward-Deployed Engineers (forward-deployed-engineers.html)
   Page-specific styles for the FDE page
   ======================================== */

/* ========================================
   4-PHASE ENABLEMENT MODEL
   ======================================== */
.phase-section {
  background: linear-gradient(135deg, #1a2230 0%, #212A3A 100%);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.phase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 40% 60% at 15% 50%, rgba(101, 113, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.phase-section .section-title-light {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.phase-section .section-subtitle-light {
  font-size: 1.125rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 4rem;
}

.phase-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Connecting line behind all cards */
.phase-timeline::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #05A34A 0%, #66D1D1 50%, #66D1D1 100%);
  z-index: 1;
  border-radius: 2px;
}

.phase-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.phase-number-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.phase-item:nth-child(1) .phase-number-circle {
  background: linear-gradient(135deg, #05A34A, #66D1D1);
  box-shadow: 0 0 30px rgba(101, 113, 255, 0.4);
}

.phase-item:nth-child(2) .phase-number-circle {
  background: linear-gradient(135deg, #66D1D1, #66D1D1);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.phase-item:nth-child(3) .phase-number-circle {
  background: linear-gradient(135deg, #66D1D1, #66D1D1);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}

.phase-item:nth-child(4) .phase-number-circle {
  background: linear-gradient(135deg, #66D1D1, #66D1D1);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.35);
}

.phase-card-inner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  flex: 1;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.phase-card-inner:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.phase-card-inner h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
}

.phase-role {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.phase-role:last-child {
  margin-bottom: 0;
}

.phase-role-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.phase-role-tag.fde {
  background: rgba(101, 113, 255, 0.2);
  color: #a5b4fc;
}

.phase-role-tag.sme {
  background: rgba(167, 139, 250, 0.2);
  color: #66D1D1;
}

.phase-role-tag.result {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.phase-role-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* FDE -> SME progress bar */
.phase-progress {
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.phase-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.phase-progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phase-progress-label.fde-label {
  color: #05A34A;
}

.phase-progress-label.sme-label {
  color: #66D1D1;
}

.phase-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.phase-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #05A34A 0%, #66D1D1 40%, #66D1D1 70%, #66D1D1 100%);
  border-radius: 3px;
}

.phase-progress-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 2%;
}

.phase-progress-marker {
  font-size: 0.6875rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 991px) {
  .phase-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .phase-timeline::before {
    display: none;
  }

  .phase-section .section-title-light {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .d-flex.gap-3 {
    flex-direction: column;
  }

  .d-flex.gap-3 .btn {
    width: 100%;
  }

  .phase-section {
    padding: 5rem 0;
  }

  .phase-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phase-timeline::before {
    display: none;
  }

  .phase-section .section-title-light {
    font-size: 1.75rem;
  }

  .phase-section .section-subtitle-light {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .phase-number-circle {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .phase-progress-labels {
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
  }

  .phase-progress-markers {
    display: none;
  }
}
