/* ===== PROCESS SECTION CSS ===== */

:root {
  --process-gradient-start: #7ED321;
  --process-gradient-end: #9c27b0;
  --process-card-bg: rgba(255, 255, 255, 0.07);
  --process-card-border: rgba(255, 255, 255, 0.15);
  --process-card-hover-bg: rgba(255, 255, 255, 0.12);
  --process-number-color: #7ED321;
  --process-icon-bg: linear-gradient(135deg, #000000 0%, #7ed321 100%);
  --process-line-color: linear-gradient(180deg, rgba(126, 211, 33, 0.1) 0%, rgba(126, 211, 33, 0.6) 50%, rgba(156, 39, 176, 0.2) 100%);
  --process-glow-color: rgba(126, 211, 33, 0.6);
  
  /* Light theme variables */
  --process-gradient-start-light: #4CAF50;
  --process-gradient-end-light: #9c27b0;
  --process-card-bg-light: rgba(255, 255, 255, 0.85);
  --process-card-border-light: rgba(0, 0, 0, 0.05);
  --process-card-hover-bg-light: rgba(255, 255, 255, 1);
  --process-icon-bg-light: linear-gradient(135deg, #f5f5f5 0%, #4CAF50 100%);
  --process-line-color-light: linear-gradient(180deg, rgba(126, 211, 33, 0.3) 0%, rgba(126, 211, 33, 0.6) 50%, rgba(156, 39, 176, 0.3) 100%);
  --process-glow-color-light: rgba(126, 211, 33, 0.3);
}

/* Process section container */
.process-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  z-index: 1;
  background-position: center;
  background-color: #161623;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes ambientGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.8;
  }
}

/* Section header styling */
.process-section .section-subtitle {
  display: inline-block;
  background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
  color: var(--accent-green, #78e57e);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 15px;
  position: relative;
  text-align: left;
  transition: background 0.3s ease, color 0.3s ease;
}

.process-section .section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-align: left;
  color: var(--text-heading, #ffffff);
  transition: color 0.3s ease;
}

.process-section .section-description,
.process-section .process-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-body, rgba(255, 255, 255, 0.8));
  max-width: 650px;
  text-align: left;
  transition: color 0.3s ease;
}

.process-section .gradient-text {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* Timeline container */
.process-timeline {
  position: relative;
  margin: 100px 0 0;
  padding: 0;
  z-index: 1;
  min-height: 700px;
  margin-top: 20px;
}

/* SVG Path Styling */
.timeline-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.road-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px var(--process-glow-color));
  transition: filter 0.3s ease, stroke 0.3s ease, opacity 0.3s ease;
}

/* Timeline items */
.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
}

/* Timeline icon */
.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Position the icons to follow the curve */
.timeline-item:nth-child(2) .timeline-icon {
  top: -17%;
  left: 92%;
}

.timeline-item:nth-child(3) .timeline-icon {
  top: -15%;
  left: 50%;
}

.timeline-item:nth-child(4) .timeline-icon {
  top: -15%;
  left: 93%;
}

.timeline-item:nth-child(5) .timeline-icon {
  top: -13%;
  left: 49%;
}

.timeline-item:nth-child(6) .timeline-icon {
  top: -15%;
  left: 93%;
}

.timeline-icon .icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--process-icon-bg);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.timeline-item:hover .timeline-icon .icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.timeline-icon .icon-wrapper i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, color 0.3s ease;
}

.timeline-item:hover .timeline-icon .icon-wrapper i {
  transform: scale(1.2);
}

/* Timeline content - glassmorphism effect */
.timeline-content {
  width: 51%;
  padding: 35px 40px;
  background: var(--process-card-bg);
  border: 1px solid var(--process-card-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Content positioning to follow the curve */
.timeline-item:nth-child(2) .timeline-content {
  margin-left: auto;
  margin-right: 90px;
  text-align: left;
  border-right: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end));
  border-image-slice: 1;
}

.timeline-item:nth-child(3) .timeline-content {
  margin-right: auto;
  margin-left: 65px;
  text-align: left;
  border-left: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end));
  border-image-slice: 1;
}

.timeline-item:nth-child(4) .timeline-content {
  margin-left: auto;
  margin-right: 80px;
  text-align: left;
  border-right: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end));
  border-image-slice: 1;
}

.timeline-item:nth-child(5) .timeline-content {
  margin-right: auto;
  margin-left: 65px;
  text-align: left;
  border-left: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end));
  border-image-slice: 1;
}

.timeline-item:nth-child(6) .timeline-content {
  margin-left: auto;
  margin-right: 80px;
  margin-bottom: -10px;
  text-align: left;
  border-right: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end));
  border-image-slice: 1;
}

/* Hover effects - 3D transformation */
.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: var(--process-card-hover-bg);
}

/* Number styling */
.timeline-number {
  font-family: 'Poppins', sans-serif;
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(to right, var(--process-gradient-start), var(--process-gradient-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-number {
  opacity: 1;
}

/* Content typography */
.timeline-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-heading, #fff);
  transition: color 0.3s ease;
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body, rgba(255, 255, 255, 0.7));
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
  color: var(--text-heading-hover, rgba(255, 255, 255, 1));
}

.timeline-item:hover .timeline-content p {
  color: var(--text-body-hover, rgba(255, 255, 255, 0.9));
}

/* Animated background circles with blend modes */
.process-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(123, 67, 151, 0.4) 0%, rgba(123, 67, 151, 0) 70%);
  z-index: -1;
  mix-blend-mode: screen;
  filter: blur(20px);
  transition: background 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.process-circle-1 {
  width: 800px;
  height: 800px;
  top: -15px;
  left: -300px;
  background: radial-gradient(circle at center, rgba(126, 211, 33, 0.3) 0%, rgba(126, 211, 33, 0) 70%);
}

.process-circle-2 {
  width: 600px;
  height: 600px;
  bottom: -20px;
  right: -200px;
  background: radial-gradient(circle at center, rgba(156, 39, 176, 0.3) 0%, rgba(156, 39, 176, 0) 70%);
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10px, 10px);
  }
}

/* Enhanced Light theme modifications */
.light-theme .process-section {
  background-color: #f8f9fa;
}

.light-theme .process-section .section-subtitle {
  background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
  color: var(--accent-green-light, #4CAF50);
}

.light-theme .process-section .section-title {
  color: var(--text-heading-light, #222222);
}

.light-theme .process-section .section-description,
.light-theme .process-section .process-description {
  color: var(--text-body-light, rgba(0, 0, 0, 0.7));
}

.light-theme .timeline-content {
  background: var(--process-card-bg-light);
  border: 1px solid var(--process-card-border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.light-theme .timeline-content h3 {
  color: var(--text-heading-light, #222222);
}

.light-theme .timeline-content p {
  color: var(--text-body-light, rgba(0, 0, 0, 0.7));
}

.light-theme .timeline-item:hover .timeline-content {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: var(--process-card-hover-bg-light);
  transform: translateY(-10px);
}

.light-theme .timeline-item:hover .timeline-content h3 {
  color: var(--text-heading-hover-light, #000);
}

.light-theme .timeline-item:hover .timeline-content p {
  color: var(--text-body-hover-light, rgba(0, 0, 0, 0.85));
}

.light-theme .timeline-icon .icon-wrapper {
  background: var(--process-icon-bg-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.light-theme .timeline-icon .icon-wrapper i {
  color: rgba(0, 0, 0, 0.8);
}

.light-theme .timeline-item:hover .timeline-icon .icon-wrapper {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #4CAF50 0%, #9c27b0 100%);
}

.light-theme .timeline-item:hover .timeline-icon .icon-wrapper i {
  color: #fff;
}

.light-theme .timeline-number {
  background: linear-gradient(to right, var(--process-gradient-start-light), var(--process-gradient-end-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.light-theme .road-path {
  filter: drop-shadow(0 0 8px var(--process-glow-color-light));
  stroke: rgba(126, 211, 33, 0.7) !important;
  opacity: 0.8;
}

.light-theme .process-bg-circle {
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.light-theme .process-circle-1 {
  background: radial-gradient(circle at center, rgba(126, 211, 33, 0.2) 0%, rgba(126, 211, 33, 0) 70%);
}

.light-theme .process-circle-2 {
  background: radial-gradient(circle at center, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0) 70%);
}

/* Border image updates for light theme */
.light-theme .timeline-item:nth-child(2) .timeline-content,
.light-theme .timeline-item:nth-child(4) .timeline-content,
.light-theme .timeline-item:nth-child(6) .timeline-content {
  border-right: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start-light), var(--process-gradient-end-light));
  border-image-slice: 1;
}

.light-theme .timeline-item:nth-child(3) .timeline-content,
.light-theme .timeline-item:nth-child(5) .timeline-content {
  border-left: 10px solid transparent;
  border-image: linear-gradient(to bottom, var(--process-gradient-start-light), var(--process-gradient-end-light));
  border-image-slice: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
  .timeline-path {
    display: block; /* Show SVG on mobile */
    opacity: 0.6;
    transform: scale(0.8) translateX(-10%);
  }
  
  /* Reset all positions for mobile */
  .timeline-icon {
    left: 30px !important;
    transform: translateX(0) !important;
    top: 0 !important;
  }
  
  .timeline-content {
    width: calc(100% - 80px) !important;
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(2) .timeline-content,
  .timeline-item:nth-child(3) .timeline-content,
  .timeline-item:nth-child(4) .timeline-content,
  .timeline-item:nth-child(5) .timeline-content,
  .timeline-item:nth-child(6) .timeline-content {
    border-left: 10px solid transparent !important;
    border-right: none !important;
    border-image: linear-gradient(to bottom, var(--process-gradient-start), var(--process-gradient-end)) !important;
    border-image-slice: 1 !important;
  }
  
  .process-section .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .process-section {
    padding: 80px 0;
  }
  
  .timeline-content {
    padding: 25px;
  }
  
  .timeline-content h3 {
    font-size: 22px;
  }
  
  .timeline-content p {
    font-size: 15px;
  }
  
  .timeline-number {
    font-size: 42px;
  }
  
  .timeline-icon .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .process-section .section-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  .timeline-content {
    padding: 20px;
    width: calc(100% - 60px) !important;
    margin-left: 60px !important;
  }
  
  .timeline-icon {
    left: 20px !important;
  }

  
  .timeline-number {
    font-size: 36px;
  }
  
  .timeline-content h3 {
    font-size: 20px;
  }
  
  .process-section .section-title {
    font-size: 2.2rem;
  }
}
