  @page { size: A4; margin: 0; }
  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f0f1f5;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    display: grid;
    grid-template-columns: 220px 1fr;
    box-shadow: 0 4px 80px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    border-radius: 2px;
  }

  .download-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    padding: 11px 28px;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    letter-spacing: -0.01em;
  }
  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.45);
  }
  .download-btn:active {
    transform: translateY(0);
  }

  @media print {
    body { background: #fff; padding: 0; }
    .page { box-shadow: none; border-radius: 0; }
    .download-btn { display: none; }
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    background: linear-gradient(180deg, #0a1628 0%, #0e1f3d 50%, #0c1a32 100%);
    color: #c1cee0;
    padding: 36px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    box-shadow: 0 4px 24px rgba(59,130,246,0.3), 0 0 0 1px rgba(96,165,250,0.15);
  }
  .avatar-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(96,165,250,0.15);
  }

  .avatar-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
  }
  .avatar-text .a1 { font-size: 24px; }
  .avatar-text .a2 { font-size: 17px; font-weight: 600; opacity: 0.85; }

  .sidebar-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  .sidebar-role {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #60a5fa;
    margin-top: 6px;
    font-weight: 600;
  }

  /* Sidebar sections */
  .sb-section { }

  .sb-title {
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #60a5fa;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(96,165,250,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sb-title::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
  }

  /* Contact */
  .contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-decoration: none;
    color: #b0c4de;
    font-size: 9.5px;
    line-height: 1.5;
    transition: color 0.2s;
    word-break: break-all;
  }
  a.contact-item:hover { color: #93bbfc; }

  .contact-icon {
    width: 12px;
    height: 12px;
    fill: #4b8ad4;
    flex-shrink: 0;
    margin-top: 1.5px;
  }

  /* Skills */
  .skill-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .skill-item {
    font-size: 9.5px;
    color: #b0c4de;
    line-height: 1.45;
    padding: 4px 0 4px 14px;
    position: relative;
    transition: color 0.2s;
  }
  .skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    opacity: 0.5;
  }

  /* Certs */
  .cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cert-item-sb {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
  }
  .cert-item-sb:hover {
    background: rgba(255,255,255,0.04);
  }

  .cert-name-sb {
    font-size: 9.5px;
    font-weight: 600;
    color: #e2eaf5;
    line-height: 1.3;
  }

  .cert-issuer-sb {
    font-size: 8px;
    color: #5a7091;
    font-weight: 400;
  }

  /* Tools */
  .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tool-tag {
    font-size: 8px;
    font-weight: 500;
    color: #93bbfc;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.12);
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.01em;
  }

  /* ===== MAIN CONTENT ===== */
  .main {
    padding: 36px 36px 32px 32px;
    display: flex;
    flex-direction: column;
  }

  /* Header */
  .main-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 2.5px solid #0f172a;
    position: relative;
  }
  .main-header::after {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 0;
    width: 60px;
    height: 2.5px;
    background: #3b82f6;
  }

  .main-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  .main-title {
    font-size: 11.5px;
    font-weight: 500;
    color: #2563eb;
    margin-top: 5px;
    letter-spacing: 0.01em;
  }

  .main-location {
    font-size: 9.5px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 400;
    letter-spacing: 0.02em;
  }

  /* Summary */
  .summary {
    font-size: 10.5px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-radius: 0 6px 6px 0;
    letter-spacing: -0.005em;
  }

  /* Sections */
  .section { margin-bottom: 16px; }
  .section:last-child { margin-bottom: 0; }

  .section-title {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
  }

  /* Experience */
  .exp-item { margin-bottom: 12px; }
  .exp-item:last-child { margin-bottom: 0; }

  .exp-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    gap: 12px;
  }

  .exp-role-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }

  .exp-date {
    font-size: 9.5px;
    color: #64748b;
    flex-shrink: 0;
    font-weight: 500;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 3px;
  }

  .exp-company {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .exp-list {
    list-style: none;
  }

  .exp-list li {
    font-size: 10.5px;
    color: #475569;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
    letter-spacing: -0.005em;
  }
  .exp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
    background: transparent;
  }

  /* Key achievements */
  .achievement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.03) 100%);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #b45309;
    letter-spacing: 0.01em;
  }
  .achievement-icon {
    font-size: 13px;
    color: #f59e0b;
  }

  /* SOC Role */
  .exp-item-secondary .exp-role-title {
    font-size: 12px;
  }

  /* Education */
  .edu-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2px;
  }

  .edu-degree {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
  }

  .edu-date {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 3px;
  }

  .edu-school {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .edu-gpa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #15803d;
    background: rgba(22,163,74,0.06);
    border: 1px solid rgba(22,163,74,0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 4px;
  }

  /* Publication */
  .pub-text {
    font-size: 10px;
    color: #475569;
    line-height: 1.7;
    letter-spacing: -0.005em;
  }
  .pub-text em { color: #0f172a; font-style: italic; font-weight: 500; }
  .pub-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 9.5px;
    border-bottom: 1px solid rgba(37,99,235,0.2);
    transition: border-color 0.2s;
  }
  .pub-link:hover { border-color: #2563eb; }

  /* Extras */
  .extras-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .extra-item {
    font-size: 10.5px;
    color: #475569;
    padding-left: 14px;
    position: relative;
    line-height: 1.55;
  }
  .extra-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
    background: transparent;
  }
  .extra-label {
    font-weight: 700;
    color: #0f172a;
  }

  @media (max-width: 800px) {
    .page {
      grid-template-columns: 1fr;
      width: 100%;
      min-height: auto;
    }
    .sidebar {
      padding: 28px 22px;
      gap: 18px;
    }
    .sidebar-header { padding-bottom: 16px; }
    .avatar-circle { width: 64px; height: 64px; }
    .avatar-text .a1 { font-size: 20px; }
    .avatar-text .a2 { font-size: 14px; }
    .main {
      padding: 24px 20px;
    }
    .main-name { font-size: 26px; }
    .main-title { font-size: 11px; }
    .exp-top { flex-direction: column; gap: 2px; }
    .edu-top { flex-direction: column; gap: 2px; }
    .exp-list li { font-size: 10.5px; }
    .skill-list { gap: 4px; }
    .cert-list { gap: 6px; }
  }
