
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --bg-card: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --border-color: #334155;
}

/* Section Styles */
.steps-section {
   background:var(--mediclic-blue);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Title and Subtitle */
.steps-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.steps-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding: 0 20px;
}

/* Step Item */
.step-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}

.step-item:nth-child(2) {
  animation-delay: 0.2s;
}

.step-item:nth-child(3) {
  animation-delay: 0.3s;
}

.step-item:nth-child(4) {
  animation-delay: 0.4s;
}

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

.step-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.step-item:hover .step-content {
  border-color: var(--primary);
  background: white;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.step-item:hover .step-content::before {
  transform: scaleX(1);
}

/* Step Number */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--mediclic-blue);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
}

.step-item:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--mediclic-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.step-icon svg {
  width: 40px;
  height: 40px;
  fill:white;
}

.step-item:hover .step-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.step-item:hover svg {
  fill: var(--mediclic-blue);
}

.step-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--mediclic-blue);
}


.step-description {
  font-size: 0.95rem;
  color: var(--bg-card);
  line-height: 1.8;
  flex-grow: 1;
}

.steps-section .btn-primary-custom {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}


.btn-primary-custom:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .steps-title {
    font-size: 2rem;
  }

  .steps-subtitle {
    font-size: 1rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

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

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .step-icon {
    width: 70px;
    height: 70px;
  }

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

  .steps-section {
    padding: 40px 20px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .steps-title {
    font-size: 1.6rem;
  }

  .steps-subtitle {
    font-size: 0.95rem;
  }

  .step-content {
    padding: 25px 15px;
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .btn-primary-custom {
    padding: 14px 30px;
    font-size: 0.95rem;
  }
}

.step-item.visible {
  opacity: 1;
  transform: translateY(0);
}