/* ==========================================================================
   Process/Workflow Section Styles - Matching Kulimo Design System
   ========================================================================== */

.process-section {
  padding: 120px 0;
  background: #000000;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle gradient overlay for depth */
.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 144, 226, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Section Header */
.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4A90E2;
  margin-bottom: 16px;
  padding: 8px 20px;
  background: rgba(74, 144, 226, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 50px;
}

.process-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.process-title .highlight {
  background: linear-gradient(135deg, #4A90E2 0%, #0E2A47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Process Step */
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Number */
.process-step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.process-step-number span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.08);
  border: 2px solid rgba(74, 144, 226, 0.2);
  font-size: 28px;
  font-weight: 700;
  color: #4A90E2;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover .process-step-number span {
  background: rgba(74, 144, 226, 0.15);
  border-color: #4A90E2;
  transform: scale(1.1);
}

/* Connecting Line */
.process-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, 
    rgba(74, 144, 226, 0.3) 0%, 
    rgba(74, 144, 226, 0.1) 100%
  );
  margin-top: 20px;
  position: relative;
}

.process-step:last-child .process-step-line {
  display: none;
}

/* Step Content */
.process-step-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.process-step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(74, 144, 226, 0.5) 50%, 
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.process-step:hover .process-step-content {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(74, 144, 226, 0.2);
  transform: translateX(10px);
}

.process-step:hover .process-step-content::before {
  opacity: 1;
}

/* Step Icon */
.process-step-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.process-step-icon svg {
  width: 32px;
  height: 32px;
  color: #4A90E2;
  transition: all 0.3s ease;
}

.process-step:hover .process-step-icon {
  background: rgba(74, 144, 226, 0.15);
  transform: rotate(5deg) scale(1.05);
}

.process-step:hover .process-step-icon svg {
  color: #5AA0F2;
  transform: scale(1.1);
}

/* Step Title */
.process-step-title {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Step Description */
.process-step-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

/* Step Details List */
.process-step-details {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: grid;
  gap: 12px;
}

.process-step-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.process-step-details li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.process-step-details li svg {
  width: 20px;
  height: 20px;
  color: #4A90E2;
  flex-shrink: 0;
}

/* Step Duration */
.process-step-duration {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #4A90E2;
  background: rgba(74, 144, 226, 0.08);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Process CTA */
.process-cta {
  text-align: center;
  margin-top: 100px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.process-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(74, 144, 226, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.process-cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.process-cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.process-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #4A90E2 0%, #0E2A47 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.process-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, #5AA0F2 10%, #1E3A57 100%);
}

.process-cta-button svg {
  transition: transform 0.3s ease;
}

.process-cta-button:hover svg {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1068px) {
  .process-section {
    padding: 80px 0;
  }

  .process-header {
    margin-bottom: 60px;
  }

  .process-timeline {
    gap: 40px;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .process-step-number span {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .process-step-content {
    padding: 32px 28px;
  }

  .process-step-icon {
    width: 50px;
    height: 50px;
  }

  .process-step-icon svg {
    width: 26px;
    height: 26px;
  }

  .process-step-title {
    font-size: 24px;
  }

  .process-step-description {
    font-size: 15px;
  }

  .process-step-details {
    gap: 10px;
  }

  .process-step-details li {
    font-size: 14px;
  }

  .process-cta {
    margin-top: 60px;
    padding: 40px 24px;
  }

  .process-cta-title {
    font-size: 28px;
  }

  .process-cta-description {
    font-size: 16px;
  }
}

@media (max-width: 735px) {
  .process-section {
    padding: 60px 0;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step-number {
    flex-direction: row;
    justify-content: center;
  }

  .process-step-line {
    display: none;
  }

  .process-step:hover .process-step-content {
    transform: translateY(-5px);
  }

  .process-step-content {
    padding: 28px 24px;
  }

  .process-step-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .process-section {
    padding: 50px 0;
  }

  .process-header {
    margin-bottom: 40px;
  }

  .process-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .process-subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .process-timeline {
    gap: 30px;
  }

  .process-step-number span {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .process-step-content {
    padding: 24px 20px;
  }

  .process-step-icon {
    width: 44px;
    height: 44px;
  }

  .process-step-icon svg {
    width: 22px;
    height: 22px;
  }

  .process-step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .process-step-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .process-step-details {
    gap: 8px;
    margin-top: 16px;
  }

  .process-step-details li {
    font-size: 13px;
    padding-left: 24px;
  }

  .process-cta {
    margin-top: 50px;
    padding: 32px 20px;
  }

  .process-cta-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .process-cta-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .process-cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  .process-section {
    padding: 40px 0;
  }

  .process-header {
    margin-bottom: 32px;
  }

  .process-title {
    font-size: 28px;
  }

  .process-subtitle {
    font-size: 15px;
  }

  .process-timeline {
    gap: 24px;
  }

  .process-step-number span {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .process-step-content {
    padding: 20px 16px;
  }

  .process-step-icon {
    width: 40px;
    height: 40px;
  }

  .process-step-icon svg {
    width: 20px;
    height: 20px;
  }

  .process-step-title {
    font-size: 18px;
  }

  .process-step-description {
    font-size: 13px;
  }

  .process-step-details li {
    font-size: 12px;
    padding-left: 20px;
  }

  .process-cta {
    padding: 28px 16px;
  }

  .process-cta-title {
    font-size: 22px;
  }

  .process-cta-description {
    font-size: 14px;
  }
}

@media (max-width: 320px) {
  .process-section {
    padding: 32px 0;
  }

  .process-title {
    font-size: 24px;
  }

  .process-subtitle {
    font-size: 14px;
  }

  .process-timeline {
    gap: 20px;
  }

  .process-step-number span {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .process-step-content {
    padding: 18px 14px;
  }

  .process-step-title {
    font-size: 17px;
  }

  .process-step-description {
    font-size: 12px;
  }

  .process-cta {
    padding: 24px 14px;
  }

  .process-cta-title {
    font-size: 20px;
  }

  .process-cta-description {
    font-size: 13px;
  }

  .process-cta-button {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .process-section {
    padding: 40px 0;
  }

  .process-timeline {
    gap: 30px;
  }

  .process-step-content {
    padding: 20px;
  }

  .process-cta {
    margin-top: 40px;
    padding: 24px;
  }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
  .process-step:hover .process-step-content {
    transform: none; /* Disable hover effects on touch devices */
  }

  .process-step-content {
    transition: none;
  }

  .process-cta-button {
    min-height: 44px; /* Ensure proper touch target size */
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .process-step-content,
  .process-cta-button {
    transition: none !important;
  }

  .process-step:hover .process-step-content {
    transform: none;
  }
}
