:root {
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

.services-hero {
  background: var(--bg-light);
  text-align: center;
  padding: 4rem 2rem;
  border-bottom: 4px solid var(--accent);
  background-image: radial-gradient(circle at top left, rgba(0,0,0,0.03), transparent);
  animation: fadeInDown 1s ease-out;
}

.services-hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  animation: fadeIn 1.2s ease-out;
}

.services-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark);
  animation: fadeIn 1.4s ease-out;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.service-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px) rotateZ(-0.3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: var(--gradient);
  opacity: 0.04;
  transform: rotate(45deg);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark);
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.2);
}

.service-card h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
}

.process-section {
  background: var(--bg-light);
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
}

.process-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.step span {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-weight: bold;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.step h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step p {
  font-size: 0.95rem;
  color: var(--dark);
}

.cta-button {
  margin: 4rem auto;
  text-align: center;
}

.fancy-button {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.4s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);

}

.fancy-button:hover {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2.2rem;
  }

  .services-hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card .icon {
    font-size: 2.5rem;
  }

  .service-card h2 {
    font-size: 1.3rem;
  }

  .process-section h2 {
    font-size: 1.8rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step {
    padding: 1.5rem;
  }

  .step span {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1rem;
  }

  .step h3 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .fancy-button {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }

  .cta-button {
    margin: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 3rem 1rem;
  }

  .service-card,
  .step {
    border-radius: 14px;
  }

  .fancy-button {
    width: 100%;
    text-align: center;
    border-radius: 30px;
  }
}
