/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --accent:        #6b8f71;
  --accent-light:  #e8f0e9;
  --accent-dark:   #4e6b54;
  --surface:       #ffffff;
  --surface-2:     #f7f9f7;
  --border:        #e0e8e1;
  --text-primary:  #1a2e1c;
  --text-secondary:#4a5e4c;
  --text-muted:    #8fa691;
  --sidebar-bg:    #1a2e1c;
  --sidebar-text:  #c4d4c6;
  --sidebar-head:  #eef3ee;
  --sidebar-accent:#8fbf94;
  --sidebar-border:rgba(255,255,255,.07);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 20px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --sidebar-w:     320px;
  --transition:    .2s ease;
}

/* ============================================================
   Top navigation bar
   ============================================================ */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 46, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.topnav-brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-brand-name {
  font-size: .95rem;
  font-weight: 700;
  color: #eef3ee;
  letter-spacing: -.01em;
}

.topnav-brand-tag {
  font-size: .72rem;
  color: var(--sidebar-accent);
  font-weight: 500;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.topnav-links a {
  font-size: .83rem;
  font-weight: 500;
  color: #c4d4c6;
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.topnav-links a:hover,
.topnav-links a:hover,
.topnav-links a.active {
  background: rgba(255,255,255,.08);
  color: #eef3ee;
  text-decoration: none;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .35rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255,255,255,.45);
  padding: .1rem .2rem;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}

.lang-btn:hover { color: rgba(255,255,255,.8); }

.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.lang-divider {
  color: rgba(255,255,255,.2);
  font-size: .65rem;
  user-select: none;
}

@media (max-width: 640px) {
  .lang-toggle { margin-left: 0; }
}

/* Burger (mobile) */
.topnav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.topnav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #c4d4c6;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 640px) {
  .topnav-brand-tag { display: none; }
  .topnav-burger { display: flex; }

  /* On mobile: nav links drop down, lang-toggle stays in the bar */
  .topnav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(26,46,28,.96);
    backdrop-filter: blur(14px);
    padding: .75rem 1rem 1rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .topnav.open .topnav-links { display: flex; }
}

/* Offset page content so it doesn't sit behind the fixed nav */
.page-body    { margin-top: 0; }

/* ============================================================
   Page layout (Services, Blog)
   ============================================================ */
body.page-body {
  font-family: var(--font-sans);
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: calc(52px + 2rem) 2rem 4rem;
}

.page-footer {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-footer a {
  color: var(--text-muted);
}

/* ============================================================
   Services page — canvas animation
   ============================================================ */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body.svc-page { background: #0b1a0e; }

.svc-page .topnav,
.svc-page .page-main,
.svc-page .page-footer {
  position: relative;
  z-index: 1;
}

.svc-page .svc-availability-badge,
.svc-page .book-btn {
  z-index: 151;
}

/* Dark frosted cards */
.svc-page .svc-card {
  background: rgba(15, 30, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(80, 200, 120, 0.18);
  color: #c8e6cc;
}

.svc-page .svc-card h2 {
  color: #e8f5e9;
}

.svc-page .svc-card p {
  color: #9dbfa2;
}

.svc-page .svc-card ul li {
  color: #9dbfa2;
}

.svc-page .svc-card ul li::before {
  color: #50c878;
}

.svc-page .svc-card-icon {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.25);
}

.svc-page .svc-card-icon svg {
  stroke: #50c878;
}

.svc-page .svc-hero h1 {
  color: #e8f5e9;
}

.svc-page .svc-hero p {
  color: #9dbfa2;
}

.svc-page .svc-contact {
  background: rgba(10, 25, 14, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 200, 120, 0.2);
}

.svc-page .svc-contact-inner h2 {
  color: #e8f5e9;
}

.svc-page .svc-contact-inner p {
  color: #9dbfa2;
}

.svc-page .page-footer {
  border-top-color: rgba(80, 200, 120, 0.12);
  color: rgba(157, 191, 162, 0.6);
}

.svc-page .page-footer a {
  color: rgba(157, 191, 162, 0.6);
}

/* Availability badge — dark themed */
.svc-page .svc-availability-badge {
  background: rgba(10, 25, 14, 0.9);
  border-color: rgba(80, 200, 120, 0.3);
  color: #50c878;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   Services page
   ============================================================ */
.svc-hero {
  text-align: center;
  padding: 1.5rem 1rem 3rem;
}

/* Availability badge — fixed top-right, below the nav */
.svc-availability-badge {
  position: fixed;
  top: calc(52px + .75rem);
  right: 1.25rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .35rem .85rem;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.svc-avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
}

.svc-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.svc-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.svc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.svc-cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.svc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.svc-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.svc-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-dark);
}

.svc-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text-primary);
}

.svc-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.svc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.svc-card ul li {
  font-size: .82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.svc-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .15rem;
}

.svc-contact {
  background: var(--sidebar-bg);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--sidebar-text);
}

.svc-contact-inner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sidebar-head);
  margin-bottom: .75rem;
}

.svc-contact-inner p {
  font-size: .95rem;
  color: var(--sidebar-text);
  max-width: 500px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.svc-contact-inner a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.svc-contact-inner a svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  flex-shrink: 0;
}

.svc-contact-inner a:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   Blog page
   ============================================================ */
.blog-hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.blog-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.blog-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: box-shadow var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow); }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.blog-card-meta time {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.blog-card-tags { display: flex; gap: .35rem; flex-wrap: wrap; }

.blog-tag {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: .15rem .5rem;
  border-radius: 99px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card-title a:hover { color: var(--accent-dark); }

.blog-card-excerpt {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-card-read {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-card-read:hover { color: var(--accent-dark); }

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  font-size: .95rem;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ============================================================
   Wrapper — sidebar + main two-column grid
   ============================================================ */
.cv-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  max-width: 1200px;
  margin: 52px auto 0;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  align-self: stretch;
}

.sidebar-inner {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* Stick below the top nav bar */
  position: sticky;
  top: 52px;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

/* Profile block */
.profile { text-align: center; }

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #3d5c42 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .7rem;
  box-shadow: 0 0 0 3px rgba(143,191,148,.3);
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.avatar-initials {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sidebar-head);
  line-height: 1.3;
  margin-bottom: .25rem;
}

.profile-title {
  font-size: .78rem;
  color: var(--sidebar-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.4;
}

/* Sidebar sections */
.sidebar-section-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* Contact list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .8rem;
  color: var(--sidebar-text);
}

.contact-list li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: .15rem;
  stroke: var(--sidebar-accent);
}

.contact-list a {
  color: var(--sidebar-text);
  word-break: break-all;
}
.contact-list a:hover { color: var(--sidebar-accent); text-decoration: none; }

/* Language list */
.language-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.language-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.lang-name { color: var(--sidebar-head); font-weight: 500; }

.lang-level {
  font-size: .7rem;
  color: var(--sidebar-accent);
  background: rgba(143,191,148,.12);
  padding: .15rem .5rem;
  border-radius: 99px;
  font-weight: 500;
}

/* Sidebar skills */
.sidebar-skills {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.sidebar-skill-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-skill-area {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sidebar-accent);
}

.sidebar-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.sidebar-skill-tag {
  font-size: .72rem;
  padding: .15rem .5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  color: var(--sidebar-text);
  font-weight: 400;
  line-height: 1.5;
}

/* Sidebar education */
.sidebar-edu-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.sidebar-edu-school {
  font-size: .82rem;
  font-weight: 600;
  color: var(--sidebar-head);
  line-height: 1.3;
}

.sidebar-edu-degree {
  font-size: .78rem;
  color: var(--sidebar-accent);
  font-weight: 500;
  line-height: 1.3;
}

.sidebar-edu-period {
  display: inline-block;
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: .1rem;
}

.sidebar-edu-thesis {
  font-size: .74rem;
  color: var(--sidebar-text);
  font-style: italic;
  margin-top: .3rem;
  opacity: .8;
  line-height: 1.4;
}

/* ============================================================
   Main content area
   ============================================================ */
.cv-main {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ============================================================
   Section titles
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}

.section-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   Summary
   ============================================================ */
.summary-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, #d4e6d6 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}

.summary-text p {
  font-size: .925rem;
  color: #1a2e1c;
  line-height: 1.75;
}

/* ============================================================
   Timeline (Experience)
   ============================================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--accent), 0 0 12px rgba(107,143,113,.3);
}

.timeline-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-item:hover .timeline-body {
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

.job-header {
  margin-bottom: .75rem;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}

.job-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.job-location {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--text-muted);
}

.job-location svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
}

.job-role-block {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.job-role {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
}

.job-period {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: .15rem .5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.job-note {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: .6rem;
  padding: .5rem .75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--text-muted);
}

.job-description {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: .75rem;
  line-height: 1.65;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.achievement-list li {
  font-size: .85rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.achievement-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .25rem;
}

.achievement-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Education
   ============================================================ */
.education-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.edu-school {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.edu-degree {
  font-size: .875rem;
  color: var(--accent);
  font-weight: 500;
}

.edu-period {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: .15rem .5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.edu-thesis {
  font-size: .825rem;
  color: var(--text-secondary);
  margin-top: .4rem;
}

/* ============================================================
   Floating book-a-call button
   ============================================================ */
.download-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.download-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-dark);
  flex-shrink: 0;
}

.download-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-1px);
  color: var(--accent-dark);
  text-decoration: none;
}

@media (max-width: 480px) {
  .download-btn-label { display: none; }
  .download-btn { padding: .7rem; border-radius: 50%; }
}

.book-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(107,143,113,.45);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.book-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  flex-shrink: 0;
}

.book-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(107,143,113,.55);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .book-btn-label { display: none; }
  .book-btn { padding: .7rem; border-radius: 50%; }
}

/* ============================================================
   Utility — visibility helpers
   ============================================================ */
.pdf-only  { display: none !important; }
.screen-only { display: flex; }



/* ============================================================
   Print / PDF styles
   ============================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  *, *::before, *::after {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  html {
    font-size: 9.5pt;
    background: linear-gradient(
      to right,
      #1a2e1c 0%,
      #1a2e1c 32.77%,
      #ffffff 32.77%,
      #ffffff 100%
    ) !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  body {
    background: transparent;
    margin: 0;
    padding: 0;
  }

  .no-print   { display: none !important; }
  .pdf-only   { display: none !important; }  /* shown only via Puppeteer injection */
  .screen-only { display: none !important; }

  /* Force the two-column grid at A4 proportions. */
  .cv-wrapper {
    display: grid !important;
    grid-template-columns: 195pt 1fr !important;
    align-items: stretch !important;
    box-shadow: none !important;
    max-width: none;
    width: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .sidebar {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .cv-main {
    background: transparent !important;
  }

  .sidebar-inner {
    padding: 1.1rem 1rem;
    gap: .9rem;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
    margin-bottom: .5rem;
  }

  .profile-name  { font-size: .95rem; }
  .profile-title { font-size: .68rem; }

  .sidebar-section-title { margin-bottom: .35rem; }

  .contact-list  { gap: .3rem; }
  .language-list { gap: .25rem; }
  .sidebar-skills { gap: .5rem; }
  .sidebar-skill-group { gap: .2rem; }

  /* Main content */
  .cv-main {
    padding: 1.25rem 1.75rem;
    gap: 1.25rem;
  }

  .section-title { margin-bottom: .75rem; padding-bottom: .5rem; }

  .timeline-item  { padding-bottom: .75rem; }
  .timeline-item--break {
    break-before: page;
    padding-top: 1.75rem;
  }
  .timeline-body  {
    box-shadow: none;
    border: 1px solid #e0e8e1;
    break-inside: avoid;
    padding: .9rem 1.1rem;
  }

  .timeline::before { background: #e0e8e1; }

  .job-period { font-size: .68rem; }
  .achievement-list li { font-size: .78rem; }
  .job-description { font-size: .8rem; }

  .summary-text p { font-size: .85rem; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cv-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-inner {
    position: static;
    max-height: none;
    overflow-y: visible;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .profile { flex: 0 0 100%; }

  .cv-main { padding: 2rem 1.25rem; }


}

@media (max-width: 560px) {
  .job-role-block { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .edu-header { flex-direction: column; }
}
