@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════
   COLOUR TOKENS — dark (default)
══════════════════════════════════════════ */
:root {
  --bg:         #161618;
  --bg-2:       #111113;
  --bg-3:       #1c1c1f;
  --bg-card:    #1a1a1d;
  --rule:       #272729;
  --rule-2:     #505058;
  --cream:      #f0ebe2;
  --cream-dim:  #a09890;
  --cream-pale: #2a2825;
  --off:        #e8e3da;
  --muted:      #9c9890;
  --body-text:  #d8d4ce;
  --year:       #524f5a;   /* comp year — purple-grey, clearly distinct from dark bg AND body text */
  --serif:      'Cormorant Garamond', Georgia, serif;
  --ui:         'Outfit', sans-serif;
  --aside-w:    240px;
}

/* ══════════════════════════════════════════
   COLOUR TOKENS — light
══════════════════════════════════════════ */
[data-theme="light"] {
  --bg:         #f5f3ef;
  --bg-2:       #eeebe5;
  --bg-3:       #e8e4dd;
  --bg-card:    #f0ece6;
  --rule:       #d8d2c8;
  --rule-2:     #c8c0b4;
  --cream:      #1a1816;
  --cream-dim:  #5a524a;
  --cream-pale: #d8d2c8;
  --off:        #2a2420;
  --muted:      #7a726a;
  --body-text:  #3a3430;
  --year:       #c0b8ae;   /* light year — muted warm grey against paper */
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }

/* ══════════════════════════════════════════
   BODY — flat bg matching aortasec.eu portfolio
══════════════════════════════════════════ */
body {
  font-family: var(--ui);
  font-weight: 300;
  color: var(--body-text);
  min-height: 100vh;
  background: var(--bg-2);
  transition: color 0.25s, background 0.25s;
}

[data-theme="light"] body {
  background: var(--bg-2);
}

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════ */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--muted);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--cream);
  border-color: var(--cream-dim);
  background: rgba(255,255,255,0.04);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.cv-shell { display: flex; min-height: 100vh; }

/* ── aside ── */
.cv-aside {
  width: var(--aside-w);
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 50; overflow-y: auto;
  transition: background 0.25s, border-color 0.25s;
}

.aside-logo {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--rule);
}
.aside-mono {
  font-family: var(--serif);
  font-size: 2.3rem; font-weight: 300;
  color: var(--cream); line-height: 0.9;
  letter-spacing: -0.01em;
}
.aside-mono em { font-style: italic; color: var(--cream-dim); }
.aside-handle {
  margin-top: 8px;
  font-size: 0.59rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

.aside-block {
  padding: 15px 24px;
  border-bottom: 1px solid var(--rule);
}
.aside-label {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px;
}

/* nav links */
.aside-nav { display: flex; flex-direction: column; }
.aside-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
  color: var(--muted); font-size: 0.79rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.18s, transform 0.18s, padding-left 0.18s;
}
.aside-nav a:last-child { border-bottom: none; }
.aside-nav a:hover   { color: var(--cream); transform: translateX(3px); }
.aside-nav a.active  { color: var(--cream); padding-left: 6px; border-left: 2px solid var(--cream-dim); }
.nav-num { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; }

/* contact */
.aside-contact { display: flex; flex-direction: column; }
.aside-ci {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 0; border-bottom: 1px solid var(--rule);
}
.aside-ci:last-child { border-bottom: none; }
.aside-ci small {
  font-size: 0.59rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.aside-ci span, .aside-ci a {
  font-size: 0.79rem; color: var(--off);
  font-weight: 400; word-break: break-word;
  transition: color 0.15s;
}
.aside-ci a:hover { color: var(--cream); }

/* skills 2-col */
.aside-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; list-style: none; }
.aside-skills li {
  font-size: 0.72rem; color: var(--body-text);
  padding-top: 6px; border-top: 1px solid var(--rule); line-height: 1.4;
}

/* languages */
.aside-langs { list-style: none; display: flex; flex-direction: column; }
.aside-langs li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.82rem; color: var(--off);
}
.aside-langs li:last-child { border-bottom: none; }
.lang-lvl { font-size: 0.59rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* footer row: status + toggle */
.aside-foot {
  margin-top: auto; padding: 14px 24px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}

/* ── lang toggle ── */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--muted);
  height: 34px;
  padding: 0 8px;
  font-family: var(--ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  color: var(--cream);
  border-color: var(--cream-dim);
  background: rgba(255,255,255,0.04);
}
.aside-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6dbe8d; flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(109,190,141,0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(109,190,141,0);    }
}

/* ── main content ── */
.cv-main {
  margin-left: var(--aside-w);
  flex: 1; min-height: 100vh;
  background: var(--bg);
  transition: background 0.25s;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.cv-hero {
  padding: 52px 56px 40px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 60%);
  position: relative;
}
.cv-hero::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--cream-dim), transparent);
  opacity: 0.28;
}
.hero-eyebrow {
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 300; color: var(--cream);
  line-height: 0.88; letter-spacing: -0.02em;
}
.hero-name em { font-style: italic; color: var(--cream-dim); }
.hero-role {
  margin-top: 18px; font-size: 0.69rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.hero-bio {
  margin-top: 22px; font-size: 0.96rem;
  line-height: 1.88; color: var(--body-text);
  font-weight: 300; max-width: 660px;
}
.hero-bio strong { color: var(--cream); font-weight: 500; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--rule-2);
  color: var(--cream-dim); background: transparent;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn:hover { border-color: var(--cream); color: var(--cream); background: rgba(240,235,226,0.04); }
.btn-primary { background: var(--cream); color: var(--bg-2); border-color: var(--cream); }
.btn-primary:hover { background: var(--off); color: var(--bg-2); }

/* ══════════════════════════════════════════
   STAT ROW
══════════════════════════════════════════ */
.stat-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2); transition: background 0.25s;
}
.stat-cell { padding: 18px 40px; border-right: 1px solid var(--rule); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: var(--cream); line-height: 1; }
.stat-lbl { margin-top: 4px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.cv-section { border-bottom: 1px solid var(--rule); scroll-margin-top: 0; }
.sec-head   { padding: 32px 56px 0; border-top: 1px solid var(--rule); }
.sec-heading { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.sec-heading h2 {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  font-style: italic; color: var(--cream); letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.tl { padding: 0 56px; }
.tl-row {
  display: grid; grid-template-columns: 175px 1fr;
  gap: 0 36px; padding: 28px 0;
  border-bottom: 1px solid var(--rule); align-items: start;
}
.tl-row:last-child { border-bottom: none; padding-bottom: 32px; }
.tl-meta { padding-top: 3px; }
.tl-date { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--cream-dim); margin-bottom: 4px; }
.tl-loc  { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.tl-type { display: inline-block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-2); padding: 2px 8px; }
.tl-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--cream); margin-bottom: 2px; line-height: 1.15; }
.tl-org   { font-size: 0.73rem; font-weight: 500; color: var(--cream-dim); letter-spacing: 0.06em; margin-bottom: 12px; }
.tl-body p { font-size: 0.86rem; line-height: 1.82; color: var(--body-text); font-weight: 300; }
.tl-body ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tl-body ul li { font-size: 0.9rem; line-height: 1.72; color: var(--body-text); font-weight: 300; padding-left: 18px; position: relative; }
.tl-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--rule-2); font-size: 0.75rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag  { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim); border: 1px solid var(--rule-2); padding: 4px 10px; transition: border-color 0.2s, color 0.2s; }
.tag:hover { border-color: var(--cream-dim); color: var(--cream); }

/* ══════════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════════ */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); }
.cert-card { background: var(--bg); padding: 22px 26px; display: flex; flex-direction: column; gap: 5px; transition: background 0.2s; }
.cert-card:hover { background: var(--bg-card); }
.cert-when   { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.cert-name   { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--cream); line-height: 1.2; margin-top: 2px; }
.cert-issuer { font-size: 0.74rem; color: var(--cream-dim); }
.cert-topics { font-size: 0.85rem; color: var(--body-text); font-weight: 300; line-height: 1.55; margin-top: 4px; }

/* ══════════════════════════════════════════
   COMPETITIONS
══════════════════════════════════════════ */
.comp-list { display: flex; flex-direction: column; padding: 0 56px; }
.comp-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 0 28px; padding: 24px 56px;
  margin: 0 -56px;
  border-bottom: 1px solid var(--rule);
  align-items: start; transition: background 0.18s;
}
.comp-row:last-child { border-bottom: none; padding-bottom: 32px; }
.comp-row:hover { background: rgba(255,255,255,0.012); }

/* year — large serif, cream-dim so it reads clearly against dark bg */
.comp-yr {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1;
  padding-top: 3px;
  letter-spacing: -0.01em;
  user-select: none;
  opacity: 0.55;
}

.comp-name { font-size: 1.05rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.comp-org  { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.comp-desc { font-size: 0.89rem; line-height: 1.77; color: var(--body-text); font-weight: 300; max-width: 560px; }
.comp-badge { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--rule-2); padding: 5px 12px; color: var(--cream-dim); white-space: nowrap; margin-top: 3px; transition: border-color 0.2s; }
.comp-badge:hover { border-color: var(--cream-dim); }

/* ══════════════════════════════════════════
   TRAITS / SOFT SKILLS
══════════════════════════════════════════ */
.traits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trait-card {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid transparent;
  transition: background 0.2s, border-top-color 0.2s;
}
.trait-card:hover {
  background: var(--bg-card);
  border-top-color: var(--cream-dim);
}
.trait-icon {
  color: var(--cream-dim);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.trait-card:hover .trait-icon { opacity: 1; }
.trait-label {
  font-size: 1.00rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-transform: uppercase;
}
.trait-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body-text);
  font-weight: 300;
}


.cv-footer {
  padding: 14px 56px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; color: var(--muted);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--bg-2);
  transition: background 0.25s;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.48s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.04s; }
.fade-up:nth-child(2) { animation-delay: 0.11s; }
.fade-up:nth-child(3) { animation-delay: 0.18s; }
.fade-up:nth-child(4) { animation-delay: 0.25s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .cv-aside   { position: static; width: 100%; min-height: auto; border-right: none; border-bottom: 1px solid var(--rule); }
  .cv-shell   { flex-direction: column; }
  .cv-main    { margin-left: 0; }
  .aside-skills { grid-template-columns: repeat(3, 1fr); }
  .cv-hero    { padding: 36px 28px 28px; }
  .stat-cell  { padding: 14px 24px; }
  .sec-head   { padding: 24px 28px 0; }
  .tl         { padding: 0 28px; }
  .tl-row     { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .traits-row { grid-template-columns: 1fr 1fr; }
  .cert-grid  { grid-template-columns: 1fr 1fr; }
  .comp-list  { padding: 0 28px; }
  .comp-row   { grid-template-columns: 48px 1fr; padding: 20px 28px; margin: 0 -28px; }
  .comp-badge { display: none; }
  .cv-footer  { padding: 14px 28px; }
}
@media (max-width: 560px) {
  .hero-name    { font-size: 2.8rem; }
  .stat-row     { grid-template-columns: 1fr 1fr; }
  .traits-row   { grid-template-columns: 1fr; }
  .cert-grid    { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn          { justify-content: center; }
  .aside-skills { grid-template-columns: 1fr 1fr; }
}
