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

  :root {
    --bg: #0a0a0f;
    --bg2: #0f0f18;
    --bg3: #13131e;
    --surface: #16161f;
    --surface2: #1c1c28;
    --border: rgba(11,108,255,0.12);
    --border2: rgba(255,255,255,0.06);
    --violet: #0b6cff;
    --indigo: #0a58d3;
    --cyan: #06b6d4;
    --violet-dim: rgba(11,108,255,0.12);
    --cyan-dim: rgba(6,182,212,0.12);
    --text: #f0f0f5;
    --text2: #9898b0;
    --text3: #5a5a78;
    --nav-bg: rgba(10,10,15,0.7);
    --grid-line: rgba(11,108,255,0.04);
    --hero-grad-start: #f0f0f5;
    --hero-grad-mid: #60a5fa;
    --hero-grad-end: #7dd3fc;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
  }

  [data-theme="light"] {
    --bg: #f6f8fc;
    --bg2: #eef2f8;
    --bg3: #e6ebf4;
    --surface: #ffffff;
    --surface2: #f3f6fc;
    --border: rgba(11,108,255,0.14);
    --border2: rgba(15,23,42,0.14);
    --violet: #0b61ff;
    --indigo: #0a58d3;
    --cyan: #0891b2;
    --violet-dim: rgba(11,108,255,0.12);
    --cyan-dim: rgba(8,145,178,0.1);
    --text: #111827;
    --text2: #334155;
    --text3: #64748b;
    --nav-bg: rgba(246,248,252,0.82);
    --grid-line: rgba(11,108,255,0.08);
    --hero-grad-start: #0f172a;
    --hero-grad-mid: #0b61ff;
    --hero-grad-end: #0e7490;
  }

  html { scroll-behavior: smooth; }

  /* Micro-animations */
  @keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
  }
  @keyframes popIn {
    0% { transform: translateY(6px) scale(0.98); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(11,108,255,0.0); }
    70% { box-shadow: 0 0 18px 6px rgba(11,108,255,0.06); }
    100% { box-shadow: 0 0 0 0 rgba(11,108,255,0.0); }
  }

  .about-photo { animation: floatY 6s ease-in-out infinite; }
  .btn-primary.entrance { animation: popIn 460ms cubic-bezier(.2,.9,.3,1) both; }
  .btn-primary.pulse { animation: pulse 2.6s ease-in-out infinite; }
  .project-card.reveal { will-change: transform, opacity; }

  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
  }

  /* CUSTOM CURSOR */
  .cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
    mix-blend-mode: screen;
  }
  .cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(11,108,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
  }
  body:hover .cursor { opacity: 1; }
  .cursor.hover { transform: scale(2.5); background: var(--cyan); }
  .cursor-ring.hover { transform: translate(-50%,-50%) scale(1.4); opacity: 0.4; }

  /* LOADER */
  #loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
  }
  #loader.done { opacity: 0; pointer-events: none; }
  .loader-bar {
    width: 180px; height: 2px;
    background: var(--surface2);
    border-radius: 99px;
    overflow: hidden;
  }
  .loader-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    border-radius: 99px;
    animation: loadfill 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
  }
  @keyframes loadfill { from { width: 0; } to { width: 100%; } }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border2);
    transition: background 0.3s;
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border2);
  }
  .nav-links {
    display: flex; gap: 2rem; list-style: none;
    align-items: center;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }
  .theme-toggle {
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text2);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  }
  .theme-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    transform: translateY(-1px);
  }
  .theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .theme-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
  }
  .nav-links a {
    font-size: 0.85rem;
    color: var(--text2);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--violet);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta {
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    background: var(--violet-dim);
    border: 1px solid rgba(11,108,255,0.35);
    color: #93c5fd;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .nav-cta:hover {
    background: rgba(11,108,255,0.28);
    border-color: rgba(11,108,255,0.6);
    color: #bfdbfe;
  }
  @media (max-width: 680px) {
    .nav-links { display: none; }
    .nav-right { gap: 0; }
  }

  /* SECTIONS */
  section { padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem); }
  .section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--violet);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
  }
  .max-w { max-width: 1100px; margin: 0 auto; }

  /* SCROLL FADE */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23,1,0.32,1);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ===================== HERO ===================== */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding-top: 64px;
    overflow: hidden;
  }

  /* Geometric grid bg */
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 80%);
  }

  /* Glowing orbs */
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
  }
  .orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(11,108,255,0.18) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation: orbFloat 8s ease-in-out infinite;
  }
  .orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
  }
  .orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(10,88,211,0.10) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: orbFloat 12s ease-in-out infinite 3s;
  }
  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -15px); }
    66% { transform: translate(-15px, 20px); }
  }

  .hero-inner {
    position: relative;
    text-align: center;
    max-width: 820px;
    padding: 0 1rem;
  }
  .hero-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 50%, var(--hero-grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-title-line {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text2);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    min-height: 2em;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  }
  .typewriter-text {
    color: var(--text);
    font-weight: 500;
  }
  .cursor-blink {
    display: inline-block;
    width: 2px; height: 1.1em;
    background: var(--violet);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
  }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  .hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text3);
    margin-bottom: 2.8rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    letter-spacing: 0.005em;
  }
  .hero-ctas {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--violet), var(--indigo));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(11,108,255,0.35), 0 4px 16px rgba(0,0,0,0.4);
    letter-spacing: -0.01em;
  }
  .btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(11,108,255,0.5), 0 8px 24px rgba(0,0,0,0.5);
  }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text2);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border2);
    cursor: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    letter-spacing: -0.01em;
  }
  .btn-secondary:hover {
    background: var(--surface);
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
  }
  .hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text3);
    font-size: 0.72rem;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    animation: scrollBounce 2s ease-in-out infinite;
  }
  .hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text3), transparent);
  }
  @keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }

  /* ===================== ABOUT ===================== */
  #about { background: var(--bg); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
  }
  @media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  }
  .about-photo-wrap {
    position: relative;
    display: flex; justify-content: center;
  }
  .about-photo {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
  }
  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .about-photo-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text3);
    font-size: 0.72rem;
    font-family: var(--mono);
    text-align: center;
    padding: 1rem;
  }
  .about-photo-placeholder svg { opacity: 0.3; }
  .about-photo-ring {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
                linear-gradient(135deg, var(--violet), var(--cyan)) border-box;
    animation: spin 12s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .about-location {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
  }
  .about-location svg { color: var(--cyan); }
  .about-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: var(--text2);
    margin-bottom: 2rem;
    letter-spacing: -0.005em;
  }
  .about-desc strong { color: var(--text); font-weight: 600; }
  .about-langs {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
  }
  .lang-chip {
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border2);
    color: var(--text2);
    letter-spacing: 0.03em;
  }
  .lang-chip span { color: var(--text3); margin-left: 0.3rem; }

  /* ===================== STACK ===================== */
  #stack { background: var(--bg2); }
  .stack-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
  .stack-cat {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
  }
  .stack-cat::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--violet-dim), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .stack-cat:hover {
    border-color: rgba(11,108,255,0.4);
    background: var(--surface2);
    transform: translateY(-4px);
  }
  .stack-cat:hover::before { opacity: 1; }
  .stack-cat-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--violet);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    position: relative;
  }
  .stack-items {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
  }
  .stack-item {
    font-family: var(--mono);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text2);
    cursor: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    position: relative;
  }
  .stack-item:hover {
    background: var(--violet-dim);
    border-color: rgba(11,108,255,0.4);
    color: #bfdbfe;
  }
  .stack-item.cyan:hover {
    background: var(--cyan-dim);
    border-color: rgba(6,182,212,0.35);
    color: #67e8f9;
  }

  /* ===================== PROJECTS ===================== */
  #projects { background: var(--bg); }
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
  @media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-featured { grid-column: 1 !important; }
  }
  .project-featured {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid rgba(11,108,255,0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }
  .project-featured:hover {
    border-color: rgba(11,108,255,0.6);
    transform: translateY(-4px);
  }
  .project-featured::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  }
  .project-featured-bg {
    position: absolute; top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(11,108,255,0.1) 0%, transparent 70%);
    pointer-events: none;
  }
  .project-featured-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
  }
  @media (max-width: 600px) {
    .project-featured-inner { grid-template-columns: 1fr; }
  }
  .project-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--violet);
    background: var(--violet-dim);
    border: 1px solid rgba(11,108,255,0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .project-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.8rem;
  }
  .project-name span {
    background: linear-gradient(135deg, #c4b5fd, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .project-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text2);
    margin-bottom: 1.5rem;
    max-width: 600px;
  }
  .project-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-bottom: 1.8rem;
  }
  .stat {
    display: flex; flex-direction: column; gap: 0.2rem;
  }
  .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
  }
  .stat-label {
    font-size: 0.72rem;
    color: var(--text3);
    font-family: var(--mono);
    letter-spacing: 0.04em;
  }
  .project-badges {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
  }
  .badge {
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    border-radius: 5px;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text2);
  }
  .badge.violet { background: var(--violet-dim); border-color: rgba(11,108,255,0.3); color: #93c5fd; }
  .badge.cyan { background: var(--cyan-dim); border-color: rgba(6,182,212,0.25); color: #67e8f9; }
  .badge.green { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #4ade80; }

  .project-links {
    display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end;
  }
  @media (max-width: 600px) {
    .project-links { flex-direction: row; align-items: flex-start; }
  }
  .project-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: none;
    white-space: nowrap;
  }
  .project-link.primary {
    background: linear-gradient(135deg, var(--violet), var(--indigo));
    color: #fff;
    box-shadow: 0 4px 20px rgba(11,108,255,0.3);
  }
  .project-link.primary:hover { opacity: 0.88; transform: translateY(-2px); }
  .project-link.ghost {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text2);
  }
  .project-link.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.12); }

  .project-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    display: flex; flex-direction: column; gap: 1rem;
  }
  .project-card:hover {
    border-color: rgba(11,108,255,0.3);
    background: var(--surface2);
    transform: translateY(-4px);
  }
  .project-card-placeholder {
    width: 100%; height: 120px;
    background: var(--bg3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--border2);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    letter-spacing: 0.06em;
    text-align: center;
    padding: 1rem;
  }
  /* Project expand/collapse */
  .project-card { cursor: pointer; }
  .project-card:focus { outline: 3px solid var(--border); border-radius: calc(var(--radius) - 2px); }
  .project-card .project-collapse { max-height: 0; overflow: hidden; transition: max-height 320ms cubic-bezier(.2,.8,.2,1); }
  .project-card.is-expanded { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(2,6,23,0.5); }
  .project-card.is-expanded .project-collapse { max-height: 1200px; }

  .project-collapse { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border2); }
  .project-extra { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }
  .project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .project-card-desc {
    font-size: 0.87rem;
    color: var(--text2);
    line-height: 1.6;
    flex: 1;
  }
  .coming-soon-badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text3);
    border: 1px dashed var(--border2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-block;
    width: fit-content;
  }

  /* ===================== CERTIFICATIONS ===================== */
  #certs { background: var(--bg2); }
  .certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
  .cert-card {
    background: var(--surface);
      border: 1px solid rgba(11,108,255,0.3);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    display: flex; flex-direction: column; gap: 1.2rem;
  }
  .cert-card:hover {
    border-color: rgba(11,108,255,0.4);
    transform: translateY(-4px);
  }
  .cert-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--indigo));
  }
  .cert-issuer {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .cert-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
      color: var(--violet);
  }
  .cert-name span { color: var(--violet); }
  .cert-desc {
    font-size: 0.87rem;
    color: var(--text2);
    line-height: 1.65;
  }
  .cert-seal {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--indigo));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 0 20px rgba(11,108,255,0.4);
    font-family: var(--mono);
  }
  .cert-header { display: flex; align-items: center; justify-content: space-between; }

  /* ===================== CONTACT ===================== */
  #contact { background: var(--bg); }
  .contact-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .contact-sub {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.7;
    margin: 1.5rem 0 2.8rem;
  }
  .contact-links {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 3rem;
  }
  .contact-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--text2);
    transition: all 0.2s;
    cursor: none;
    letter-spacing: -0.01em;
  }
  .contact-link:hover {
    background: var(--surface2);
    color: var(--text);
    border-color: rgba(11,108,255,0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .contact-link svg { width: 16px; height: 16px; }
  .contact-divider {
    width: 60px; height: 1px;
    background: var(--border2);
    margin: 0 auto 2rem;
  }
  .contact-cta {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text3);
    letter-spacing: 0.06em;
    line-height: 1.8;
  }
  .contact-cta a {
    color: var(--violet);
    text-decoration: none;
    transition: color 0.2s;
  }
  .contact-cta a:hover { color: #93c5fd; }

  /* FOOTER */
  footer {
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    border-top: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  }
  .footer-copy {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    letter-spacing: 0.04em;
  }
  .footer-copy span { color: var(--violet); }
  .footer-loc {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    display: flex; align-items: center; gap: 0.4rem;
  }

  /* Gradient text util */
  .grad { 
    background: linear-gradient(135deg, #c4b5fd, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Focus states */
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* ===================== PROJECT DETAIL PAGES ===================== */

  .detail-hero {
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    padding: 130px clamp(1.5rem,5vw,4rem) 5rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }
  .detail-hero-inner {
    position: relative;
    max-width: 820px;
  }
  .detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
  }
  .detail-breadcrumb a {
    color: var(--text3);
    text-decoration: none;
    transition: color 0.2s;
  }
  .detail-breadcrumb a:hover { color: var(--text2); }
  .detail-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 55%, var(--hero-grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .detail-lead {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--text2);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2.2rem;
    letter-spacing: -0.005em;
  }
  .detail-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
  }
  .detail-body {
    background: var(--bg2);
    padding: clamp(3.5rem,6vw,5.5rem) clamp(1.5rem,5vw,4rem) clamp(4rem,8vw,7rem);
  }
  .detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
  }
  .detail-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
  }
  .detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet-dim), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .detail-card:hover {
    border-color: rgba(11,108,255,0.3);
    transform: translateY(-2px);
  }
  .detail-card:hover::before { opacity: 1; }
  .detail-card .section-label { margin-bottom: 1.1rem; }
  .detail-card p {
    color: var(--text2);
    font-size: 0.94rem;
    line-height: 1.76;
    position: relative;
  }
  .detail-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
  }
  .detail-card ul li {
    color: var(--text2);
    font-size: 0.93rem;
    line-height: 1.65;
    padding-left: 1.4rem;
    position: relative;
  }
  .detail-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-family: var(--mono);
    font-size: 0.8rem;
    top: 0.05em;
  }
  .detail-footer {
    max-width: 820px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .detail-footer-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text3);
    letter-spacing: 0.05em;
  }
  @media (max-width: 580px) {
    .detail-hero { padding: 100px 1.5rem 3.5rem; }
    .detail-grid { gap: 1rem; }
    .detail-card { padding: 1.6rem 1.4rem; }
  }
