/**
 * Enhanced CTA Button Styles
 * "Get In Touch" Button
 * 
 * @package AirBayTech
 * @since 1.0.0
 */

/* CTA Button - Primary Call to Action */
.btn-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4),
              0 0 30px rgba(139, 92, 246, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* Animated gradient on hover */
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5),
              0 0 40px rgba(139, 92, 246, 0.4),
              0 0 20px rgba(6, 182, 212, 0.3);
  color: white;
  text-decoration: none;
}

.btn-cta:active {
  transform: translateY(-1px) scale(1.02);
}

/* Icon animation */
.btn-cta i {
  transition: transform 0.3s ease;
}

.btn-cta:hover i {
  transform: translateX(3px);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(3px) scale(1); }
  50% { transform: translateX(3px) scale(1.1); }
}

/* Large CTA button */
.btn-cta.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
}

/* Small CTA button (for header) */
.btn-cta.btn-sm,
.btn-primary.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
}

/* Navigation CTA styling */
.nav-cta {
  margin-left: auto;
}

.nav-cta a {
  color: white !important;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-cta .btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.nav-cta .btn:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .btn-cta.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Accessibility - Focus state */
.btn-cta:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 3px;
}

/* Loading state */
.btn-cta.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-cta.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glow effect on hover */
.btn-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-cta:hover::after {
  width: 300px;
  height: 300px;
}

/* Ripple effect on click */
.btn-cta:active::after {
  width: 0;
  height: 0;
  transition: width 0s, height 0s;
}

/* ============================================
   SECONDARY CTA BUTTON - Subtle/Softer Style
   ============================================ */

/* Secondary CTA Button - Softer alternative */
.btn-secondary-cta {
  background: linear-gradient(135deg, 
    rgba(100, 116, 139, 0.1) 0%, 
    rgba(148, 163, 184, 0.15) 50%, 
    rgba(203, 213, 225, 0.1) 100%
  );
  color: var(--text-primary, #1e293b);
  border: 2px solid rgba(100, 116, 139, 0.3);
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(100, 116, 139, 0.2),
              0 0 20px rgba(148, 163, 184, 0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

/* Animated gradient on hover */
.btn-secondary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.5s ease;
}

.btn-secondary-cta:hover::before {
  left: 100%;
}

.btn-secondary-cta:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, 
    rgba(100, 116, 139, 0.25) 0%, 
    rgba(148, 163, 184, 0.3) 50%, 
    rgba(203, 213, 225, 0.25) 100%
  );
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 25px rgba(100, 116, 139, 0.2),
              0 0 30px rgba(148, 163, 184, 0.2),
              0 0 15px rgba(203, 213, 225, 0.15);
  color: var(--text-primary, #1e293b);
  text-decoration: none;
}

.btn-secondary-cta:active {
  transform: translateY(-1px) scale(1.02);
}

/* Icon animation */
.btn-secondary-cta i {
  transition: transform 0.3s ease;
}

.btn-secondary-cta:hover i {
  transform: translateX(3px) rotate(15deg);
}

/* Large secondary CTA button */
.btn-secondary-cta.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
}

/* Small secondary CTA button */
.btn-secondary-cta.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
}

/* Glow effect on hover - softer than primary */
.btn-secondary-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary-cta:hover::after {
  width: 300px;
  height: 300px;
}

/* Ripple effect on click */
.btn-secondary-cta:active::after {
  width: 0;
  height: 0;
  transition: width 0s, height 0s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-secondary-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .btn-secondary-cta.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
}

/* Focus state for accessibility */
.btn-secondary-cta:focus {
  outline: 3px solid rgba(148, 163, 184, 0.5);
  outline-offset: 3px;
}

/* Loading state */
.btn-secondary-cta.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-secondary-cta.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Pulse animation on hover - subtle */
@keyframes subtle-pulse {
  0%, 100% { 
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.2),
                0 0 20px rgba(148, 163, 184, 0.15);
  }
  50% { 
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3),
                0 0 30px rgba(148, 163, 184, 0.25);
  }
}

.btn-secondary-cta:hover {
  animation: subtle-pulse 2s ease-in-out infinite;
}

