@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0d1117;
  --ink-soft: #161b22;
  --paper: #f4f5f0;
  --paper-card: #ffffff;
  --accent: #ffb454;
  --accent-soft: rgba(255, 180, 84, 0.14);
  --slate: #8b95a1;
  --text-dark: #1b1f26;
  --text-muted: #5b6472;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(13, 17, 23, 0.08);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  min-height: 100vh;
  color: var(--text-dark);
}

.container {
  display: flex;
  max-width: 1100px;
  margin: 48px auto;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

/* ============ BOOT SEQUENCE ============ */
.boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 10vw;
  font-family: var(--mono);
  color: #7ee787;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  max-width: 560px;
}

.boot-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.boot-line .ok { color: var(--accent); }

.boot-skip {
  margin-top: 26px;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.4px;
  opacity: 0.7;
}

/* ============ SIDEBAR (terminal window) ============ */
.sidebar {
  width: 34%;
  background: var(--ink);
  color: #e6e8eb;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--line-dark);
}

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

.dot.red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.7); }
.dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.7); }
.dot.green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.7); }

.term-path {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
}

.term-body {
  padding: 32px 34px 40px;
}

.prompt {
  color: var(--accent);
  font-family: var(--mono);
}

.prompt-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 6px;
}

.name {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 180, 84, 0.35);
}

.cursor {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 180, 84, 0.9), 0 0 20px rgba(255, 180, 84, 0.5);
  animation: blink 1.1s steps(1) infinite;
}

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

.role {
  font-size: 13.5px;
  color: var(--slate);
  font-family: var(--mono);
  margin: 0 0 8px;
}

.section {
  margin-top: 34px;
}

.section h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 14px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.contact-list .key {
  font-family: var(--mono);
  color: var(--accent);
  min-width: 62px;
  font-size: 12px;
}

.contact-list a {
  color: #e6e8eb;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid var(--line-dark);
}

.contact-list a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 180, 84, 0.5);
}

.skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.skills li::before {
  content: '#';
  opacity: 0.6;
  margin-right: 2px;
}

.skills li:hover {
  transform: translateY(-2px);
  background: rgba(255, 180, 84, 0.22);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 180, 84, 0.45);
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--slate);
  font-family: var(--mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.6), 0 0 8px rgba(39, 201, 63, 0.8); }
  70%  { box-shadow: 0 0 0 9px rgba(39, 201, 63, 0), 0 0 8px rgba(39, 201, 63, 0.8); }
  100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0), 0 0 8px rgba(39, 201, 63, 0.8); }
}

/* ============ CONTENT ============ */
.content {
  width: 66%;
  padding: 48px 52px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: #1f2937;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.18);
}

.content section + section {
  margin-top: 38px;
}

h2 {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: 23px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(255, 180, 84, 0.6);
}

.lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  border-radius: 8px;
  margin-top: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-left-width: 4px;
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.1), -3px 0 16px rgba(255, 180, 84, 0.25);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
}

.date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.school {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-light);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

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

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .cursor,
  .status-dot {
    animation: none;
  }
  .boot-overlay {
    display: none;
  }
  .card,
  .skills li {
    transition: none;
  }
}

/* ============ PRINT ============ */
@media print {
  body {
    background: white;
  }
  .container {
    box-shadow: none;
    margin: 0;
  }
  .sidebar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    margin: 20px;
  }

  .sidebar,
  .content {
    width: 100%;
  }

  .content {
    padding: 34px 26px;
  }

  .term-body {
    padding: 28px 26px 32px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 25px;
  }

  h2 {
    font-size: 20px;
  }

  .card {
    padding: 16px 18px;
  }

  .card-head {
    flex-direction: column;
    gap: 4px;
  }

  li {
    font-size: 13.5px;
  }
}
