:root {
      --bg-dark: #0f172a;
      --card-dark: #1e293b;
      --bg-light: #f3f4f6;
      --card-light: #ffffff;
      --accent: #38bdf8;
      --text-dark: #e5e7eb;
      --text-light: #0f172a;
      --muted-dark: #9ca3af;
      --muted-light: #6b7280;
      --border-dark: #334155;
      --border-light: #d1d5db;
      --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body {
      font-family: var(--font);
      margin: 0;
      padding: 32px 16px;
      display: flex;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
    }

    body[data-theme="dark"] {
      background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
      color: var(--text-dark);
    }

    body[data-theme="light"] {
      background: #e5e7eb;
      color: var(--text-light);
    }

    .resume {
      max-width: 1100px;
      width: 100%;
      border-radius: 18px;
      overflow: hidden;
      transition: background 0.2s, box-shadow 0.2s, border 0.2s;
    }

    body[data-theme="dark"] .resume {
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.25);
      box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
    }

    body[data-theme="light"] .resume {
      background: var(--card-light);
      border: 1px solid var(--border-light);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    }

    .header {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 24px 28px;
      border-bottom: 1px solid;
    }

    body[data-theme="dark"] .header {
      border-color: var(--border-dark);
    }

    body[data-theme="light"] .header {
      border-color: var(--border-light);
    }

    .images {
        position: absolute;        
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);         
    }

    .title-block h1 {
      font-size: 2rem;
    }

    .title-block h2 {
      font-size: 1rem;
      color: var(--accent);
      margin-top: 4px;
    }

    .meta {
      margin-top: 10px;
      font-size: 0.9rem;
    }

    body[data-theme="dark"] .meta {
      color: var(--muted-dark);
    }

    body[data-theme="light"] .meta {
      color: var(--muted-light);
    }

    .controls {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: flex-end;
    }

    .lang-switch,
    .theme-switch {
      display: flex;
      gap: 8px;
    }

    .lang-switch button,
    .theme-switch button {
      border-radius: 999px;
      border: 1px solid;
      padding: 6px 14px;
      font-size: 0.8rem;
      cursor: pointer;
      background: transparent;
      transition: all 0.18s ease;
    }

    body[data-theme="dark"] .lang-switch button,
    body[data-theme="dark"] .theme-switch button {
      border-color: var(--border-dark);
      color: var(--muted-dark);
    }

    body[data-theme="light"] .lang-switch button,
    body[data-theme="light"] .theme-switch button {
      border-color: var(--border-light);
      color: var(--muted-light);
    }

    .lang-switch button.active,
    .theme-switch button.active {
      background: var(--accent);
      color: #0b1120;
      border-color: var(--accent);
      font-weight: 600;
    }

    .content {
      display: grid;
      grid-template-columns: 2.1fr 1.5fr;
    }

    .col {
      padding: 22px 28px 26px;
    }

    body[data-theme="dark"] .col+.col {
      border-left: 1px solid var(--border-dark);
    }

    body[data-theme="light"] .col+.col {
      border-left: 1px solid var(--border-light);
    }

    @media (max-width: 900px) {
      .content {
        grid-template-columns: 1fr;
      }

      .col+.col {
        border-left: none;
        border-top: 1px solid;
      }

      body[data-theme="dark"] .col+.col {
        border-color: var(--border-dark);
      }

      body[data-theme="light"] .col+.col {
        border-color: var(--border-light);
      }

      .header {
        flex-direction: column;
        align-items: flex-start;
      }

      .controls {
        align-items: flex-start;
      }
    }

    .section {
      margin-bottom: 24px;
    }

    .section-title {
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 10px;
    }

    body[data-theme="dark"] .section-title {
      color: var(--muted-dark);
    }

    body[data-theme="light"] .section-title {
      color: var(--muted-light);
    }

    .job {
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 1px dashed;
    }

    body[data-theme="dark"] .job {
      border-color: var(--border-dark);
    }

    body[data-theme="light"] .job {
      border-color: var(--border-light);
    }

    .job-title {
      font-size: 0.95rem;
      font-weight: 600;
    }

    .job-company {
      font-size: 0.85rem;
      color: var(--accent);
    }

    .job-desc {
      font-size: 0.85rem;
      margin-top: 6px;
    }

    body[data-theme="dark"] .job-desc {
      color: var(--muted-dark);
    }

    body[data-theme="light"] .job-desc {
      color: var(--muted-light);
    }

    .tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tag {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid;
      font-size: 0.75rem;
    }

    body[data-theme="dark"] .tag {
      border-color: var(--border-dark);
      color: var(--muted-dark);
      background: rgba(15, 23, 42, 0.9);
    }

    body[data-theme="light"] .tag {
      border-color: var(--border-light);
      color: var(--muted-light);
      background: #f9fafb;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }

    .card {
      border-radius: 12px;
      padding: 12px 14px;
      border: 1px solid;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    body[data-theme="dark"] .card {
      border-color: var(--border-dark);
      background: #020617;
    }

    body[data-theme="light"] .card {
      border-color: var(--border-light);
      background: #ffffff;
    }

    .card-title {
      font-size: 0.9rem;
      font-weight: 600;
    }

    .card-sub {
      font-size: 0.8rem;
      color: var(--accent);
    }

    .card-desc {
      font-size: 0.8rem;
    }

    body[data-theme="dark"] .card-desc {
      color: var(--muted-dark);
    }

    body[data-theme="light"] .card-desc {
      color: var(--muted-light);
    }

    .repo-list {
      font-size: 0.8rem;
    }

    .repo-item {
      margin-bottom: 6px;
    }

    .repo-name {
      font-weight: 600;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .contact-form input,
    .contact-form textarea {
      border-radius: 8px;
      border: 1px solid;
      padding: 8px 10px;
      font-size: 0.85rem;
      font-family: var(--font);
    }

    body[data-theme="dark"] .contact-form input,
    body[data-theme="dark"] .contact-form textarea {
      background: #020617;
      border-color: var(--border-dark);
      color: var(--text-dark);
    }

    body[data-theme="light"] .contact-form input,
    body[data-theme="light"] .contact-form textarea {
      background: #ffffff;
      border-color: var(--border-light);
      color: var(--text-light);
    }

    .contact-form button {
      margin-top: 4px;
      border-radius: 999px;
      border: none;
      padding: 8px 14px;
      font-size: 0.85rem;
      cursor: pointer;
      background: var(--accent);
      color: #0b1120;
      font-weight: 600;
    }

    .small-note {
      font-size: 0.75rem;
    }

    body[data-theme="dark"] .small-note {
      color: var(--muted-dark);
    }

    body[data-theme="light"] .small-note {
      color: var(--muted-light);
    }