/* ==========================================================================
   PREMIUM CALL TO ACTION (CTA) SECTION STYLING
   ========================================================================== */

.cta_section {
  position: relative;
  padding: 80px 8%;
  background-color: var(--bg-about, #ffffff);
  /* Light tech repeating layout grid */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  overflow: hidden;
  transition: background-color 0.4s ease;
  z-index: 1;
}

body.dark .cta_section {
  background-color: var(--bg-dark, #0e0e1a);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

/* Glassmorphic Rounded Container */
.cta_container {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  z-index: 1;
}

body.dark .cta_container {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Breathing background radial gradients */
.cta_container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.07) 0%, transparent 50%);
  z-index: -1;
  animation: ctaBgMove 12s infinite alternate ease-in-out;
  pointer-events: none;
}

body.dark .cta_container::before {
  background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
}

@keyframes ctaBgMove {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(2%, 1%);
  }
  100% {
    transform: scale(1) translate(-1%, -2%);
  }
}

/* Gradient outline overlay on hover */
.cta_container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.2px;
  background: linear-gradient(135deg, #2563eb 0%, #818cf8 50%, #6366f1 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.cta_container:hover::after {
  opacity: 0.85;
}

/* ==========================================================================
   CONTENT STYLE
   ========================================================================== */
.cta_subtitle {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--primary, #081f62);
  margin-bottom: 16px;
  display: block;
}

body.dark .cta_subtitle {
  color: #3b82f6;
}

.cta_title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary, #081f62) 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .cta_title {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta_desc {
  font-size: 17px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 40px auto;
  color: rgba(34, 34, 34, 0.7);
}

body.dark .cta_desc {
  color: rgba(234, 234, 240, 0.7);
}

/* ==========================================================================
   BUTTONS STYLING
   ========================================================================== */
.cta_actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.cta_btn {
  padding: 15px 32px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.cta_btn i {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Primary Button (Hire Me) */
.cta_primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.cta_primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

body.dark .cta_primary {
  background: #3b82f6;
  color: #0e0e1a;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

body.dark .cta_primary:hover {
  background: #60a5fa;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.cta_primary:hover i {
  transform: translateX(4px); /* Arrow slides right */
}

/* Secondary Button (Download Resume) */
.cta_secondary {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--primary, #081f62);
}

.cta_secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

body.dark .cta_secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body.dark .cta_secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.cta_secondary:hover i {
  transform: translateY(2px); /* Down arrow shifts down slightly */
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 767px) {
  .cta_section {
    padding: 60px 6%;
  }
  .cta_container {
    padding: 50px 24px;
    border-radius: 24px;
  }
  .cta_container::after {
    border-radius: 24px;
  }
  .cta_actions {
    flex-direction: column; /* Stacks buttons vertically on mobile */
    width: 100%;
    gap: 12px;
  }
  .cta_btn {
    width: 100%; /* Full width buttons */
  }
}
