/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f4f0;
  --surface:     #ffffff;
  --surface-2:   #f0efe9;
  --border:      #d4d2cc;
  --border-dark: #1a1a1a;
  --text-1:      #1a1a1a;
  --text-2:      #555550;
  --text-3:      #999992;
  --accent:      #1a1a1a;
  --sans:        'Inter', sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --radius:      12px;
  --radius-sm:   6px;
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  padding: 0 0 60px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-1);
  border: 1.5px solid var(--text-1);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  gap: 16px;
}

.header-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
.header-links a:hover { color: var(--text-1); }

/* ── GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
  padding: 24px 28px;
  max-width: 1360px;
  margin: 0 auto;
}

/* ── BASE CARD ── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 4px 4px 0px var(--border-dark);
  transform: translate(-2px, -2px);
}

/* ── GRID SPANS ── */
/*
  Row 1: Identity(4) | Current Role(5) | Education(3)
  Row 2: Identity(4) | Awards(5)       | Education(3) — identity/edu span 2 rows
  Row 3: Terminal(3) | Skills(3)       | GIC(3)       | Army(3)
  Row 4: Ops(6)      | (fill)
*/
.card-identity  { grid-column: span 4; grid-row: span 2; }
.card-current   { grid-column: span 5; }
.card-edu       { grid-column: span 3; grid-row: span 2; }
.card-awards    { grid-column: span 5; }
.card-terminal  { grid-column: span 3; grid-row: span 2; }
.card-skills    { grid-column: span 3; }
.card-gic       { grid-column: span 3; }
.card-army      { grid-column: span 3; grid-row: span 2; }
.card-ops       { grid-column: span 6; }

/* ── CARD LABEL ── */
.card-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-1);
}

.card-company {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 2px;
  font-weight: 500;
}

.card-date {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 12px;
}

/* ── IDENTITY CARD ── */
.card-identity {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}

.card-identity-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--surface-2);
}

.avatar-initials {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}

.tagline {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.about-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.about-text strong { color: var(--text-1); font-weight: 600; }

.identity-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid var(--border-dark);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--surface);
}

.pill-link:hover {
  background: var(--text-1);
  color: var(--surface);
}

.pill-link:hover svg { fill: var(--surface); }

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: var(--mono);
}

/* ── BULLET LIST ── */
.bullet-list {
  list-style: none;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bullet-list li {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 10px;
  top: 3px;
}

/* ── SKILL TAGS ── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--mono);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--border-dark);
  color: var(--text-1);
  background: var(--surface);
}

/* ── EDUCATION CARD ── */
.card-edu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.edu-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--mono);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.edu-icon.smu {
  background: #e8e8f0;
  color: #2a2a7a;
  border: 1.5px solid #2a2a7a;
}

.edu-icon.tp {
  background: #f0e8e8;
  color: #7a1a1a;
  border: 1.5px solid #7a1a1a;
}

.edu-school  { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text-1); }
.edu-degree  { font-size: 12px; color: var(--text-2); font-weight: 500; }
.edu-field   { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.edu-date    { font-size: 11px; color: var(--text-3); font-family: var(--mono); margin-top: 4px; }
.edu-activity{ font-size: 11px; color: var(--text-3); margin-top: 2px; font-style: italic; }

.edu-divider {
  height: 1px;
  background: var(--border);
}

/* ── AWARDS CARD ── */
.card-awards {
  background: var(--surface);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.award-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  transition: all var(--transition);
}

.award-item:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--border-dark);
}

.award-gold   { border-top: 2.5px solid #b8941a; }
.award-silver { border-top: 2.5px solid #888; }
.award-bronze { border-top: 2.5px solid #8a5a2a; }

.award-place {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.award-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
  color: var(--text-1);
}

.award-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── SKILLS CARD ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.skill-block {
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: all var(--transition);
  cursor: default;
}

.skill-block:hover {
  border-color: var(--border-dark);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--border-dark);
}

.skill-block:hover .skill-name { color: var(--text-1); }

.skill-plus {
  border-style: dashed;
  opacity: 0.5;
}

.skill-name {
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text-2);
  display: block;
  transition: color var(--transition);
}

/* ── TERMINAL CARD ── */
.card-terminal {
  background: #1a1a1a;
  padding: 0;
  overflow: hidden;
  border-color: #1a1a1a;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: #777;
  margin-left: 6px;
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}

.t-prompt { color: #28c840; }
.t-cmd    { color: #7cb4ef; }
.t-out    { color: #aaa; padding-left: 12px; }
.t-green  { color: #28c840; }
.t-cursor { margin-top: 4px; }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: #28c840;
}

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

/* ── ROLE BADGE ── */
.role-badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  vertical-align: middle;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--text-1); }

/* ── PROJECTS CARD ── */
.card-projects {
  grid-column: span 12;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.project-item {
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-item:hover {
  border-color: var(--border-dark);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--border-dark);
  transform: translate(-2px, -2px);
}

.project-lang {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.project-lang.python {
  background: #e8eaf0;
  color: #2a4a7a;
  border: 1.5px solid #2a4a7a;
}

.project-lang.ts {
  background: #e0eef8;
  color: #1a5276;
  border: 1.5px solid #1a5276;
}

.project-lang.sh {
  background: #e8f0e8;
  color: #2a5a2a;
  border: 1.5px solid #2a5a2a;
}

.project-lang.html {
  background: #f0e8e8;
  color: #7a2a2a;
  border: 1.5px solid #7a2a2a;
}

.project-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.project-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  flex: 1;
}

.project-item .skill-tags {
  margin-top: auto;
}

/* ── ENTRY ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeUp 0.4s ease both;
}

.card:nth-child(1)  { animation-delay: 0.04s; }
.card:nth-child(2)  { animation-delay: 0.08s; }
.card:nth-child(3)  { animation-delay: 0.12s; }
.card:nth-child(4)  { animation-delay: 0.16s; }
.card:nth-child(5)  { animation-delay: 0.20s; }
.card:nth-child(6)  { animation-delay: 0.24s; }
.card:nth-child(7)  { animation-delay: 0.28s; }
.card:nth-child(8)  { animation-delay: 0.32s; }
.card:nth-child(9)  { animation-delay: 0.36s; }
.card:nth-child(10) { animation-delay: 0.40s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .card-identity  { grid-column: span 6; grid-row: span 1; }
  .card-current   { grid-column: span 6; }
  .card-edu       { grid-column: span 6; grid-row: span 1; }
  .card-awards    { grid-column: span 6; }
  .card-terminal  { grid-column: span 4; grid-row: span 1; }
  .card-skills    { grid-column: span 4; }
  .card-gic       { grid-column: span 4; }
  .card-army      { grid-column: span 6; grid-row: span 1; }
  .card-ops       { grid-column: span 6; }
  .awards-grid    { grid-template-columns: 1fr 1fr; }
  .projects-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .bento-grid { padding: 14px; gap: 10px; }
  .card { grid-column: span 12 !important; grid-row: span 1 !important; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .awards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
