* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fg: #DDE6ED;
  --fg-dim: #9eaab5;
  --fg-accent: #c8c896;
  --bg: #1a2332;
  --bg-card: #212d3f;
  --bg-card-hover: #283750;
  --bg-secondary: #3a4f6a;
  --border: #2e4058;
  --accent-glow: rgba(200, 200, 150, 0.08);
  --green: #7ec699;
  --blue: #6cb6ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

/* ---- Floating Nav ---- */
nav {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--fg);
  background: var(--bg-secondary);
}

/* ---- Main ---- */
main {
  max-width: 740px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

a {
  color: var(--fg-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* ---- Header / Hero ---- */
header {
  margin-bottom: 4rem;
}

.greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.terminal-prompt {
  color: var(--blue);
  margin-right: 0.5rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--fg-accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.link-pill, .location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-dim);
  transition: all 0.2s;
}

.link-pill:hover {
  background: var(--bg-card-hover);
  color: var(--fg);
  border-color: var(--bg-secondary);
  opacity: 1;
}

.location-pill {
  cursor: default;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

.hero-illustration {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Forward stream: pod-1 → pod-2 (top lane) */
.flow-fwd { animation: flow-fwd 4s linear infinite; animation-fill-mode: backwards; }
.flow-fwd.f1 { animation-delay: 0s; }
.flow-fwd.f2 { animation-delay: 1.33s; }
.flow-fwd.f3 { animation-delay: 2.66s; }

@keyframes flow-fwd {
  0%   { transform: translate(65px, 45px); opacity: 0; }
  10%  { opacity: 0.2; }
  30%  { opacity: 0.5; }
  50%  { transform: translate(200px, 45px); opacity: 1; }
  70%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translate(335px, 45px); opacity: 0; }
}

/* Reverse stream: pod-2 → pod-1 (bottom lane) */
.flow-rev { animation: flow-rev 4s linear infinite; animation-fill-mode: backwards; }
.flow-rev.r1 { animation-delay: 0s; }
.flow-rev.r2 { animation-delay: 1.33s; }
.flow-rev.r3 { animation-delay: 2.66s; }

/* Data dots: magnifying glass → dashboard (follow curve) */
.data-dot {
  offset-path: path("M200 23 C200 0 490 0 490 25");
  animation: data-ship 2.5s linear infinite;
  animation-fill-mode: backwards;
}
.data-dot.dd1 { animation-delay: 0s; }
.data-dot.dd2 { animation-delay: 1.25s; }

@keyframes data-ship {
  0%   { offset-distance: 0%; opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes flow-rev {
  0%   { transform: translate(335px, 65px); opacity: 0; }
  10%  { opacity: 0.2; }
  30%  { opacity: 0.5; }
  50%  { transform: translate(200px, 65px); opacity: 1; }
  70%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translate(65px, 65px); opacity: 0; }
}

.about-highlights {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---- Role Awards ---- */
.role-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.role-award {
  background: var(--accent-glow);
  border: 1px solid rgba(200, 200, 150, 0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.role-award summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.role-award summary::-webkit-details-marker {
  display: none;
}

.role-award summary::marker {
  content: '';
}

.role-award p {
  padding: 0 0.75rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-dim);
  line-height: 1.5;
}

.award-year {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-weight: 400;
  margin-left: 0.2rem;
}

/* ---- Sections ---- */
section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--fg-accent);
  font-weight: 400;
}

h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-bottom: 0.6rem;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.skill-category:hover {
  border-color: var(--bg-secondary);
}

.skill-category.learning {
  border-color: rgba(200, 200, 150, 0.2);
  background: var(--accent-glow);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--fg);
  font-weight: 500;
  transition: transform 0.15s;
}

.tags i {
  font-size: 1.1rem;
}

.tags .icon-wireshark,
.tags .icon-cf,
.tags .icon-vsphere,
.tags .icon-aws {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.tags .icon-wireshark {
  fill: #1679A7;
}

.tags span:hover {
  transform: translateY(-1px);
}

.tags .learning-tag {
  background: rgba(200, 200, 150, 0.15);
  color: var(--fg-accent);
  border: 1px solid rgba(200, 200, 150, 0.2);
}

/* ---- CTA Banner ---- */
.cta-banner {
  margin-bottom: 2rem;
}

.cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.cta-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--accent-glow);
  border: 1px solid rgba(200, 200, 150, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
}

.cta-card:hover {
  border-color: rgba(200, 200, 150, 0.35);
  background: rgba(200, 200, 150, 0.12);
  opacity: 1;
}

.cta-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.cta-desc {
  font-size: 0.8rem;
  color: var(--fg-dim);
  line-height: 1.4;
}

.cta-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-accent);
  margin-top: 0.35rem;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg-secondary);
  z-index: 1;
}

.timeline-marker.current {
  border-color: var(--fg-accent);
  box-shadow: 0 0 0 4px rgba(200, 200, 150, 0.15);
}

.timeline-marker.current::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fg-accent);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-content:hover {
  border-color: var(--bg-secondary);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.job-header h3 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  margin-bottom: 0;
}

.tenure {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.role {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.role + .role {
  margin-top: 1.25rem;
}

.role-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.role-dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--fg-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  top: 3px;
}

li strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---- Education ---- */
.education-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.edu-icon {
  color: var(--fg-accent);
  flex-shrink: 0;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding-top: 3rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-dim);
  opacity: 0.4;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  nav {
    position: sticky;
    top: 0;
    margin: 0 -1.5rem 1.5rem;
    border-radius: 0;
    justify-content: center;
    border-left: none;
    border-right: none;
  }

  main {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .skills-grid,
  .cta-items {
    grid-template-columns: 1fr;
  }

  .role-awards {
    flex-direction: column;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
