/* Enhanced CTA Section Styling */
.services-cta {
  margin: var(--space-16) 0;
  text-align: center;
  padding: var(--space-12);
  background: linear-gradient(
    135deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-primary-soft) 100%
  );
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(19, 142, 158, 0.2);
}

.services-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" /><path d="M100,0 L0,100 Z" stroke="rgba(255,255,255,0.1)" stroke-width="2" /></svg>')
    repeat;
  z-index: 0;
  opacity: 0.3;
}

.services-cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -150px;
  z-index: 0;
}

.services-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.services-cta-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: white;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

.services-cta-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
}

.services-cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: var(--space-6) auto var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  font-weight: var(--font-weight-medium);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  min-width: 220px;
  justify-content: center;
}

.btn-primary {
  background-color: white;
  color: var(--color-brand-primary);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 2px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.05);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline:hover::before {
  width: 100%;
}

.btn i {
  margin-left: var(--space-3);
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-cta {
    padding: var(--space-8);
    margin: var(--space-10) 0;
  }

  .services-cta-title {
    font-size: 2rem;
  }

  .services-cta-description {
    font-size: 1.1rem;
  }

  .btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Animation for button hover */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Ensure buttons appear one after another */
.cta-buttons .btn:nth-child(1) {
  animation: fadeInUp 0.6s 0.2s both;
}

.cta-buttons .btn:nth-child(2) {
  animation: fadeInUp 0.6s 0.4s both;
}

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