/* =========================
   Root + Reset
   ========================= */

   :root {
    --bg: #0b0b0f;
    --fg: #eaeaf0;
    --muted: #9a9aa3;
    --muted-2: #2a2a33;
    --accent: #4da3ff;
  
    --timeline-height: 56px;
    --node-size: 16px;
    --node-hit: 32px;
  
    --role-font: 1.05rem;
    --detail-font: 0.85rem;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
  }
  
  /* =========================
     Navigation
     ========================= */
  
  .nav {
    position: sticky;
    top: 0;
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    padding: 1rem 3rem;
    z-index: 10;
  }
  
  .nav a {
    color: var(--fg);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
  }
  
  .nav a:hover {
    color: var(--accent);
  }
  
  /* =========================
     Hero
     ========================= */
  
  .hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
  }
  
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
  }
  
  .hero p {
    max-width: 700px;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.1rem;
  }
  
  /* =========================
     Sections
     ========================= */
  
  .section {
    padding: 6rem 10%;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* =========================
     Timeline Layout
     ========================= */
  
  .timeline-section {
    padding: 3.5rem 6%;
  }
  
  .timeline-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: start;
  }
  
  /* =========================
     Timeline Bar
     ========================= */
  
  .timeline-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--timeline-height);
    gap: 2rem;
  }
  
  .timeline-bar::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--muted-2);
    border-radius: 2px;
    z-index: 0;
  }
  
  /* =========================
     Timeline Nodes
     ========================= */
  
  .timeline-node {
    position: relative;
    z-index: 2;
    width: var(--node-hit);
    height: var(--node-hit);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    touch-action: manipulation;
  }
  
  .timeline-node::before {
    content: "";
    width: var(--node-size);
    height: var(--node-size);
    border-radius: 50%;
    background: var(--muted-2);
    transition: transform 160ms ease,
                box-shadow 160ms ease,
                background 160ms ease;
  }
  
  .timeline-node:hover::before {
    box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.12);
  }
  
  .timeline-node.active::before {
    background: var(--accent);
    transform: scale(1.25);
  }
  
  .timeline-node:focus-visible::before {
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.14);
    transform: scale(1.15);
  }
  
  /* =========================
     Tooltip Preview (optional)
     ========================= */
  
  .timeline-node .node-preview {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    max-width: 320px;
    padding: 0.5rem 0.65rem;
    background: rgba(20, 20, 22, 0.98);
    color: var(--fg);
    border-radius: 8px;
    font-size: 0.78rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 160ms ease;
    z-index: 3;
  }
  
  .timeline-node:hover .node-preview,
  .timeline-node.active .node-preview {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* =========================
     Detail Panel
     ========================= */
  
  .timeline-detail {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    padding-left: 1.6rem;
    min-height: var(--timeline-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .timeline-detail h3 {
    font-size: var(--role-font);
    font-weight: 600;
    margin-bottom: 0.35rem;
  }
  
  .timeline-detail .org {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
  }
  
  .timeline-detail .time {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem;
  }
  
  .timeline-detail ul {
    list-style: disc;
    padding-left: 1.05rem;
  }
  
  .timeline-detail li {
    font-size: var(--detail-font);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-break: break-word;
  }
  
  /* =========================
     Fade Animation
     ========================= */
  
  .timeline-detail .fade {
    animation: fadeIn 160ms ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* =========================
     Responsive
     ========================= */
  
  @media (max-width: 900px) {
    .timeline-layout {
      grid-template-columns: 1fr;
    }
  
    .timeline-bar {
      height: 48px;
      gap: 1.2rem;
    }
  
    .timeline-detail {
      border-left: none;
      padding-left: 0;
      margin-top: 1rem;
    }
  }
  
  /* =========================
     Accessibility
     ========================= */
  
  .timeline-node:focus {
    outline: none;
  }
  
  @media (prefers-contrast: more) {
    .timeline-node::before {
      box-shadow: none;
    }
  }

  /* Footer styling */
.site-footer {
    background: linear-gradient(90deg, #0b0b0f, #111115);
    color: var(--fg);
    padding: 2.5rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
  }
  
  .site-footer a:hover {
    text-decoration: underline;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .footer-line {
    width: 80px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin: 0.75rem 0;
  }
  
  .footer-contact p, .footer-credit p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
  }
  
  /* subtle glow accent line effect */
  .footer-line {
    box-shadow: 0 0 12px rgba(77, 163, 255, 0.5);
    transition: box-shadow 0.25s ease;
  }
  
  .footer-line:hover {
    box-shadow: 0 0 20px rgba(77, 163, 255, 0.8);
  }
  
  /* responsive */
  @media (max-width: 600px) {
    .site-footer {
      padding: 2rem 5%;
    }
    .footer-line {
      width: 60px;
    }
  }
  
  