    @font-face {
      font-family: 'Departure Mono';
      src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2409-1@1.0/DepartureMono-Regular.woff2') format('woff2');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }    

    :root {
      --bg: #000000;
      --surface: #111111;
      --border: #27272a;
      --accent: #e5e5e5;
      --accent2: #a1a1aa;
      --text: #a1a1aa;
      --muted: #71717a;
      --heading: #ffffff;
      --label-color: #33ff33;
      --separator-color: #27272a;
      
      /* NEW: Subtle white pattern for dark mode */
      --pattern-color: rgba(255, 255, 255, 0.1); 
    }

    [data-theme="light"] {
      --bg: #f0ece4; /* Or use Alvaro's slightly warm off-white: #f5f5f0 */
      --surface: #e4dfd5;
      --border: #e5e5e5;
      --accent: #171717;
      --accent2: #52525b;
      --text: #52525b;
      --muted: #52525b;
      --heading: #000000;
      --label-color: #4169e1;
      --separator-color: #a8a8bd;

      /* NEW: Subtle black pattern for light mode */
      --pattern-color: rgba(0, 0, 0, 0.1); 
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  
  /* Alvaro's Exact Dither Pattern */
  background-image: 
    radial-gradient(circle, var(--pattern-color) 0.6px, transparent 0.6px),
    repeating-linear-gradient(45deg, transparent, transparent 3px, var(--pattern-color) 3px, var(--pattern-color) 3.5px),
    repeating-linear-gradient(-45deg, transparent, transparent 3px, var(--pattern-color) 3px, var(--pattern-color) 3.5px);
  background-size: 7px 7px, 9px 9px, 9px 9px;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  
  /* ADD THESE TWO LINES: */
  background-color: var(--bg); 
  box-shadow: 0 0 20px 20px var(--bg); /* Blurs the edges so it fades into the pattern smoothly */
}
    /* ── HERO ── */
    header {
      padding: 5.5rem 0 3.5rem;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 2rem;
      align-items: center;
    }

    .hero-text { max-width: 560px; }

.hero-label {
  font-family: 'Departure Mono', monospace; /* Updated to Departure Mono */
  font-size: 0.8rem; /* Bumped up slightly since pixel fonts run small */
  letter-spacing: normal; /* Removed the wide tracking so the pixel font renders cleanly */
  color: var(--label-color);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}
    h1 {
      font-family: 'Departure Mono', monospace;
      font-size: clamp(2.6rem, 6vw, 4.2rem);
      font-weight: normal; /* Changed from 700 to normal */
      color: var(--heading);
      line-height: 1.05;
      letter-spacing: normal; /* Pixel fonts look better without squished tracking */
      margin-bottom: 1.2rem;
      opacity: 0;
      animation: fadeUp 0.7s ease forwards 0.2s;
    }
    .hero-desc {
      font-size: 1rem;
      color: var(--text);
      line-height: 1.8;
      margin-bottom: 2rem;
      opacity: 0;
      animation: fadeUp 0.7s ease forwards 0.35s;
    }

    .hero-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      opacity: 0;
      animation: fadeUp 0.7s ease forwards 0.5s;
    }

    .hero-links a {
      font-family: 'DM Mono', monospace;
      font-size: 0.76rem;
      letter-spacing: 0.05em;
      padding: 0.45rem 1rem;
      border: 1px solid var(--border);
      color: var(--text);
      text-decoration: none;
      border-radius: 2px;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .hero-links a:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(91,140,255,0.06);
    }

.hero-links a.primary {
  background: var(--heading);
  color: var(--bg);
  border-color: var(--heading);
}

.hero-links a.primary:hover { 
  background: transparent; 
  color: var(--heading);
}
    /* ── Photo ── */
    .photo-wrap {
      opacity: 0;
      animation: fadeUp 0.9s ease forwards 0.6s;
      flex-shrink: 0;
    }

    .photo-wrap img {
      width: 180px;
      height: 220px;
      object-fit: cover;
      object-position: center top;
      border-radius: 4px;
      border: 1px solid var(--border);
      display: block;
      filter: contrast(1.05);
    }

    @media (max-width: 600px) {
      header { grid-template-columns: 1fr; }
      .photo-wrap { display: none; }
    }

    /* ── Sections ── */
    section {
      padding: 3.5rem 0;
      border-bottom: 1px solid var(--border);
      border-color: var(--separator-color);
      opacity: 0;
      animation: fadeUp 0.7s ease forwards 0.5s;
    }

    .section-label {
      font-family: 'DM Mono', monospace;
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      color: var(--label-color);
      text-transform: uppercase;
      margin-bottom: 2rem;
    }

    h2 {
      font-family: 'Syne', sans-serif;
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--heading);
      letter-spacing: -0.01em;
      margin-bottom: 1.2rem;
    }

    /* ── About grid ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
    }
    @media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } }

    .about-fact { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.4rem; }
    .fact-key {
      font-family: 'DM Mono', monospace;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      color: var(--label-color);
      text-transform: uppercase;
    }
    .fact-val { font-size: 0.95rem; color: var(--text); }

    .interests { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.5rem; }
    .tag {
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      padding: 0.28rem 0.75rem;
      border: 1px solid var(--border);
      border-color: var(--text);
      border-radius: 2px;
      color: var(--text);
    }

    /* ── Education ── */
    .edu-list { display: flex; flex-direction: column; gap: 1.8rem; }
    .edu-item { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; align-items: start; }
    .edu-year {
      font-family: 'DM Mono', monospace;
      font-size: 0.7rem;
      color: var(--accent);
      padding-top: 0.25rem;
    }
    .edu-title { font-family: 'Syne', sans-serif; font-size: 0.97rem; font-weight: 600; color: var(--heading); margin-bottom: 0.2rem; }
    .edu-sub { font-size: 0.87rem; color: var(--muted); }

    /* ── Projects ── */
    .project-list { display: flex; flex-direction: column; gap: 1rem; }
    .project-card {
      border: 1px solid var(--border);
      padding: 1.3rem 1.5rem;
      border-radius: 3px;
      background: var(--surface);
      transition: border-color 0.2s, transform 0.2s;
      text-decoration: none;
      display: block;
      color: inherit;
    }
    .project-card:hover { border-color: var(--accent); transform: translateX(4px); }
    .project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.45rem; }
    .project-name { font-family: 'Syne', sans-serif; font-size: 0.93rem; font-weight: 600; color: var(--heading); }
    .project-lang {
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--accent2);
      letter-spacing: 0.08em;
      border: 1px solid rgba(255,107,107,0.3);
      padding: 0.12rem 0.5rem;
      border-radius: 2px;
    }
    .project-desc { font-size: 0.86rem; color: var(--muted); }

    /* ── Blog posts ── */
    .blog-list { display: flex; flex-direction: column; gap: 1rem; }
    .blog-card {
      border: 1px solid var(--border);
      padding: 1.3rem 1.5rem;
      border-radius: 3px;
      background: var(--surface);
      transition: border-color 0.2s, transform 0.2s;
      text-decoration: none;
      display: block;
      color: inherit;
    }
    .blog-card:hover { border-color: var(--accent); transform: translateX(4px); }
    .blog-pub {
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }
    .blog-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--heading); margin-bottom: 0.3rem; }
    .blog-date { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); }

    /* ── Publication ── */
    .pub-card {
      border-left: 2px solid var(--accent);
      padding: 1.2rem 1.5rem;
      background: var(--surface);
      border-radius: 0 3px 3px 0;
    }
    .pub-title { font-family: 'Syne', sans-serif; font-size: 0.97rem; font-weight: 600; color: var(--heading); margin-bottom: 0.4rem; }
    .pub-meta { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
    .pub-link {
      display: inline-block;
      margin-top: 0.7rem;
      font-family: 'DM Mono', monospace;
      font-size: 0.72rem;
      color: var(--accent);
      text-decoration: none;
    }
    .pub-link:hover { text-decoration: underline; }

    /* ── Stack ── */
    .stack-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
    .stack-item {
      font-family: 'DM Mono', monospace;
      font-size: 0.75rem;
      padding: 0.42rem 0.95rem;
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--text);
      background: var(--surface);
    }

    /* ── Highlights ── */
    .highlight-list { display: flex; flex-direction: column; gap: 1.4rem; }
    .highlight-item {
      display: grid;
      grid-template-columns: 2rem 1fr;
      gap: 1rem;
      align-items: start;
      padding: 1.2rem 1.4rem;
      border: 1px solid var(--border);
      border-radius: 3px;
      background: var(--surface);
    }
    .highlight-icon { font-size: 1.1rem; padding-top: 0.1rem; }
    .highlight-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--heading); margin-bottom: 0.3rem; }
    .highlight-sub { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

    /* ── Footer ── */
    footer {
      padding: 2.5rem 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-copy { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); }
    .footer-email { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--accent); text-decoration: none; }

    /* ── Animations ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    section:nth-child(1) { animation-delay: 0.4s; }
    section:nth-child(2) { animation-delay: 0.5s; }
    section:nth-child(3) { animation-delay: 0.6s; }
    section:nth-child(4) { animation-delay: 0.7s; }
    section:nth-child(5) { animation-delay: 0.8s; }
    section:nth-child(6) { animation-delay: 0.9s; }
    section:nth-child(7) { animation-delay: 1.0s; }

    .theme-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      border-radius: 2px;
      padding: 0.45rem 0.65rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .theme-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(91,140,255,0.06);
    }

    .theme-btn svg {
      width: 14px;
      height: 14px;
    }

/* ── SECTION DIVIDERS ── */
.theme-divider img {
  width: 100%; /* Forces the image to stretch across the full column */
  
  /* ADJUST THIS NUMBER TO MAKE IT THICKER OR THINNER */
  height: 25px; 
  
  /* 'fill' stretches the pixels vertically to make it thicker */
  object-fit: fill; 
  
  /* Optional: This tells the browser not to blur the image when stretching it */
  image-rendering: pixelated; 
}

/* 1. Default State (Dark Mode) */
.img-light {
  display: none; /* Hide the light image by default */
}
.img-dark {
  display: block; /* Show the dark image by default */
}

/* 2. Light Mode State */
[data-theme="light"] .img-light {
  display: block; /* Show the light image when in light mode */
}
[data-theme="light"] .img-dark {
  display: none; /* Hide the dark image when in light mode */
}
