<style>
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #1a2a4a;
    --teal: #2c7b8f;
    --teal-light: #3a9cb2;
    --orange: #e07b2a;
    --gold: #f0a830;
    --white: #ffffff;
    --light-gray: #f4f6f8;
    --mid-gray: #b0bbc8;
    --text-dark: #2d3748;
    --text-med: #4a5568;
    --text-light: #718096;
    --sidebar-w: 290px;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
  }

  body {
    font-family: var(--body-font);
    background: #dde3ea;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px 20px;
    overflow-x: hidden;
  }

  .page {
    width: min(900px, 100%);
    min-height: 1100px;
    background: var(--white);
    display: flex;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    position: relative;
  }

  img {
    max-width: 100%;
    display: block;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
  }

  /* Header photo block */
  .sidebar-header {
    background: var(--teal);
    padding: 30px 22px 22px;
    text-align: center;
    position: relative;
  }

  .sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 34px;
    background: var(--teal);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
    z-index: 1;
  }


  .photo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--orange);
    margin: 0 auto 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a9cb2 0%, #1a2a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: var(--white);
    font-weight: 700;
    font-family: var(--heading-font);
    letter-spacing: -2px;
    padding: 0;
  }

  .name-block { position: relative; z-index: 2; margin-top: 4px; }

  .name-first {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    display: block;
  }

  .name-last {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
    display: block;
  }

  .name-role {
    font-family: var(--heading-font);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 5px;
    display: block;
  }

  /* Contact block */
  .contact-block {
    padding: 30px 22px 18px;
    margin-top: 10px;
  }

  .contact-block h3 {
    font-family: var(--heading-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .contact-block h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
  }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.82);
    line-height: 1.4;
  }

  .contact-item .icon {
    color: var(--orange);
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
  }

  .contact-item a { color: rgba(255,255,255,0.82); text-decoration: none; }
  .contact-item a:hover { color: var(--gold); }

  /* Sidebar sections */
  .sidebar-section {
    padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-section h3 {
    font-family: var(--heading-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .sidebar-section h3 .sec-icon {
    font-size: 12px;
  }

  /* Skills */
  .skill-item {
    margin-bottom: 9px;
  }

  .skill-label {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
  }

  .skill-bar-bg {
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
  }

  .skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-light), var(--orange));
    border-radius: 2px;
  }

  /* Hobbies */
  .hobby-list {
    list-style: none;
  }

  .hobby-list li {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hobby-list li::before {
    content: '▸';
    color: var(--orange);
    font-size: 9px;
  }

  /* Languages */
  .lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .lang-name {
    font-size: 10.5px;
    color: rgba(255,255,255,0.85);
  }

  .lang-dots {
    display: flex;
    gap: 4px;
  }

  .lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .lang-dot.filled { background: var(--orange); }
  .lang-dot.empty { background: rgba(255,255,255,0.18); }

   /*  Porfolio */
  .portfolio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #ffffff !important;;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: opacity 0.2s;
}

.portfolio-btn:hover {
  opacity: 0.85;
}

.portfolio-btn i {
  font-size: 11px;
}

  /* ── MAIN CONTENT ── */
  .main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  /* Top accent bar */
  .main-top-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--teal-light), var(--orange));
  }

  .main-inner {
    padding: 24px 28px;
    flex: 1;
  }

  /* Section heading */
  .section-title {
    font-family: var(--heading-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: 20px;
  }

  .section-title:first-child { margin-top: 0; }

  .section-title .s-icon {
    font-size: 14px;
    color: var(--orange);
  }

  .section-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--teal-light) 0%, rgba(37, 101, 119, 0.1) 100%);
  }

  /* About me */
  .about-text {
    font-size: 11px;
    color: var(--text-med);
    line-height: 1.65;
    margin-bottom: 4px;
  }

  /* Experience cards */
  .exp-item {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
  }

  .exp-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
  }

  .exp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--orange);
    flex-shrink: 0;
    margin-top: 3px;
  }

  .exp-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--teal-light), rgba(44,123,143,0.1));
    margin-top: 5px;
    min-height: 20px;
  }

  .exp-body { flex: 1; }

  .exp-title {
    font-family: var(--heading-font);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .exp-company {
    font-size: 10px;
    color: var(--teal);
    font-weight: 600;
    margin: 2px 0 1px;
  }

  .exp-date {
    font-size: 9.5px;
    color: var(--mid-gray);
    margin-bottom: 5px;
  }

  .exp-desc {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.55;
  }

  .exp-desc ul {
    list-style: none;
    padding: 0;
  }

  .exp-desc ul li {
    padding-left: 10px;
    position: relative;
    margin-bottom: 2px;
  }

  .exp-desc ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--orange);
  }

  /* Education */
  .edu-item {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    align-items: flex-start;
  }

  .edu-year-badge {
    background: var(--teal);
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .edu-body {}

  .edu-degree {
    font-family: var(--heading-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .edu-school {
    font-size: 10px;
    color: var(--teal);
    margin-top: 1px;
  }

  /* Key achievements */
  .achiev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
  }

  .achiev-card {
    background: var(--light-gray);
    border-left: 3px solid var(--orange);
    border-radius: 0 4px 4px 0;
    padding: 7px 10px;
  }

  .achiev-stat {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
  }

  .achiev-desc {
    font-size: 9.5px;
    color: var(--text-med);
    line-height: 1.4;
    margin-top: 2px;
  }

  /* Tools tags */
  .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .tag {
    background: var(--navy);
    color: var(--white);
    font-size: 9px;
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
  }

  .tag.teal { background: var(--teal); }
  .tag.orange { background: var(--orange); }

  /* Qualities */
  .quality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .quality-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    color: var(--white);
    font-size: 9.5px;
    padding: 4px 10px;
    border-radius: 20px;
  }

  .quality-badge::before {
    content: '★';
    color: var(--gold);
    font-size: 8px;
  }

  @media (max-width: 980px) {
    body {
      padding: 20px 12px;
    }

    .page {
      width: 100%;
    }

    .sidebar {
      width: 260px;
    }

    .main-inner {
      padding: 22px 20px;
    }
  }

  @media (max-width: 760px) {
    body {
      padding: 0;
      background: var(--white);
    }

    .page {
      width: 100%;
      min-height: auto;
      display: block;
      box-shadow: none;
    }

    .sidebar {
      width: 100%;
    }

    .sidebar-header {
      padding: 24px 18px 18px;
    }

    .sidebar-header::after {
      bottom: -10px;
      height: 22px;
    }

    .photo-ring {
      width: 96px;
      height: 96px;
    }

    .name-first,
    .name-last {
      font-size: clamp(16px, 4.5vw, 20px);
      letter-spacing: 1.5px;
    }

    .name-role {
      font-size: 9px;
      letter-spacing: 1.4px;
    }

    .contact-block,
    .sidebar-section {
      padding-left: 18px;
      padding-right: 18px;
    }

    .main-inner {
      padding: 24px 18px 20px;
    }

    .section-title {
      font-size: 11px;
      letter-spacing: 1.8px;
      gap: 8px;
    }

    .about-text,
    .exp-desc,
    .achiev-desc,
    .edu-school,
    .exp-company,
    .exp-date {
      font-size: 12px;
    }

    .achiev-grid {
      grid-template-columns: 1fr;
    }

    .exp-item,
    .edu-item {
      gap: 10px;
    }

    .exp-title,
    .edu-degree {
      font-size: 12px;
    }

    .portfolio-btn {
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 480px) {
    .contact-item {
      font-size: 11px;
    }

    .tag-cloud {
      gap: 6px;
    }

    .tag {
      font-size: 8.5px;
      padding: 3px 7px;
    }

    .quality-badge {
      font-size: 9.5px;
    }

    .edu-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .edu-year-badge {
      margin-top: 0;
    }
  }

  @media print {
    body { background: white; padding: 0; }
    .page { box-shadow: none; }
  }
</style>