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

    :root {
      --bg: #0a0a0f;
      --surface: #111118;
      --border: #1e1e2e;
      --accent: #00e5ff;
      --accent2: #7c3aed;
      --text: #e2e2f0;
      --muted: #6b6b8a;
      --tag-bg: #1a1a2e;
      --font-display: 'Syne', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 14px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* NOISE TEXTURE 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='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 1000;
      opacity: 0.4;
    }

    /* GRID BACKGROUND */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      z-index: 0;
      opacity: 0.3;
    }

    /* NAV */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 20px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      backdrop-filter: blur(20px);
      background: rgba(10, 10, 15, 0.8);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -0.5px;
    }

    .nav-logo span { color: var(--accent); }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: color 0.2s;
    }

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

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

    .nav-toggle {
      display: none;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 6px;
      padding: 10px 12px;
      cursor: pointer;
      font-family: var(--font-mono);
      transition: border-color 0.2s, color 0.2s, transform 0.2s;
    }

    .nav-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
    }

    /* Accessibility: keyboard focus */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    /* Accessibility: skip link */
    .skip-link {
      position: absolute;
      top: -60px;
      left: 12px;
      z-index: 10000;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 10px 12px;
      border-radius: 6px;
      text-decoration: none;
      font-size: 12px;
      transition: top 0.2s ease;
    }

    .skip-link:focus {
      top: 16px;
    }

    /* SECTIONS */
    section {
      position: relative;
      z-index: 1;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 60px;
    }

    /* HERO */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding-top: 80px;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: center;
      width: 100%;
    }

    /* HERO META */
    .hero-meta {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 20px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.2s;
    }

    .hero-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #10b981;
      font-weight: 500;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
      50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    }

    .hero-label {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--accent);
    }

    .hero-label::before {
      content: '// ';
      color: var(--muted);
    }

    .hero-name {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(42px, 5vw, 68px);
      line-height: 1.0;
      letter-spacing: -2px;
      color: var(--text);
      margin-bottom: 16px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.3s;
      margin-left: -2px;
    }

    .hero-name .line2 {
      color: var(--muted);
    }

    .hero-title {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 32px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.5s;
    }

    .hero-title strong { color: var(--text); }

    .hero-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.8;
      max-width: 480px;
      margin-bottom: 48px;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.7s;
    }

    .hero-cta {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      opacity: 0;
      animation: fadeUp 0.6s ease forwards 0.9s;
    }

    .about-lead {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.8;
      max-width: 680px;
      margin-bottom: 48px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.5px;
      text-decoration: none;
      border-radius: 4px;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--accent);
      color: #000;
      font-weight: 500;
    }

    .btn-primary:hover {
      background: #fff;
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0, 229, 255, 0.3);
    }

    .btn-ghost {
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-2px);
    }

    /* HERO RIGHT — CODE BLOCK */
    .hero-code {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      opacity: 0;
      animation: fadeIn 0.8s ease forwards 1.2s;
    }

    .code-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      background: rgba(255,255,255,0.02);
    }

    .dot { width: 10px; height: 10px; border-radius: 50%; }
    .dot-red { background: #ff5f57; }
    .dot-yellow { background: #ffbd2e; }
    .dot-green { background: #28c840; }

    .code-filename {
      margin-left: 8px;
      font-size: 11px;
      color: var(--muted);
    }

    .code-body {
      padding: 24px;
      font-size: 12px;
      line-height: 1.8;
    }

    .code-line { display: flex; gap: 16px; }
    .ln { color: #2a2a3e; min-width: 20px; text-align: right; user-select: none; }
    .kw { color: #7c3aed; }
    .cl { color: #00e5ff; }
    .fn { color: #f59e0b; }
    .st { color: #10b981; }
    .cm { color: #3d3d5c; font-style: italic; }
    .nu { color: #f97316; }
    .tx { color: var(--text); }

    /* SECTION HEADER */
    .section-header {
      margin-bottom: 60px;
    }

    .section-eyebrow {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .section-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: -1px;
      color: var(--text);
    }

    /* EXPERIENCE */
    #experience {
      padding: 120px 0;
    }

    .timeline {
      position: relative;
      padding-left: 32px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 1px;
      background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 56px;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -37px;
      top: 8px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 12px var(--accent);
    }

    .timeline-meta {
      display: flex;
      align-items: baseline;
      gap: 16px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }

    .timeline-company {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: var(--text);
    }

    .timeline-period {
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 1px;
    }

    .timeline-role {
      font-size: 12px;
      color: var(--accent);
      margin-bottom: 20px;
      letter-spacing: 0.5px;
    }

    .timeline-items {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .timeline-items li {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.7;
      padding-left: 16px;
      position: relative;
    }

    .timeline-items li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-size: 11px;
    }

    .timeline-items li strong { color: var(--text); }

    /* PROJECTS */
    #projects {
      padding: 120px 0;
      background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.03), transparent);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .project-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 32px;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }

    .project-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0,229,255,0.03), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .project-card:hover {
      border-color: rgba(0, 229, 255, 0.3);
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }

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

    .project-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .project-number {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 1px;
    }

    .project-status {
      font-size: 10px;
      color: #10b981;
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.3);
      padding: 3px 10px;
      border-radius: 3px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .project-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: var(--text);
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }

    .project-desc {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 24px;
    }

    .project-desc code {
      background: var(--tag-bg);
      color: var(--accent);
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 11px;
    }

    .project-highlights {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 24px;
    }

    .project-highlights li {
      font-size: 11px;
      color: var(--muted);
      padding-left: 14px;
      position: relative;
    }

    .project-highlights li::before {
      content: '▸';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-size: 9px;
    }

    .project-highlights li strong { color: var(--text); }

    .highlight-metric {
      color: var(--accent);
      font-weight: 600;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }

    .tag {
      background: var(--tag-bg);
      color: var(--muted);
      font-size: 10px;
      padding: 4px 10px;
      border-radius: 3px;
      letter-spacing: 0.5px;
      border: 1px solid var(--border);
    }

    .project-links {
      display: flex;
      gap: 12px;
    }

    .project-link {
      font-size: 11px;
      color: var(--muted);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.5px;
      transition: color 0.2s;
      position: relative; 
      z-index: 10;      /* Higher than the background grid */
      display: inline-block; /* Ensures the click area is properly calculated */
      cursor: pointer;
    }

    .project-link:hover { color: var(--accent); }

    /* SKILLS */
    #skills {
      padding: 120px 0;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .skill-group {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 28px;
    }

    .skill-group-title {
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 20px;
    }

    .skill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .skill-badge {
      font-size: 11px;
      color: var(--text);
      background: var(--tag-bg);
      border: 1px solid var(--border);
      padding: 5px 12px;
      border-radius: 3px;
      transition: all 0.2s;
      position: relative;
    }

    .skill-badge:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-2px);
    }

    /* Skill proficiency indicators */
    .skill-badge.expert {
      border-left: 3px solid #10b981;
    }

    .skill-badge.proficient {
      border-left: 3px solid var(--accent);
    }

    .skill-badge.familiar {
      border-left: 3px solid var(--muted);
    }

    .skills-legend {
      display: flex;
      justify-content: center;
      gap: 24px;
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: var(--muted);
    }

    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 2px;
    }

    .legend-dot.expert { background: #10b981; }
    .legend-dot.proficient { background: var(--accent); }
    .legend-dot.familiar { background: var(--muted); }

    /* CONTACT */
    #contact {
      padding: 120px 0;
      text-align: center;
    }

    .contact-inner {
      max-width: 600px;
      margin: 0 auto;
    }

    .contact-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(32px, 5vw, 56px);
      letter-spacing: -2px;
      color: var(--text);
      margin-bottom: 16px;
    }

    .contact-title span { color: var(--accent); }

    .contact-sub {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 48px;
      line-height: 1.8;
    }

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

    /* FOOTER */
    footer {
      border-top: 1px solid var(--border);
      padding: 32px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      z-index: 1;
      flex-wrap: wrap;
      gap: 20px;
    }

    .footer-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .footer-text {
      font-size: 11px;
      color: var(--muted);
    }

    .footer-text span { color: var(--accent); }

    .footer-social {
      display: flex;
      gap: 16px;
    }

    .footer-link {
      color: var(--muted);
      transition: color 0.2s, transform 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .footer-link:hover {
      color: var(--accent);
      transform: translateY(-2px);
    }

    /* ANIMATIONS */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* SCROLL REVEAL */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* CURSOR GLOW */
    .cursor-glow {
      position: fixed;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, transparent 70%);
      pointer-events: none;
      z-index: 999;
      transform: translate(-50%, -50%);
      transition: left 0.1s, top 0.1s;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      nav { padding: 16px 24px; }
      .nav-toggle { display: inline-flex; }
      .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        left: 24px;
        right: 24px;
        top: 72px;
        padding: 18px;
        background: rgba(10, 10, 15, 0.95);
        border: 1px solid var(--border);
        border-radius: 10px;
        backdrop-filter: blur(18px);
      }
      nav.nav-open .nav-links { display: flex; }
      .container { padding: 0 24px; }
      .hero-inner { grid-template-columns: 1fr; gap: 40px; }
      .hero-code { display: none; }
      .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
      .projects-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; }
      .skills-legend { flex-direction: column; gap: 12px; align-items: center; }
      footer { flex-direction: column; gap: 16px; padding: 24px; text-align: center; }
      .footer-content { align-items: center; }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .cursor-glow { display: none; }
      .reveal {
        opacity: 1;
        transform: none;
        transition: none;
      }

      /* Hero content still starts hidden via fadeUp animations. */
      .hero-meta,
      .hero-name,
      .hero-title,
      .hero-desc,
      .hero-cta {
        opacity: 1;
        animation: none;
        transform: none;
      }

      .status-dot {
        animation: none;
      }
    }

