  :root {
    --bg-0: #06070A;
    --bg-1: #0D1017;
    --accent: #6C7CE8;
    --accent-dim: #3D4590;
    --text: #EDEEF2;
    --text-soft: #8890A6;
  }

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

  body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    overflow-x: hidden;
  }

  .sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  }

  /* the scrolling bar/
  /* Modern browsers — Chrome 121+, Edge 121+, Firefox, Safari 18.2+ */
* {
  scrollbar-width: 2px;
  scrollbar-color: #3d41b5 #1e1b4b;
}

/* Legacy WebKit — older Chrome/Edge/Safari, radius, borders & shadows */
*::-webkit-scrollbar {
  width: 0.5px;
  height: 1px;
}

*::-webkit-scrollbar-track {
  background-color: #1e1b4b;
  border-radius: 7px;
}

*::-webkit-scrollbar-track:hover {
  background-color: #0c0a3e;
}

*::-webkit-scrollbar-track:active {
  background-color: #15123d;
}

*::-webkit-scrollbar-thumb {
  background-color: #10114a;
  border-radius: 5px;
  min-height: 30px;
  box-shadow: 0 0 12px rgba(72,80,147, 0.60);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #040515;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #060b27;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

  /* ---------- INTRO LOADER ---------- */

  #intro-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.9s ease;
  }

  #intro-loader.loader-hidden {
    opacity: 0;
    pointer-events: none;
  }

  #wave-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 220px 60px #000000cc;
  }

  .intro-name {
    position: relative;
    z-index: 2;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    letter-spacing: -0.01em;
    text-shadow: 0 0 50px #6c7ce855, 0 0 110px #6c7ce822;
  }

  .intro-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.9s ease forwards;
  }

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

  .skip-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-soft);
    opacity: 0;
    animation: fadeIn 0.9s ease forwards;
    animation-delay: 1s;
  }

  @keyframes fadeIn {
    to { opacity: 0.7; }
  }

  @media (prefers-reduced-motion: reduce) {
    .intro-name span { animation: none; opacity: 1; transform: none; }
    .skip-hint { animation: none; opacity: 0.7; }
  }

  /* ---------- NAVIGATION BAR ---------- */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(6, 7, 10, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 40;
    display: flex;
    align-items: center;
  }

  .nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
  }

  @media (max-width: 859px) {
    .nav-container {
      padding: 0 24px;
    }
  }

  .nav-logo a {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(108, 124, 232, 0.15);
    border-color: rgba(108, 124, 232, 0.3);
    box-shadow: 0 4px 12px rgba(108, 124, 232, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  /* Hamburger Menu Button */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 50;
  }

  .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Mobile Dropdown Menu */
  .nav-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    z-index: 45;
  }

  .nav-mobile-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
  }

  .nav-mobile-link:hover, .nav-mobile-link.active {
    color: var(--text);
    background: rgba(108, 124, 232, 0.15);
    border-color: rgba(108, 124, 232, 0.3);
    box-shadow: 0 4px 12px rgba(108, 124, 232, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  @media (max-width: 639px) {
    .nav-links {
      display: none;
    }
    .nav-toggle {
      display: flex;
    }
    .navbar.nav-open .nav-mobile-menu {
      display: flex;
    }
    .navbar.nav-open .hamburger-line:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .navbar.nav-open .hamburger-line:nth-child(2) {
      opacity: 0;
    }
    .navbar.nav-open .hamburger-line:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  }

  /* ---------- HOME PAGE & CARD GRID ---------- */
  .home {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 72px;
    position: relative;
    z-index: 10;
  }

  .home-content {
    width: 100%;
    max-width: 1200px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.65fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    z-index: 10;
  }

  .card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Card styling - Premium dark mode aesthetic */
  .card {
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .card:hover {
    border-color: rgba(108, 124, 232, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
  }

  .card-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 0.5rem;
  }

  .card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
  }

  .card-heading {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    align-items: center;
  }

  .card-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 2rem;
  }

  /* Specific Card Layouts */
  .card-about {
    justify-content: flex-start;
  }

  .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
  }

  .skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
  }

  .skill-tag svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    color: var(--text-soft);
    stroke-width: 1.8;
  }

  .project-tags {
    margin: 0 0 1.25rem;
  }

  .card-about:hover .skill-tag {
    border-color: rgba(108, 124, 232, 0.15);
    background: rgba(108, 124, 232, 0.03);
    color: var(--text);
  }

  /* Work / Projects Card */
  .card-projects {
    min-height: 200px;
  }

  .card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .status-indicator {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  .card-footer {
    margin-top: auto;
  }

  .card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: gap 0.2s ease, color 0.2s ease;
  }

  .card-action-btn:hover {
    color: var(--text);
    gap: 12px;
  }

  /* ---------- PROJECTS PAGE ---------- */
  .projects-page {
    width: 100%;
    max-width: 1200px;
  }

  .project-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
  }

  .project-filter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .project-filter:hover,
  .project-filter.active {
    color: var(--text);
    background: rgba(108, 124, 232, 0.15);
    border-color: rgba(108, 124, 232, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .project-card {
    min-height: 0;
  }

  .project-card.is-filtered-out {
    display: none;
  }

  .project-cover {
    width: calc(100% + 4rem);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: -2rem -2rem 1.25rem;
    background: #10131c;
    border-radius: 15px 15px 0 0;
  }

  .project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    border: 1px solid currentColor;
    background: rgba(6, 7, 10, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .project-status svg,
  .project-meta-chip svg {
    width: 12px;
    height: 12px;
    stroke-width: 1.8;
  }

  .status-live { color: #4ade80; }
  .status-archived { color: #8890a6; }
  .status-prototype { color: var(--accent); }

  .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
  }

  .project-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 999px;
    padding: 5px 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
  }

  .project-date {
    color: var(--accent);
  }

  /* ---------- ARTICLES PAGE ---------- */
  .articles-page {
    width: 100%;
    max-width: 1200px;
  }

  .article-featured {
    min-height: 360px;
    margin-bottom: 1.25rem;
    padding: clamp(2rem, 5vw, 4rem);
  }

  .article-featured::before {
    content: '';
    position: absolute;
    width: 52%;
    height: 130%;
    right: -18%;
    top: -35%;
    background: radial-gradient(circle, rgba(108, 124, 232, 0.2), transparent 65%);
    pointer-events: none;
  }

  .article-standard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .article-card .card-label {
    margin-bottom: 0.85rem;
  }

  .article-title {
    position: relative;
    z-index: 1;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.8rem;
  }

  .article-featured .article-title {
    max-width: 19ch;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
  }

  .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .article-meta svg {
    width: 13px;
    height: 13px;
    color: var(--accent);
    stroke-width: 1.8;
  }

  .article-dek {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .article-featured .article-dek {
    max-width: 76ch;
    font-size: 0.88rem;
  }

  .article-tags {
    position: relative;
    z-index: 1;
    margin: 0 0 1.5rem;
  }

  /* ---------- ARTICLE DETAIL ---------- */
  .article-detail {
    width: 100%;
    max-width: 880px;
    padding: clamp(2rem, 5vw, 4rem);
  }

  .article-detail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 2rem;
  }

  .article-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .article-back:hover { color: var(--accent); }
  .article-back svg { width: 15px; height: 15px; stroke-width: 1.8; }

  .article-detail h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.035em;
    max-width: 17ch;
    margin-bottom: 1rem;
  }

  .article-lede {
    max-width: 65ch;
    margin-bottom: 1.5rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .article-body {
    max-width: 70ch;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .article-body p { margin-bottom: 1.25rem; }

  .article-body h2 {
    margin: 2.35rem 0 0.8rem;
    color: var(--text);
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.35;
  }

  .article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ---------- NOW PAGE ---------- */
  .now-card {
    width: 100%;
    max-width: 780px;
  }

  .now-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }

  .now-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
  }

  .now-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .now-list li > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--accent);
    stroke-width: 1.8;
  }

  .now-list strong {
    color: var(--text);
    font-weight: 500;
  }

  /* ---------- STACK PAGE ---------- */
  .stack-page {
    width: 100%;
    max-width: 1200px;
  }

  .stack-intro {
    margin-bottom: 1.5rem;
  }

  .stack-intro .card-desc {
    margin-bottom: 0;
    max-width: 70ch;
  }

  .stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .stack-card {
    min-height: 190px;
    padding: 1.5rem;
  }

  .stack-card > svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    margin-bottom: 1.25rem;
    stroke-width: 1.8;
  }

  .stack-card h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0.65rem;
  }

  .stack-card p {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.6;
  }

  /* ---------- HOME STATS ---------- */
  .home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
  }

  .stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 140px;
    padding: 1.25rem;
    background: var(--bg-1);
  }

  .stat-block > svg {
    width: 16px;
    height: 16px;
    margin-bottom: auto;
    color: var(--accent);
    stroke-width: 1.8;
  }

  .stat-block strong {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1;
    margin: 1rem 0 0.5rem;
  }

  .stat-block span {
    color: var(--text-soft);
    font-size: 0.65rem;
    line-height: 1.4;
  }

  /* ---------- SHARED FOOTER ---------- */
  .site-footer {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
  }

  .footer-brand {
    color: var(--text);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.82rem;
    text-decoration: none;
  }

  .footer-socials {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .footer-socials a {
    display: grid;
    place-items: center;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-socials a:hover { color: var(--accent); }

  .footer-socials svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
  }

  .site-footer small {
    justify-self: end;
    font-size: inherit;
  }

  @media (max-width: 859px) {
    .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer { padding: 2rem 1.5rem; }
  }

  @media (max-width: 639px) {
    .stack-grid { grid-template-columns: 1fr; }
    .home-stats { grid-template-columns: 1fr; }
    .site-footer {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
    }
    .site-footer small { justify-self: center; }
  }

  .arrow-icon {
    width: 14px;
    height: 14px;
  }

  /* Video Card */
  .card-video {
    min-height: 240px;
  }

  .video-container {
    margin-top: auto;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #020305;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .video-frame {
    width: 100%;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .video-glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(108, 124, 232, 0.25) 0%, transparent 60%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .card-video:hover .video-glow-effect {
    opacity: 1;
    background: radial-gradient(circle at 60% 40%, rgba(108, 124, 232, 0.35) 0%, transparent 70%);
  }

  .play-btn {
    position: relative;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 7, 10, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .card-video:hover .play-btn {
    transform: scale(1.1);
    border-color: var(--accent);
    background: rgba(108, 124, 232, 0.2);
    color: var(--text);
  }

  .play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
  }

  .video-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.4;
  }

  .video-overlay-text {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-soft);
    letter-spacing: 0.05em;
    z-index: 5;
  }

  /* Contact Card */

  /* Contact Card */
  .card-contact {
    justify-content: flex-start;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: auto;
  }

  .contact-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .contact-link-item:hover {
    border-color: rgba(108, 124, 232, 0.2);
    background: rgba(108, 124, 232, 0.03);
  }

  .contact-platform {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-soft);
    letter-spacing: 0.1em;
  }

  .contact-handle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text);
    word-break: normal;
  }

  .contact-content {
    min-width: 0;
    
  }

  .contact-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--text-soft);
    stroke-width: 1.8;
    transition: color 0.2s ease;
  }

  .contact-handle svg {
    width: 12px;
    height: 12px;
    margin-left: 3px;
    vertical-align: -2px;
    stroke-width: 1.8;
  }

  .contact-link-item:hover .contact-platform {
    color: var(--accent);
  }

  .contact-link-item:hover .contact-icon,
  .contact-link-item:hover .contact-handle svg {
    color: var(--accent);
  }
  /* .card-contact {
    min-width: 0;
    justify-content: flex-start;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: auto;
  }

  .contact-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .contact-link-item:hover {
    border-color: rgba(108, 124, 232, 0.2);
    background: rgba(108, 124, 232, 0.03);
  }

  .contact-platform {
    /* display: block; */
    /* font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-soft);
    letter-spacing: 0.1em;
  }

  .contact-handle {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    /* font-size: clamp(0.62rem, 1.6vw, 0.75rem); */
    /* white-space: normal; */
    /* color: var(--text); */
    /* word-break: break-all; */
  /* }

  .contact-content {
    min-width: 0; */
    /* flex: 1 1 auto; */
  /* }

  .contact-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--text-soft);
    stroke-width: 1.8;
    transition: color 0.2s ease;
  }

  .contact-handle svg {
    width: 12px;
    height: 12px;
    margin-left: 3px;
    vertical-align: -2px;
    stroke-width: 1.8;
  }

  .contact-link-item:hover .contact-platform {
    color: var(--accent);
  } */

  /* .contact-link-item:hover .contact-icon,
  .contact-link-item:hover .contact-handle svg {
    color: var(--accent);
  }  */

  .scroll-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 35;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(13, 16, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
  }

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

  .scroll-to-top:hover {
    color: var(--accent);
    border-color: rgba(108, 124, 232, 0.5);
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
  }

  /* Responsive Grid */
  @media (max-width: 859px) {
    .card-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
      padding: 1rem 0;
    }
    .home {
      min-height: auto;
      padding: 3rem 1.5rem;
    }
    .article-standard-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- ABOUT PROFILE PHOTO ---------- */
  .profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 1.5rem 0;
    width: 100%;
  }

  .profile-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: block;
  }

  /* ---------- GLOBAL MOUSE GLOW ---------- */
  .global-mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    margin-left: -250px;
    margin-top: -250px;
    background: radial-gradient(circle, rgba(108, 124, 232, 0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1; /* Above background blobs (0) but below main content (10) and nav (40) */
    will-change: transform;
    display: block;
  }

  /* ---------- AMBIENT BACKGROUND GLOWS ---------- */
  .ambient-glows {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .glow-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, var(--accent-dim) 40%, transparent 75%);
    filter: blur(120px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
  }

  .blob-primary {
    width: 700px;
    height: 700px;
    left: 50%;
    top: 50%;
    margin-left: -350px;
    margin-top: -350px;
    animation: drift-primary 12s ease-in-out infinite;
  }

  .blob-secondary {
    width: 500px;
    height: 500px;
    right: 5%;
    bottom: 5%;
    animation: drift-secondary 14s ease-in-out infinite;
  }

  @keyframes drift-primary {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(40px, 15px, 0); }
    50% { transform: translate3d(0, 40px, 0); }
    75% { transform: translate3d(-40px, -15px, 0); }
    100% { transform: translate3d(0, 0, 0); }
  }

  @keyframes drift-secondary {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-30px, 30px, 0); }
    50% { transform: translate3d(20px, -40px, 0); }
    75% { transform: translate3d(40px, 20px, 0); }
    100% { transform: translate3d(0, 0, 0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .blob-primary, .blob-secondary {
      animation: none !important;
      transform: none !important;
    }
    .global-mouse-glow {
      display: none !important;
    }
  }

  /* ---------- PROJECTS SLIDESHOW ---------- */
  .slideshow-card {
    padding: 0 !important;
    height: 320px;
    position: relative;
    overflow: hidden;
  }

  .slides-container {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .project-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-1);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
    z-index: 1;
  }

  .project-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
  }

  .slide-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(108, 124, 232, 0.22) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
  }

  .slide-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
  }

  .slide-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
  }

  .slide-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
  }

  .slide-footer {
    margin-top: auto;
    position: relative;
    z-index: 2;
  }

  .slide-link {
    display: inline-flex;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .slide-link:hover {
    color: var(--text);
    transform: translateX(4px);
  }

  .slide-indicators {
    position: absolute;
    bottom: 1.25rem;
    right: 2.2rem;
    display: flex;
    gap: 8px;
    z-index: 5;
  }

  .slide-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .slide-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent);
  }


  /* ==============================
   ARTICLE READER
   ============================== */

.article-reader {
  width: 100%;
  max-width: 720px;
  margin: 28px auto 42px;
  padding: 16px 18px;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;

  font-family: 'IBM Plex Mono', monospace;
}

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reader-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.reader-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(108, 124, 232, 0.25);
  border-radius: 50%;

  color: var(--accent);
  font-size: 9px;
}

.reader-info > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reader-label {
  color: var(--text);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.reader-status {
  color: var(--text-soft);
  font-size: 0.58rem;
}

.reader-play {
  width: 34px;
  height: 34px;

  border: 1px solid rgba(108, 124, 232, 0.3);
  border-radius: 50%;

  background: rgba(108, 124, 232, 0.08);
  color: var(--accent);

  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.reader-play:hover {
  background: rgba(108, 124, 232, 0.15);
  border-color: rgba(108, 124, 232, 0.5);
  transform: scale(1.04);
}

.reader-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.reader-progress span {
  min-width: 32px;

  color: var(--text-soft);
  font-size: 0.55rem;
}

[data-reader-duration] {
  text-align: right;
}

/* Progress bar */

[data-reader-progress] {
  flex: 1;
  width: 100%;
  height: 3px;

  appearance: none;
  -webkit-appearance: none;

  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  cursor: pointer;
}

[data-reader-progress]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;

  width: 9px;
  height: 9px;

  border-radius: 50%;
  border: none;

  background: var(--accent);
  cursor: pointer;
}

[data-reader-progress]::-moz-range-thumb {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  border: none;

  background: var(--accent);
  cursor: pointer;
}

/* Speed controls */

.reader-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.reader-controls button {
  padding: 4px 7px;

  border: 1px solid transparent;
  border-radius: 5px;

  background: transparent;
  color: var(--text-soft);

  font-family: inherit;
  font-size: 0.55rem;

  cursor: pointer;
  transition: all 0.2s ease;
}

.reader-controls button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.reader-controls button.active {
  color: var(--accent);
  border-color: rgba(108, 124, 232, 0.2);
  background: rgba(108, 124, 232, 0.06);
}

.article-body .reading-now {
  color: var(--text);
  transition: color 0.25s ease;
}



  /* ---------- DASHBOARD CARD ---------- */
  .card-dashboard { min-height: 240px; }
  .dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
  .dashboard-stat { min-width: 0; padding: 0.7rem; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
  .dashboard-stat > svg { width: 14px; height: 14px; color: var(--accent); stroke-width: 1.8; }
  .dashboard-stat strong { display: block; margin: 0.45rem 0 0.25rem; font-family: 'Unbounded', sans-serif; font-size: 1.25rem; line-height: 1; }
  .dashboard-stat span, .dashboard-pulse { color: var(--text-soft); font-size: 0.58rem; line-height: 1.35; }
  .dashboard-pulse { display: flex; align-items: center; gap: 6px; margin-top: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
  .dashboard-pulse span { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 rgba(74, 222, 128, 0.45); animation: dashboard-pulse 1.8s ease-out infinite; }
  @keyframes dashboard-pulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

  /* ---------- PROJECTS REFINEMENT ---------- */
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }

  /* ---------- ARTICLE COVERS ---------- */
  .article-cover { position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; opacity: 1; }
  .article-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(13, 16, 23, 0.82), rgba(13, 16, 23, 0.54)); pointer-events: none; }
  .article-card > :not(.article-cover) { position: relative; z-index: 2; }
  .article-featured::before { z-index: 1; }

  /* ---------- READING PROGRESS ---------- */
  .reading-progress { position: fixed; top: 50%; right: 1.35rem; left: auto; z-index: 39; width: 4px; height: 130px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(13, 16, 23, 0.72); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transform: translateY(-50%); pointer-events: none; }
  .reading-progress-value { position: absolute; right: 0; bottom: 0; display: block; width: 100%; height: 0; background: var(--accent); box-shadow: 0 0 12px rgba(108, 124, 232, 0.7); transition: height 0.08s linear; }
  .article-detail-cover { width: 100%; aspect-ratio: 16 / 7; margin: 0 0 2rem; border: 1px solid rgba  rgba(255, 255, 255, 0.07); border-radius: 12px; background-position: center; background-size: cover; }












/*CSS*/
.ai-pipeline{

    margin:3rem 0;

    display:flex;
    flex-direction:column;

}

.pipeline-step{

    position:relative;

    padding:1rem 1.25rem;

    margin-left:26px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    background:rgba(255,255,255,.02);

    backdrop-filter:blur(10px);

    transition:.3s;
}

.pipeline-step:hover{

    transform:translateX(6px);

    border-color:rgba(120,120,255,.35);

}

.pipeline-step h4{

    margin:0 0 .4rem;

    font-family:'Unbounded',sans-serif;

    font-size:1rem;

}

.pipeline-step p{

    margin:0;

    color:var(--text-soft);

    font-size:.85rem;

    line-height:1.7;

}

.dot{

    position:absolute;

    left:-38px;

    top:50%;

    transform:translateY(-50%);

    width:14px;

    height:14px;

    border-radius:50%;

    background:#6D6DFF;

    box-shadow:0 0 18px #6D6DFF;

}

.pipeline-line{

    position:relative;

    width:2px;

    height:42px;

    margin-left:6px;

    background:rgba(255,255,255,.08);

    overflow:hidden;

}

/* Animation */
.pipeline-line::after{

    content:"";

    position:absolute;

    left:0;

    width:100%;

    height:18px;

    background:linear-gradient(
        to bottom,
        transparent,
        #7b7cff,
        transparent
    );

    animation:flow 2s linear infinite;

}

@keyframes flow{

    from{

        transform:translateY(-20px);

    }

    to{

        transform:translateY(60px);

    }

}

/*Colors*/
.incoming .dot{
    background:#4F8BFF;
    box-shadow:0 0 18px #4F8BFF;
}

.storage .dot{
    background:#00C8FF;
    box-shadow:0 0 18px #00C8FF;
}

.ai .dot{
    background:#8B5CF6;
    box-shadow:0 0 18px #8B5CF6;
}

.classify .dot{
    background:#F59E0B;
    box-shadow:0 0 18px #F59E0B;
}

.review .dot{
    background:#FFD43B;
    box-shadow:0 0 18px #FFD43B;
}

.done .dot{
    background:#22C55E;
    box-shadow:0 0 18px #22C55E;
}




      /* THE DASHBOARD PICTURE  */

  .showcase{

    margin:4rem 0;

}

.showcase-caption{

    margin-bottom:1.5rem;

}

.showcase-caption h3{

    margin:.5rem 0;

    font-family:'Unbounded',sans-serif;

    font-size:1.25rem;

}

.showcase-caption p{

    max-width:60ch;

    color:var(--text-soft);

}

  /* BROWSER WINDOW  */
.showcase-window{

    overflow:hidden;

    border-radius:22px;

    border:1px solid rgba(255,255,255,.08);

    background:#0f0f11;

    transition:.35s;

}

.showcase-window:hover{

    transform:translateY(-6px);

    border-color:rgba(139,92,246,.35);

    box-shadow:

    0 18px 45px rgba(0,0,0,.35);

}

/* TOP BAR */
.window-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:.85rem 1rem;

    border-bottom:1px solid rgba(255,255,255,.06);

}

/* THREE DOTS */
.window-dots{

    display:flex;

    gap:.45rem;

}
.window-dots span{

    width:10px;

    height:10px;

    border-radius:50%;

    background:rgba(255,255,255,.15);

}

/* URL */
.window-bar small{

    color:var(--text-soft);

    font-family:'IBM Plex Mono',monospace;

    font-size:.72rem;

}

/* IMAGE  */
.showcase img{

    width:100%;

    display:block;

    object-fit:cover;

}

/* REVEAL ANIMATION */
.reveal{

    opacity:1;

    transform:none;

    transition:

    opacity .8s ease,

    transform .8s ease;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}


/* -------------------------------------------------------------------------------- */
    /* FOUR MINI CARDS */


    .stack-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:1rem;

    margin-top:2rem;

}

.stack-card{

    padding:1.25rem;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    background:rgba(255,255,255,.02);

    transition:.3s ease;

}

.stack-card:hover{

    transform:translateY(-5px);

    border-color:rgba(124,124,255,.35);

    box-shadow:0 12px 35px rgba(0,0,0,.25);

}

    /* TITLES */

    .stack-title{

    display:flex;

    align-items:center;

    gap:.7rem;

    margin-bottom:1rem;

}

.stack-title h3{

    margin:0;

    font-family:'Unbounded',sans-serif;

    font-size:.95rem;

}

    /* TAGS */

    .stack-tags{

    display:flex;

    flex-wrap:wrap;

    gap:.55rem;

}

.stack-tags span{

    padding:.45rem .8rem;

    border-radius:999px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    color:var(--text-soft);

    font-size:.75rem;

    font-family:'IBM Plex Mono',monospace;

    transition:.25s;

}

.stack-tags span:hover{

    color:var(--text);

    border-color:rgba(124,124,255,.35);

}


  /* COLORED ICONS */


.stack-icon{

    font-size:.8rem;

}

.backend .stack-icon{

    color:#7C6BFF;

}

.database .stack-icon{

    color:#3BA4FF;

}

.frontend .stack-icon{

    color:#22C55E;

}

.security .stack-icon{

    color:#F59E0B;

}

  @media (max-width:700px){

    .stack-grid{

        grid-template-columns:1fr;

    }

}




/* -------------------------------------------------------------- */
  /* FUTURE IMPROVEMENT SECTION */
  /* CSS */
  .future-intro{

    max-width:65ch;

    color:var(--text-soft);

    margin-bottom:2rem;

}

.future-roadmap{

    display:flex;

    flex-direction:column;

    gap:1.5rem;

}

.roadmap-item{

    display:flex;

    align-items:flex-start;

    gap:1rem;

    padding-bottom:1.4rem;

    border-bottom:1px solid rgba(255,255,255,.06);

}

.roadmap-status{

    flex-shrink:0;

    width:34px;

    height:34px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-family:'IBM Plex Mono',monospace;

    font-size:.9rem;

    color:var(--accent);

    border:1px solid rgba(124,124,255,.25);

    background:rgba(124,124,255,.08);

}

.completed .roadmap-status{

    color:#3DDC84;

    border-color:rgba(61,220,132,.25);

    background:rgba(61,220,132,.08);

}

.roadmap-content h3{

    margin:0 0 .45rem;

    font-family:'Unbounded',sans-serif;

    font-size:.95rem;

    color:var(--text);

}

.roadmap-content p{

    margin:0;

    color:var(--text-soft);

    font-size:.85rem;

    line-height:1.7;

}

.roadmap-item:hover{

    transform:translateX(8px);

    transition:.25s ease;

}


/* --------------------------------------------------------------------------------------------------------------------- */


/* ------------------------------------------------------------------------------------------------------------------------------ */



  @media (max-width: 859px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.5rem; }
    .project-cover { width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1.1rem; }
    .project-card .card-heading { font-size: clamp(1.35rem, 6vw, 1.8rem); margin-bottom: 0.7rem; }
    .project-card .card-desc { margin-bottom: 1.25rem; }
    .project-meta { margin-bottom: 0.85rem; }
    .reading-progress { right: 0.7rem; height: 92px; }
  }

  /* ---------- PROJECT DETAIL ---------- */
  .project-detail-layout { width: 100%; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.25rem; align-items: start; }
  .project-documentation { padding: clamp(2rem, 5vw, 4rem); }
  .project-documentation h1 { margin: 0 0 1rem; font-family: 'Unbounded', sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.14; letter-spacing: -0.035em; }
  .project-doc-body { max-width: 68ch; color: var(--text-soft); font-size: 0.88rem; line-height: 1.8; }
  .project-doc-body h2 { margin: 2.2rem 0 0.75rem; color: var(--text); font-family: 'Unbounded', sans-serif; font-size: 1.15rem; line-height: 1.35; }
  .project-doc-body p { margin-bottom: 1.2rem; }
  .project-progress-panel { position: sticky; top: 96px; padding: 1.5rem; }
  .project-progress-panel > svg { width: 20px; height: 20px; margin-bottom: 1rem; color: var(--accent); }
  .project-progress-panel strong { display: block; margin: 1rem 0 0.7rem; font-family: 'Unbounded', sans-serif; font-size: 2rem; }
  .project-progress-panel p { margin-top: 1rem; color: var(--text-soft); font-size: 0.7rem; line-height: 1.5; }
  .project-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
  .project-progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.08s linear; }
  @media (max-width: 859px) { .project-detail-layout { grid-template-columns: 1fr; } .project-progress-panel { position: relative; top: auto; } }

  /* ---------- COVER BACKDROPS ---------- */
  .article-detail-header, .project-documentation-header { position: relative; overflow: hidden; isolation: isolate; padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; }
  .article-detail-header { margin-bottom: 2rem; }
  .project-documentation-header { margin-bottom: 2rem; }
  .article-detail-header::after, .project-documentation-header::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(13, 16, 23, 0.82), rgba(13, 16, 23, 0.48)); pointer-events: none; }
  .article-detail-header > :not(.article-detail-cover), .project-documentation-header > :not(.article-detail-cover) { position: relative; z-index: 2; }
  .article-detail-header .article-detail-cover, .project-documentation-header .article-detail-cover { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; opacity: 0.34; }
  @media (max-width: 639px) { .article-detail-header, .project-documentation-header { padding: 1.5rem; } }

  /* ---------- HUGO CONTENT SIDEBARS ---------- */
  .content-detail-layout { width: 100%; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.25rem; align-items: start; }
  .article-detail-layout .article-detail { max-width: none; }
  .content-sidebar { position: sticky; top: 96px; align-self: start; width: 100%; padding: 1.5rem; }
  .sidebar-section + .sidebar-section { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .sidebar-section .card-label { margin-bottom: 0.8rem; }
  .sidebar-details { display: grid; gap: 0.75rem; }
  .sidebar-details div { display: grid; gap: 0.25rem; }
  .sidebar-details dt { color: var(--text-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .sidebar-details dd { display: flex; align-items: center; gap: 6px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; line-height: 1.45; }
  .sidebar-details dd svg { width: 13px; height: 13px; color: var(--accent); stroke-width: 1.8; }
  .sidebar-tags { margin-top: 0; }
  .sidebar-toc nav { display: block; }
  .sidebar-toc ol, .sidebar-toc ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
  .sidebar-toc ul { margin: 0.25rem 0 0.1rem 0.7rem; }
  .sidebar-toc a { display: block; color: var(--text-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; line-height: 1.45; text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
  .sidebar-toc a:hover, .sidebar-toc a.is-active { color: var(--accent); transform: translateX(3px); }
  .sidebar-actions { display: grid; gap: 0.45rem; }
  .sidebar-action { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 0; border: 0; background: transparent; color: var(--text-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-align: left; text-decoration: none; cursor: pointer; transition: color 0.2s ease, transform 0.2s ease; }
  .sidebar-action:hover { color: var(--accent); transform: translateX(3px); }
  .sidebar-action svg { width: 14px; height: 14px; stroke-width: 1.8; }
  .sidebar-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.65rem; }
  .sidebar-progress .card-label { grid-column: 1 / -1; }
  .sidebar-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
  .sidebar-progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.12s ease-out; }
  .sidebar-progress strong { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 500; }
  @media (max-width: 859px) { .content-detail-layout { grid-template-columns: 1fr; } .content-sidebar { position: relative; top: auto; } }

  /* Keep article listing cards aligned with the project grid. */
  .article-standard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .article-standard-grid .article-card { height: 100%; }
  @media (max-width: 859px) { .article-standard-grid { grid-template-columns: 1fr; } }

  /* Article listings follow the same cover-and-body card pattern as projects. */
  .article-list-card { min-height: 0; }
  .article-list-card .article-cover { position: relative; inset: auto; display: block; width: calc(100% + 4rem); aspect-ratio: 16 / 9; margin: -2rem -2rem 1.25rem; background-position: center; background-size: cover; filter: none; }
  .article-list-card::after { display: none; }
  .article-list-card .article-meta { gap: 6px; margin-bottom: 1rem; }
  .article-list-card .article-meta span { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 999px; background: rgba(255, 255, 255, 0.025); }
  .article-list-card .article-meta svg { color: var(--accent); }
  .article-list-card .article-title { font-size: clamp(1.35rem, 2vw, 1.8rem); }
  .article-list-card .article-dek { margin-bottom: 1.25rem; }
  .article-list-card .article-tags { margin-bottom: 1.25rem; }
  @media (max-width: 859px) { .article-list-card { padding: 1.5rem; } .article-list-card .article-cover { width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1.1rem; } }

@media (max-width: 600px) {
  .article-reader {
    margin: 24px auto 34px;
    padding: 14px;
  }

  .reader-controls {
    gap: 3px;
  }

  .reader-controls button {
    padding: 4px 6px;
  }
}

.reader-icon svg,
.reader-play svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}
