:root {
  --color-bg: #020617;
  --color-bg-alt: rgba(15, 23, 42, 0.9);
  --color-surface: rgba(15, 23, 42, 0.95);
  --color-surface-soft: rgba(15, 23, 42, 0.9);
  --color-border: rgba(148, 163, 184, 0.3);
  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.2);
  --color-primary-strong: #1d4ed8;
  --color-text-main: #e5e7eb;
  --color-text-muted: #94a3b8;
  --color-text-soft: #cbd5f5;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-soft-light: 0 14px 30px rgba(15, 23, 42, 0.6);
  --max-width: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.25) 0, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.4) 0, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(79, 70, 229, 0.35) 0, transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.9) 0, rgba(15, 23, 42, 1) 55%);
}

.space-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.6) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 30%, rgba(148, 163, 184, 0.5) 0, transparent 55%),
    radial-gradient(1px 1px at 50% 70%, rgba(148, 163, 184, 0.4) 0, transparent 55%),
    radial-gradient(1px 1px at 20% 90%, rgba(248, 250, 252, 0.45) 0, transparent 55%);
  opacity: 0.75;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.96));
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #3b82f6, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #e5e7eb;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}

.logo-text {
  font-weight: 600;
  font-size: 0.98rem;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  margin: 3px 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero { padding-top: 5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.4rem, 3vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  max-width: 520px;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-soft);
  margin: 0 0 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--color-text-soft);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.hero-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(18px);
}

.hero-card-header h2 { margin: 0.4rem 0 0.4rem; font-size: 1.25rem; }

.hero-card-header p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}

.badge-green {
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.6);
}

.hero-card-body {
  margin-top: 1.2rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.25), transparent 55%);
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.metric { padding: 0.55rem 0; border-top: 1px solid rgba(148, 163, 184, 0.25); }
.metric:first-child { border-top: none; }

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.1rem;
}

.metric-value { font-size: 0.9rem; }

.timeline {
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  margin-left: 0.6rem;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.timeline-item { position: relative; }

.timeline-dot {
  position: absolute;
  left: -1.8rem;
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

.timeline-content h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }

.timeline-meta { margin: 0 0 0.8rem; font-size: 0.85rem; color: var(--color-text-muted); }

.timeline-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-soft);
  font-size: 0.93rem;
}

.timeline-content li + li { margin-top: 0.35rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft-light);
}

.card h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.card p { margin: 0 0 0.9rem; color: var(--color-text-muted); font-size: 0.9rem; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.card-list li { display: flex; gap: 0.4rem; align-items: flex-start; }

.card-list li::before { content: "•"; color: var(--color-primary); font-size: 0.9rem; margin-top: 0.15rem; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.cert-card {
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.98));
  border-radius: 1rem;
  padding: 1rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-card-muted {
  background: rgba(15, 23, 42, 0.9);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
}

.cert-card h3 { font-size: 0.98rem; margin: 0 0 0.35rem; }
.cert-org { margin: 0; font-size: 0.8rem; color: var(--color-text-muted); }
.cert-tags { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--color-text-soft); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  background: var(--color-surface-soft);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--color-border);
}

.project-card h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.project-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

.project-meta {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}

.contact-list a { color: var(--color-text-soft); text-decoration: none; }
.contact-list a:hover { color: #e5e7eb; text-decoration: underline; }

.contact-form {
  background: var(--color-surface);
  border-radius: 1.2rem;
  border: 1px solid var(--color-border);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft-light);
}

.contact-form h3 { margin: 0 0 0.4rem; }
.contact-hint { margin: 0 0 1rem; color: var(--color-text-muted); font-size: 0.8rem; }

.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 0.9rem; }
.contact-form label span { display: block; margin-bottom: 0.25rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--color-primary);
  border-color: var(--color-primary);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.96);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-note { opacity: 0.85; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-container { height: 58px; }

  .main-nav {
    position: fixed;
    inset: 58px 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 1.5rem 1.4rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle { display: inline-flex; }

  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .section { padding: 3.6rem 0; }
  .hero { padding-top: 3.2rem; }

  .cards-grid,
  .cert-grid,
  .projects-grid { grid-template-columns: minmax(0, 1fr); }

  .timeline { margin-left: 0.3rem; padding-left: 1.3rem; }
}


.eyebrow-white {
  color: #e5e7eb;
}


.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.focus-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.55);
}

.focus-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.focus-card p {
  margin: 0 0 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  border: 1px solid rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.14);
}

.target-roles {
  margin-top: 1.8rem;
  padding: 1.3rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.95));
}

.target-roles h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.target-roles-text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .focus-grid { grid-template-columns: minmax(0, 1fr); }
}


#galaxy-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.space-bg-fallback {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.28) 0, transparent 58%),
    radial-gradient(circle at 78% 14%, rgba(37, 99, 235, 0.42) 0, transparent 60%),
    radial-gradient(circle at 18% 82%, rgba(79, 70, 229, 0.35) 0, transparent 62%),
    radial-gradient(circle at 90% 85%, rgba(15, 23, 42, 0.9) 0, rgba(15, 23, 42, 1) 55%);
}

.hero-meta-small {
  display: inline-block;
  margin-left: 0.9rem;
  color: rgba(229, 231, 235, 0.88);
  opacity: 0.92;
}


.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.00) 18%),
    repeating-linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0.06),
      rgba(148, 163, 184, 0.06) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.08;
  mask-image: radial-gradient(circle at 50% 35%, black 0, rgba(0,0,0,0.65) 55%, transparent 78%);
}


.card::before,
.focus-card::before,
.project-card::before,
.cert-card::before,
.contact-form::before,
.hero-card::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56,189,248,0.0), rgba(56,189,248,0.9), rgba(37,99,235,0.9), rgba(79,70,229,0.0));
  opacity: 0.75;
  margin-bottom: 0.9rem;
}
