    :root {
      --bg: #0a0a0f;
      --surface: #111118;
      --border: #1e1e2e;
      --accent: #5b8cff;
      --accent2: #00b5a8;
      --text: #e8e8f0;
      --muted: #6a6a80;
      --card-bg: #13131c;
      --input-bg: #0e0e18;
      --accent-dim: rgba(0, 229, 195, 0.08);
      --accent-glow: rgba(0, 229, 195, 0.15);
      --text: #e8edf5;
      --text-muted: #7a8ba0;
      --text-faint: #3e4f61;
      --serif: 'DM Serif Display', Georgia, serif;
      --sans: 'Sora', system-ui, sans-serif;
      --r: 12px;
    }

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

    html {
      scroll-behavior: smooth;
    }


    body {
      padding-top: 48px;
      font-family: 'DM Mono', monospace;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Grain overlay */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
      opacity: 0.03;
      pointer-events: none;
      z-index: 100;
    }

    ::-webkit-scrollbar {
      width: 4px;
    }

    ::-webkit-scrollbar-track {
      background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--accent2);
      border-radius: 99px;
    }


 .project-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1e1e2e;
  font-family: 'DM Mono', monospace;
}

.project-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 28px;
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #e8e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-home svg {
  color: var(--accent);
  transition: transform 0.2s;
}

.nav-home:hover {
  color: var(--accent);
}

.nav-home:hover svg {
  transform: translateX(-3px);
}

.project-nav.scrolled {
  padding: 0.7rem 2.5rem;
  background: rgba(7,9,15,0.95);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin: 0 auto; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }


/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  padding: 0.22rem 0.52rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}
.lang-btn:hover {
  color: var(--accent);
  border-color: rgba(0,229,195,0.3);
}
.lang-btn.active {
  background: rgba(0,229,195,0.12);
  border-color: rgba(0,229,195,0.35);
  color: var(--accent);
}
.lang-toggle--mobile {
  margin-top: 0.5rem;
  gap: 6px;
}
.lang-toggle--mobile .lang-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}


    body::after {
      content: '';
      position: fixed;
      top: -30%;
      left: 50%;
      transform: translateX(-50%);
      width: 700px;
      height: 500px;
      background: radial-gradient(ellipse, rgba(200, 240, 96, 0.07) 0%, transparent 70%);
      pointer-events: none;
    }

    .wrapper {
      max-width: 1000px;
      margin: 0 auto;
      padding: 80px 40px 100px;
    }

    header {
      margin-bottom: 80px;
      animation: fadeUp 0.7s ease both;
    }

    .eyebrow {
      all: unset;
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      color: var(--accent);
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      cursor: pointer;
    }

    .eyebrow::after {
      content: '';
      display: block;
      width: 40px;
      height: 1px;
      background: var(--accent);
      opacity: 0.6;
    }

    h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(2.8rem, 6vw, 4.5rem);
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 20px;
    }

    h1 em {
      font-style: italic;
      color: var(--accent);
    }

    .subtitle {
      font-size: 0.82rem;
      color: var(--muted);
      letter-spacing: 0.03em;
      max-width: 420px;
      line-height: 1.7;
    }

    /* Divider */
    .divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 40px;
      animation: fadeUp 0.7s 0.1s ease both;
    }

    .divider-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, var(--border), transparent);
    }

    .divider-count {
      font-size: 0.68rem;
      color: var(--muted);
      letter-spacing: 0.15em;
    }

    /* Grid */
    .projects {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

  @media (min-width: 800px) {
    /* Last card centered when it's alone in a row */
    .projects > .project-card:last-child:nth-child(odd) {
      grid-column: 1 / -1;
      max-width: calc(50% - 10px);
      margin-inline: auto;
    }
  }

    /* Cards */
    .project-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 36px 32px;
      text-decoration: none;
      color: var(--text);
      display: block;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, transform 0.3s;
      animation: fadeUp 0.6s ease both;
    }


    .project-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), transparent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.7s ease;
    }

    .project-card::after {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.7s;
      background: radial-gradient(ellipse at top left, var(--accent-dim), transparent 60%);
      pointer-events: none;
    }

    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
    }


    .project-card:hover::before {
      transform: scaleX(1);
    }

    .project-card:hover::after {
      opacity: 1;
    }

    .card-number {
      font-size: 0.62rem;
      letter-spacing: 0.2em;
      color: var(--muted);
      margin-bottom: 28px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-number span {
      display: inline-block;
      width: 20px;
      height: 1px;
      background: var(--muted);
    }

    .card-icon {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      font-size: 1.4rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
    }

    .project-card h2 {
      font-family: 'DM Serif Display', serif;
      font-size: 1.5rem;
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.2;
      margin-bottom: 14px;
      color: var(--text);
      transition: color 0.3s;
    }

    .project-card:hover h2 {
      color: #fff;
    }

    .project-card p {
      font-size: 0.75rem;
      line-height: 1.75;
      color: var(--muted);
      margin-bottom: 32px;
    }

    .card-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      transition: gap 0.3s;
    }

    .card-cta svg {
      transition: transform 0.3s;
    }

    .project-card:hover .card-cta {
      gap: 14px;
    }

    .project-card:hover .card-cta svg {
      transform: translateX(3px);
    }

/* Footer */
footer {
  width: 100%;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.footer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.footer-btn--github {
  color: var(--accent);
}

.footer-btn--github::before {
  background: rgba(91, 140, 255, 0.06);
}

.footer-btn--github:hover {
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 0 16px rgba(91, 140, 255, 0.12);
  transform: translateY(-2px);
}

.footer-btn--github:hover::before {
  opacity: 1;
}

.footer-btn--linkedin {
  color: var(--accent2);
}

.footer-btn--linkedin::before {
  background: rgba(61, 255, 208, 0.06);
}

.footer-btn--linkedin:hover {
  border-color: rgba(61, 255, 208, 0.4);
  box-shadow: 0 0 16px rgba(61, 255, 208, 0.12);
  transform: translateY(-2px);
}

.footer-btn--linkedin:hover::before {
  opacity: 1;
}

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.5;
        transform: scale(0.7);
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

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

    @media (max-width: 640px) {
      .wrapper {
        padding: 50px 24px 70px;
      }

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

      h1 {
        font-size: 2.4rem;
      }

      footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }

      .footer-social {
        width: 100%;
      }

      .footer-btn {
        flex: 1;
        justify-content: center;
      }
    }

    @media (max-width: 500px) {
      body {
        padding-top: 44px;
      }

      .project-nav {
        height: 44px;
        padding: 0 16px;
      }

      .project-nav::after {
        left: 16px;
      }

      .nav-home {
        font-size: 0.68rem;
      }

      .nav-links {
        display: none;
      }

      .wrapper {
        padding: 40px 16px 60px;
      }

      header {
        margin-bottom: 48px;
      }

      .eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.15em;
        margin-bottom: 14px;
      }

      h1 {
        font-size: 2rem;
        margin-bottom: 14px;
      }

      .subtitle {
        font-size: 0.78rem;
        line-height: 1.65;
      }

      .divider {
        margin-bottom: 28px;
      }

      .divider-count {
        font-size: 0.62rem;
      }

      .projects {
        gap: 14px;
      }

      .project-card {
        padding: 24px 20px;
      }

      .card-number {
        font-size: 0.58rem;
        margin-bottom: 20px;
      }

      .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        margin-bottom: 14px;
      }

      .project-card h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
      }

      .project-card p {
        font-size: 0.72rem;
        margin-bottom: 24px;
      }

      .card-cta {
        font-size: 0.65rem;
      }

      footer {
        margin-top: 48px;
        padding-top: 20px;
      }

      .footer-name {
        font-size: 0.68rem;
      }

      .footer-btn {
        font-size: 0.62rem;
        padding: 8px 12px;
        gap: 5px;
      }
    }