/* ============================================================
   CSSLLC — Internship CTA Styles
   internship-cta.css | Inline Banner + Timed Popup
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   INLINE CTA BANNER  (between Services & About)
   ──────────────────────────────────────────────────────────── */

.internship-cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #1d4ed8 100%);
  isolation: isolate;
}

/* Decorative blurred blobs */
.internship-cta-banner::before,
.internship-cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.internship-cta-banner::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -120px;
  left: -80px;
}

.internship-cta-banner::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -100px;
  right: -60px;
}

.internship-cta-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
}

.cta-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.28);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.cta-banner-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.cta-banner-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.cta-banner-title em {
  font-style: normal;
  color: #60a5fa;
}

.cta-banner-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #cbd5e1;
  max-width: 560px;
  line-height: 1.7;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-banner-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.cta-banner-btn-primary:hover {
  background: #eff6ff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.cta-banner-btn-primary:hover svg {
  transform: translateX(4px);
}

.cta-banner-btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.cta-banner-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(224, 242, 254, 0.28);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cta-banner-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(224, 242, 254, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner-stats {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--space-sm);
}

.cta-banner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cta-banner-stat-num {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
}

.cta-banner-stat-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-banner-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ────────────────────────────────────────────────────────────
   TIMED POPUP MODAL
   ──────────────────────────────────────────────────────────── */

.internship-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.internship-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.internship-popup {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
  overflow: hidden;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  position: relative;
}

.internship-popup-overlay.is-visible .internship-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Accent top bar */
.internship-popup::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #1d4ed8, #06b6d4);
}

.internship-popup-inner {
  padding: 24px;
  position: relative;
}

.internship-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.internship-popup-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.internship-popup-close svg {
  width: 14px;
  height: 14px;
}

.internship-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.internship-popup-badge-dot {
  width: 6px;
  height: 6px;
  background: #818cf8;
  border-radius: 50%;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

.internship-popup-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-right: 28px; /* avoid close btn overlap */
}

.internship-popup-title em {
  font-style: normal;
  color: #60a5fa;
}

.internship-popup-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 20px;
}

.internship-popup-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.internship-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
}

.internship-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.5);
}

.internship-popup-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.internship-popup-btn:hover svg {
  transform: translateX(3px);
}

.internship-popup-dismiss {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.internship-popup-dismiss:hover {
  color: #94a3b8;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .internship-popup-overlay {
    padding: 16px;
    align-items: flex-end;
    justify-content: stretch;
  }

  .internship-popup {
    max-width: 100%;
  }

  .cta-banner-stat-divider {
    display: none;
  }
}
