  :root {
  --main-color: #000080;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    width: 100%; height: 100%;
    background: #008080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
  }

  .win95 {
    position: fixed;
    width: 1100px;
    height: 700px;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpolygon points='0,0 0,18 5,13 8,20 11,19 8,12 14,12' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") 0 0, default;
    background: #c0c0c0;
  }

  /* TITLE BAR */
  .titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    user-select: none;
    cursor: grab;
  }

  .titlebar-left { display: flex; align-items: center; gap: 5px; }

  .title-icon {
    width: 16px; height: 16px;
    background: #fff;
    border: 1px solid #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    color: #000080;
    font-weight: bold;
  }

  .titlebar-btns { display: flex; gap: 2px; }

  .tbtn {
    width: 18px; height: 16px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    font-size: 10px;
    font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    color: #000;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1;
  }

  /* MENU BAR */
  .menubar {
    background: #c0c0c0;
    border-bottom: 1px solid #888;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
  }

  .menuitem {
    padding: 2px 8px;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid transparent;
    position: relative;
    user-select: none;
  }

  .menuitem:hover, .menuitem.open {
    background: #000080;
    color: #fff;
  }

  /* DROPDOWN MENU */
  .menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    min-width: 170px;
    z-index: 200;
    padding: 2px 0;
  }

  .menu-dropdown.open { display: block; }

  .menu-dd-item {
    padding: 3px 24px 3px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
  }

  .menu-dd-item:hover {
    background: #000080;
    color: #fff;
  }

  .menu-dd-item.disabled {
    color: #888;
    cursor: default;
  }

  .menu-dd-item.disabled:hover {
    background: transparent;
    color: #888;
  }

  .menu-dd-sep {
    height: 1px;
    background: #888;
    border-bottom: 1px solid #fff;
    margin: 2px 0;
  }


  /* BODY */
  .win-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #c0c0c0;
    min-height: 0;
  }

  /* TOOLBOX SIDEBAR */
  .toolbox {
    width: 60px;
    background: #c0c0c0;
    border-right: 2px solid #888;
    border-left: 1px solid #fff;
    padding: 4px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }

  .tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .tb-btn {
    width: 52px; height: 30px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
  }

  .tb-btn.sel {
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: #b0b0b0;
  }

  .tool-sep-h {
    height: 1px;
    background: #888;
    border-bottom: 1px solid #fff;
    margin: 4px 0;
  }

  .tool-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 2px 0;
  }

  .opt-size {
    width: 52px; height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }

  .opt-size::after {
    content: '';
    display: block;
    background: #000;
    width: 16px;
    height: var(--s, 1px);
    border-radius: 1px;
  }

  .opt-size.active {
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: #b0b0b0;
  }

  .opt-fill {
    width: 52px; height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
  }

  .opt-fill.active {
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: #b0b0b0;
  }

  /* CANVAS AREA */
  .canvas-wrap {
    flex: 1;
    background: #808080;
    overflow: hidden;
    padding: 8px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
  }

  .canvas {
    background: #fff;
    min-width: 100%;
    flex: 1;
    position: relative;
    border: 1px solid #555;
    padding: 28px 32px 16px 32px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  /* DRAW CANVAS OVERLAY */
  #draw-canvas {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10;
  }

  #draw-canvas.tool-active {
    pointer-events: all;
  }

  /* TABS (top right of canvas) */
  .canvas-tabs {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    gap: 3px;
    z-index: 20;
  }

  .ctab {
    padding: 2px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    cursor: pointer;
    color: #000;
    user-select: none;
  }

  .ctab:hover {
    background: #000080;
    color: #fff;
  }

  .ctab.active {
    background: #000080;
    color: #fff;
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  /* BACK BUTTON */
  .back-btn {
    margin-top: auto;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #000080;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    padding: 3px 4px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    background: #c0c0c0;
    text-align: center;
    width: 100%;
  }

  .back-btn:hover {
    background: #000080;
    color: #fff;
  }

  /* HERO */
  .hero-content { padding-left: 4px; }

  .px-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #808080;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
  }

  .px-tag::before {
    content: '';
    display: inline-block;
    width: 15px; height: 1px;
    background: #000080;
  }

  .hero-name {
    font-family: 'VT323', monospace;
    font-size: 72px;
    line-height: 1;
    color: #000080;
    margin-bottom: 4px;
    letter-spacing: 2px;
  }

  .hero-cursor {
    display: inline-block;
    width: 4px; height: 56px;
    background: #000080;
    vertical-align: middle;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
  }

  .hero-cursor.done { display: none; }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  .hero-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
  }

  .hero-desc {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #333;
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }

  .win-btn {
    padding: 4px 16px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    user-select: none;
  }

  .win-btn:hover { background: #d8d8d8; }

  .win-btn:active {
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  .win-btn.primary {
    background: #000080;
    color: #fff;
    border-top: 2px solid #4444cc;
    border-left: 2px solid #4444cc;
    border-right: 2px solid #000030;
    border-bottom: 2px solid #000030;
  }

  .win-btn.primary:hover { background: #0000aa; }

  /* COLOR PALETTE */
  .color-palette {
    background: #c0c0c0;
    border-top: 1px solid #888;
    border-bottom: 1px solid #fff;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .color-indicator {
    position: relative;
    width: 38px;
    height: 30px;
    flex-shrink: 0;
  }

  .color-bg {
    position: absolute;
    width: 22px; height: 22px;
    bottom: 0; right: 0;
    background: #fff;
    border: 1px solid #555;
    z-index: 0;
  }

  .color-fg {
    position: absolute;
    width: 22px; height: 22px;
    top: 0; left: 0;
    background: #000080;
    border: 1px solid #000;
    z-index: 1;
  }

  .color-divider {
    width: 1px;
    height: 30px;
    background: #888;
    border-right: 1px solid #fff;
    flex-shrink: 0;
    margin: 0 2px;
  }

  .color-rows {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .color-row {
    display: flex;
    gap: 1px;
  }

  .swatch {
    width: 22px; height: 20px;
    border: 1px solid #555;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* STATUS BAR */
  .statusbar {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .status-cell {
    border-top: 1px solid #888;
    border-left: 1px solid #888;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 1px 8px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    color: #000;
  }

  /* PAGE CONTENT */
  .page-content { display: none; }
  .page-content.show { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

  #tab-home       { justify-content: center; overflow-y: auto; }
  #tab-projects   { overflow-y: auto; }
  #tab-contact    { overflow-y: auto; }
  #tab-experience { overflow-y: auto; }

  /* EXPERIENCE PAGE */
  .exp-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

  .exp-item {
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    background: #fff;
    padding: 10px 14px;
  }

  .exp-item:hover { background: #f0f0f8; }

  .exp-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
  .exp-company { font-family: 'VT323', monospace; font-size: 20px; color: #000080; letter-spacing: 1px; }
  .exp-date    { font-size: 11px; color: #888; font-family: 'Share Tech Mono', monospace; }
  .exp-role    { font-size: 12px; color: #555; font-family: 'Share Tech Mono', monospace; margin-bottom: 4px; }
  .exp-desc    { font-size: 11px; color: #444; line-height: 1.5; font-family: 'Share Tech Mono', monospace; }

  /* RESUME POPUP */
  .resume-popup {
    position: fixed;
    width: 680px;
    height: 520px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    display: flex;
    flex-direction: column;
    z-index: 500;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  }

  .popup-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    user-select: none;
    cursor: grab;
  }

  .popup-body {
    flex: 1;
    overflow: hidden;
    padding: 4px;
    background: #fff;
  }

  /* PROJECTS */
  .proj-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

  .proj-item {
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    background: #fff;
    padding: 10px 14px;
    cursor: default;
  }

  .proj-item:hover { background: #f0f0f8; }

  .proj-num { font-size: 11px; color: #888; margin-bottom: 3px; font-family: 'Share Tech Mono', monospace; }
  .proj-name { font-size: 15px; color: #000080; font-weight: bold; margin-bottom: 4px; font-family: 'VT323', monospace; letter-spacing: 1px; }
  .proj-desc { font-size: 12px; color: #444; line-height: 1.5; margin-bottom: 6px; font-family: 'Share Tech Mono', monospace; }
  .proj-tags { display: flex; gap: 4px; flex-wrap: wrap; }
  .ptag { font-size: 11px; background: #000080; color: #fff; padding: 1px 6px; font-family: 'Share Tech Mono', monospace; }

  /* CONTACT */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }

  .contact-box {
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    background: #f8f8f8;
    padding: 12px;
  }

  .contact-label { font-size: 11px; color: #808080; margin-bottom: 4px; text-transform: uppercase; font-family: 'Share Tech Mono', monospace; }
  .contact-val { font-size: 13px; color: #000080; font-family: 'Share Tech Mono', monospace; }

  .contact-input {
    width: 100%;
    border-top: 1px solid #888;
    border-left: 1px solid #888;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    padding: 3px 5px;
    color: #000;
    outline: none;
    margin-top: 4px;
    display: block;
  }

  /* SPOTIFY WIDGET */
  .now-playing {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    background: #f0f8f0;
    max-width: 320px;
    text-decoration: none;
    cursor: pointer;
  }

  .now-playing.visible { display: inline-flex; }

  .np-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    flex-shrink: 0;
  }

  .np-bars span {
    display: block;
    width: 3px;
    background: #1DB954;
    border-radius: 1px;
    animation: bar 1.1s ease-in-out infinite;
  }

  .np-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
  .np-bars span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
  .np-bars span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
  .np-bars span:nth-child(4) { height: 80%; animation-delay: 0.15s; }

  .now-playing.paused .np-bars span { animation: none; height: 40%; }

  @keyframes bar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
  }

  .np-album {
    width: 28px; height: 28px;
    border: 1px solid #888;
    object-fit: cover;
    flex-shrink: 0;
  }

  .np-text { display: flex; flex-direction: column; min-width: 0; }

  .np-track {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .np-artist {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  @media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 52px; }
    .canvas { padding: 28px 16px 16px 16px; }
  }
