/* Cleaning the kitchen... */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0;}
html {scroll-behavior: smooth;}
a { text-decoration: none;}

/* Sharpening knives... */
:root {
    /* --acc: #5b5bd6; purple*/
    /* --acc: #4caf82; green */
    --acc: #FF6B35 ; 
    /* --acc-hover: #4a4ac5; */
    --acc-hover: #cd5d34;
    --acc-faint: rgba(91,91,214,0.12);
    --green: #4caf82;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.2s ease;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.dark {
  --bg:       #0f0f11;
  --bg2:      #18181c;
  --bg3:      #222228;
  --border:   #2e2e36;
  --text:     #e8e8f0;
  --muted:    #7a7a8c;
  --faint:    #3a3a48;
  --card-bg:  #18181c;
}

.light {
  --bg:       #f9f9fb;
  --bg2:      #ffffff;
  --bg3:      #eeeef4;
  --border:   #dddde8;
  --text:     #111118;
  --muted:    #777788;
  --faint:    #d0d0de;
  --card-bg:  #ffffff;
}

/* Heating the pan... */

.hero-motto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 6px;
  letter-spacing: .04em;
}

.chevuoi-icon {
  width: 28px;
  height: 28px;
  color: var(--acc);
  transition: color var(--transition);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    height: 52px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--acc);
    font-weight: 500;
    letter-spacing: .04rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex:1;
}

.nav-links a {
    font-size: 12px;
    color: var(--muted);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg3);
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  flex-shrink: 0;
}
 
.tog {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--acc);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
 
.tog::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  transition: right 0.25s;
}
 
.tog.off::after { right: 19px; }
.tog.off { background: var(--faint); }

/* Oiling the pan... */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 64px 40px 56px;
  border-bottom: 1px solid var(--border);
}
 
.hero-inner { flex: 1; }
 
.avail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
 
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
 
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
 
.avail-text {
  font-size: 11px;
  color: var(--green);
  font-family: var(--mono);
  letter-spacing: .05em;
}
 
.hero-name {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
 
/* blinking cursor */
.cursor {
  display: inline-block;
  width: 3px;
  height: 36px;
  background: var(--acc);
  margin-left: 4px;
  vertical-align: -4px;
  animation: blink 1s step-end infinite;
}
 
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
 
.hero-role {
  font-size: 16px;
  color: var(--acc);
  font-family: var(--mono);
  margin-bottom: 14px;
}
 
.hero-bio {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 24px;
}
 
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
 
/* ── BUTTONS ── */
.btn {
  font-size: 12px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  letter-spacing: .01em;
}
 
.btn:hover {
  border-color: var(--acc);
  color: var(--acc);
}
 
.btn-primary {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
 
.btn-primary:hover {
  background: var(--acc-hover);
  border-color: var(--acc-hover);
  color: #fff;
}
 
/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  min-width: 160px;
  transition: background var(--transition), border-color var(--transition);
}
 
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
 
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 3px;
}


.content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.col-main {
    padding: 40px 40px 60px;
    border-right: 1px solid var(--border);
}

.col-aside {
    padding: 40px 28px 60px;
}

.section { margin-bottom: 48px; }

.sec-label {
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--mono);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.section-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.timeline { display: flex; flex-direction: column; }

.tl-item {
    display: flex;
    gap: 16px;
}

.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
    flex-shrink: 0;
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--faint);
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}

.tl-dot.active {
    background: var(--acc);
    border-color: var(--acc);
}

.tl-line {
  width: 1px;
  background: var(--border);
  flex: 1;
  margin: 5px 0;
  min-height: 24px;
}

.tl-body { flex: 1; padding-bottom: 28px; }

.tl-role {
    font-size: 14px; 
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.tl-company {
    font-size: 12px;
    color: var(--acc);
    font-family: var(--mono);
    margin-top: 2px;
}

.tl-meta {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
    margin-top: 2px;
    margin-bottom: 8px;
}

.tl-bullets {
    list-style: none; 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tl-bullets li {
    font-size: 13px;
    color: var(--muted);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.tl-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--acc);
  font-size: 11px;
}


/* projects section styling */


.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.project-card:hover { border-color: var(--acc); }

.project-img-wrap { aspect-ratio: 16/9; overflow: hidden; }


.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--faint);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img-wrap img { transform: scale(1.03); }

.project-body { padding: 14px 16px 16px; }

.project-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-links {
  display: flex;
  gap: 12px;
}

.proj-link {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--acc);
  transition: opacity var(--transition);
}

.proj-link:hover { opacity: 0.7; }
.proj-link.muted { color: var(--muted); cursor: default; }

/* tag styling */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  font-family: var(--mono);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  cursor: default;
}

.tag:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-faint);
}

.tag.learning {
  border-style: dashed;
  opacity: 1;
  color: var(--acc);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}



/* skills styling */

.skill-group-label {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--acc);
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 10px;
}

.skills-list { margin-bottom: 20px; }

.skill-row { margin-bottom: 10px; }

.skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 5px;
}

.skill-pct {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.track {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
  transition: background var(--transition);
}

.bar {
  height: 3px;
  border-radius: 2px;
  background: var(--acc) !important;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}




/* ── CONTACT ── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  transition: color var(--transition);
}

.contact-item:hover { color: var(--text); }

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.contact-item:hover .contact-icon {
  border-color: var(--acc);
  background: var(--acc-faint);
}

/* ── FOOTER ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  transition: border-color var(--transition);
}


.bar.animated { width: var(--w); }

@media (max-width: 768px) {
  .nav { padding: 0 20px; display: flex; justify-content: space-between; }
  .nav-links { display: none; }
  .hero { flex-direction: column; padding: 40px 20px 36px; gap: 28px; }
  .hero-stats { flex-direction: row; width: 100%; justify-content: space-between; }
  .hero-name { font-size: 32px; }
  .content { grid-template-columns: 1fr; }
  .col-main { padding: 32px 20px 40px; border-right: none; border-bottom: 1px solid var(--border); }
  .col-aside { padding: 32px 20px 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 6px; padding: 20px; text-align: center; }
}

@media print {

  @page {
    size: A4;
    margin: 11mm 15mm;
  }

  /* Force the light palette for print no matter which
     theme class is on <body> — dark-mode text/backgrounds
     must never reach paper. */
  html, body, .dark, .light {
    --bg:       #ffffff;
    --bg2:      #ffffff;
    --bg3:      #f4f4f8;
    --border:   #d8d8e2;
    --text:     #16161d;
    --muted:    #5c5c6e;
    --faint:    #d8d8e2;
    --card-bg:  #ffffff;
    --acc-faint: rgba(255,107,53,0.08);
  }

  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }

  body {
    background: #fff;
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
  }

  /* Chrome-only elements that mean nothing on paper */
  .nav, .toggle-wrap, .tog,
  .hero-actions,
  .cursor,
  .avail-dot { display: none !important; }

  /* the little availability pulse becomes a static line */
  .avail-row { margin-bottom: 10px; }
  .avail-text { color: var(--muted); }

  .chevuoi-icon { width: 20px; height: 20px; }

  /* ── Hero ── */
  .hero {
    padding: 0 0 12px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }

  .avail-row { margin-bottom: 8px; }
  .hero-name { font-size: 24px; margin-bottom: 4px; }
  .hero-role { font-size: 12.5px; margin-bottom: 6px; }
  .hero-bio  { font-size: 11px; max-width: none; margin-bottom: 0; }

  .hero-stats {
    flex-direction: row;
    gap: 18px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--bg3);
  }
  .stat-num { font-size: 16px; }
  .stat-label { font-size: 8.5px; }

  /* ── Layout: single column, no dividing rail ── */
  .content {
    display: block;
    max-width: none;
  }
  .col-main {
    padding: 18px 0 0;
    border-right: none;
  }
  .col-aside {
    padding: 18px 0 0;
  }

  .section { margin-bottom: 14px; }
  .sec-label { font-size: 9px; margin-bottom: 8px; padding-bottom: 5px; }
  .section-note { font-size: 10px; margin-bottom: 8px; }

  /* ── Timeline: compact, and never split a role across pages ── */
  .tl-item { break-inside: avoid; page-break-inside: avoid; }
  .tl-body { padding-bottom: 9px; }
  .tl-role { font-size: 12px; }
  .tl-company { font-size: 10.5px; }
  .tl-meta { font-size: 9.5px; margin-bottom: 3px; }
  .tl-bullets { gap: 1px; }
  .tl-bullets li { font-size: 10.5px; line-height: 1.35; }

  /* ── Projects: 3-up on paper (6 cards → 2 rows instead of 3),
     and never split a card across a page break ── */
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .project-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: var(--border);
  }
  .project-img-wrap, .project-img-placeholder { display: none; }
  .project-body { padding: 7px 8px 8px; }
  .project-title { font-size: 10.5px; margin-bottom: 3px; }
  .project-desc { font-size: 9px; line-height: 1.35; margin-bottom: 4px; }
  .project-tags { gap: 3px; }
  .project-tags .tag { font-size: 8px; padding: 1px 5px; }
  .proj-link { font-size: 8px; }

  /* ── Skills: keep each group together, bars render at final width ── */
  .skill-group-label { break-after: avoid; margin-bottom: 7px; }
  .skills-list { margin-bottom: 12px; }
  .skill-row { break-inside: avoid; margin-bottom: 5px; }
  .skill-top { margin-bottom: 3px; }
  .bar { width: var(--w) !important; }
  .track, .bar { background: var(--bg3); }
  .bar { background: var(--acc) !important; }

  .tag {
    border-color: var(--border);
    background: var(--bg3);
    color: var(--muted);
    font-size: 9px;
    padding: 2px 7px;
  }
  .tag.learning { color: var(--acc); border-style: dashed; }

  /* ── Contact ── */
  .contact-list { gap: 5px; }
  .contact-item { font-size: 10.5px; }
  .contact-icon { width: 18px; height: 18px; font-size: 9px; }

  /* ── Footer: keep it minimal on paper, and drop the
     "no frameworks needed" line — it's a nice flex on the
     live site but reads oddly on a CV that's now saying
     you want to learn React/Next/Node. ── */
  .footer {
    padding: 8px 0 0;
    font-size: 8.5px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
  }
  .footer span:first-child { display: none; }

  a { color: var(--text); }
  .tl-company, .hero-role, .proj-link:not(.muted) { color: var(--acc) !important; }
}