:root {
      --page: #748198;
      --paper: #ffffff;
      --ink: #14213d;
      --muted: #667085;
      --line: #d7dde7;
      --sidebar: #11284d;
      --sidebar-2: #0a1d39;
      --soft: #eef1f5;
      --accent: #b8c3d2;
      --django: #06402b;
      --python: #3776ab;
      --shadow: 0 24px 70px rgba(11, 24, 44, .28);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .18), transparent 28rem),
        linear-gradient(145deg, #6f7b93, var(--page));
      line-height: 1.55;
    }

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

    .page-shell {
      width: min(920px, calc(100% - 32px));
      margin: 48px auto;
    }

    .resume {
      display: grid;
      grid-template-columns: minmax(240px, 300px) 1fr;
      grid-template-rows: 270px auto;
      grid-template-areas:
        "hero hero"
        "side main";
      gap: 0;
      position: relative;
      overflow: hidden;
      background: var(--paper);
      box-shadow: var(--shadow);
      animation: rise .7s ease both;
    }

    .hero {
      grid-area: hero;
      min-height: 0;
      margin: 16px 16px 0;
      display: grid;
      grid-template-columns: inherit;
      background:
        linear-gradient(rgba(21, 25, 31, .26), rgba(21, 25, 31, .38)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1500&q=80") center / cover;
    }

    .hero-spacer {
      background: transparent;
    }

    .hero-title {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-end;
      min-width: 0;
      padding: 56px clamp(28px, 6vw, 84px) 56px 24px;
      color: #fff;
      text-align: right;
      text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
    }

    .hero-title h1 {
      margin: 0;
      font-size: clamp(2.2rem, 5vw, 3.35rem);
      line-height: .95;
      letter-spacing: 0;
      font-weight: 500;
      text-transform: uppercase;
    }

    .hero-title p {
      margin: 12px 0 0;
      font-size: clamp(1.05rem, 2vw, 1.55rem);
      font-weight: 300;
    }

    .sidebar {
      grid-area: side;
      z-index: 2;
      align-self: start;
      margin: -216px 0 0 42px;
      padding: 34px 34px 44px;
      color: #fff;
      background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    }

    .photo {
      width: 100%;
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      margin-bottom: 42px;
      overflow: hidden;
      background: linear-gradient(135deg, #f6f7f9, #dfe5ed);
      color: var(--sidebar);
      font-size: clamp(3rem, 8vw, 5.4rem);
      font-weight: 700;
    }

    .photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .side-section + .side-section {
      margin-top: 42px;
    }

    .side-section h2,
    .content-section h2 {
      margin: 0 0 18px;
      font-size: 1.28rem;
      line-height: 1.2;
      font-weight: 500;
    }

    .side-section p {
      margin: 0;
      color: rgba(255, 255, 255, .86);
    }

    .contact-list {
      display: grid;
      gap: 16px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: rgba(255, 255, 255, .9);
    }

    .contact-list li {
      display: grid;
      grid-template-columns: 24px 1fr;
      gap: 14px;
      align-items: center;
      min-width: 0;
    }

    .contact-list svg {
      width: 18px;
      height: 18px;
      stroke-width: 1.8;
      color: rgba(255, 255, 255, 0.9);
      stroke: currentColor;
    }

    .copyable {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.copyable:hover,
.contact-link:hover {
  opacity: 0.7;
}



    .main {
      grid-area: main;
      min-width: 0;
      padding: 28px 0 44px;
    }

    .content-section {
      animation: reveal .65s ease both;
      animation-delay: calc(var(--i, 0) * 90ms);
    }

    .section-title {
      margin: 0;
      padding: 10px 34px;
      background: linear-gradient(90deg, #eef0f3, #e4e6e9);
      color: var(--sidebar);
      text-transform: uppercase;
    }

    .timeline {
      display: grid;
      gap: 28px;
      margin: 24px 0 38px;
      padding: 0 34px;
    }

    .item {
      display: grid;
      grid-template-columns: 120px 34px 1fr;
      gap: 14px;
      min-width: 0;
    }

    .years {
      padding-top: 2px;
      font-size: .95rem;
      color: #1f2937;
      white-space: nowrap;
    }

    .marker {
      position: relative;
      display: flex;
      justify-content: center;
    }

    .marker::before {
      content: "";
      width: 4px;
      min-height: calc(100% + 28px);
      background: var(--sidebar);
    }

    .item:last-child .marker::before {
      min-height: 12px;
    }

    .marker::after {
      content: "";
      position: absolute;
      top: 2px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--sidebar);
    }

    .item h3 {
      margin: 0;
      font-size: 1rem;
      line-height: 1.35;
      font-weight: 700;
      text-transform: uppercase;
    }

    .item p {
      margin: 2px 0 0;
      color: #202734;
      font-style: italic;
    }

    .skills {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      padding: 24px 34px 34px;
    }

    .skill {
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 14px;
      align-items: center;
      min-width: 0;
    }

    .skill-meter {
      --value: 72deg;
      width: 54px;
      aspect-ratio: 1;
      border-radius: 50%;
      background: conic-gradient(var(--accent) 0 var(--value), #e8edf4 var(--value) 360deg);
      position: relative;
    }

    .skill-meter::after {
      content: "";
      position: absolute;
      inset: 17px;
      border-radius: 50%;
      background: var(--paper);
    }

    .skill strong {
      display: block;
      font-size: .94rem;
      text-transform: uppercase;
    }

    .project-link {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 20px;
      align-items: center;
      margin: 8px 34px 0;
      padding: 18px 20px;
      border: 1px solid var(--line);
      background: #f8fafc;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .project-link:hover,
    .project-link:focus-visible {
      transform: translateY(-2px);
      border-color: #aab8ca;
      box-shadow: 0 14px 34px rgba(15, 35, 65, .13);
      outline: none;
    }

    .django-badge {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      overflow: hidden;
      display: grid;
      grid-template-rows: 1fr 1fr;
      border: 2px solid #fff;
      box-shadow: 0 8px 22px rgba(12, 29, 53, .18);
    }

    .django-badge span {
      display: grid;
      place-items: center;
      font-weight: 800;
      line-height: 1;
    }

    .django-badge span:first-child {
      color: var(--python);
      background: #fff;
      font-size: .9rem;
      text-transform: lowercase;
    }

    .django-badge span:last-child {
      color: #fff;
      background: var(--django);
      font-size: 1rem;
      text-transform: lowercase;
    }

    .project-copy {
      min-width: 0;
    }

    .project-copy strong {
      display: block;
      font-size: 1.02rem;
      text-transform: uppercase;
    }

    .project-copy span {
      display: block;
      color: var(--muted);
    }

    .arrow {
      width: 28px;
      height: 28px;
      color: var(--sidebar);
    }

    .scroll-top {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 5;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      color: #fff;
      background: var(--sidebar);
      box-shadow: 0 10px 26px rgba(8, 20, 40, .25);
      cursor: pointer;
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
    }

    .scroll-top.is-visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 820px) {
      .page-shell {
        width: min(100% - 22px, 680px);
        margin: 22px auto;
      }

      .resume {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
          "hero"
          "side"
          "main";
      }

      .hero {
        grid-template-columns: 1fr;
        min-height: 310px;
        margin: 0;
      }

      .hero-spacer {
        display: none;
      }

      .hero-title {
        align-items: flex-start;
        justify-content: flex-end;
        text-align: left;
        padding: 34px 24px 30px;
      }

      .hero-title h1 {
        font-size: clamp(2.1rem, 12vw, 3.45rem);
        line-height: 1;
      }

      .sidebar {
        margin: 0;
        padding: 24px;
      }

      .photo {
        width: min(230px, 72vw);
        margin: 0 0 28px;
        border: 8px solid var(--sidebar);
      }

      .main {
        padding-top: 0;
      }

      .item {
        grid-template-columns: 92px 26px 1fr;
        gap: 10px;
      }

      .skills {
        grid-template-columns: 1fr;
      }

      .project-link {
        grid-template-columns: auto 1fr;
      }

      .arrow {
        display: none;
      }
    }

    @media (max-width: 520px) {
      body {
        background: #fff;
      }

      .page-shell {
        width: 100%;
        margin: 0;
      }

      .resume {
        box-shadow: none;
      }

      .section-title,
      .timeline,
      .skills {
        padding-left: 20px;
        padding-right: 20px;
      }

      .item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 18px;
        border-left: 3px solid var(--sidebar);
      }

      .marker {
        display: none;
      }

      .years {
        color: var(--muted);
      }

      .project-link {
        margin-left: 20px;
        margin-right: 20px;
        grid-template-columns: 1fr;
      }

      .side-section p {
        max-width: 30ch;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .page-shell {
        width: 100%;
        margin: 0;
      }

      .resume {
        box-shadow: none;
      }

      .hero {
        min-height: 210px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
      }

      .scroll-top {
        display: none;
      }

      .project-link {
        break-inside: avoid;
      }
    }

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


