:root {
  --bg: #0f1115;
  --bg-alt: #161922;
  --text: #e6e8ec;
  --text-dim: #9aa1ac;
  --accent: #5ec9a0;
  --border: #262b36;
  --placeholder-bg: #2a2115;
  --placeholder-text: #d8a94a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
}

.navbar a,
.navbar a:link,
.navbar a:visited {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.navbar a:hover {
  color: var(--accent);
}

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.terminal {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: #14171f;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 0.6rem;
  color: var(--text-dim);
  font-family: monospace;
  font-size: 0.8rem;
}

.terminal-body {
  padding: 1.2rem 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  min-height: 130px;
}

.terminal-body .prompt {
  color: var(--accent);
}

.terminal-body .output {
  color: var(--text);
  padding: 0.1rem 0 0.6rem 0;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s step-start infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border);
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  caret-color: var(--accent);
}

.terminal-input:focus {
  border-bottom-color: var(--accent);
}

.terminal-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.resume-contact {
  color: var(--text-dim);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.resume-contact a {
  color: var(--accent);
  text-decoration: none;
}

.resume-contact a:hover {
  text-decoration: underline;
}

.block {
  margin-bottom: 2rem;
}

.block h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.entry-date {
  color: var(--text-dim);
  font-weight: 400;
}

.entry-org {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline {
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.6rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--text-dim);
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 201, 160, 0.15);
}

.timeline-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.timeline-title {
  font-weight: 600;
}

.timeline-status {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.timeline-item.active .timeline-status {
  color: var(--accent);
}

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

.skill-tags li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.card ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.placeholder-card {
  border-style: dashed;
  opacity: 0.7;
}

.placeholder {
  color: var(--placeholder-text);
  background: var(--placeholder-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.subhead {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.project-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: var(--bg-alt);
}

.contact-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: var(--bg-alt);
}

.contact-link:hover {
  border-color: var(--accent);
}

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 2rem 1.5rem 3rem;
}

@media (max-width: 480px) {
  .navbar {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .entry-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .timeline-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .project-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
