    /* ... existing config styles ... */
    :root {
      /* Palette */
      --primary: #4f46e5;
      --primary-hover: #4338ca;
      --bg-body: #f8fafc;
      --bg-card: #ffffff;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --border: #e2e8f0;

      /* Accents */
      --color-folder: #f59e0b;
      --color-pdf: #ef4444;
      --color-img: #8b5cf6;
      --skill-bar-bg: #e2e8f0;

      /* Dimensions */
      --radius-lg: 16px;
      --radius-md: 10px;
      --radius-sm: 6px;

      /* Effects */
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
      outline: none;
    }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, sans-serif;
      background-color: var(--bg-body);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    /* Layout */
    .app-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 2rem;
      min-height: 100vh;
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 2rem;
      align-items: start;
    }

    @media (max-width: 900px) {
      .app-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
      }
    }

    /* Cards */
    .card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* Sidebar - Profile */
    .profile-header {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }

    .profile-img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 4px solid #fff;
      box-shadow: var(--shadow-md);
      object-fit: cover;
      background: var(--bg-body);
    }

    .profile-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.2;
    }

    .profile-title {
      font-size: 0.9rem;
      color: var(--primary);
      font-weight: 600;
      background: #eef2ff;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      display: inline-block;
    }

    .profile-tags {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }

    .tag {
      font-size: 0.7rem;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      background: #f1f5f9;
      color: var(--text-muted);
      font-weight: 500;
      border: 1px solid var(--border);
    }

    .contact-list {
      list-style: none;
      padding: 0;
      margin: 1rem 0 0;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      font-size: 0.9rem;
    }

    .contact-list li {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text-muted);
    }

    .contact-list i {
      color: var(--primary);
      width: 18px;
      text-align: center;
    }

    .contact-list a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .contact-list a:hover {
      color: var(--primary);
      text-decoration: underline;
    }

    /* Sidebar - Skills */
    .skills-section h3 {
      font-size: 1rem;
      font-weight: 700;
      margin: 0 0 1rem 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text-main);
    }

    .skill-group {
      margin-bottom: 0.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }

    .skill-group summary {
      padding: 0.5rem 0.75rem;
      background: #f8fafc;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
      /* Hide default marker */
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.2s;
    }

    .skill-group summary:hover {
      background: #f1f5f9;
    }

    .skill-group summary::-webkit-details-marker {
      display: none;
    }

    .skill-list {
      padding: 0.75rem;
      background: #fff;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    /* .skill-item margin handled by parent flex gap */

    .skill-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 500;
      margin-bottom: 0.2rem;
      color: #334155;
    }

    .skill-bar {
      height: 5px;
      background: var(--skill-bar-bg);
      border-radius: 3px;
      overflow: hidden;
    }

    .skill-progress {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), #8b5cf6);
      border-radius: 3px;
      width: 0;
      transition: width 1s ease-out;
    }

    .soft-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .soft-pill {
      font-size: 0.8rem;
      padding: 0.35rem 0.75rem;
      border-radius: 50px;
      background: #f8fafc;
      border: 1px solid var(--border);
      color: var(--text-main);
    }

    /* Main Content Area */
    .main-column {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .bio-section h2 {
      font-size: 1.25rem;
      font-weight: 800;
      margin: 0 0 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-main);
    }

    .bio-text {
      font-size: 0.9rem;
      color: #334155;
      line-height: 1.6;
      text-align: justify;
    }

    .bio-text p {
      margin-bottom: 1rem;
    }

    .bio-text ul {
      padding-left: 1.2rem;
      margin-bottom: 1rem;
    }

    .bio-text li {
      margin-bottom: 0.4rem;
    }

    /* Repo Section (Enhance existing) */
    .repo-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .repo-title {
      font-size: 1.25rem;
      font-weight: 800;
      margin: 0;
    }

    /* Tree View & Toolbar */
    .toolbar {
      padding: 1rem;
      background: #fdfdfd;
      border-bottom: 1px solid var(--border);
      border-radius: var(--radius-md) var(--radius-md) 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
      justify-content: space-between;
    }

    .toolbar-left,
    .toolbar-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .search-wrapper {
      position: relative;
      flex: 1;
      min-width: 200px;
    }

    .search-input {
      width: 100%;
      padding: 0.6rem 1rem 0.6rem 2.8rem;
      border-radius: 50px;
      border: 1px solid var(--border);
      background: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }

    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    .search-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
      font-size: 0.9rem;
    }

    .btn {
      padding: 0.5rem 1rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-main);
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }

    .btn:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
      transform: translateY(-1px);
    }

    /* Document Tree */
    .tree-view {
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      background: #fff;
      padding: 0.5rem;
    }

    ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }

    .folder-children {
      padding-left: 1.5rem;
      margin-left: 0.75rem;
      border-left: 2px dashed var(--border);
    }

    li {
      margin-bottom: 2px;
    }

    .node {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0.75rem;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: var(--transition);
      border: 1px solid transparent;
    }

    .node:hover {
      background: #f8fafc;
      border-color: #f1f5f9;
    }

    .node-content {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex: 1;
      min-width: 0;
    }

    .icon-wrapper {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .folder-icon {
      color: var(--color-folder);
      background: #fffbe6;
    }

    .icon-pdf {
      color: var(--color-pdf);
      background: #fef2f2;
    }

    .icon-img {
      color: var(--color-img);
      background: #f5f3ff;
    }

    .node-label {
      font-weight: 500;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 0.95rem;
    }

    .badge {
      font-size: 0.75rem;
      background: #e2e8f0;
      color: var(--text-muted);
      padding: 0.1rem 0.5rem;
      border-radius: 50px;
      font-weight: 600;
    }

    .caret {
      color: #cbd5e1;
      width: 20px;
      text-align: center;
      font-size: 0.8rem;
      transition: transform 0.2s ease;
    }

    [aria-expanded="true"] .caret {
      transform: rotate(90deg);
      color: var(--text-muted);
    }

    .actions {
      display: flex;
      gap: 0.5rem;
      opacity: 0;
      transform: translateX(10px);
      transition: var(--transition);
    }

    .node:hover .actions {
      opacity: 1;
      transform: translateX(0);
    }

    @media (max-width: 768px) {
      .actions {
        opacity: 1;
        transform: none;
      }
    }

    .action-btn {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-muted);
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
    }

    .action-btn:hover {
      background: var(--bg-body);
      color: var(--text-main);
      border-color: #cbd5e1;
    }

    .download-btn:hover {
      color: var(--primary);
      border-color: var(--primary);
      background: #eef2ff;
    }

    .preview-btn:hover {
      color: var(--color-img);
      border-color: var(--color-img);
      background: #f5f3ff;
    }

    .hidden {
      display: none !important;
    }

    /* Footer */
    .app-footer {
      border-top: 1px solid var(--border);
      padding-top: 1.5rem;
      margin-top: auto;
      text-align: center;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .app-footer a {
      color: var(--primary);
      text-decoration: none;
    }

    .app-footer a:hover {
      text-decoration: underline;
    }

    /* Dialog/Modal */
    dialog {
      border: none;
      padding: 0;
      border-radius: var(--radius-lg);
      width: min(1200px, 95vw);
      height: min(85vh, 800px);
      box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
      background: #fff;
      flex-direction: column;
      display: none;
      position: fixed;
      inset: 0;
      margin: auto;
      z-index: 50;
    }

    dialog[open] {
      display: flex;
      animation: slideUp 0.3s ease;
    }

    dialog::backdrop {
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      animation: fadeIn 0.3s ease;
    }

    @keyframes slideUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .modal-header {
      padding: 1rem 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #fff;
    }

    .modal-title {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text-main);
    }

    .close-modal-btn {
      background: none;
      border: none;
      font-size: 1.25rem;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 50%;
      transition: var(--transition);
    }

    .close-modal-btn:hover {
      background: #f1f5f9;
      color: var(--text-main);
    }

    .modal-content {
      flex: 1;
      background: #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }

    #previewFrame {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

    #previewImage {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      padding: 1rem;
      display: none;
    }



    /* Navigation */
    .app-nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    .nav-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--text-main);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      letter-spacing: -0.5px;
    }

    .nav-brand span {
      color: var(--primary);
    }

    .nav-brand i {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-link {
      text-decoration: none;
      color: var(--text-muted);
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-link i {
      font-size: 0.85rem;
      opacity: 0.8;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--primary);
      transform: translateY(-1px);
    }

    @media (max-width: 768px) {
      .nav-container {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
      }

      .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
      }
    }

    /* Portfolio Section */
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    .project-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: #cbd5e1;
    }

    .project-img {
      height: 180px;
      background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 3.5rem;
      border-bottom: 1px solid var(--border);
      transition: color 0.3s;
    }

    .project-card:hover .project-img {
      color: #4338ca;
    }

    .project-content {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .project-title {
      font-weight: 800;
      font-size: 1.1rem;
      color: var(--text-main);
      margin: 0;
    }

    .project-desc {
      font-size: 0.9rem;
      color: #64748b;
      line-height: 1.6;
      flex: 1;
      margin-bottom: 0.5rem;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.6rem;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-main);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s;
    }

    .project-link:not(.disabled):hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    .project-link.disabled {
      opacity: 0.6;
      cursor: not-allowed;
      background: #f1f5f9;
    }

    /* Print Styles - Only for printing */
    @media print {

      .app-nav,
      .toolbar,
      .scroll-top-btn,
      .btn,
      .actions,
      #repository,
      #portfolio {
        display: none !important;
      }

      .app-container {
        display: block;
        padding: 0;
        margin: 0;
      }

      .sidebar {
        margin-bottom: 2rem;
        page-break-after: always;
      }

      .card {
        box-shadow: none;
        border: none;
        padding: 0;
      }

      body {
        background: #fff;
        color: #000;
      }

      a {
        text-decoration: none;
        color: #000;
      }

      .timeline-section {
        page-break-inside: avoid;
      }
    }

    /* Timeline Section H2 Style Fix */
    .timeline-section h2 {
      font-size: 1.25rem;
      font-weight: 800;
      margin-bottom: 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-main);
    }

    /* Scroll to Top Button */
    .scroll-top-btn {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 48px;
      height: 48px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 50%;
      box-shadow: var(--shadow-lg);
      font-size: 1.25rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
    }

    .scroll-top-btn.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .scroll-top-btn:hover {
      background: var(--primary-hover);
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    }

    /* Timeline Styles */
    .timeline {
      position: relative;
      padding-left: 1.5rem;
      border-left: 2px solid #e2e8f0;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .timeline-item {
      position: relative;
    }

    .timeline-dot {
      position: absolute;
      left: -1.95rem;
      /* calculates to center on border */
      top: 0;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--primary);
      border: 3px solid #fff;
      box-shadow: 0 0 0 2px #e2e8f0;
    }

    .timeline-date {
      font-size: 0.85rem;
      color: var(--primary);
      font-weight: 700;
      margin-bottom: 0.25rem;
      display: inline-block;
      background: #eef2ff;
      padding: 2px 8px;
      border-radius: 4px;
    }

    .timeline-role {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .timeline-company {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      font-style: italic;
    }

    .timeline-desc {
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.5;
    }

    .timeline-desc ul {
      margin: 0;
      padding-left: 1.2rem;
    }

    /* Footer Legal Links */
    .footer-legal {
      margin-top: 0.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .legal-link {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .legal-link:hover {
      text-decoration: underline;
      color: var(--primary);
    }

    .separator {
      margin: 0 0.5rem;
      color: #cbd5e1;
    }

    /* Text Content for Legal Modals */
    .text-content {
      padding: 1.5rem;
      line-height: 1.6;
      color: var(--text-main);
      display: block;
    }

    .text-content h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      margin-top: 1.5rem;
      color: var(--primary);
    }

    .text-content h3:first-child {
      margin-top: 0;
    }

    .text-content p {
      margin-bottom: 0.5rem;
    }

    /* Background Animation Canvas */
    #tech-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: -1;
      opacity: 0.6;
    }