    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #0A0F1E;
      --bg2:       #111827;
      --card:      #141B2D;
      --border:    #1E2A42;
      --cyan:      #00D4FF;
      --violet:    #7B2FFF;
      --gradient:  linear-gradient(135deg, #00D4FF, #7B2FFF);
      --text:      #E8EDF8;
      --muted:     #6B7A99;
      --radius:    12px;
      --mono:      'JetBrains Mono', monospace;
      --sans:      'Inter', sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2.5rem;
      height: 60px;
      background: rgba(10, 15, 30, 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }
    .nav-logo {
      font-family: var(--mono);
      font-size: 1rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.04em;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--cyan); }

    /* ─── HERO ─── */
    #hero {
      min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
      padding: 6rem 2rem 4rem;
      position: relative;
      overflow: hidden;
    }
    .hero-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
    }
    .glow-orb {
      position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18; pointer-events: none;
    }
    .orb1 { width: 500px; height: 500px; background: var(--cyan);  top: -100px; left: -100px; }
    .orb2 { width: 400px; height: 400px; background: var(--violet); bottom: -80px; right: -80px; }

    .hero-inner { position: relative; max-width: 760px; text-align: center; }

    .badge {
      display: inline-flex; align-items: center; gap: 8px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: 999px;
      padding: 6px 16px;
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--cyan);
      margin-bottom: 2rem;
      letter-spacing: 0.06em;
    }
    .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

    .hero-name {
      font-family: var(--mono);
      font-size: clamp(2.6rem, 6vw, 4.2rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1rem;
    }
    .hero-name .hl {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .terminal {
      font-family: var(--mono);
      font-size: clamp(1rem, 2.5vw, 1.35rem);
      color: var(--muted);
      min-height: 2em;
      margin-bottom: 2rem;
    }
    .terminal .prompt { color: var(--cyan); margin-right: 6px; }
    .terminal .typed { color: var(--text); }
    .terminal .cursor {
      display: inline-block; width: 2px; height: 1.1em;
      background: var(--cyan); vertical-align: middle;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    .hero-desc {
      font-size: 1rem;
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto 2.5rem;
      line-height: 1.75;
    }

    .hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 0.75rem 1.6rem;
      border-radius: var(--radius);
      font-family: var(--mono);
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }
    .btn-primary {
      background: var(--gradient);
      color: #fff;
      box-shadow: 0 0 24px rgba(0,212,255,0.25);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,212,255,0.4); }
    .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

    /* ─── SOCIAL BAR ─── */
    .social-bar {
      display: flex; justify-content: center; gap: 1rem;
      padding: 2rem 0 0;
      flex-wrap: wrap;
    }
    .social-link {
      display: flex; align-items: center; justify-content: center;
      width: 44px; height: 44px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--muted);
      text-decoration: none;
      transition: all 0.2s;
    }
    .social-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.08); transform: translateY(-3px); }
    .social-link svg { width: 20px; height: 20px; fill: currentColor; }

    /* ─── SECTIONS ─── */
    section { padding: 6rem 2rem; }
    .section-inner { max-width: 900px; margin: 0 auto; }
    .section-label {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--cyan);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .section-title {
      font-family: var(--mono);
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 700;
      margin-bottom: 1rem;
    }
    .section-sub {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 560px;
      margin-bottom: 3rem;
    }
    .divider {
      width: 48px; height: 2px;
      background: var(--gradient);
      border-radius: 99px;
      margin-bottom: 3rem;
    }

    /* ─── SKILLS ─── */
    #skills { background: var(--bg2); }
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.2rem;
    }
    .skill-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: border-color 0.2s, transform 0.2s;
    }
    .skill-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
    .skill-card h3 {
      font-family: var(--mono);
      font-size: 0.88rem;
      color: var(--cyan);
      margin-bottom: 0.75rem;
      display: flex; align-items: center; gap: 8px;
    }
    .skill-card h3::before {
      content: '';
      display: inline-block;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--gradient);
    }
    .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .tag {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 3px 9px;
    }

    /* ─── PROJECTS ─── */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.4rem;
    }
    .project-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.8rem;
      display: flex; flex-direction: column;
      transition: border-color 0.2s, transform 0.2s;
    }
    .project-card:hover { border-color: var(--violet); transform: translateY(-4px); }
    .proj-num {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--violet);
      letter-spacing: 0.08em;
      margin-bottom: 0.8rem;
    }
    .project-card h3 {
      font-family: var(--mono);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.6rem;
    }
    .project-card p {
      font-size: 0.88rem;
      color: var(--muted);
      flex: 1;
      margin-bottom: 1.2rem;
    }
    .proj-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
    .proj-link {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--cyan);
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 5px;
    }
    .proj-link:hover { text-decoration: underline; }

    /* ─── PDF VIEWER ─── */
    #cv { background: var(--bg2); }
    .pdf-viewer-wrap {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--card);
    }
    .pdf-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.75rem 1.2rem;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap; gap: 0.75rem;
    }
    .pdf-toolbar-left {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--muted);
      display: flex; align-items: center; gap: 8px;
    }
    .pdf-toolbar-left span.filename { color: var(--cyan); }
    .pdf-controls { display: flex; align-items: center; gap: 0.5rem; }
    .pdf-btn {
      font-family: var(--mono);
      font-size: 0.75rem;
      padding: 5px 12px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      cursor: pointer;
      transition: all 0.15s;
    }
    .pdf-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
    .pdf-btn:disabled { opacity: 0.35; cursor: default; }
    .pdf-page-info { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); padding: 0 6px; }
    .pdf-zoom { display: flex; align-items: center; gap: 0.4rem; }
    .zoom-label { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); min-width: 44px; text-align: center; }

    .pdf-canvas-area {
      position: relative;
      min-height: 500px;
      display: flex; align-items: flex-start; justify-content: center;
      padding: 1.5rem;
      overflow: auto;
      background: #0d1220;
    }
    #pdf-canvas {
      display: block;
      max-width: 100%;
      border-radius: 4px;
      box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    }
    .pdf-placeholder {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 1.2rem; padding: 4rem 2rem;
      text-align: center;
    }
    .pdf-placeholder .pdf-icon { font-size: 3rem; opacity: 0.4; }
    .pdf-placeholder p { color: var(--muted); font-size: 0.9rem; }
    .pdf-upload-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 0.65rem 1.4rem;
      border-radius: var(--radius);
      background: var(--gradient);
      color: #fff;
      font-family: var(--mono);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: opacity 0.2s;
    }
    .pdf-upload-btn:hover { opacity: 0.85; }
    #pdf-file-input { display: none; }

    .pdf-loading {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(13,18,32,0.85);
      font-family: var(--mono);
      font-size: 0.85rem;
      color: var(--cyan);
      display: none;
    }

    /* ─── CONTACT ─── */
    #contact { text-align: center; }
    .contact-inner { max-width: 560px; margin: 0 auto; }
    .contact-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 3rem 2rem;
      margin-top: 2rem;
    }
    .contact-card p { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }
    .contact-social { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

    /* ─── FOOTER ─── */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 2rem;
      text-align: center;
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
    }

    /* ─── REVEAL ─── */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    @media (max-width: 640px) {
      nav { padding: 0 1.2rem; }
      .nav-links { gap: 1rem; }
      section { padding: 4rem 1.2rem; }
      .hero-ctas { flex-direction: column; align-items: center; }
    }