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

:root {
  /* Resume (print/PDF) palette — change these two values to re-theme the whole resume */
  --resume-primary: #1b2a4a;
  --resume-secondary: #0f6f6e;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  line-height: 1.6;
  color: #c9d1d9;
  background-color: #05070a;
  padding: 2.5rem 1rem;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
}

/* minimalist tech-inspired background */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 22%, rgba(0, 248, 248, 0.12), transparent 55%);
  animation: bg-glow-pulse 9s ease-in-out infinite;
}

@keyframes bg-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow {
    animation: none;
  }
}

/* terminal window */
.term {
  max-width: 820px;
  margin: 0 auto;
  background-color: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #161b22;
  border-bottom: 1px solid #21262d;
}

.term-dots {
  display: flex;
  flex-shrink: 0;
  gap: 0.4rem;
}

.term-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.term-dot-red {
  background-color: #ff5f56;
}

.term-dot-yellow {
  background-color: #ffbd2e;
}

.term-dot-green {
  background-color: #00ff6a;
}

.term-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.8rem;
  color: #8b949e;
}

.term-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00ff6a;
  background-color: transparent;
  border: 1px solid #21262d;
  border-radius: 4px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.term-pdf-btn:hover {
  background-color: #00ff6a;
  color: #05070a;
}

.term-pdf-btn .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

.term-body {
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 0.9rem;
}

/* section headings */
.term-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #d2a8ff;
}

.term-heading:first-child {
  margin-top: 0;
}

.term-heading::before {
  content: '#';
  color: #8b949e;
  font-weight: 400;
}

/* closing prompt line */
.term-line {
  margin-top: 1.75rem;
  white-space: pre-wrap;
}

.term-user {
  color: #00ff6a;
}

.term-sep {
  color: #58a6ff;
  margin-right: 0.5rem;
}

.term-cmd {
  color: #e3b341;
}

.term-cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.2rem;
  background-color: #c9d1d9;
  vertical-align: text-bottom;
  animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* command output */
.term-output {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  color: #c9d1d9;
}

.output-line {
  margin-bottom: 0.2rem;
}

.output-label {
  color: #00ff6a;
  font-weight: 700;
}

.output-error {
  color: #f85149;
}

/* contact */
.contact-list {
  list-style: none;
}

.contact-item {
  margin-bottom: 0.25rem;
}

.field-label {
  color: #8b949e;
  margin-right: 0.4rem;
}

.term-link {
  color: #58a6ff;
  text-decoration: none;
}

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

/* experience */
.job {
  margin-bottom: 1.5rem;
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  color: #d2a8ff;
}

.job-title {
  font-weight: 700;
}

.job-at {
  color: #8b949e;
  margin: 0 0.3rem;
}

.job-company {
  color: #00ff6a;
}

.job-meta {
  color: #8b949e;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.job-list {
  list-style: none;
}

.job-list-item {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  color: #c9d1d9;
}

.job-list-item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #58a6ff;
}

/* education */
.edu-item {
  margin-bottom: 0.5rem;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-degree {
  color: #00ff6a;
  font-weight: 700;
}

.edu-school,
.edu-location {
  color: #c9d1d9;
}

/* skills */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.skill-key {
  color: #ffbd2e;
  min-width: 6.5rem;
}

.skill-value {
  color: #c9d1d9;
}

/* footer */
.term-footer {
  max-width: 820px;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: #484f58;
}

/* resume (print/PDF export) — hidden on screen, shown only when printing */
.resume-print {
  display: none;
}

@media (max-width: 600px) {
  .term-bar {
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
  }

  .term-title {
    font-size: 0.7rem;
  }

  .term-pdf-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }

  .term-body {
    padding: 1rem;
    font-size: 0.82rem;
  }

  .skill-row {
    flex-direction: column;
    gap: 0.1rem;
  }

  .skill-key {
    min-width: 0;
  }
}

/* print / PDF export */
@media print {
  @page {
    margin: 0.55in 0.6in;
  }

  body {
    background-color: #fff;
    background-image: none;
    color: #1a1a1a;
    padding: 0;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .term,
  .term-footer,
  .bg-canvas,
  .bg-glow {
    display: none;
  }

  .resume-print {
    display: block;
    max-width: 100%;
    margin: 0;
  }

  .resume-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-bottom: 1.5px solid var(--resume-secondary);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
  }

  .resume-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 24pt;
    font-weight: 700;
    color: var(--resume-primary);
    letter-spacing: 0.02em;
  }

  .resume-title {
    font-size: 12pt;
    font-weight: 600;
    color: var(--resume-secondary);
  }

  .resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.6rem;
    list-style: none;
    margin-top: 0.35rem;
    font-size: 9.5pt;
    color: #444;
  }

  .resume-contact li:not(:last-child)::after {
    content: '•';
    margin-left: 0.6rem;
    color: var(--resume-secondary);
  }

  .resume-section {
    margin-bottom: 0.9rem;
  }

  .resume-section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 12.5pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--resume-primary);
    border-bottom: 1.5px solid var(--resume-secondary);
    padding-bottom: 0.2rem;
    margin-bottom: 0.55rem;
  }

  .resume-job {
    margin-bottom: 0.75rem;
    page-break-inside: avoid;
  }

  .resume-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
  }

  .resume-job-title {
    font-weight: 700;
    color: var(--resume-primary);
  }

  .resume-job-company {
    font-weight: 600;
    color: var(--resume-secondary);
  }

  .resume-job-dates {
    font-size: 9pt;
    font-style: italic;
    color: #666;
    white-space: nowrap;
  }

  .resume-job-location {
    font-size: 9pt;
    color: #666;
    margin-bottom: 0.3rem;
  }

  .resume-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .resume-bullets li {
    position: relative;
    padding-left: 0.9rem;
  }

  .resume-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--resume-secondary);
    font-weight: 700;
  }

  .resume-edu-item {
    margin-bottom: 0.3rem;
  }

  .resume-edu-degree {
    font-weight: 700;
    color: var(--resume-primary);
  }

  .resume-edu-school {
    color: #333;
  }

  .resume-skills {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .resume-skill-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    column-gap: 0.6rem;
  }

  .resume-skill-key {
    font-weight: 700;
    color: var(--resume-primary);
    white-space: nowrap;
  }

  .resume-skill-value {
    color: #333;
  }
}


