:root {
        --bg: #050505;
        --neon-blue: #00f2ff;
        --text-main: #e0e0e0;
        --text-muted: #888;
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 255, 255, 0.08);
      }

      body {
        background: var(--bg);
        color: var(--text-main);
        font-family:
          "Inter",
          system-ui,
          -apple-system,
          sans-serif;
        line-height: 1.8;
        padding: 50px 10%;
        margin: 0;
        overflow-x: hidden;
      }

      /* Smooth Scroll & Animations */
      html {
        scroll-behavior: smooth;
      }
      .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition:
          opacity 0.8s ease-out,
          transform 0.8s ease-out;
      }
      .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* Navigation */
      .back-btn {
        display: inline-block;
        text-decoration: none;
        color: var(--neon-blue);
        border: 1px solid var(--neon-blue);
        padding: 10px 24px;
        border-radius: 50px;
        margin-bottom: 40px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
      }
      .back-btn:hover {
        background: var(--neon-blue);
        color: #000;
        box-shadow: 0 0 15px var(--neon-blue);
      }

      /* Typography & Layout */
      .content {
        max-width: 800px;
        margin: 0 auto;
      }
      h1 {
        font-size: 2.8rem;
        color: #fff;
        margin-bottom: 10px;
        line-height: 1.2;
      }
      h2 {
        font-size: 1.8rem;
        color: #fff;
        margin-top: 50px;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 10px;
      }
      h3 {
        font-size: 1.3rem;
        color: var(--neon-blue);
        margin-top: 30px;
      }
      p {
        font-size: 1.05rem;
        margin-bottom: 20px;
      }
      .metadata {
        color: var(--text-muted);
        margin-bottom: 40px;
        font-family: "Fira Code", monospace;
        font-size: 0.9rem;
      }

      /* Media & Inline Code */
      img {
        width: 100%;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        margin: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease;
      }
      img:hover {
        transform: scale(1.02);
      }
      code {
        background: #1a1a1a;
        padding: 3px 6px;
        border-radius: 4px;
        color: var(--neon-blue);
        font-family: "Fira Code", monospace;
        font-size: 0.9em;
      }

      /* Custom Stack Diagram */
      .stack-diagram {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 40px 0;
        font-family: "Fira Code", monospace;
      }
      .stack-row {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        padding: 15px;
        text-align: center;
        border-radius: 6px;
        position: relative;
      }
      .stack-row.buffer {
        border-left: 4px solid #27c93f;
      }
      .stack-row.rbp {
        border-left: 4px solid #ffbd2e;
      }
      .stack-row.rip {
        border-left: 4px solid #ff5f56;
        background: rgba(255, 95, 86, 0.1);
      }
      .stack-annotation {
        font-size: 0.8rem;
        color: var(--text-muted);
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
      }

      /* Code Block Styling */
      .code-container {
        position: relative;
        margin: 30px 0;
      }
      pre {
        background: #0d0d0d;
        color: #d4d4d4;
        padding: 40px 20px 20px;
        border-radius: 12px;
        overflow-x: auto;
        font-family: "Fira Code", monospace;
        font-size: 0.95rem;
        border: 1px solid var(--glass-border);
        margin: 0;
      }
      .copy-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #2a2a2a;
        color: #fff;
        border: 1px solid var(--glass-border);
        border-radius: 6px;
        padding: 5px 12px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
        opacity: 0;
        font-family: "Inter", sans-serif;
      }
      .code-container:hover .copy-btn {
        opacity: 1;
      }
      .copy-btn:hover {
        background: var(--neon-blue);
        color: #000;
      }
      .mac-dots {
        position: absolute;
        top: 15px;
        left: 15px;
        display: flex;
        gap: 8px;
      }
      .mac-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
      }
      .mac-dot.red {
        background: #ff5f56;
      }
      .mac-dot.yellow {
        background: #ffbd2e;
      }
      .mac-dot.green {
        background: #27c93f;
      }

      /* --- GITHUB REPO BUTTON --- */
      .github-repo-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: -10px; /* Pulls it slightly closer to the metadata */
        margin-bottom: 40px;
        padding: 10px 22px;
        background: rgba(0, 242, 255, 0.05); /* Very faint neon blue */
        border: 1px solid var(--neon-blue);
        color: var(--neon-blue);
        text-decoration: none;
        font-family: "Fira Code", monospace;
        font-size: 0.95rem;
        border-radius: 6px;
        transition: all 0.3s ease;
      }

      .github-repo-btn:hover {
        background: rgba(0, 242, 255, 0.15);
        color: #fff;
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
        transform: translateY(-2px);
      }

      .github-repo-btn svg {
        fill: currentColor; /* Inherits the neon blue, turns white on hover */
        transition: color 0.3s ease;
      }

      /* ========================================= */
      /* --- MOBILE RESPONSIVENESS --- */
      /* ========================================= */

      @media screen and (max-width: 768px) {
        body {
          padding: 30px 5%;
        }

        h1 {
          font-size: 2rem;
          word-wrap: break-word;
        }

        h2 {
          font-size: 1.5rem;
          margin-top: 35px;
        }

        p {
          font-size: 1rem;
        }
        pre {
          padding: 40px 15px 15px;
          font-size: 0.85rem;
        }
        .metadata {
          font-size: 0.8rem;
        }
      }