
  :root {
    --bg: #080b0f;
    --bg2: #0d1117;
    --surface: #111820;
    --border: #1e2d3d;
    --accent: #00d4ff;
    --accent2: #7b2fff;
    --accent3: #00ff9d;
    --accent4: tomato;
    --text: #e2e8f0;
    --muted: #64748b;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

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

  /* Custom cursor */
  .cursor {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, opacity 0.3s;
    opacity: 0.4;
  }

  /* Grid overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* Glow blobs */
  .blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
  }
  .blob-1 { width: 500px; height: 500px; background: var(--accent2); top: -100px; right: -100px; }
  .blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: 10%; left: -150px; }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    border-bottom: 1px solid var(--border);
    background: rgba(8,11,15,0.85);
    backdrop-filter: blur(12px);
  }
  .nav-logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }
  .lang-switcher {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
  }
  .lang-btn {
    border: none;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.45rem 0.6rem;
    transition: color 0.2s, background 0.2s;
    cursor: none;
  }
  .lang-btn:last-child { border-right: none; }
  .lang-btn:hover { color: var(--accent); }
  .lang-btn.is-active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 1;
  }
  .hero-inner { max-width: 900px; }
  .hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
  }
  .hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }
  .hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
  }
  .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .btn {
    padding: 0.85rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    cursor: none;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    border: 1px solid var(--accent);
  }
  .btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px rgba(0,212,255,0.3);
  }
  .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Stats bar */
  .stats-bar {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
  }
  .stat {
    flex: 1;
    padding: 2rem;
    border-right: 1px solid var(--border);
    text-align: center;
    transition: background 0.2s;
  }
  .stat:last-child { border-right: none; }
  .stat:hover { background: var(--surface); }
  .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Sections */
  section {
    position: relative;
    z-index: 1;
    padding: 6rem 4rem;
  }
  .section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .section-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
  }

  /* Skills */
  #skills { background: var(--bg2); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .skill-card {
    background: var(--bg);
    padding: 2rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
  }
  .skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
  }
  .skill-card:hover { background: var(--surface); }
  .skill-card:hover::before { height: 100%; }
  .skill-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
  }
  .skill-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .skill-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
  }
  .tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.05em;
    border-radius: 2px;
  }
  .tag.accent { border-color: var(--accent); color: var(--accent); }

  /* Projects */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,212,255,0.1);
  }
  .project-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
  }
  .project-thumb-1 { background: linear-gradient(135deg, #0a1628, #1a2d4a); }
  .project-thumb-2 { background: linear-gradient(135deg, #150a28, #2d1a4a); }
  .project-thumb-3 { background: linear-gradient(135deg, #0a2818, #1a4a2d); }
  .project-body { padding: 1.5rem; }
  .project-body a{ cursor: none; }
  .project-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }
  .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .project-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .project-link:hover {
    border-color: var(--accent);
    color: var(--accent3);
    background: rgba(0, 212, 255, 0.08);
  }

  /* About */
  #about { background: var(--bg2); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .about-text p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
  }
  .about-text p strong { color: var(--text); }
  .terminal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }
  .terminal-bar {
    background: var(--surface);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #ff5f57; }
  .dot-y { background: #febc2e; }
  .dot-g { background: #28c840; }
  .terminal-body { padding: 1.25rem; line-height: 2; }
  .t-prompt { color: var(--accent3); }
  .t-cmd { color: var(--text); }
  .t-out { color: var(--muted); }
  .t-val { color: var(--accent); }
  .cursor-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

  /* Contact */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .contact-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  .contact-info p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
  }
  .contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
  }
  .contact-link:hover { border-color: var(--accent); color: var(--accent); }
  .contact-link span:first-child { font-size: 1.1rem; }
  .contact-form { display: flex; flex-direction: column; gap: 1rem; }
  .form-group input, .form-group textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
  }
  .form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
  .form-group textarea { height: 120px; }

  /* Footer */
  footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
  }
  footer p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
  }
  footer span { color: var(--accent); }

  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.7s ease forwards;
  }
  @keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-in:nth-child(1) { animation-delay: 0.1s; }
  .fade-in:nth-child(2) { animation-delay: 0.2s; }
  .fade-in:nth-child(3) { animation-delay: 0.35s; }
  .fade-in:nth-child(4) { animation-delay: 0.5s; }

  /* Scan line effect */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
  }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-right { margin-left: auto; }
    section, .hero { padding: 4rem 1.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
    .stats-bar { flex-direction: column; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
  }
