/* =========================================================
   ADN HacKeR — Nodirbek Amonov
   Dizayn tizimi
   ========================================================= */
:root {
  --bg: #05070b;
  --bg-2: #0a0f17;
  --surface: rgba(16, 22, 33, .62);
  --surface-solid: #0e1520;
  --line: rgba(148, 178, 214, .12);
  --line-strong: rgba(148, 178, 214, .22);
  --text: #e6edf5;
  --text-2: #a3b1c2;
  --muted: #6b7a8e;
  --green: #2ee59d;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, var(--green) 0%, var(--cyan) 50%, var(--violet) 100%);
  --glow: 0 0 0 1px rgba(46,229,157,.25), 0 20px 60px -20px rgba(46,229,157,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --mono: "JetBrains Mono", ui-monospace, "Fira Code", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
::selection { background: rgba(46,229,157,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { line-height: 1.2; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fon ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .55; }
.bg-fx { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; animation: float 22s var(--ease) infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: #0f766e; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #4c1d95; top: 10%; right: -160px; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; background: #0e7490; bottom: -140px; left: 30%; animation-delay: -12s; opacity: .2; }
@keyframes float { to { transform: translate3d(60px, 80px, 0) scale(1.15); } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--grad); box-shadow: 0 0 12px var(--green); }

/* ---------- Navigatsiya ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: calc(100% - 32px); max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(8, 12, 18, .6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(8, 12, 18, .85); border-color: var(--line-strong); box-shadow: 0 10px 40px -10px rgba(0,0,0,.6); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -.3px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #04120c; font-size: 13px; font-weight: 800;
  box-shadow: 0 0 20px rgba(46,229,157,.4);
}
.logo b { color: var(--green); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14.5px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(255,255,255,.35); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; }
.lang-switch .icon { color: var(--muted); font-size: 14px; margin-right: 4px; }
.lang-switch a, .lang-switch span { padding: 4px 8px; border-radius: 999px; color: var(--text-2); font-weight: 500; }
.lang-switch a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang-switch .active { background: var(--green); color: #03140c; font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; place-items: center; }

/* ---------- Tugmalar ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn-primary { background: var(--green); color: #03140c; box-shadow: 0 10px 40px -10px rgba(46,229,157,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(46,229,157,.9); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--green); background: rgba(46,229,157,.06); transform: translateY(-2px); }
.btn .icon { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero { min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; align-items: center; padding: 140px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(46,229,157,.06);
  font-size: 13.5px; color: var(--text-2); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,229,157,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }
.hero h1 { font-family: var(--display); font-size: clamp(44px, 7.6vw, 92px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.hero h1 .line { display: block; }
.alias {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  font-family: var(--mono); font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; color: var(--green);
  position: relative;
}
.alias::before { content: ""; width: 34px; height: 2px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.glitch:hover::before { opacity: .8; color: var(--cyan); animation: glitch .35s steps(2) infinite; }
.glitch:hover::after { opacity: .8; color: var(--violet); animation: glitch .35s steps(2) infinite reverse; }
@keyframes glitch {
  0% { transform: translate(0); clip-path: inset(0 0 60% 0); }
  50% { transform: translate(-3px, 1px); clip-path: inset(40% 0 10% 0); }
  100% { transform: translate(3px, -1px); clip-path: inset(70% 0 0 0); }
}
.roles { margin-top: 26px; font-size: clamp(18px, 2vw, 22px); color: var(--text-2); min-height: 1.7em; }
.roles .typed { color: var(--text); font-weight: 600; }
.roles .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--green); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { margin-top: 18px; max-width: 580px; color: var(--text-2); font-size: 17.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.socials { display: flex; gap: 10px; margin-top: 36px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 19px;
  transition: all .25s var(--ease);
}
.socials a:hover { color: var(--green); border-color: rgba(46,229,157,.5); transform: translateY(-3px); box-shadow: 0 10px 30px -10px rgba(46,229,157,.5); }

/* Avatar */
.avatar-wrap { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-left: auto; }
.avatar-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green), var(--cyan), var(--violet), transparent 70%, var(--green));
  animation: spin 8s linear infinite; filter: blur(.5px);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.avatar-glow { position: absolute; inset: 10%; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .35; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-wrap picture img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); }
.orbit-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: rgba(10, 15, 23, .85); border: 1px solid var(--line-strong); border-radius: 12px;
  backdrop-filter: blur(12px); font-family: var(--mono); font-size: 12.5px; color: var(--text);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); animation: bob 6s ease-in-out infinite; white-space: nowrap;
}
.orbit-chip .icon { color: var(--green); font-size: 16px; }
.orbit-chip.c1 { top: 6%; left: -14%; }
.orbit-chip.c2 { top: 46%; right: -16%; animation-delay: -2s; }
.orbit-chip.c3 { bottom: 4%; left: -6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-family: var(--mono); letter-spacing: 2px; }
.scroll-hint span { width: 22px; height: 36px; border: 2px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Texnologiyalar lentasi ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(10,15,23,.5); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: 15px; color: var(--text-2); display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--green); font-size: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Bo'limlar ---------- */
section { padding: 120px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--green); letter-spacing: .5px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--green); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 18px; }

/* Glass karta + kursor nuri */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(46,229,157,.12), transparent 40%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

/* ---------- Men haqimda ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.about-text p { color: var(--text-2); font-size: 17.5px; }
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.fact { padding: 18px 20px; }
.fact small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.fact strong { display: block; margin-top: 4px; font-size: 15.5px; color: var(--text); font-weight: 600; line-height: 1.4; }

/* Terminal */
.terminal { background: rgba(5, 8, 12, .9); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), var(--glow); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.term-body { height: 380px; overflow-y: auto; padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; cursor: text; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.term-body .out { color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.term-body .ps { color: var(--green); }
.term-body .hl { color: var(--cyan); }
.term-body .warn { color: #fbbf24; }
.term-input-row { display: flex; gap: 8px; }
.term-input-row input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--green); min-width: 0; }
.term-hint { padding: 10px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.term-hint button { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2); font: inherit; padding: 3px 10px; border-radius: 6px; cursor: pointer; transition: all .2s; }
.term-hint button:hover { color: var(--green); border-color: var(--green); }

/* ---------- Yo'nalishlar (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { padding: 32px; display: flex; flex-direction: column; }
.bento .span-3 { grid-column: span 3; }
.bento .span-2 { grid-column: span 2; }
.bento .span-4 { grid-column: span 4; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(46,229,157,.18), rgba(34,211,238,.08)); color: var(--green);
  border: 1px solid rgba(46,229,157,.25); margin-bottom: 22px;
}
.bento h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.bento p { color: var(--text-2); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2); }
.card.featured { background: linear-gradient(160deg, rgba(46,229,157,.10), rgba(10,15,23,.6) 45%); border-color: rgba(46,229,157,.25); }
.code-peek { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(0,0,0,.4); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--text-2); overflow-x: auto; white-space: pre; }
.code-peek .k { color: var(--violet); } .code-peek .s { color: var(--green); } .code-peek .c { color: var(--muted); } .code-peek .f { color: var(--cyan); }

/* ---------- Loyihalar ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { display: flex; flex-direction: column; --h1: #2ee59d; --h2: #22d3ee; }
.project-card.hue-rose { --h1: #fb7185; --h2: #f472b6; }
.project-card.hue-cyan { --h1: #22d3ee; --h2: #3b82f6; }
.project-card.hue-violet { --h1: #a78bfa; --h2: #6366f1; }
.mock { display: block; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #070b11; transition: transform .5s var(--ease); }
.project-card:hover .mock { transform: translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mock-url { margin-left: 8px; flex: 1; display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); overflow: hidden; white-space: nowrap; }
.mock-url .icon { font-size: 11px; color: var(--green); }
.mock-body {
  position: relative; height: 170px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-content: start;
  background:
    radial-gradient(400px circle at 85% 120%, color-mix(in srgb, var(--h2) 35%, transparent), transparent 60%),
    radial-gradient(300px circle at 0% 0%, color-mix(in srgb, var(--h1) 28%, transparent), transparent 60%);
}
.mock-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--h1), var(--h2)); box-shadow: 0 10px 30px -8px var(--h1); }
.mock-lines { display: grid; gap: 8px; padding-top: 6px; }
.mock-lines b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
.mock-lines b:nth-child(1) { width: 80%; background: rgba(255,255,255,.28); }
.mock-lines b:nth-child(2) { width: 60%; } .mock-lines b:nth-child(3) { width: 40%; }
.mock-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.mock-tiles i { height: 46px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.mock-tiles i:first-child { background: color-mix(in srgb, var(--h1) 22%, transparent); border-color: color-mix(in srgb, var(--h1) 40%, transparent); }
.project-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptag { font-family: var(--mono); font-size: 12px; color: var(--h1); }
.project-card h3 { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; margin-top: 14px; }
.project-card p { color: var(--text-2); font-size: 15.5px; margin-top: 10px; }
.features { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); line-height: 1.5; }
.features .icon { color: var(--h1); font-size: 16px; margin-top: 2px; }
.project-card .chips { padding-top: 20px; }
.visit { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--text); padding-top: 18px; border-top: 1px solid var(--line); }
.visit span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-weight: 400; }
.visit .icon { margin-left: auto; color: var(--h1); transition: transform .3s var(--ease); }
.visit:hover { color: var(--h1); } .visit:hover .icon { transform: translate(3px, -3px); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(46,229,157,.1); color: var(--green); border: 1px solid rgba(46,229,157,.3); }
.ai-card { margin-top: 18px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ai-card h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; margin-top: 18px; }
.ai-card p { color: var(--text-2); margin-top: 12px; }
.ai-card .chips { padding-top: 22px; }
.lang-badge { color: #c4b5fd; border: 1px solid rgba(139,92,246,.35); border-radius: 999px; padding: 0 8px; font-size: 11px; }

/* AI chat ko'rinishi */
.chat { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: rgba(46,229,157,.14); border: 1px solid rgba(46,229,157,.25); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.msg.bot b { color: var(--green); font-family: var(--mono); font-size: 12px; display: block; margin-bottom: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: dot 1.4s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-input { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 10px 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 14px; }
.chat-input span { flex: 1; }
.chat-input i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: #03140c; font-size: 16px; font-style: normal; }

/* ---------- Tajriba ---------- */
.timeline { position: relative; display: grid; gap: 18px; }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 36px; }
.job-meta small { font-family: var(--mono); font-size: 12.5px; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.job-meta .org { margin-top: 10px; color: var(--text); font-weight: 600; line-height: 1.4; }
.job h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.job p { color: var(--text-2); margin-top: 8px; }
.job ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.job li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15.5px; }
.job li::before { content: "▹"; position: absolute; left: 0; color: var(--green); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.post-card { padding: 30px; display: flex; flex-direction: column; color: var(--text); transition: transform .4s var(--ease), border-color .3s; }
.post-card:hover { transform: translateY(-4px); }
.post-card .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.post-card .meta span { white-space: nowrap; }
.post-card .tag { color: var(--green); }
.post-card h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin: 14px 0 10px; }
.post-card p { color: var(--text-2); font-size: 15px; }
.post-card .more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: 14.5px; }
.post-card .more .icon { transition: transform .3s var(--ease); }
.post-card:hover .more .icon { transform: translate(3px, -3px); }
.section-foot { margin-top: 36px; }

/* ---------- Aloqa ---------- */
.cta {
  padding: 80px 60px; text-align: center; border-radius: 28px;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(46,229,157,.18), transparent 60%),
    linear-gradient(180deg, rgba(16,22,33,.8), rgba(10,15,23,.6));
  border: 1px solid var(--line-strong);
}
.cta h2 { font-family: var(--display); font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.04em; line-height: 1.05; }
.cta > p { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 20px auto 0; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; text-align: left; }
.contact-item { padding: 20px; display: flex; align-items: center; gap: 14px; color: var(--text); }
.contact-item .svc-icon { width: 44px; height: 44px; font-size: 20px; margin: 0; border-radius: 12px; }
.contact-item small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item strong { font-size: 15px; font-weight: 600; word-break: break-all; }
.contact-item:hover { border-color: rgba(46,229,157,.4); transform: translateY(-3px); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); } .foot nav a:hover { color: var(--green); }
.foot code { font-family: var(--mono); color: var(--green); }

/* ---------- Scroll animatsiyalari ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Blog sahifalari
   ========================================================= */
.page { padding: 150px 0 60px; }
.page-head { max-width: 760px; margin-bottom: 50px; }
.page-head h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.05; }
.page-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.breadcrumb { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-2); } .breadcrumb a:hover { color: var(--green); }

article.post { max-width: 780px; margin: 0 auto; padding: 150px 24px 40px; }
article.post h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 50px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 20px; }
article.post .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
article.post h2 { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; margin: 52px 0 14px; }
article.post h3 { font-size: 20px; margin: 30px 0 10px; }
article.post p, article.post li { color: #c3cfdc; font-size: 17px; }
article.post p { margin-top: 16px; }
article.post strong { color: var(--text); }
article.post ul, article.post ol { margin: 14px 0 14px 24px; }
article.post li { margin: 7px 0; }
pre { position: relative; background: #03060a; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; margin: 18px 0; }
code { font-family: var(--mono); font-size: 14px; }
p code, li code { background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.18); color: #b6f7d9; padding: 2px 7px; border-radius: 6px; font-size: 14px; }
pre code { color: #c9f8e2; }
.copy-btn { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .2s; }
pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.note { background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2); border-left: 3px solid var(--cyan); padding: 16px 20px; border-radius: 10px; margin: 22px 0; color: var(--text-2); }
.note.warn { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.25); border-left-color: #fbbf24; }
.table-wrap, pre, .code-peek, .term-body { scrollbar-width: thin; scrollbar-color: rgba(148,178,214,.25) transparent; }
.table-wrap::-webkit-scrollbar, pre::-webkit-scrollbar, .code-peek::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb, pre::-webkit-scrollbar-thumb, .code-peek::-webkit-scrollbar-thumb { background: rgba(148,178,214,.25); border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
article.post table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
article.post th, article.post td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
article.post th { background: rgba(46,229,157,.07); color: var(--text); font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
article.post td { color: #c3cfdc; }
article.post tbody tr:last-child td { border-bottom: 0; }
article.post tbody tr:hover td { background: rgba(255,255,255,.02); }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; margin-top: 60px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--green); }
.author-box p { margin: 0 !important; color: var(--text-2); font-size: 15px !important; }
.author-box strong { color: var(--text); }

/* =========================================================
   Moslashuvchanlik
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { order: -1; }
  .avatar-wrap { max-width: 300px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .ai-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-right { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav.open { border-radius: 24px; flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 6px; }
  .nav.open .nav-links a { padding: 12px 16px; font-size: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-grid { gap: 56px; }
  .avatar-wrap { max-width: 220px; }
  .orbit-chip { font-size: 11px; padding: 7px 10px; }
  .orbit-chip.c1 { left: -20%; } .orbit-chip.c2 { right: -24%; } .orbit-chip.c3 { left: -16%; }
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: auto; }
  .bento .card, .job { padding: 26px 22px; }
  .projects-grid { grid-template-columns: 1fr; }
  .ai-card { padding: 26px 22px; gap: 26px; }
  .project-body { padding: 22px; }
  .lang-switch .icon { display: none; }
  .lang-switch { padding: 3px; }
  .lang-switch a, .lang-switch span { padding: 4px 7px; }
  .facts { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 14px; }
  .cta { padding: 56px 22px; border-radius: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .code-peek { white-space: pre-wrap; word-break: break-word; }
  .term-body { height: 320px; font-size: 12.5px; padding: 14px; }
  .posts { grid-template-columns: 1fr; }
  .foot { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
  article.post { padding-top: 120px; padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
}
