:root{
    --bg: #14181A;
    --bg-alt: #1B2023;
    --bg-panel: #1F2528;
    --line: #2C3438;
    --phosphor: #6EE7A8;
    --phosphor-dim: #3E7A5C;
    --kube-blue: #4C8DFF;
    --violet: #A78BFA;
    --amber: #E8B86D;
    --text: #E9E7DD;
    --text-dim: #8A9199;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--sans);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }

  a{color:inherit;}

  ::selection{background:var(--phosphor); color:var(--bg);}

  /* subtle scanline / crt texture on the whole page */
  body::before{
    content:"";
    position:fixed; inset:0;
    pointer-events:none;
    background:repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 3px
    );
    z-index:9999;
    mix-blend-mode:overlay;
  }

  .wrap{max-width:920px; margin:0 auto; padding:0 24px;}
  section{padding:96px 0;}
  @media (max-width:640px){ section{padding:64px 0;} }

  .eyebrow{
    font-family:var(--mono);
    font-size:13px;
    letter-spacing:0.06em;
    color:var(--phosphor-dim);
    margin-bottom:14px;
    display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{content:"$"; color:var(--phosphor);}

  h1,h2,h3{font-family:var(--mono); font-weight:600; letter-spacing:-0.01em;}

  /* ---------- HERO ---------- */
  .hero{
    min-height:100svh;
    display:flex; flex-direction:column; justify-content:center;
    padding:64px 0;
  }

  .terminal{
    background:var(--bg-panel);
    border:1px solid var(--line);
    border-radius:10px;
    box-shadow:0 40px 90px -30px rgba(0,0,0,0.6);
    overflow:hidden;
  }

  .terminal-bar{
    display:flex; align-items:center; gap:8px;
    padding:12px 16px;
    background:var(--bg-alt);
    border-bottom:1px solid var(--line);
  }
  .dot{width:11px; height:11px; border-radius:50%;}
  .dot.red{background:#E5645A;}
  .dot.yellow{background:#E8B86D;}
  .dot.green{background:#6EE7A8;}
  .terminal-title{
    margin-left:auto; margin-right:auto;
    font-family:var(--mono); font-size:12px; color:var(--text-dim);
    transform:translateX(-14px);
  }

  .terminal-body{
    font-family:var(--mono);
    font-size:15px;
    padding:28px 24px 34px;
    min-height:260px;
  }
  @media (max-width:640px){
    .terminal-body{font-size:13px; padding:20px 16px 26px;}
  }

  .line{white-space:pre-wrap; word-break:break-word;}
  .prompt{color:var(--phosphor);}
  .path{color:var(--kube-blue);}
  .out{color:var(--text); display:block; margin:2px 0 16px;}
  .out.dim{color:var(--text-dim);}
  .cursor{
    display:inline-block; width:9px; height:1.1em;
    background:var(--phosphor);
    vertical-align:-2px;
    animation:blink 1s step-end infinite;
  }
  @keyframes blink{ 50%{opacity:0;} }

  .hero-scroll{
    text-align:center; margin-top:32px;
    font-family:var(--mono); font-size:12px; color:var(--text-dim);
    letter-spacing:0.08em;
  }

  /* ---------- ABOUT ---------- */
  .about-panel{
    background:var(--bg-panel);
    border:1px solid var(--line);
    border-radius:10px;
    padding:36px;
  }
  @media (max-width:640px){ .about-panel{padding:24px;} }
  .about-panel .filename{
    font-family:var(--mono); font-size:13px; color:var(--text-dim);
    border-bottom:1px dashed var(--line);
    padding-bottom:14px; margin-bottom:20px;
  }
  .about-panel p{
    font-size:18px; color:var(--text);
    max-width:70ch;
  }
  .about-panel p + p{margin-top:16px;}
  .about-panel .highlight{color:var(--phosphor); font-weight:500;}

  /* ---------- EXPERIENCE (kubectl table) ---------- */
  .kubectl-wrap{
    background:var(--bg-panel);
    border:1px solid var(--line);
    border-radius:10px;
    overflow-x:auto;
  }
  table.kubectl{
    width:100%;
    border-collapse:collapse;
    font-family:var(--mono);
    font-size:13.5px;
    min-width:640px;
  }
  table.kubectl th{
    text-align:left;
    padding:16px 18px 12px;
    color:var(--text-dim);
    font-weight:500;
    letter-spacing:0.04em;
    border-bottom:1px solid var(--line);
    white-space:nowrap;
  }
  table.kubectl td{
    padding:14px 18px;
    border-bottom:1px solid var(--line);
    color:var(--text);
    vertical-align:top;
  }
  table.kubectl tr:last-child td{border-bottom:none;}
  table.kubectl td.name{color:var(--kube-blue);}
  .status{
    display:inline-flex; align-items:center; gap:7px;
    padding:3px 10px 3px 8px;
    border-radius:20px;
    font-size:12px;
    white-space:nowrap;
  }
  .status.running{background:rgba(110,231,168,0.12); color:var(--phosphor);}
  .status.running .status-dot{
    width:7px; height:7px; border-radius:50%; background:var(--phosphor);
    animation:pulse 1.6s ease-in-out infinite;
  }
  .status.completed{background:rgba(138,145,153,0.1); color:var(--text-dim);}
  .status.completed .status-dot{width:7px; height:7px; border-radius:50%; background:var(--text-dim);}
  @keyframes pulse{
    0%,100%{opacity:1; box-shadow:0 0 0 0 rgba(110,231,168,0.5);}
    50%{opacity:0.6; box-shadow:0 0 0 4px rgba(110,231,168,0);}
  }

  /* ---------- SKILLS STACK ---------- */
  .stack{
    display:flex; flex-direction:column-reverse;
    gap:10px;
    max-width:640px;
  }
  .stack-layer{
    background:var(--bg-panel);
    border:1px solid var(--line);
    border-left:4px solid var(--kube-blue);
    border-radius:8px;
    padding:16px 20px;
    display:flex; flex-direction:column; gap:4px;
  }
  .stack-layer.layer-linux{border-left-color:var(--phosphor);}
  .stack-layer.layer-virt{border-left-color:var(--phosphor-dim);}
  .stack-layer.layer-iac{border-left-color:var(--kube-blue);}
  .stack-layer.layer-containers{border-left-color:var(--kube-blue);}
  .stack-layer.layer-orch{border-left-color:var(--violet);}

  .history-note{
    margin-top:14px; font-family:var(--mono); font-size:12.5px; color:var(--text-dim);
  }
  .stack-layer .layer-name{
    font-family:var(--mono); font-size:14px; font-weight:600;
    color:var(--text);
  }
  .stack-layer .layer-items{
    font-family:var(--sans); font-size:14px; color:var(--text-dim);
  }
  .cross-cutting{
    margin-top:28px;
    display:grid; grid-template-columns:1fr 1fr; gap:14px;
  }
  @media (max-width:560px){ .cross-cutting{grid-template-columns:1fr;} }
  .cc-card{
    border:1px dashed var(--line);
    border-radius:8px;
    padding:16px 18px;
  }
  .cc-card .cc-title{
    font-family:var(--mono); font-size:12px; letter-spacing:0.06em;
    color:var(--violet); margin-bottom:6px;
  }
  .cc-card .cc-body{font-size:14px; color:var(--text-dim);}

  /* ---------- KUBESTRONAUT ---------- */
  .k-progress-track{
    height:8px; border-radius:99px; background:var(--bg-panel);
    border:1px solid var(--line);
    overflow:hidden; margin:20px 0 8px; max-width:480px;
  }
  .k-progress-fill{
    height:100%; width:80%;
    background:linear-gradient(90deg, var(--phosphor-dim), var(--phosphor));
    border-radius:99px;
  }
  .k-progress-fill.complete{width:100%;}
  .k-progress-label{
    font-family:var(--mono); font-size:13px; color:var(--text-dim);
  }

  .badges{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
    gap:14px;
    margin-top:32px;
  }
  .badge{
    border-radius:10px;
    padding:20px 16px;
    text-align:center;
    background:var(--bg-panel);
    border:1px solid var(--line);
  }
  .badge .badge-icon{
    width:46px; height:46px; margin:0 auto 12px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:var(--mono); font-size:13px; font-weight:700;
  }
  .badge.earned{border-color:rgba(110,231,168,0.35);}
  .badge.earned .badge-icon{background:rgba(110,231,168,0.12); color:var(--phosphor); box-shadow:0 0 0 1px rgba(110,231,168,0.3);}
  .badge .badge-name{font-family:var(--mono); font-size:13px; color:var(--text); margin-bottom:4px;}
  .badge .badge-status{font-size:11.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.05em;}

  .badge.pending{border:1px dashed var(--amber); border-radius:10px;}
  .badge.pending .badge-icon{
    background:rgba(232,184,109,0.1); color:var(--amber);
    animation:pulseborder 1.8s ease-in-out infinite;
  }
  .badge.pending .badge-status{color:var(--amber);}
  @keyframes pulseborder{
    0%,100%{box-shadow:0 0 0 0 rgba(232,184,109,0.35);}
    50%{box-shadow:0 0 0 6px rgba(232,184,109,0);}
  }

  .badge.locked{opacity:0.45;}
  .badge.locked .badge-icon{background:var(--bg-alt); color:var(--text-dim);}

  .badge.capstone{
    border-color:rgba(167,139,250,0.4);
    background:linear-gradient(180deg, rgba(167,139,250,0.08), var(--bg-panel));
  }
  .badge.capstone .badge-icon{
    background:rgba(167,139,250,0.15); color:var(--violet);
    box-shadow:0 0 0 1px rgba(167,139,250,0.35), 0 0 18px rgba(167,139,250,0.25);
    font-size:18px;
  }
  .badge.capstone .badge-status{color:var(--violet);}

  .k-next{
    margin-top:28px;
    font-family:var(--mono); font-size:13.5px; color:var(--text-dim);
    border-left:3px solid var(--violet);
    padding-left:16px;
  }
  .k-next .k-next-title{color:var(--violet);}

  /* ---------- FOOTER ---------- */
  footer{
    padding:60px 0 80px;
    border-top:1px solid var(--line);
  }
  .footer-row{
    display:flex; flex-wrap:wrap; gap:24px 32px;
    align-items:center; justify-content:space-between;
  }
  .footer-links{display:flex; gap:24px; flex-wrap:wrap;}
  .footer-links a{
    font-family:var(--mono); font-size:14px; color:var(--text-dim);
    text-decoration:none;
    border-bottom:1px solid transparent;
    transition:color .15s, border-color .15s;
  }
  .footer-links a:hover{color:var(--phosphor); border-color:var(--phosphor);}
  .footer-note{font-family:var(--mono); font-size:12.5px; color:var(--phosphor-dim);}

  .section-heading{
    font-size:26px;
    margin-bottom:26px;
    color:var(--text);
  }

  /* scroll reveal */
  .reveal{opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
    .reveal{opacity:1; transform:none;}
  }

  :focus-visible{outline:2px solid var(--phosphor); outline-offset:3px;}
