:root {
    --bg: #020617;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-2: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --white: #ffffff;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #22d3ee;
    --accent-2: #a78bfa;
    --success: #34d399;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --radius-sm: 16px;
    --max: 1200px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
      radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 28%),
      radial-gradient(circle at 100% 20%, rgba(167, 139, 250, 0.10), transparent 24%),
      radial-gradient(circle at 0% 100%, rgba(52, 211, 153, 0.08), transparent 22%),
      var(--bg);
    color: var(--text);
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
  }
  
  .container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
  }
  
  .section {
    padding: 88px 0;
  }
  
  .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
  }
  
  .btn-primary {
    background: var(--white);
    color: #0f172a;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: var(--line);
  }
  
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
  }
  
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 700;
  }
  
  h1, h2, h3, p {
    margin: 0;
  }
  
  h1 {
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1;
    font-weight: 900;
    color: var(--white);
  }
  
  h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 14px;
  }
  
  h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 10px;
  }
  
  .lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text);
  }
  
  .muted {
    color: var(--muted);
    line-height: 1.8;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.1);
    color: #c5f9ff;
    font-size: 14px;
    font-weight: 700;
  }
  
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(14px);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 16px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    font-size: 18px;
  }
  
  .brand small {
    display: block;
    color: var(--muted);
    margin-bottom: 2px;
  }
  
  .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  
  .nav-links a {
    color: var(--text);
    font-size: 14px;
  }
  
  .nav-links a:hover {
    color: var(--white);
  }
  
  .menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--white);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
  }
  
  .mobile-menu {
    display: none;
    padding: 0 0 16px;
  }
  
  .mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
  }
  
  .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
    padding: 72px 0 40px;
  }
  
  .hero-copy {
    display: grid;
    gap: 24px;
  }
  
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .stat-card {
    padding: 22px;
  }
  
  .stat-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 6px;
  }
  
  .side-panel {
    padding: 28px;
  }
  
  .side-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
  }
  
  .side-item {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.75);
  }
  
  .side-item-title {
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
  }
  
  .two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
  }
  
  .stack {
    display: grid;
    gap: 16px;
  }
  
  .content-card {
    padding: 26px;
  }
  
  .projects-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 28px;
  }
  
  .search {
    width: 320px;
    max-width: 100%;
    height: 50px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 0 16px;
    outline: none;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  
  .project-card {
    padding: 26px;
    transition: 0.25s ease;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    background: var(--panel-2);
  }
  
  .project-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
  }
  
  .project-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 22px;
  }
  
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text);
    margin: 8px 8px 0 0;
  }
  
  .case-link {
    margin-top: 18px;
    color: #9aefff;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }
  
  .skills-grid,
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  
  .skills-grid,
  .publications-stack {
    margin-top: 28px;
  }
  
  .timeline {
    margin-top: 30px;
    display: grid;
    gap: 18px;
    position: relative;
  }
  
  .timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }
  
  .timeline-item {
    position: relative;
    padding-left: 52px;
  }
  
  .timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 30px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid var(--line);
  }
  
  .year {
    color: #9aefff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  
  .contact-card {
    padding: 22px;
  }
  
  .contact-intro {
    margin-bottom: 24px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
  }
  
  .contact-item.last {
    margin-bottom: 0;
  }
  
  .contact-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 20px;
  }
  
  form {
    display: grid;
    gap: 14px;
  }
  
  .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  input,
  textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.8);
    color: var(--white);
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    font: inherit;
  }
  
  textarea {
    min-height: 160px;
    resize: vertical;
  }
  
  footer {
    padding: 30px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .reveal.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (max-width: 980px) {
    .hero,
    .two-col,
    .contact-grid,
    .skills-grid {
      grid-template-columns: 1fr;
    }
  
    .project-grid {
      grid-template-columns: 1fr;
    }
  
    .stats {
      grid-template-columns: 1fr;
    }
  
    .projects-top {
      flex-direction: column;
      align-items: stretch;
    }
  
    .search {
      width: 100%;
    }
  
    .nav-links,
    .nav-cta {
      display: none;
    }
  
    .menu-btn {
      display: inline-flex;
    }
  
    .mobile-menu.open {
      display: block;
    }
  }
  
  @media (max-width: 640px) {
    .section {
      padding: 70px 0;
    }
  
    .hero {
      padding-top: 44px;
    }
  
    .row-2 {
      grid-template-columns: 1fr;
    }
  
    .container {
      width: min(var(--max), calc(100% - 20px));
    }
  
    .side-panel,
    .content-card,
    .project-card,
    .contact-card {
      padding: 20px;
    }
  }