/* jonathanfrecker.dev — main stylesheet */
    :root {
      --bg: #1e1e1e;
      --bg2: #252526;
      --bg3: #2d2d2d;
      --bg4: #333333;
      --title: #1a1a2e;
      --border: #3c3c3c;
      --text: #cccccc;
      --dim: #777777;
      --bright: #ffffff;
      --blue: #4fc1ff;
      --blue2: #007acc;
      --green: #4ec9b0;
      --gcm: #6a9955;
      --yellow: #dcdcaa;
      --orange: #ce9178;
      --purple: #c586c0;
      --pink: #ff6fd8;
      --red: #f44747;
      --linenums: #858585;
    }

    [data-theme="rose-pine"] {
      --bg: #191724; --bg2: #1f1d2e; --bg3: #26233a; --bg4: #2a273f;
      --title: #110f1a; --border: #403d52; --text: #e0def4; --dim: #6e6a86;
      --bright: #e0def4; --blue: #9ccfd8; --blue2: #eb6f92; --green: #31748f;
      --gcm: #908caa; --yellow: #f6c177; --orange: #ea9a97; --purple: #c4a7e7;
      --pink: #eb6f92; --red: #eb6f92; --linenums: #6e6a86;
    }
    [data-theme="tokyo-night"] {
      --bg: #1a1b26; --bg2: #16161e; --bg3: #1f2335; --bg4: #24283b;
      --title: #13131c; --border: #292e42; --text: #a9b1d6; --dim: #565f89;
      --bright: #c0caf5; --blue: #7dcfff; --blue2: #7aa2f7; --green: #9ece6a;
      --gcm: #73daca; --yellow: #e0af68; --orange: #ff9e64; --purple: #bb9af7;
      --pink: #f7768e; --red: #f7768e; --linenums: #565f89;
    }
    [data-theme="catppuccin"] {
      --bg: #1e1e2e; --bg2: #181825; --bg3: #313244; --bg4: #45475a;
      --title: #11111b; --border: #45475a; --text: #cdd6f4; --dim: #6c7086;
      --bright: #cdd6f4; --blue: #89dceb; --blue2: #cba6f7; --green: #a6e3a1;
      --gcm: #94e2d5; --yellow: #f9e2af; --orange: #fab387; --purple: #cba6f7;
      --pink: #f38ba8; --red: #f38ba8; --linenums: #6c7086;
    }
    [data-theme="nord"] {
      --bg: #2e3440; --bg2: #3b4252; --bg3: #434c5e; --bg4: #4c566a;
      --title: #242932; --border: #434c5e; --text: #d8dee9; --dim: #616e88;
      --bright: #eceff4; --blue: #88c0d0; --blue2: #5e81ac; --green: #a3be8c;
      --gcm: #8fbcbb; --yellow: #ebcb8b; --orange: #d08770; --purple: #b48ead;
      --pink: #bf616a; --red: #bf616a; --linenums: #616e88;
    }
    [data-theme="gruvbox"] {
      --bg: #282828; --bg2: #1d2021; --bg3: #3c3836; --bg4: #504945;
      --title: #1c1c1c; --border: #504945; --text: #ebdbb2; --dim: #928374;
      --bright: #fbf1c7; --blue: #83a598; --blue2: #fabd2f; --green: #b8bb26;
      --gcm: #8ec07c; --yellow: #fabd2f; --orange: #fe8019; --purple: #d3869b;
      --pink: #fb4934; --red: #fb4934; --linenums: #928374;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; overflow-x: hidden; }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.6;
    }

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

    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

    /* ── LAYOUT ── */
    .vscode-window {
      display: grid;
      width: 100vw;
      height: 100vh;
      grid-template-rows: 30px 44px 26px 1fr 22px;
      grid-template-columns: 220px 1fr;
      grid-template-areas:
        "titlebar   titlebar"
        "sidebar    tabs"
        "sidebar    breadcrumb"
        "sidebar    editor"
        "statusbar  statusbar";
    }

    /* ── TITLEBAR ── */
    .titlebar {
      grid-area: titlebar;
      display: flex;
      align-items: center;
      background: var(--blue2);
      font-size: 12px;
      user-select: none;
    }
    .titlebar-text { flex: 1; padding-left: 12px; color: white; font-weight: 500; }
    .window-controls { display: flex; gap: 1px; align-items: center; height: 100%; }
    .window-btn {
      display: flex; align-items: center; justify-content: center;
      width: 46px; height: 100%; cursor: pointer;
      transition: background 0.15s; color: rgba(255,255,255,0.7); font-size: 10px;
    }
    .window-btn:hover { background: rgba(255,255,255,0.1); color: white; }
    .window-btn.close:hover { background: #c42b1c; color: white; }
    .window-btn svg { width: 10px; height: 10px; stroke-width: 1.5; }

    /* ── SIDEBAR ── */
    .sidebar {
      grid-area: sidebar;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      padding: 12px 0;
      overflow-y: auto;
    }
    .sidebar-section { margin-bottom: 16px; }
    .sidebar-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 12px; margin-bottom: 4px;
      font-size: 11px; text-transform: uppercase;
      letter-spacing: 0.1em; color: var(--dim);
    }
    .sidebar-folder {
      display: flex; align-items: center; gap: 6px;
      padding: 4px 12px; font-size: 13px; color: var(--text);
      cursor: pointer;
    }
    .sidebar-folder svg {
      width: 14px; height: 14px; opacity: 0.6;
      transition: transform 0.15s ease;
    }
    .sidebar-folder[aria-expanded="false"] svg { transform: rotate(-90deg); }
    .sidebar-folder:focus-visible {
      outline: 1px solid var(--blue2); outline-offset: -1px;
    }
    .sidebar-filelist-wrap {
      display: grid;
      grid-template-rows: 1fr;
      transition: grid-template-rows 0.2s ease;
    }
    .sidebar-filelist-wrap.collapsed { grid-template-rows: 0fr; }
    .sidebar-filelist-inner { overflow: hidden; min-height: 0; }
    .sidebar-item {
      display: flex; align-items: center; gap: 8px;
      padding: 5px 12px 5px 28px;
      cursor: pointer; transition: background 0.15s;
      color: var(--dim); font-size: 13px;
    }
    .sidebar-item:hover { background: var(--bg3); color: var(--text); }
    .sidebar-item.active { background: var(--bg3); color: var(--text); }
    .sidebar-item .file-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }
    .dot-razor { background: #512bd4; }
    .dot-cs    { background: #9b4f96; }
    .dot-json  { background: #cbcb41; }
    .dot-md    { background: #519aba; }

    /* ── TABS ── */
    .tabs {
      grid-area: tabs;
      display: flex;
      background: var(--bg2);
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
    }
    .tabs::-webkit-scrollbar { height: 0; }
    .tab {
      display: flex; align-items: center; gap: 8px;
      padding: 0 16px; min-width: 120px;
      background: var(--bg2); border-right: 1px solid var(--border);
      font-size: 13px; cursor: pointer; position: relative;
      color: var(--dim); white-space: nowrap; user-select: none;
      transition: color 0.15s, background 0.15s;
      flex-shrink: 0;
    }
    .tab:hover { background: var(--bg3); color: var(--text); }
    .tab.active {
      background: var(--bg); color: var(--text);
    }
    .tab.active::after {
      content: ""; position: absolute; top: 0; left: 0; right: 0;
      height: 2px; background: var(--blue2);
    }
    .tab-icon { font-size: 12px; display: flex; align-items: center; }
    .tab-icon svg { width: 14px; height: 14px; }
    .tab-close {
      margin-left: auto; opacity: 0; font-size: 16px;
      cursor: pointer; transition: opacity 0.15s; line-height: 1;
      padding: 2px 4px; border-radius: 3px;
    }
    .tab:hover .tab-close { opacity: 0.6; }
    .tab.active .tab-close { opacity: 0.4; }
    .tab-close:hover { opacity: 1 !important; background: var(--bg4); }

    /* ── BREADCRUMB ── */
    .breadcrumb {
      grid-area: breadcrumb;
      display: flex; align-items: center; gap: 4px;
      padding: 0 16px; background: var(--bg);
      border-bottom: 1px solid var(--border);
      font-size: 12px; color: var(--dim);
    }
    .bc-sep { color: var(--border); }
    .bc-current { color: var(--text); }

    /* ── EDITOR AREA (line-gutter + content) ── */
    .editor {
      grid-area: editor;
      display: flex;
      overflow: hidden;
    }
    .line-gutter {
      width: 52px; flex-shrink: 0;
      background: var(--bg);
      border-right: 1px solid var(--border);
      overflow: hidden;
      user-select: none;
    }
    .line-gutter-inner {
      display: flex; flex-direction: column;
      align-items: flex-end;
      padding: 24px 12px 24px 0;
      will-change: transform;
    }
    .line-gutter span {
      display: block; font-size: 12px;
      color: var(--linenums); line-height: 1.6;
      min-height: 19px;
    }
    .content {
      flex: 1;
      background: var(--bg);
      overflow-y: auto;
      padding: 24px 40px 48px 24px;
    }

    /* ── STATUS BAR ── */
    .statusbar {
      grid-area: statusbar;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 12px; background: var(--blue2);
      font-size: 12px; color: white;
    }
    .status-left, .status-right { display: flex; align-items: center; gap: 16px; }
    .status-item {
      display: flex; align-items: center; gap: 4px;
      cursor: pointer; padding: 0 4px; height: 22px;
      transition: background 0.15s;
    }
    .status-item:hover { background: rgba(255,255,255,0.15); }
    .status-errors { color: #f48771; }
    .status-warnings { color: #cca700; }

    /* ── HOME SECTION ── */
    .home-section {
      display: flex; align-items: center; gap: 48px;
      padding: 32px 0; min-height: calc(100vh - 150px);
    }
    .avatar-container { flex-shrink: 0; position: relative; }
    .avatar-ring {
      width: 260px; height: 260px; border-radius: 50%;
      border: 2px solid var(--border); overflow: hidden;
    }
    .avatar-img { width: 100%; height: 100%; background: none; font-size: 0; }
    .avatar-glow {
      position: absolute; top: -10px; right: -10px; bottom: -10px; left: -10px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--blue2) 0%, transparent 70%);
      opacity: 0.2; z-index: -1;
      animation: pulseGlow 3s ease-in-out infinite;
    }
    @keyframes pulseGlow {
      0%, 100% { opacity: 0.15; transform: scale(1); }
      50% { opacity: 0.3; transform: scale(1.05); }
    }
    .hero-content { flex: 1; }
    .hero-greeting { color: var(--gcm); font-size: 14px; margin-bottom: 8px; }
    .hero-greeting span { color: var(--yellow); }
    .hero-name {
      font-family: 'Syne', sans-serif; font-size: 44px; font-weight: 800;
      color: var(--bright); letter-spacing: -2.5px; line-height: 1.1; margin-bottom: 12px;
    }

    /* ── TYPING ANIMATION ── */
    .hero-typing-wrap {
      display: flex; align-items: center; gap: 0;
      font-size: 16px; font-weight: 500; margin-bottom: 20px;
      color: var(--dim);
    }
    .hero-typing-prefix { color: var(--purple); margin-right: 8px; }
    .hero-typing-text { color: var(--green); }
    .typing-cursor {
      display: inline-block; width: 2px; height: 18px;
      background: var(--green); vertical-align: middle;
      margin-left: 2px; animation: blink 1s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }

    .hero-desc { color: var(--text); max-width: 520px; margin-bottom: 28px; line-height: 1.8; }
    .hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
    .link-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px; border-radius: 6px; font-size: 13px; font-weight: 500;
      cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
      background: transparent; color: var(--text);
    }
    .link-btn:hover { background: var(--bg3); border-color: var(--blue2); color: var(--blue); }
    .link-btn.primary { background: var(--blue2); border-color: var(--blue2); color: white; }
    .link-btn.primary:hover { opacity: 0.85; }

    /* ── SECTIONS ── */
    .section { padding: 32px 0; }
    .section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
    .section-line { flex: 1; height: 1px; background: var(--border); }
    .section-title {
      font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
      color: var(--bright); letter-spacing: -0.5px;
    }
    .section-comment { font-size: 12px; color: var(--gcm); margin-bottom: 20px; }

    /* ── ABOUT ── */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .about-text p { color: var(--text); margin-bottom: 16px; line-height: 1.8; }
    .about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card {
      background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
      padding: 16px; text-align: center; transition: border-color 0.2s;
    }
    .stat-card:hover { border-color: var(--blue2); }
    .stat-number {
      font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--blue);
    }
    .stat-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

    /* ── PROJECTS ── */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
    .project-card {
      position: relative; background: var(--bg2); border: 1px solid var(--border);
      border-radius: 8px; padding: 20px; transition: all 0.2s; overflow: hidden;
    }
    .project-card::before {
      content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: var(--blue2); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
    }
    .project-card:hover::before { transform: scaleX(1); }
    .project-card:hover { border-color: var(--blue2); }
    .project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 8px; }
    .project-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .project-folder {
      position: relative; display: inline-block;
      width: 20px; height: 20px; font-size: 20px; line-height: 1;
      flex-shrink: 0;
    }
    .project-folder span {
      position: absolute; inset: 0;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .project-folder .folder-open { opacity: 0; transform: scale(0.9); }
    .project-folder .folder-closed { opacity: 1; transform: scale(1); }
    .project-card:hover .project-folder .folder-closed { opacity: 0; transform: scale(1.05) translateY(-1px); }
    .project-card:hover .project-folder .folder-open { opacity: 1; transform: scale(1.05) translateY(-1px); }
    .project-status {
      font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
      padding: 3px 8px; border-radius: 999px; white-space: nowrap;
      background: var(--bg3); border: 1px solid var(--border);
    }
    .project-status.status-live { color: var(--green); }
    .project-status.status-progress { color: var(--yellow); }
    .project-links { display: flex; gap: 8px; }
    .project-link { color: var(--dim); transition: color 0.2s; }
    .project-link:hover { color: var(--text); }
    .project-title { font-size: 15px; font-weight: 600; color: var(--bright); margin-bottom: 8px; }
    .project-desc { font-size: 12px; color: var(--dim); margin-bottom: 16px; line-height: 1.6; }
    .project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
    .tech-tag { font-size: 11px; padding: 3px 8px; background: var(--bg3); border-radius: 4px; color: var(--green); border: 1px solid var(--border); }

    /* ── SKILLS ── */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    .skill-category {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 20px 20px 20px 20px;
      transition: border-color 0.2s;
    }
    .skill-category:hover { border-color: var(--border); }
    .skill-category-header {
      margin-bottom: 14px;
    }
    /* "const languages = [" code-aesthetic heading */
    .skill-category-name {
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--dim);
      display: block;
      margin-bottom: 6px;
      user-select: none;
    }
    .skill-category-name .kw   { color: var(--purple); }
    .skill-category-name .var  { color: var(--yellow); }
    .skill-category-name .punc { color: var(--text); opacity: 0.5; }
    .skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .skill-item {
      font-size: 12px; padding: 5px 10px; background: var(--bg3);
      border: 1px solid var(--border); border-radius: 4px; color: var(--text);
      transition: border-color 0.2s, color 0.2s; cursor: default;
    }
    .skill-item:hover { border-color: var(--blue); color: var(--blue); }
    /* Legacy skill-card classes kept for backward compatibility */
    .skill-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
    .skill-card-title {
      display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
      color: var(--yellow); margin-bottom: 16px; font-family: 'JetBrains Mono', monospace;
    }
    .skill-card-title svg { color: var(--blue); }

    /* ── PRINCIPLES ── */
    .principles-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .principle-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-left: 2px solid var(--blue2);
      border-radius: 0 6px 6px 0;
      padding: 16px 20px;
      transition: border-left-color 0.2s, background 0.2s;
    }
    .principle-card:hover {
      border-left-color: var(--blue);
      background: var(--bg3);
    }
    .principle-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .principle-prefix {
      font-size: 11px;
      color: var(--blue2);
      font-family: 'JetBrains Mono', monospace;
      user-select: none;
      flex-shrink: 0;
    }
    .principle-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--bright);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      line-height: 1.3;
    }
    .principle-body {
      font-size: 12px;
      color: var(--text);
      line-height: 1.75;
      padding-left: 30px; /* aligns under the name, past the prefix */
    }

    /* ── TIMELINE ENHANCEMENTS ── */
    .timeline-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }
    .timeline-attrs {
      list-style: none;
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .timeline-attrs li {
      font-size: 11px;
      color: var(--dim);
      line-height: 1.5;
      padding-left: 2px;
    }
    .timeline-attrs li::before {
      content: "→ ";
      color: var(--blue2);
      font-family: 'JetBrains Mono', monospace;
    }

    /* ── TIMELINE ── */
    .timeline { position: relative; padding-left: 24px; }
    .timeline::before {
      content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px;
      width: 1px; background: var(--border);
    }
    .timeline-item { position: relative; margin-bottom: 36px; }
    .timeline-item::before {
      content: ""; position: absolute; left: -20px; top: 8px;
      width: 9px; height: 9px; border-radius: 50%;
      background: var(--blue2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue2);
    }
    .timeline-date { font-size: 12px; color: var(--gcm); margin-bottom: 4px; }
    .timeline-title { font-size: 15px; font-weight: 600; color: var(--bright); margin-bottom: 4px; }
    .timeline-company { font-size: 13px; color: var(--green); margin-bottom: 8px; }
    .timeline-desc { font-size: 12px; color: var(--text); line-height: 1.7; }

    /* ── CONTACT ── */
    .contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    .contact-card {
      display: flex; align-items: center; gap: 12px; padding: 20px;
      background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
      transition: all 0.2s; cursor: pointer;
    }
    .contact-card:hover { border-color: var(--blue2); background: var(--bg3); }
    .contact-icon { font-size: 24px; }
    .contact-info h4 { font-size: 13px; font-weight: 600; color: var(--bright); margin-bottom: 2px; }
    .contact-info p { font-size: 12px; color: var(--dim); }

    /* ── THEME SWITCHER ── */
    .theme-switcher { display: flex; gap: 6px; align-items: center; }
    .theme-btn { width: 16px; height: 16px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
    .theme-btn:hover { transform: scale(1.15); }
    .theme-btn.active { border-color: white; }
    .theme-vscode { background: #1e1e1e; border-color: #555 !important; }
    .theme-rose    { background: #eb6f92; }
    .theme-tokyo   { background: #7aa2f7; }
    .theme-cat     { background: #cba6f7; }
    .theme-nord    { background: #88c0d0; }
    .theme-gruvbox { background: #fabd2f; }

    /* ── REVEAL ── */
    .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    /* ── INLINE CODE STYLE ── */
    .code-comment { color: var(--gcm); font-size: 12px; }

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .home-section { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px 0; }
      .about-grid { grid-template-columns: 1fr; }
      .avatar-ring { width: 190px; height: 190px; }
    }
    @media (max-width: 768px) {
      .vscode-window {
        grid-template-columns: 1fr;
        grid-template-rows: 30px 44px 26px 1fr 22px;
        grid-template-areas:
          "titlebar"
          "tabs"
          "breadcrumb"
          "editor"
          "statusbar";
      }
      .sidebar { display: none; }
      .line-gutter { display: none; }
      .content { padding: 16px 20px 40px; }
      .hero-name { font-size: 30px; }
      .projects-grid { grid-template-columns: 1fr; }
      .tab { min-width: unset; padding: 0 10px; font-size: 12px; }
      .skills-grid { grid-template-columns: 1fr; }
      .principles-grid { grid-template-columns: 1fr; }
      .principle-body { padding-left: 0; }
    }
