/* Our Process Section - Modern Design 2025 */

:root {
  --process-primary: #0aa5a6;
  --process-secondary: #14c4c5;
  --process-dark: #121212;
  --process-card: #1a1a1a;
  --process-text-light: #ffffff;
  --process-text-secondary: #b0b0b0;
  --process-accent: #e6a919;
  --process-gradient: linear-gradient(
    135deg,
    var(--process-primary),
    var(--process-secondary)
  );
  --process-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  --process-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Main section styling */
.process-section {
  background-color: var(--process-dark);
  background-image: radial-gradient(
      circle at 15% 25%,
      rgba(10, 165, 166, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(20, 196, 197, 0.08) 0%,
      transparent 40%
    );
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  color: var(--process-text-light);
}

/* Animated background elements */
.process-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230aa5a6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Section title styling */
.process-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  background: var(--process-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(10, 165, 166, 0.3);
}

.process-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--process-gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(20, 196, 197, 0.5);
}

.process-steps {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.process-steps p {
  font-size: 1.1rem;
  color: var(--process-text-secondary);
  max-width: 600px;
  margin: 30px auto 60px;
  line-height: 1.6;
}

/* Process grid layout */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

/* Connecting line between process steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 70px;
  left: calc(50% - 25px);
  width: calc(100% - 150px);
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(10, 165, 166, 0.2),
    rgba(10, 165, 166, 0.7) 20%,
    rgba(10, 165, 166, 0.7) 80%,
    rgba(10, 165, 166, 0.2)
  );
  border-radius: 4px;
  z-index: -1;
  transform: translateX(-30%);
  display: none;
}

@media (min-width: 1200px) {
  .process-grid::before {
    display: block;
  }
}

/* Individual process step styling */
.process-step {
  background-color: var(--process-card);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  box-shadow: var(--process-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: var(--process-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.process-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 20px;
  z-index: -1;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--process-shadow), 0 20px 40px rgba(10, 165, 166, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(10, 165, 166, 0.6);
}

.process-step:hover h4 {
  color: var(--process-primary);
}

/* Step number styling */
.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--process-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 25px;
  position: relative;
  transition: var(--process-transition);
  box-shadow: 0 10px 20px rgba(10, 165, 166, 0.3),
    inset 0 0 0 8px rgba(10, 165, 166, 0.1);
  z-index: 2;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.1)
  );
  opacity: 0.5;
  z-index: -1;
}

/* Step content styling */
.process-step h4 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 15px;
  transition: var(--process-transition);
  position: relative;
}

.process-step p {
  font-size: 1rem;
  color: var(--process-text-secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 100%;
}

/* Process step icon */
.process-step-icon {
  font-size: 2.5rem;
  margin: 10px 0;
  color: var(--process-primary);
  opacity: 0.8;
  transition: var(--process-transition);
}

.process-step:hover .process-step-icon {
  transform: scale(1.2);
  opacity: 1;
}

/* Expanded content for each step (hidden by default) */
.step-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  width: 100%;
  margin-top: 0;
}

.process-step.expanded .step-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 20px;
}

.step-details ul {
  text-align: left;
  padding-left: 20px;
  margin: 0;
}

.step-details li {
  margin-bottom: 8px;
  position: relative;
  color: var(--process-text-secondary);
}

.step-details li::before {
  content: '•';
  color: var(--process-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Expand/collapse button */
.expand-btn {
  background: transparent;
  border: none;
  color: var(--process-primary);
  font-size: 0.9rem;
  padding: 8px 15px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--process-transition);
  border: 1px solid rgba(10, 165, 166, 0.3);
  display: inline-flex;
  align-items: center;
}

.expand-btn i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.process-step.expanded .expand-btn i {
  transform: rotate(180deg);
}

.expand-btn:hover {
  background: rgba(10, 165, 166, 0.1);
}

/* Progress indicator at bottom */
.process-progress {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--process-transition);
}

.progress-dot:hover,
.progress-dot.active {
  background: var(--process-primary);
  transform: scale(1.2);
}

/* Animations for the section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-title,
.process-steps p {
  animation: fadeInUp 0.8s ease forwards;
}

.process-step {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

/* Pulse animation for step numbers */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 165, 166, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(10, 165, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 165, 166, 0);
  }
}

.step-number {
  animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .process-section {
    padding: 80px 0;
  }

  .process-title {
    font-size: 2.5rem;
  }

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

  .step-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-section {
    padding: 60px 0;
  }

  .process-title {
    font-size: 2.2rem;
  }

  .process-steps p {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}
