/* Professional Call to Action Section Styling */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #fad02c, #e9b800);
  color: #000000;
  overflow: hidden;
  text-align: center;
}

/* Background overlay with subtle pattern */
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/pattern-overlay.png'), rgba(0, 74, 173, 0.2);
  background-blend-mode: overlay;
  opacity: 0.07;
  z-index: 0;
}

/* Main content container */
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

/* Heading with gradient effect */
.cta-heading {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff, #cce0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Divider line with glow effect */
.cta-divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #ffffff, #66a3ff);
  margin: 30px auto;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  position: relative;
  opacity: 0;
  animation: expandWidth 1s forwards 0.6s;
  border-radius: 2px;
}

/* Main paragraph text */
.cta-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.8s;
}

/* Button container */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 1s;
}

/* Primary action button */
.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  padding: 16px 32px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(0, 74, 173, 0.08);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

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

.btn-primary i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

/* Secondary action button */
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Features grid container */
.cta-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 1.2s;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Feature box styling */
.cta-feature {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px 25px;
  transition: all 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Feature icon styling */
.feature-icon {
  font-size: 28px;
  color: #ffffff;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 74, 173, 0.3);
  border-radius: 50%;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: all 0.4s ease;
}

.cta-feature:hover .feature-icon {
  background: rgba(0, 74, 173, 0.5);
  transform: scale(1.05);
}

.cta-feature:hover .feature-icon::after {
  opacity: 1;
  transform: scale(1.1);
}

/* Feature content styling */
.feature-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 600;
}

.feature-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* Background decorative elements */
.cta-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.05;
}

.cta-shape.shape-1 {
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: #ffffff;
  border-radius: 30%;
  animation: float-rotate 40s infinite linear;
}

.cta-shape.shape-2 {
  bottom: 15%;
  right: 5%;
  width: 150px;
  height: 150px;
  border: 2px solid #ffffff;
  transform: rotate(45deg);
  animation: float-element 30s infinite alternate ease-in-out;
}

.cta-shape.shape-3 {
  top: 50%;
  right: 15%;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 20s infinite alternate ease-in-out;
}

/* Animation keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100px;
    opacity: 1;
  }
}

@keyframes float-element {
  0% {
    transform: translateY(0) rotate(45deg);
  }
  100% {
    transform: translateY(-20px) rotate(45deg);
  }
}

@keyframes float-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

/* Button pulse animation */
@keyframes button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.pulse-animation {
  animation: button-pulse 1.5s infinite;
}

/* Responsive design adjustments */
@media (max-width: 1200px) {
  .cta-features {
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  .cta-heading {
    font-size: 2.8rem;
  }

  .cta-features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 90px 0;
  }

  .cta-heading {
    font-size: 2.2rem;
  }

  .cta-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .cta-features {
    grid-template-columns: 1fr;
    max-width: 450px;
    gap: 25px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .cta-feature {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .cta-heading {
    font-size: 1.8rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta-divider {
    margin: 20px auto;
  }
}
