/* Modern CTA Banner styling with tech-inspired design */

.cta-banner {
  background-color: var(--bs-light-bg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  --move-x: 0px;
  --move-y: 0px;
  transition: all 0.3s ease;
}

.cta-banner:hover {
  background-color: rgba(28, 31, 38, 0.95);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

/* Tech-inspired background elements */
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(56, 214, 174, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(91, 152, 255, 0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,10 L90,10 M10,90 L90,90 M10,10 L10,90 M90,10 L90,90' stroke='rgba(255, 255, 255, 0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-position: center center, center center, center center;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100%, 100%, 40px;
  opacity: 1;
  z-index: 0;
  transform: translate(var(--move-x), var(--move-y));
  transition: transform 0.2s ease-out;
}

/* Modern heading with gradient */
.cta-banner h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Enhanced buttons */
.cta-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--bs-accent) 0%, var(--bs-secondary-accent) 100%);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(91, 152, 255, 0.3);
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: left 0.7s ease;
}

.cta-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(91, 152, 255, 0.4);
  color: white;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(91, 152, 255, 0.05) 0%, rgba(56, 214, 174, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-secondary:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.cta-secondary:hover::before {
  opacity: 1;
}

/* Availability badge */
.availability-badge {
  background: rgba(56, 214, 174, 0.1);
  border: 1px solid rgba(56, 214, 174, 0.2);
  color: var(--bs-secondary-accent);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  animation: pulse-badge 2s infinite;
}

.availability-badge i {
  color: var(--bs-secondary-accent);
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 214, 174, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(56, 214, 174, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 214, 174, 0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .cta-banner {
    padding: 3rem 1.5rem;
  }
  
  .cta-banner h3 {
    font-size: 1.8rem;
  }
  
  .cta-banner p {
    font-size: 1rem;
  }
  
  .cta-button-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .cta-banner {
    padding: 2.5rem 1rem;
  }
  
  .cta-banner h3 {
    font-size: 1.6rem;
  }
}

/* Accessibility - respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cta-banner::before {
    transition: none;
  }
  
  .cta-primary::before,
  .cta-secondary::before {
    display: none;
  }
  
  .cta-primary:hover,
  .cta-secondary:hover {
    transform: none;
  }
  
  .availability-badge {
    animation: none;
  }
  
  .cta-ripple {
    display: none;
  }
}
