/* ============================================
   ENHANCED CTA SECTION
   ============================================ */
.cta-section {
  padding: 160px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Scanline texture overlay for CTA section */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Top and bottom edge fade for CTA section */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 3D Diamond grid - rotated squares pattern */
.cta-diamonds {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  transform: rotate(45deg);

  /* Diamond pattern with 3D beveled look */
  background:
    /* Top highlight edge (light) */
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 50px
    ),
    /* Left highlight edge (light) */
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 50px
    ),
    /* Bottom shadow edge (dark) */
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 47px,
      rgba(0, 0, 0, 0.4) 47px,
      rgba(0, 0, 0, 0.4) 50px
    ),
    /* Right shadow edge (dark) */
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 47px,
      rgba(0, 0, 0, 0.35) 47px,
      rgba(0, 0, 0, 0.35) 50px
    ),
    /* Inner cell gradient for depth */
    repeating-linear-gradient(
      145deg,
      rgba(100, 220, 255, 0.08) 0px,
      rgba(53, 118, 197, 0.04) 25px,
      rgba(0, 0, 0, 0.15) 50px
    ),
    /* Base grid lines */
    repeating-linear-gradient(
      to right,
      rgba(100, 220, 255, 0.3) 0px,
      rgba(100, 220, 255, 0.3) 1px,
      transparent 1px,
      transparent 50px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(100, 220, 255, 0.3) 0px,
      rgba(100, 220, 255, 0.3) 1px,
      transparent 1px,
      transparent 50px
    ),
    /* Cell fill */
    repeating-linear-gradient(
      145deg,
      rgba(100, 220, 255, 0.06) 0px,
      rgba(53, 118, 197, 0.03) 50px,
      rgba(53, 118, 197, 0.06) 100px,
      rgba(100, 220, 255, 0.03) 150px
    );
  background-size:
    50px 50px, 50px 50px, 50px 50px, 50px 50px,
    50px 50px, 50px 50px, 50px 50px, 150px 150px;

  /* Radial fade mask */
  mask-image: radial-gradient(ellipse 40% 40% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 40% 40% at 50% 50%, black 0%, transparent 70%);
}

/* Subtle lighting for diamonds */
.cta-diamonds::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

/* Noise texture for diamonds */
.cta-diamonds::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Grid Background */
.cta-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

/* Floating Orbs */
.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 220, 255, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.cta-orb.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(53, 118, 197, 0.12) 0%, transparent 70%);
  bottom: -20%;
  right: -15%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.cta-orb.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 220, 255, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.05); }
  66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* Connection Lines SVG */
.cta-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.conn-path {
  stroke-dasharray: 10 20;
  animation: connFlow 20s linear infinite;
}

.conn-path.path-2 { animation-delay: -7s; }
.conn-path.path-3 { animation-delay: -14s; }

@keyframes connFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

/* Floating Tech Badges */
.cta-floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  animation: badgeFloat 6s ease-in-out infinite;
}

.floating-badge svg {
  color: var(--accent);
}

.floating-badge.badge-1 { top: 15%; left: 8%; animation-delay: 0s; }
.floating-badge.badge-2 { top: 25%; right: 10%; animation-delay: -1s; }
.floating-badge.badge-2 svg { color: var(--accent-purple); }
.floating-badge.badge-3 { top: 60%; left: 5%; animation-delay: -2s; }
.floating-badge.badge-4 { top: 70%; right: 8%; animation-delay: -3s; }
.floating-badge.badge-4 svg { color: var(--accent-purple); }
.floating-badge.badge-5 { top: 40%; left: 3%; animation-delay: -4s; }
.floating-badge.badge-6 { top: 45%; right: 5%; animation-delay: -5s; }
.floating-badge.badge-6 svg { color: var(--accent-purple); }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-15px); opacity: 1; }
}

/* Central CTA Card */
.cta-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
}

.cta-card-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(100, 220, 255, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: cardGlow 6s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.cta-card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  overflow: hidden;
}

.cta-card-border svg {
  width: 100%;
  height: 100%;
}

.animated-border {
  stroke-dasharray: 20 10;
  animation: borderFlow 8s linear infinite;
}

@keyframes borderFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

.cta-card-inner {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(100, 220, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Status Bar */
.cta-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #22c55e;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.status-right {
  display: flex;
  align-items: center;
}

.response-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.response-time svg {
  color: var(--accent);
}

/* Main Content */
.cta-main-content {
  padding: 48px 48px 40px;
  text-align: center;
}

/* Icon Container */
.cta-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(100, 220, 255, 0.3);
}

.cta-icon-ring {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(100, 220, 255, 0.3);
  border-radius: 26px;
  animation: iconRingPulse 3s ease-out infinite;
}

.cta-icon-ring.ring-2 {
  inset: -20px;
  border-color: rgba(53, 118, 197, 0.2);
  border-radius: 32px;
  animation-delay: 0.5s;
}

@keyframes iconRingPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e8 50%, #b0b0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Enhanced CTA Buttons */
.cta-buttons-final {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: .25rem 1rem !important;
  background: var(--accent);
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: .75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 40px rgba(100, 220, 255, 0.3),
    0 0 80px rgba(53, 118, 197, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.btn-primary:hover {

  box-shadow:
    0 10px 50px rgba(100, 220, 255, 0.4),
    0 0 100px rgba(53, 118, 197, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  flex: 1;
}

.btn-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 220, 255, 0.3);

}

/* Info Row */
/* Stick Figure Face with Following Eyes */
.cta-face-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.face-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-dome {
  display: none;
}

.face-eyes {
  display: flex;
  gap: 24px;
}

.eye {
  position: relative;
  transition: transform 0.15s ease;
}

/* Eyebrows */
.eye::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Left eyebrow - slight tilt */
.eye-left::before {
  transform: translateX(-50%) rotate(-5deg);
}

/* Right eyebrow - slight tilt */
.eye-right::before {
  transform: translateX(-50%) rotate(5deg);
}

/* Excited eyebrows - raised and more expressive */
.cta-face-container.excited .eye::before {
  top: -16px;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(100, 220, 255, 0.9), transparent);
  box-shadow: 0 0 8px rgba(100, 220, 255, 0.5);
}

.cta-face-container.excited .eye-left::before {
  transform: translateX(-50%) rotate(-12deg);
}

.cta-face-container.excited .eye-right::before {
  transform: translateX(-50%) rotate(12deg);
}

.eye-white {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.cta-face-container.excited .eye-white {
  transform: scale(1.2);
  box-shadow: 
    0 2px 12px rgba(100, 220, 255, 0.5),
    0 0 25px rgba(100, 220, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.eye-pupil {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, 
    #3a3a3a 0%, 
    #1a1a1a 50%, 
    #0a0a0a 100%
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.08s ease-out;
  box-shadow: 
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Pupil highlight (reflection) */
.eye-pupil::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

.eye-pupil::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  top: 6px;
  left: 7px;
}

.cta-face-container.excited .eye-pupil {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, 
    #1a1a1a 0%, 
    #0a0a0a 100%
  );
}

/* Eyebrow raise effect when excited */
.cta-face-container.excited .eye {
  transform: translateY(-3px);
}

/* Sparkle effect when excited */
.cta-face-container.excited::before,
.cta-face-container.excited::after {
  content: '✦';
  position: absolute;
  font-size: 12px;
  color: rgba(100, 220, 255, 0.8);
  animation: sparkle 0.6s ease-in-out infinite;
}

.cta-face-container.excited::before {
  top: 50%;
  left: calc(50% - 70px);
  transform: translateY(-50%);
}

.cta-face-container.excited::after {
  top: 50%;
  right: calc(50% - 70px);
  transform: translateY(-50%);
  animation-delay: 0.3s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2) rotate(180deg); }
}

/* Accent Lines */
.cta-accent-line {
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(100, 220, 255, 0.2) 20%,
    rgba(53, 118, 197, 0.3) 50%,
    rgba(100, 220, 255, 0.2) 80%,
    transparent 100%
  );
}

.cta-accent-line.left { left: 8%; }
.cta-accent-line.right { right: 8%; }

.cta-accent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(100, 220, 255, 0.8);
  animation: accentTravel 8s ease-in-out infinite;
}

.cta-accent-line.right::before {
  animation-delay: -4s;
}

@keyframes accentTravel {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
    min-height: auto;
  }
  
  .cta-floating-badges {
    display: none;
  }
  
  .cta-main-content {
    padding: 24px 20px;
  }
  
  .cta-icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }
  
  .cta-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .cta-icon-ring {
    inset: -8px;
    border-radius: 22px;
  }
  
  .cta-icon-ring.ring-2 {
    inset: -16px;
    border-radius: 28px;
  }
  
  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .cta-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  .cta-buttons-final {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
  }
  
  .btn-primary {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem;
    border-radius: 0.625rem;
    flex: 0 1 auto;
    min-width: 0;
  }
  
  .btn-primary .btn-text {
    display: none;
  }
  
  .btn-primary .btn-icon {
    margin: 0;
  }
  
  .btn-primary .btn-arrow {
    display: none;
  }
  
  .btn-primary::after {
    content: 'Contact';
    font-weight: 600;
  }
  
  .btn-secondary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.625rem;
    flex: 0 1 auto;
    min-width: 0;
  }
  
  .btn-secondary span {
    display: none;
  }
  
  .btn-secondary::after {
    content: 'Services';
  }
  
  .cta-face-container {
    padding: 16px 20px;
  }
  
  .face-eyes {
    gap: 18px;
  }
  
  .eye::before {
    width: 22px;
    height: 3px;
    top: -10px;
  }
  
  .cta-face-container.excited .eye::before {
    top: -14px;
  }
  
  .eye-white {
    width: 26px;
    height: 26px;
  }
  
  .eye-pupil {
    width: 12px;
    height: 12px;
  }
  
  .cta-status-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
  }
  
  .status-left {
    font-size: 0.75rem;
  }
  
  .response-time {
    font-size: 0.7rem;
  }
  
  .cta-accent-line {
    display: none;
  }
  
  .cta-card-inner {
    border-radius: 18px;
  }
  
  .cta-card-border {
    border-radius: 18px;
  }
}

