/* ─── CTA Section ───────────────────────────────────── */
#cta {
  background: linear-gradient(-45deg, #ff6b35, #f7931e, #e8511c, #ff8c42, #ff6b35);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  padding: 3rem var(--section-padding-x);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Animated gradient like Gemini */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mesh gradient overlay for more dynamic effect */
#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 150, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 150, 100, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* Subtle floating orbs effect */
#cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 70% 30%, rgba(255, 220, 180, 0.06) 0%, transparent 30%);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(2%, 2%) rotate(1deg);
  }
  66% {
    transform: translate(-1%, 1%) rotate(-1deg);
  }
}

@media (max-width: 992px) {
  #cta {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}

.cta__inner {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta__heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-light);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta__subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Buttons Container ─────────────────────────────── */
.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta__buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* ─── Button ────────────────────────────────────────── */
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-light);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
}

.cta__btn:hover {
  background: #fff8f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cta__btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.cta__btn:hover .cta__btn-arrow {
  transform: translateX(4px);
}

/* ─── Mobile Responsive Styles ───────────────────────────── */
@media (max-width: 768px) {
  #cta {
    padding: 2rem 1.25rem;
  }

  .cta__heading {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .cta__subtext {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .cta__btn {
    width: auto;
    max-width: none;
    height: auto;
    font-size: 0.85rem;
    padding: 0.625rem 1.25rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  #cta {
    padding: 1.5rem 1rem;
  }

  .cta__heading {
    font-size: 1.25rem;
  }

  .cta__subtext {
    font-size: 0.85rem;
  }

  .cta__btn {
    width: auto;
    max-width: none;
    height: auto;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
  }
}
