/* Base Typography and Layout */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #111827;
  --border: #e5e7eb;
  --link: #2563eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

h1, h2 {
  line-height: 1.25;
  margin: 0 0 12px 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

p { margin: 0 0 10px 0; }

a { color: var(--link); text-decoration: none; }

a:hover { text-decoration: underline; }

.header { margin-bottom: 8px; }

.name { margin-bottom: 6px; }

.contact, .links {
  color: var(--muted);
  font-size: 14px;
}

.sep {
  color: var(--border);
  margin: 0 8px;
}

.hero { margin: 18px 0 8px; }

.quicklinks { font-size: 14px; margin-top: 28px; }

.item {
  padding: 10px 0 8px;
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.item-title {
  font-weight: 600;
  margin-right: 8px;
}

.item-sub {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.item-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.item-detail {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.skills {
  padding-left: 18px;
  margin: 6px 0 0;
}

.bullets {
  padding-left: 18px;
  margin: 6px 0 0;
}

.footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-button:hover {
  color: var(--text);
  background-color: #f9fafb;
  border-color: var(--text);
  text-decoration: none;
}

.back-button::before {
  content: "←";
  font-size: 16px;
  font-weight: 600;
}

/* Blog Post Styling */
.blog-post {
  margin-top: 20px;
}

.blog-post-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.blog-post-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: var(--text);
}

.blog-post-content {
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-post-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 10px 0;
  color: var(--accent);
}

.blog-post-content p {
  margin-bottom: 16px;
}

.blog-post-content strong {
  font-weight: 600;
  color: var(--accent);
}

.blog-post-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.blog-post-content a:hover {
  text-decoration-thickness: 2px;
}

.blog-post-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-post-links a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 8px;
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.blog-post-links a:hover {
  background-color: #f9fafb;
  border-color: var(--text);
  text-decoration: none;
}

/* Publication Button Styling */
.publication-button {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--link);
  background-color: transparent;
  border: 1px solid var(--link);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.publication-button:hover {
  color: #ffffff;
  background-color: var(--link);
  border-color: var(--link);
  text-decoration: none;
}

.publication-button::before {
  content: "📄";
  margin-right: 4px;
  font-size: 11px;
}

/* Open Source Highlight Cards */
.oss-highlight {
  margin: 28px 0 8px;
}

.oss-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.oss-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
}

.oss-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.oss-card-title a {
  color: var(--accent);
  text-decoration: none;
}

.oss-card-title a:hover {
  color: var(--link);
}

.oss-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.oss-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
}

.oss-card-link {
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
}

.oss-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .oss-cards {
    grid-template-columns: 1fr;
  }
}

/* Git Graph Section */
.git-graph-section {
  margin: 28px 0 8px;
}

.git-graph-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.git-graph-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  flex: 1;
}

.git-graph-viewall {
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
  margin-left: 12px;
}

.git-graph-viewall:hover { text-decoration: underline; }

.git-graph {
  font-size: 13px;
  font-family: 'Inter', system-ui, monospace;
}

.exp-section { margin: 28px 0 28px; }

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.exp-card-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

.gg-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.gg-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gg-legend-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gg-row {
  display: grid;
  grid-template-columns: 68px 28px 28px 28px minmax(200px, 1fr);
  width: 100%;
  align-items: center;
  min-height: 32px;
  position: relative;
}

.gg-row:hover { background: #f9fafb; border-radius: 4px; }

.gg-date {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 8px;
}

.gg-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 32px;
}

.gg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.gg-dot-qemu  { background: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.gg-dot-mcp   { background: #7c3aed; box-shadow: 0 0 0 1px #7c3aed; }
.gg-dot-svsm  { background: #0d9488; box-shadow: 0 0 0 1px #0d9488; }

.gg-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.gg-line-qemu        { background: #2563eb; }
.gg-line-mcp         { background: #7c3aed; }
.gg-line-mcp-faint   { background: #c4b5fd; }
.gg-line-svsm        { background: #0d9488; }
.gg-line-svsm-faint  { background: #5eead4; }

.gg-line-end,
.gg-row-last .gg-line {
  bottom: 50%;
}

.gg-col-qemu { grid-column: 2; }
.gg-col-mcp  { grid-column: 3; }
.gg-col-svsm { grid-column: 4; }

.gg-msg {
  grid-column: 5;
  min-width: 0;
  padding: 6px 0 6px 10px;
  color: var(--text);
  line-height: 1.4;
}

.gg-msg a {
  color: var(--text);
  text-decoration: none;
}

.gg-msg a:hover { color: var(--link); text-decoration: underline; }

.gg-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  vertical-align: middle;
}

.gg-tag-review {
  background: #fef3c7;
  color: #92400e;
}

.gg-row-merge .gg-msg a { color: var(--accent); }

@media (max-width: 480px) {
  .gg-lanes { grid-template-columns: 52px 22px 22px 22px 1fr; }
  .gg-row   { grid-template-columns: 52px 22px 22px 22px 1fr; }
  .gg-date  { font-size: 10px; }
}

/* Progress Bar Section */
.progress-section {
  margin: 40px 0;
  padding: 30px 0;
  overflow: visible;
}

.progress-title {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
  margin: 18px 0 0 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
}

.progress-title::before {
  content: '"';
  color: var(--muted);
}

.progress-title::after {
  content: '"';
  color: var(--muted);
}

.progress-container {
  position: relative;
  width: 100%;
  padding: 0 10px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #9ca3af;
  border-radius: 2px;
  overflow: visible;
  margin-bottom: 35px;
  margin-top: 75px;
  box-shadow: 
    0 0 6px rgba(192, 192, 192, 0.3),
    0 0 12px rgba(192, 192, 192, 0.2);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #000000;
  border-radius: 2px;
  box-shadow: 
    0 0 8px rgba(192, 192, 192, 1),
    0 0 16px rgba(192, 192, 192, 0.9),
    0 0 24px rgba(192, 192, 192, 0.7),
    0 0 32px rgba(192, 192, 192, 0.5),
    0 0 40px rgba(192, 192, 192, 0.3);
  animation: progressGlow 2s ease-in-out infinite alternate;
  transition: width 1.5s ease-out;
}

@keyframes progressGlow {
  from {
    box-shadow: 
      0 0 8px rgba(192, 192, 192, 1),
      0 0 16px rgba(192, 192, 192, 0.9),
      0 0 24px rgba(192, 192, 192, 0.7),
      0 0 32px rgba(192, 192, 192, 0.5),
      0 0 40px rgba(192, 192, 192, 0.3);
  }
  to {
    box-shadow: 
      0 0 12px rgba(192, 192, 192, 1),
      0 0 20px rgba(192, 192, 192, 1),
      0 0 32px rgba(192, 192, 192, 0.8),
      0 0 44px rgba(192, 192, 192, 0.6),
      0 0 56px rgba(192, 192, 192, 0.4);
  }
}

.checkpoint-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.checkpoint-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.checkpoint-label-start {
  text-align: left;
  flex: 0 0 auto;
}

.checkpoint-label-mid {
  text-align: center;
  flex: 1;
}

.checkpoint-label-end {
  text-align: right;
  flex: 0 0 auto;
}

.energy-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.arrow-spacer {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
  flex: 0 0 auto;
}

.checkpoint {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkpoint-start {
  left: 0%;
}

.checkpoint-mid {
  left: 50%;
}

.checkpoint-end {
  left: 100%;
}

.checkpoint-marker {
  width: 12px;
  height: 12px;
  background-color: #000000;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(192, 192, 192, 0.6),
    0 0 16px rgba(255, 255, 255, 0.4);
  animation: dotGlow 2s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes dotGlow {
  from {
    box-shadow: 
      0 0 8px rgba(255, 255, 255, 0.9),
      0 0 12px rgba(192, 192, 192, 0.6),
      0 0 16px rgba(255, 255, 255, 0.4);
    transform: scale(1);
  }
  to {
    box-shadow: 
      0 0 12px rgba(255, 255, 255, 1),
      0 0 18px rgba(192, 192, 192, 0.8),
      0 0 24px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
  }
}

.milestone {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 5;
}

.milestone-1 {
  left: 15%;
}

.milestone-2 {
  left: 40%;
}

.milestone-flag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  line-height: 1;
  color: #000000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: flagWave 3s ease-in-out infinite;
  transform-origin: bottom left;
}

@keyframes flagWave {
  0%, 100% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(-3deg);
  }
  75% {
    transform: translateX(-50%) rotate(3deg);
  }
}

.milestone-text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 2px 0;
  width: 150px;
  line-height: 1.3;
}

.milestone-text:hover {
  color: var(--link);
  text-decoration: none;
  transform: translateX(-50%) translateY(-2px);
}

.milestone-award {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  white-space: nowrap;
}

.award-trophy {
  font-size: 12px;
  filter: grayscale(100%) brightness(0);
}

.award-text {
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.award-text:hover {
  color: var(--link);
  text-decoration: underline;
}

.progress-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  gap: 12px;
}

.beginning-label {
  font-weight: 600;
  color: var(--muted);
  flex: 0 0 auto;
}

.goal-label {
  font-weight: 600;
  color: var(--muted);
  flex: 0 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progress-section {
    padding: 20px 0;
    overflow: visible;
  }

  .progress-container {
    padding: 0 15px;
  }

  .progress-title {
    font-size: 12px;
    padding: 0 10px;
    margin: 24px 0 0 0;
  }

  .milestone-text {
    font-size: 10px;
    width: 100px;
    bottom: 42px;
  }

  .milestone-flag {
    font-size: 28px;
  }

  .award-text {
    font-size: 8px;
    white-space: normal;
    max-width: 100px;
    line-height: 1.2;
  }

  .award-trophy {
    font-size: 10px;
  }

  .milestone-award {
    top: 6px;
    flex-wrap: wrap;
    max-width: 100px;
  }

  .checkpoint-label {
    font-size: 14px;
  }

  .progress-track {
    margin-top: 60px;
  }

  .milestone-1 {
    left: 15%;
  }

  .milestone-2 {
    left: 40%;
  }
}

@media (max-width: 480px) {
  .progress-section {
    padding: 15px 0;
    overflow: visible;
  }

  .progress-container {
    padding: 0 15px;
  }

  .progress-title {
    font-size: 10px;
    padding: 0 5px;
    line-height: 1.3;
    margin: 28px 0 0 0;
  }

  .milestone-text {
    font-size: 8px;
    width: 70px;
    bottom: 36px;
    line-height: 1.2;
  }

  .milestone-flag {
    font-size: 22px;
  }

  .award-text {
    font-size: 7px;
    white-space: normal;
    max-width: 80px;
    line-height: 1.2;
  }

  .award-trophy {
    font-size: 8px;
  }

  .milestone-award {
    top: 5px;
    flex-wrap: wrap;
    max-width: 80px;
  }

  .checkpoint-label {
    font-size: 11px;
  }

  .progress-track {
    margin-top: 50px;
    margin-bottom: 28px;
  }

  .milestone-1 {
    left: 13%;
  }

  .milestone-2 {
    left: 40%;
  }

  .checkpoint-marker {
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
  }
}

@media (min-width: 900px) {
  h1 { font-size: 32px; }
}
