/* ===== RESET & BASE ===== */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #080808;
      --bg-1: #0e0e0e;
      --bg-2: #141414;
      --bg-3: #1a1a1a;
      --surface: #111111;
      --surface-2: #181818;
      --border: #232323;
      --border-2: #2e2e2e;
      --text: #e8e8e8;
      --text-muted: #888;
      --text-dim: #555;
      --accent: #00ff88;
      --accent-2: #00cc6a;
      --accent-dim: rgba(0, 255, 136, 0.08);
      --accent-glow: rgba(0, 255, 136, 0.15);
      --warn: #ffb800;
      --err: #ff4545;
      --blue: #4f9eff;
      --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
      --font-display: 'Syne', sans-serif;
      --nav-h: 64px;
      --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-mono);
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      cursor: none;
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* ===== CURSOR ===== */
    .cursor {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9999;
      width: 32px;
      height: 32px;
      border: 1.5px solid var(--accent);
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
      transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.2s;
    }

    .cursor.expanded {
      width: 52px;
      height: 52px;
      border-color: var(--accent-2);
      opacity: 0.6;
    }

    .cursor-dot {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 10000;
      width: 5px;
      height: 5px;
      background: var(--accent);
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
    }

    /* ===== SCANLINES ===== */
    .scanlines {
      position: fixed;
      inset: 0;
      z-index: 1000;
      pointer-events: none;
      background: repeating-linear-gradient(0deg,
          transparent,
          transparent 2px,
          rgba(0, 0, 0, 0.03) 2px,
          rgba(0, 0, 0, 0.03) 4px);
    }

    /* ===== BOOT SCREEN ===== */
    .boot-screen {
      position: fixed;
      inset: 0;
      z-index: 5000;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .boot-content {
      width: 540px;
      max-width: 90vw;
    }

    .boot-logo {
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: 0.1em;
      margin-bottom: 2rem;
    }

    .boot-progress-wrap {
      height: 2px;
      background: var(--border);
      margin-bottom: 1.5rem;
      overflow: hidden;
    }

    .boot-progress-bar {
      height: 100%;
      width: 0%;
      background: var(--accent);
      transition: width 0.2s ease;
    }

    .boot-log {
      font-size: 0.72rem;
      color: var(--text-muted);
      max-height: 200px;
      overflow-y: auto;
      line-height: 1.8;
    }

    .boot-line::before {
      content: "> ";
      color: var(--accent);
    }

    /* ===== NAVBAR ===== */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 900;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition: background 0.4s, border-color 0.4s;
    }

    .nav.scrolled {
      background: rgba(8, 8, 8, 0.92);
      border-color: var(--border);
      backdrop-filter: blur(12px);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .prompt {
      color: var(--accent);
      font-size: 0.8rem;
    }

    .nav-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      color: var(--text);
    }

    .nav-links {
      display: flex;
      gap: 0.25rem;
      list-style: none;
    }

    .nav-links a {
      font-size: 0.75rem;
      color: var(--text-muted);
      padding: 0.4rem 0.75rem;
      border: 1px solid transparent;
      border-radius: 4px;
      transition: color var(--transition), border-color var(--transition), background var(--transition);
    }

    .nav-links a:hover {
      color: var(--accent);
      border-color: var(--border-2);
      background: var(--accent-dim);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: none;
      padding: 4px;
    }

    .hamburger span {
      display: block;
      width: 24px;
      height: 1.5px;
      background: var(--text-muted);
      transition: all 0.3s;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(4px, -4px);
    }

    /* ===== SECTIONS ===== */
    .section {
      min-height: 100vh;
      padding: var(--nav-h) 0 5rem;
      position: relative;
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .section.visible {
      opacity: 1;
      transform: none;
    }

    .section#hero {
      opacity: 1;
      transform: none;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .section-header {
      margin-bottom: 3rem;
    }

    .section-tag {
      font-size: 0.72rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      margin-bottom: 0.5rem;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      color: var(--text);
      line-height: 1;
    }

    .accent {
      color: var(--accent);
    }

    /* ===== TERMINAL WINDOW ===== */
    .terminal-bar {
      height: 36px;
      background: var(--bg-3);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 1rem;
      gap: 0.75rem;
    }

    .terminal-dots {
      display: flex;
      gap: 6px;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .dot.red {
      background: #ff5f57;
    }

    .dot.yellow {
      background: #ffbd2e;
    }

    .dot.green {
      background: #28c840;
    }

    .terminal-title {
      font-size: 0.72rem;
      color: var(--text-muted);
      flex: 1;
      text-align: center;
    }

    .terminal-body {
      background: var(--bg-1);
      padding: 1.25rem;
      font-size: 0.85rem;
      line-height: 1.8;
    }

    /* ===== HERO ===== */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .hero-bg-grid {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
      opacity: 0.4;
    }

    .hero-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      z-index: 1;
      width: 100%;
      max-width: 700px;
      padding: 0 1.5rem;
      padding-top: calc(var(--nav-h) + 1rem);
    }

    .hero-terminal-window {
      width: 100%;
      border: 1px solid var(--border-2);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 0 60px rgba(0, 255, 136, 0.06), 0 0 0 1px var(--border);
    }

    .term-line {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text-muted);
    }

    .prompt-t {
      color: var(--accent);
      user-select: none;
    }

    .cmd {
      color: var(--blue);
    }

    .term-output {
      padding-left: 1rem;
      color: var(--text);
      border-left: 2px solid var(--border);
      margin: 0.1rem 0 0.5rem 0.3rem;
    }

    .name-output {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--accent);
      border-color: var(--accent);
    }

    .role-cycle {
      color: var(--warn);
      transition: opacity 0.4s;
    }

    .ls-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      color: var(--blue);
    }

    .ls-grid span::after {
      content: "";
    }

    .active-line {
      opacity: 0.5;
    }

    .cursor-blink {
      color: var(--accent);
      animation: blink 1s step-end infinite;
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0
      }
    }

    .hero-cta-group {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      padding: 0.65rem 1.4rem;
      border-radius: 4px;
      cursor: none;
      transition: all var(--transition);
      letter-spacing: 0.02em;
    }

    .btn-primary {
      background: var(--accent);
      color: #000;
      border: 1.5px solid var(--accent);
      font-weight: 700;
    }

    .btn-primary:hover {
      background: var(--accent-2);
      border-color: var(--accent-2);
      transform: translateY(-2px);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
      border: 1.5px solid var(--border-2);
    }

    .btn-ghost:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-dim);
      transform: translateY(-2px);
    }

    .hero-stats {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.15rem;
    }

    .stat-num {
      font-family: var(--font-display);
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .stat-label {
      font-size: 0.65rem;
      color: var(--text-dim);
      letter-spacing: 0.1em;
    }

    .stat-div {
      color: var(--border-2);
      font-size: 1.5rem;
    }

    .scroll-indicator {
      position: absolute;
      bottom: 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .scroll-indicator .prompt-t {
      font-size: 0.65rem;
      opacity: 0.4;
    }

    .scroll-arrow {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, var(--accent), transparent);
      animation: scrollAnim 1.8s ease-in-out infinite;
    }

    @keyframes scrollAnim {

      0%,
      100% {
        transform: scaleY(1);
        opacity: 1;
      }

      50% {
        transform: scaleY(0.5);
        opacity: 0.3;
      }
    }

    /* ===== ABOUT ===== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    .about-terminal {
      border: 1px solid var(--border-2);
      border-radius: 8px;
      overflow: hidden;
    }

    .about-json {
      font-size: 0.78rem;
      line-height: 1.7;
      white-space: pre-wrap;
      color: var(--text-muted);
      min-height: 300px;
    }

    .about-lead {
      font-size: 1.1rem;
      line-height: 1.7;
      color: var(--text);
      margin-bottom: 1.25rem;
      font-weight: 500;
    }

    .about-body {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    .highlight {
      color: var(--accent);
      font-weight: 600;
    }

    .about-facts {
      margin-top: 1.5rem;
      border-top: 1px solid var(--border);
      padding-top: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .fact-item {
      display: flex;
      gap: 0.5rem;
      font-size: 0.8rem;
    }

    .fact-key {
      color: var(--blue);
      min-width: 100px;
    }

    .fact-sep {
      color: var(--text-dim);
    }

    .fact-val {
      color: var(--text-muted);
    }

    .status-green {
      color: var(--accent);
    }

    /* ===== SKILLS ===== */
    .skills-filter {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      background: transparent;
      color: var(--text-muted);
      border: 1px solid var(--border-2);
      border-radius: 4px;
      padding: 0.4rem 1rem;
      cursor: none;
      transition: all var(--transition);
    }

    .filter-btn:hover,
    .filter-btn.active {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 0.75rem;
    }

    .skill-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 1rem 0.85rem;
      transition: border-color var(--transition), background var(--transition), transform var(--transition);
      animation: fadeIn 0.3s ease forwards;
    }

    .skill-card:hover {
      border-color: var(--accent);
      background: var(--bg-2);
      transform: translateY(-3px);
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    .skill-icon {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: var(--accent);
      margin-bottom: 0.5rem;
      width: 32px;
      height: 32px;
      background: var(--accent-dim);
      border: 1px solid var(--border-2);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .skill-name {
      font-size: 0.75rem;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .skill-bar-wrap {
      height: 2px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
      margin-bottom: 0.25rem;
    }

    .skill-bar {
      height: 100%;
      background: var(--accent);
      border-radius: 2px;
      transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .skill-level {
      font-size: 0.6rem;
      color: var(--text-dim);
      text-align: right;
    }

    /* ===== PROJECTS ===== */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
      position: relative;
      overflow: hidden;
      transition: border-color var(--transition), transform var(--transition);
    }

    .project-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
      opacity: 0;
      transition: opacity var(--transition);
    }

    .project-card:hover {
      border-color: var(--border-2);
      transform: translateY(-4px);
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .proj-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .proj-id {
      font-size: 0.65rem;
      color: var(--text-dim);
      font-weight: 700;
      letter-spacing: 0.1em;
    }

    .proj-status {
      font-size: 0.62rem;
      padding: 0.15rem 0.5rem;
      border-radius: 3px;
      font-weight: 600;
      letter-spacing: 0.08em;
    }

    .status-live {
      background: rgba(0, 255, 136, 0.12);
      color: var(--accent);
      border: 1px solid rgba(0, 255, 136, 0.25);
    }

    .status-shipped {
      background: rgba(79, 158, 255, 0.12);
      color: var(--blue);
      border: 1px solid rgba(79, 158, 255, 0.25);
    }

    .proj-year {
      font-size: 0.65rem;
      color: var(--text-dim);
      margin-left: auto;
    }

    .proj-name {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.75rem;
    }

    .proj-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .proj-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1.25rem;
    }

    .proj-tag {
      font-size: 0.62rem;
      color: var(--text-dim);
      background: var(--bg-3);
      border: 1px solid var(--border);
      padding: 0.2rem 0.5rem;
      border-radius: 3px;
    }

    .proj-link {
      font-size: 0.75rem;
      color: var(--accent);
      transition: letter-spacing var(--transition);
    }

    .proj-link:hover {
      letter-spacing: 0.05em;
    }

    /* ===== EXPERIENCE ===== */
    .timeline {
      position: relative;
      padding-left: 2rem;
    }

    .timeline::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--border-2);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 3rem;
      padding-left: 1.5rem;
    }

    .timeline-marker {
      position: absolute;
      left: -2.35rem;
      top: 0.35rem;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--accent);
      transition: background var(--transition);
    }

    .timeline-item:hover .timeline-marker {
      background: var(--accent);
    }

    .timeline-meta {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.5rem;
      flex-wrap: wrap;
    }

    .timeline-year {
      font-size: 0.72rem;
      color: var(--accent);
    }

    .timeline-commit {
      font-size: 0.68rem;
      color: var(--text-dim);
      background: var(--bg-3);
      border: 1px solid var(--border);
      padding: 0.15rem 0.5rem;
      border-radius: 3px;
    }

    .timeline-role {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .timeline-org {
      font-size: 0.8rem;
      color: var(--blue);
      margin-bottom: 0.75rem;
    }

    .timeline-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    /* ===== CONTACT ===== */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    .contact-terminal {
      border: 1px solid var(--border-2);
      border-radius: 8px;
      overflow: hidden;
    }

    .contact-form-wrap {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-row {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
    }

    .form-label {
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
      padding-top: 0.35rem;
    }

    .terminal-input {
      flex: 1;
      width: 100%;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      background: var(--bg-3);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.5rem 0.75rem;
      outline: none;
      resize: vertical;
      transition: border-color var(--transition);
    }

    .terminal-input:focus {
      border-color: var(--accent);
    }

    .terminal-input::placeholder {
      color: var(--text-dim);
    }

    .submit-btn {
      align-self: flex-start;
    }

    .form-feedback {
      font-size: 0.75rem;
      margin-top: 0.25rem;
    }

    .form-feedback.error {
      color: var(--err);
    }

    .form-feedback.success {
      color: var(--accent);
    }

    .contact-lead {
      font-size: 1rem;
      color: var(--text);
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-bottom: 2rem;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      transition: color var(--transition);
    }

    .contact-link:hover {
      color: var(--accent);
    }

    .link-icon {
      width: 28px;
      text-align: center;
      font-size: 0.9rem;
    }

    .availability-box {
      background: var(--accent-dim);
      border: 1px solid rgba(0, 255, 136, 0.25);
      border-radius: 6px;
      padding: 1rem 1.25rem;
    }

    .avail-header {
      font-size: 0.82rem;
      color: var(--accent);
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .avail-body {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ===== FOOTER ===== */
    .footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 2rem;
    }

    .footer-content {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .footer-text {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* ===== AI CHATBOT ===== */
    .chat-fab {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 800;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 6px;
      padding: 0.65rem 1.1rem;
      cursor: none;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 700;
      transition: all var(--transition);
      box-shadow: 0 4px 24px rgba(0, 255, 136, 0.3);
    }

    .chat-fab:hover {
      background: var(--accent-2);
      transform: translateY(-2px);
    }

    .fab-icon {
      font-size: 1rem;
    }

    .chat-panel {
      position: fixed;
      bottom: 5.5rem;
      right: 2rem;
      z-index: 800;
      width: 360px;
      max-width: calc(100vw - 2rem);
      background: var(--bg-1);
      border: 1px solid var(--border-2);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
      transform: translateY(20px) scale(0.96);
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .chat-panel.open {
      transform: none;
      opacity: 1;
      pointer-events: all;
    }

    .chat-header {
      background: var(--bg-3);
      border-bottom: 1px solid var(--border);
      padding: 0.85rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chat-header-info {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .chat-status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.4
      }
    }

    .chat-title {
      font-size: 0.78rem;
      color: var(--text);
      font-weight: 500;
    }

    .chat-close {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 0.8rem;
      cursor: none;
      transition: color var(--transition);
    }

    .chat-close:hover {
      color: var(--text);
    }

    .chat-messages {
      height: 280px;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
    }

    .chat-msg {
      display: flex;
      gap: 0.5rem;
      font-size: 0.78rem;
      line-height: 1.6;
    }

    .chat-msg.user {
      flex-direction: row-reverse;
    }

    .chat-msg.user .msg-prompt {
      color: var(--warn);
    }

    .chat-msg.user .msg-text {
      background: var(--bg-3);
      border: 1px solid var(--border);
      padding: 0.4rem 0.75rem;
      border-radius: 6px;
      color: var(--text);
      text-align: right;
    }

    .chat-msg.assistant .msg-prompt {
      color: var(--accent);
      white-space: nowrap;
    }

    .chat-msg.assistant .msg-text {
      color: var(--text-muted);
    }

    .chat-msg.typing .msg-text {
      display: inline-block;
      animation: typingPulse 1s ease infinite;
    }

    @keyframes typingPulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.3
      }
    }

    .chat-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding-top: 0.25rem;
    }

    .suggestion-btn {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      background: var(--bg-3);
      color: var(--text-muted);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.3rem 0.6rem;
      cursor: none;
      transition: all var(--transition);
    }

    .suggestion-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .chat-input-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border-top: 1px solid var(--border);
      background: var(--bg-2);
    }

    .chat-input {
      flex: 1;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
    }

    .chat-input::placeholder {
      color: var(--text-dim);
    }

    .chat-send {
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 4px;
      padding: 0.3rem 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      font-weight: 700;
      cursor: none;
      transition: background var(--transition);
    }

    .chat-send:hover {
      background: var(--accent-2);
    }

    /* ===== SCROLL REVEAL ===== */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        inset: 0 0 0 0;
        top: var(--nav-h);
        background: rgba(8, 8, 8, 0.97);
        padding: 2rem;
        gap: 0;
      }

      .nav-links.open {
        display: flex;
      }

      .nav-links li {
        border-bottom: 1px solid var(--border);
      }

      .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
      }

      .hamburger {
        display: flex;
      }

      .about-grid {
        grid-template-columns: 1fr;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .hero-stats {
        gap: 0.75rem;
      }

      .stat-num {
        font-size: 1.3rem;
      }

      body {
        cursor: auto;
      }

      .cursor,
      .cursor-dot {
        display: none;
      }

      .chat-panel {
        width: calc(100vw - 2rem);
        right: 1rem;
      }

      .chat-fab {
        right: 1rem;
        bottom: 1rem;
      }
    }

    @media (max-width: 480px) {
      .projects-grid {
        grid-template-columns: 1fr;
      }

      .about-grid {
        gap: 1.5rem;
      }
    }