/* ============================================
   KEPLER AEROSPACE — careers.css
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.careers-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

/* Deep space gradient bg */
.careers-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/careers-bg.webp') center/cover no-repeat;
}

.careers-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.72) 0%,
    rgba(2,10,20,0.80) 60%,
    rgba(0,0,0,0.72) 100%
  );
}

/* Bottom glow line */
.careers-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.5), transparent);
}

.careers-hero .container { position: relative; z-index: 1; }

/* Two-column hero layout */
.careers-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.careers-hero-content { max-width: 100%; }

.careers-hero-content h1 {
  font-size: clamp(36px, 6vw, 47px);
  font-weight: 300; line-height: 1.1; margin-bottom: 28px;
}
.careers-hero-content h1 span { font-weight: 700; color: var(--accent2); }

.careers-hero-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.88);
  font-weight: 500; line-height: 1.6; margin-bottom: 16px;
}

.careers-hero-body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.78; margin-bottom: 28px;
}

/* Callout block */
.careers-hero-callout {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px;
  background: rgba(35,165,220,0.07);
  border: 1px solid rgba(35,165,220,0.22);
  border-left: 3px solid var(--accent);
  margin-bottom: 24px;
}
.careers-hero-callout i { color: var(--accent); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.careers-hero-callout span { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.careers-hero-callout strong { color: var(--primary); font-weight: 700; }

.careers-hero-close {
  font-size: 15px; color: rgba(255,255,255,0.6);
  font-style: italic; line-height: 1.7; margin-bottom: 36px;
}

/* CTA buttons */
.careers-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-outline-careers {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  transition: all 0.3s ease;
}
.btn-outline-careers i { font-size: 11px; transition: transform 0.3s; }
.btn-outline-careers:hover {
  color: var(--primary);
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
}
.btn-outline-careers:hover i { transform: translateY(3px); }

/* ============================================
   WHY WORK AT KEPLER
   ============================================ */
.why-kepler-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(88deg, #041E2A, #000);
}

.why-kepler-section .section-title { margin-bottom: 56px; }
.why-kepler-section .section-title h2 span { color: var(--accent2); }

.why-kepler-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.why-kepler-card {
  position: relative;
  padding: 36px 30px;
  background: rgba(35,165,220,0.05);
  border: 1px solid rgba(35,165,220,0.18);
  display: flex; flex-direction: column; gap: 0;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
  overflow: hidden;
}

/* Left accent bar */
.why-kepler-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  transition: height 0.45s ease;
}
.why-kepler-card:hover::before { height: 100%; }
.why-kepler-card:hover {
  background: rgba(35,165,220,0.1);
  border-color: rgba(35,165,220,0.38);
  transform: translateY(-4px);
}

.wk-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
  margin-bottom: 22px;
  transition: background 0.3s, transform 0.3s;
}
.why-kepler-card:hover .wk-card-icon {
  background: rgba(35,165,220,0.22); transform: scale(1.1);
}

.wk-card-body h3 {
  font-size: 17px; font-weight: 700; color: var(--primary);
  margin-bottom: 14px; line-height: 1.35;
}
.wk-card-body > p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.72; margin-bottom: 16px;
}

.wk-intro-label {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px !important; opacity: 0.85;
}

.wk-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.wk-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5;
}
.wk-list li i { color: var(--accent2); font-size: 12px; flex-shrink: 0; margin-top: 2px; }

.wk-closing {
  font-size: 13px; color: var(--muted);
  font-style: italic; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 14px; margin-top: 4px; margin-bottom: 0 !important;
}

/* ============================================
   HOW WE WORK
   ============================================ */
.how-we-work-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}

.how-we-work-section::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(35,165,220,0.05) 0%, transparent 68%);
  pointer-events: none;
}

.how-we-work-section .section-title { margin-bottom: 56px; }
.how-we-work-section .section-title h2 span { color: var(--accent2); }

.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hww-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* Large ghost number */
.hww-number {
  position: absolute; top: -10px; right: 20px;
  font-size: 90px; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(35,165,220,0.1);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.35s;
}
.hww-card:hover .hww-number { -webkit-text-stroke-color: rgba(35,165,220,0.2); }

.hww-card:hover {
  background: rgba(35,165,220,0.06);
  border-color: rgba(35,165,220,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Bottom gradient bar */
.hww-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.hww-card:hover::after { transform: scaleX(1); }

.hww-card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent);
  margin-bottom: 20px; position: relative; z-index: 1;
  transition: background 0.3s, transform 0.3s;
}
.hww-card:hover .hww-card-icon { background: rgba(35,165,220,0.2); transform: scale(1.08); }

.hww-card h3 {
  font-size: 18px; font-weight: 700; color: var(--primary);
  margin-bottom: 14px; line-height: 1.3; position: relative; z-index: 1;
}
.hww-card > p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.72; margin-bottom: 14px; position: relative; z-index: 1;
}
.hww-label {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px !important; opacity: 0.85;
  position: relative; z-index: 1;
}
.hww-card .wk-list { position: relative; z-index: 1; }
.hww-card .wk-closing { position: relative; z-index: 1; }

/* ============================================
   WHO THRIVES HERE
   ============================================ */
.thrives-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(88deg, #041E2A, #000);
}

.thrives-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.thrives-content .section-title { margin-bottom: 24px; }
.thrives-content .section-title h2 span { color: var(--accent2); }
.thrives-content > p {
  font-size: 16px; color: rgba(255,255,255,0.68);
  line-height: 1.78; margin-bottom: 16px;
}

/* Thrives list */
.thrives-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
}

.thrives-list li {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 2px solid rgba(35,165,220,0.3);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.thrives-list li:hover {
  background: rgba(35,165,220,0.07);
  border-left-color: var(--accent);
  transform: translateX(5px);
}

.thrives-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent);
  transition: background 0.3s, transform 0.3s;
}
.thrives-list li:hover .thrives-icon {
  background: rgba(35,165,220,0.22); transform: scale(1.08);
}

.thrives-text h4 {
  font-size: 15px; font-weight: 700; color: var(--primary);
  margin-bottom: 6px; line-height: 1.3;
}
.thrives-text p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============================================
   JOIN THE TEAM — CTA
   ============================================ */
.careers-cta-section {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--bg);
}

.careers-cta-card {
  position: relative;
  border: 1px solid rgba(35,165,220,0.22);
  border-radius: 4px; overflow: hidden;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 80px);
  background: linear-gradient(135deg, rgba(4,18,32,0.98) 0%, rgba(2,10,20,0.96) 100%);
}

/* Corner glows */
.careers-cta-card .cta-glow-tl {
  position: absolute; top: -1px; left: -1px;
  width: 300px; height: 250px;
  background: radial-gradient(ellipse at top left, rgba(35,165,220,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.careers-cta-card .cta-glow-br {
  position: absolute; bottom: -1px; right: -1px;
  width: 300px; height: 250px;
  background: radial-gradient(ellipse at bottom right, rgba(44,161,153,0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Orbit ring decoration */
.careers-cta-orbit {
  position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(35,165,220,0.07);
  pointer-events: none;
}
.careers-cta-orbit::before {
  content: ''; position: absolute; inset: 55px;
  border-radius: 50%; border: 1px solid rgba(35,165,220,0.05);
}

.careers-cta-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.careers-cta-text .section-label { margin-bottom: 16px; }
.careers-cta-text h2 {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300; line-height: 1.45; margin: 0;
  color: var(--primary);
}
.careers-cta-text h2 span { font-weight: 800; color: var(--accent2); }

/* Action col */
.careers-cta-action {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
  min-width: 260px;
}

.careers-apply-btn {
  font-size: 15px; padding: 14px 36px; width: 100%;
  justify-content: center;
}
.careers-apply-btn i { font-size: 14px; }

.careers-email-line {
  display: flex; flex-direction: column; gap: 5px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
.careers-email-line span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.careers-email {
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: color 0.2s;
}
.careers-email:hover { color: var(--accent2); }

/* Bottom line */
.careers-cta-card .cta-bottom-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.45), rgba(44,161,153,0.3), transparent);
}

/* ============================================
   HERO ORBITAL ILLUSTRATION
   ============================================ */
.careers-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

/* Outer glow */
.careers-hero-visual::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(35,165,220,0.1) 0%, transparent 68%);
  pointer-events: none;
}

/* SVG orbital diagram */
.orbital-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
}

/* Earth body */
.earth-body {
  fill: url(#earthGrad);
  filter: drop-shadow(0 0 18px rgba(35,165,220,0.35));
}

/* Orbit rings */
.orbit-ring {
  fill: none;
  stroke: rgba(35,165,220,0.2);
  stroke-width: 1;
}
.orbit-ring-2 { stroke: rgba(44,161,153,0.18); }
.orbit-ring-3 { stroke: rgba(35,165,220,0.12); }

/* Animated satellite dots */
.sat-dot {
  fill: var(--accent, #23A5DC);
  filter: drop-shadow(0 0 5px rgba(35,165,220,0.8));
}
.sat-dot-2 { fill: #2CA199; filter: drop-shadow(0 0 5px rgba(44,161,153,0.8)); }
.sat-dot-3 { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)); }

/* Orbit animations */
.orbit-group-1 { animation: orbitCW 12s linear infinite; transform-origin: 230px 230px; }
.orbit-group-2 { animation: orbitCCW 18s linear infinite; transform-origin: 230px 230px; }
.orbit-group-3 { animation: orbitCW 26s linear infinite; transform-origin: 230px 230px; }

@keyframes orbitCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes orbitCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* Data stream lines */
.data-line {
  stroke: rgba(35,165,220,0.25);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dashMove 2s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -20; } }

/* Floating stat chips */
.hero-stat-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(4,18,32,0.92);
  border: 1px solid rgba(35,165,220,0.3);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  border-radius: 3px;
  animation: chipFloat 4s ease-in-out infinite alternate;
}
.hero-stat-chip:nth-child(2) { animation-delay: 1.3s; }
.hero-stat-chip:nth-child(3) { animation-delay: 2.6s; }

@keyframes chipFloat {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

.chip-top-right   { top: 28px;  right: 10px; }
.chip-bottom-left { bottom: 40px; left: 10px; }
.chip-mid-right   { top: 50%;  right: -10px; transform: translateY(-50%); }

.chip-icon { font-size: 16px; color: var(--accent, #23A5DC); flex-shrink: 0; }
.chip-icon.teal { color: #2CA199; }
.chip-info { display: flex; flex-direction: column; gap: 1px; }
.chip-num  { font-size: 16px; font-weight: 800; color: #fff; line-height: 1; }
.chip-txt  { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .careers-hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .careers-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .careers-hero-visual { height: 320px; order: -1; }
  .orbital-svg { max-width: 300px; }
  .chip-top-right { top: 10px; right: 0; }
  .chip-bottom-left { bottom: 10px; left: 0; }
  .chip-mid-right { right: 0; }
  .why-kepler-grid { grid-template-columns: 1fr; gap: 3px; }
  .how-we-work-grid { grid-template-columns: 1fr; gap: 16px; }
  .thrives-inner { grid-template-columns: 1fr; gap: 40px; }
  .careers-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .careers-cta-action { min-width: auto; width: 100%; max-width: 360px; }
  .careers-cta-orbit { display: none; }
}

@media (max-width: 640px) {
  .careers-hero-content h1 { font-size: 34px; }
  .careers-hero-actions { flex-direction: column; align-items: flex-start; }
  .careers-hero-callout { padding: 16px 18px; }
  .how-we-work-grid { grid-template-columns: 1fr; }
  .hww-number { font-size: 60px; }
  .careers-cta-card { padding: 36px 20px; }
  .careers-hero-visual { height: 260px; }
  .orbital-svg { max-width: 240px; }
  .hero-stat-chip { display: none; }
}