/* Mobile-First Animated CTA with Enhanced Mobile Support */
.cta-section {
  background: linear-gradient(135deg, #0c2d64 0%, #1d526b 25%, #2c8c94 50%, #369b94 75%, #3db090 100%);
  color: white;
  text-align: center;
  padding: 60px 15px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 12s ease infinite alternate;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-title {
  color: white;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1.3;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px rgba(255,255,255,0.3); }
  to { text-shadow: 0 0 15px rgba(255,255,255,0.5); }
}

.cta-text {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 90%;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Enhanced Button for Mobile */
.cta-btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: white;
  color: #0c2d64;
  border-radius: 30px;
  font-weight: 500;
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  padding: 12px 0;
  min-width: 220px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  height: 3.5rem;
}

.btn-text {
  padding: 0 1.2rem;
  white-space: nowrap;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(12,45,100,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Touch-friendly Interactions */
.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Background Elements (Optimized for Performance) */
.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect x="15" y="15" width="30" height="30" fill="none" stroke="white" stroke-width="1.2"/></svg>');
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: 1;
  pointer-events: none;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  .cta-section {
    padding: 80px 20px;
  }
  
  .cta-title {
    margin-bottom: 1.2rem;
  }
  
  .cta-text {
    margin-bottom: 2.5rem;
  }
  
  .cta-btn {
    min-width: 240px;
    padding: 14px 0;
  }
  
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }
  
  .cta-btn:hover .btn-icon {
    background: rgba(12,45,100,0.2);
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .cta-section {
    padding: 100px 20px;
  }
  
  .cta-btn {
    min-width: 260px;
  }
}