
    :root {
      --bg: #0a0f1a;
      --panel: #121a2b;
      --panel-2: #182235;
      --text: #edf3ff;
      --muted: #94a0b8;
      --accent: #59b7ff;
      --accent-2: #7b61ff;
      --border: #24324d;
      --glow: rgba(89, 183, 255, 0.18);
      --radius: 18px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Inter", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(89, 183, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(123, 97, 255, 0.08), transparent 35%),
        var(--bg);
      line-height: 1.7;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img {
      display: block;
    }

    /* ─── NAV ─── */

    nav {
      position: sticky;
      top: 0;
      display: flex;
      justify-content: center;
      gap: 34px;
      padding: 18px 24px;
      background: rgba(10, 15, 26, 0.72);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      z-index: 999;
    }

    nav a {
      position: relative;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.5px;
      color: var(--muted);
      transition: color 0.25s ease, transform 0.25s ease;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

    nav a:hover {
      color: var(--text);
      transform: translateY(-1px);
    }

    nav a:hover::after {
      transform: scaleX(1);
    }

   nav a.nav-active {
      color: var(--text);
    }

    nav a.nav-active::after {
      transform: scaleX(1);
    }

    /* ─── PDF LINK ─── */

    .pdf-link {
      display: inline-block;
      padding: 10px 16px;
      margin-right: 10px;
      color: #e6edf3;
      background: #182235;
      border: 1px solid #2a3a55;
      border-radius: 8px;
      text-decoration: none;
      font-size: 0.95rem;
      transition: all 0.2s ease;
    }

    .pdf-link:hover {
      background: #24324a;
      border-color: #3d5a80;
      transform: translateY(-2px);
    }

    .pdf-link:active {
      transform: translateY(0px);
      opacity: 0.9;
    }

    /* ─── HERO ─── */

    .hero {
      min-height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 24px 100px;
      position: relative;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent, rgba(10, 15, 26, 0.7));
      pointer-events: none;
    }

    .hero-content {
      max-width: 820px;
      position: relative;
      z-index: 2;
    }

    .hero-tag {
      display: inline-block;
      font-family: "JetBrains Mono", monospace;
      font-size: 12px;
      color: var(--accent);
      padding: 8px 14px;
      border: 1px solid rgba(89, 183, 255, 0.2);
      border-radius: 999px;
      margin-bottom: 32px;
      background: rgba(89, 183, 255, 0.05);
      letter-spacing: 0.08em;
    }

    .hero h1 {
      font-size: clamp(3.2rem, 8vw, 6rem);
      line-height: 0.95;
      letter-spacing: -3px;
      margin-bottom: 20px;
    }

    .hero h2 {
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      font-weight: 500;
      color: var(--muted);
      margin-bottom: 24px;
      letter-spacing: -0.5px;
    }

    .hero h2 span {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-sub {
      max-width: 620px;
      margin: 0 auto 40px;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.7;
    }

    .hero-cta {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .cta-btn {
      padding: 14px 28px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 0.95rem;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #0a0f1a;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(89, 183, 255, 0.3);
    }

    .cta-btn--outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
    }

    .cta-btn--outline:hover {
      border-color: var(--accent);
      box-shadow: 0 8px 30px var(--glow);
    }

    /* ─── SECTIONS ─── */

    section {
      width: min(1180px, 92%);
      margin: auto;
      padding: 110px 0;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.9s ease, transform 0.9s ease;
    }

    section.show {
      opacity: 1;
      transform: translateY(0);
    }

    .section-header {
      margin-bottom: 42px;
    }

    .section-label {
      font-family: "JetBrains Mono", monospace;
      font-size: 12px;
      color: var(--accent);
      margin-bottom: 10px;
      letter-spacing: 0.1em;
    }

    h2 {
      font-size: clamp(2rem, 4vw, 3rem);
      letter-spacing: -1px;
    }

    /* ─── GRID ─── */

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 26px;
    }

    /* ─── CARD ─── */

    .card {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: linear-gradient(145deg, var(--panel), var(--panel-2));
      transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .card:hover {
      transform: translateY(-8px);
      border-color: rgba(89, 183, 255, 0.45);
      box-shadow: 0 0 30px var(--glow), 0 20px 50px rgba(0,0,0,0.45);
    }

    .card-image {
      position: relative;
      overflow: hidden;
    }

    .card-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10, 15, 26, 0.9), transparent 55%);
    }

    .card img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .card:hover img {
      transform: scale(1.05);
    }

    /* WIP card image placeholder */
    .card-image--placeholder {
      height: 240px;
      background: linear-gradient(135deg, #121a2b, #182235);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .card-image--placeholder::after {
      display: none;
    }

    .card-wip {
      text-align: center;
      color: var(--muted);
    }

    .card-wip span {
      font-size: 2.5rem;
      display: block;
      margin-bottom: 10px;
    }

    .card-wip p {
      font-family: "JetBrains Mono", monospace;
      font-size: 12px;
      letter-spacing: 0.1em;
      color: var(--accent);
    }

    .card-content {
      padding: 24px;
    }

    .card-content h3 {
      font-size: 1.25rem;
      margin-bottom: 10px;
    }

    .card-content p {
      color: var(--muted);
      margin-bottom: 16px;
      font-size: 0.95rem;
    }

    /* Card status badge */
    .card-status {
      display: inline-block;
      font-family: "JetBrains Mono", monospace;
      font-size: 11px;
      padding: 4px 10px;
      border-radius: 999px;
      margin-bottom: 12px;
      letter-spacing: 0.05em;
    }

    .card-status--done {
      background: rgba(34, 197, 94, 0.1);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .card-status--wip {
      background: rgba(251, 191, 36, 0.1);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.2);
    }

    .tag {
      display: inline-block;
      font-family: "JetBrains Mono", monospace;
      font-size: 12px;
      color: var(--accent);
      background: rgba(89, 183, 255, 0.08);
      border: 1px solid rgba(89, 183, 255, 0.15);
      padding: 8px 12px;
      border-radius: 999px;
    }

    /* ─── PANELS ─── */

    .panel {
      background: linear-gradient(145deg, var(--panel), var(--panel-2));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .panel:hover {
      transform: translateY(-4px);
      border-color: rgba(89, 183, 255, 0.25);
    }

    .panel h3 {
      margin-bottom: 14px;
      font-size: 1.2rem;
    }

    .panel p {
      color: var(--muted);
      margin-bottom: 18px;
    }

    .stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    /* ─── ABOUT ─── */

    .about-grid {
      display: grid;
      grid-template-columns: 1.4fr 0.8fr;
      gap: 28px;
    }

    .about-photo {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border);
      margin-bottom: 22px;
    }

    .about-photo-placeholder {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-family: "JetBrains Mono", monospace;
      color: #0a0f1a;
      font-weight: 600;
      margin-bottom: 22px;
      opacity: 0.6;
    }

    .about-grid .panel p + p {
      margin-top: 14px;
    }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }

    .skill {
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(123, 97, 255, 0.08);
      border: 1px solid rgba(123, 97, 255, 0.18);
      color: #cfc8ff;
      font-size: 12px;
      font-family: "JetBrains Mono", monospace;
    }

    /* Focus list */
    .focus-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 16px;
    }

    .focus-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }

    .focus-icon {
      font-size: 1.2rem;
      margin-top: 2px;
      flex-shrink: 0;
    }

    .focus-item strong {
      display: block;
      color: var(--text);
      font-size: 0.95rem;
      margin-bottom: 2px;
    }

    .focus-item p {
      color: var(--muted);
      font-size: 0.85rem;
      margin: 0;
    }

    /* ─── RESEARCH ─── */

    .research-panel {
      border-left: 3px solid var(--accent);
    }

    .research-badge {
      display: inline-block;
      font-family: "JetBrains Mono", monospace;
      font-size: 11px;
      padding: 4px 10px;
      border-radius: 999px;
      margin-bottom: 14px;
      background: rgba(89, 183, 255, 0.1);
      color: var(--accent);
      border: 1px solid rgba(89, 183, 255, 0.2);
      letter-spacing: 0.05em;
    }

    .research-badge--complete {
      background: rgba(34, 197, 94, 0.1);
      color: #4ade80;
      border-color: rgba(34, 197, 94, 0.2);
    }

    /* ─── CONTACT ─── */

    .contact {
      text-align: center;
    }

    .contact-sub {
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto 32px;
      font-size: 1rem;
    }

    .contact-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 18px;
    }

    .contact-links a {
      padding: 14px 24px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: linear-gradient(145deg, var(--panel), var(--panel-2));
      transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      font-weight: 500;
    }

    .contact-links a:hover {
      transform: translateY(-3px);
      border-color: var(--accent);
      box-shadow: 0 0 20px var(--glow);
    }

    /* ─── FOOTER ─── */

    footer {
      padding: 50px 24px;
      text-align: center;
      color: var(--muted);
      font-size: 14px;
      border-top: 1px solid var(--border);
    }

    /* ─── RESPONSIVE ─── */

    @media (max-width: 900px) {

      .about-grid {
        grid-template-columns: 1fr;
      }

      nav {
        gap: 18px;
        flex-wrap: wrap;
      }

      .hero {
        min-height: auto;
      }

      .card img {
        height: 210px;
      }

    }
