/* ============================================================
   Ilyos Lutfiyev — portfolio (premium dark theme)
   ============================================================ */

/* ============ Variables ============ */
:root {
  --bg: #050810;
  --bg-soft: #080d18;
  --card: rgba(255, 255, 255, 0.028);
  --card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5fa;
  --muted: #94a0b4;
  --accent: #00ffa3;
  --accent2: #00d4ff;
  --violet: #7c5cff;
  --grad: linear-gradient(135deg, #00ffa3 0%, #00d4ff 100%);
  --glow: rgba(0, 255, 163, 0.28);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --radius: 16px;
  --maxw: 1140px;
}

/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film-grain noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

::selection { background: var(--accent); color: #04110b; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); }

/* sticky header ostida qolib ketmasligi uchun */
[id] { scroll-margin-top: 88px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ============ Preloader ============ */
body.lock { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .55s ease, visibility .55s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { text-align: left; }
.preloader__text {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.preloader__prompt { color: var(--accent); }
.preloader__cursor { color: var(--accent); animation: blink 0.9s steps(1) infinite; }
.preloader__bar {
  width: min(280px, 60vw);
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px var(--glow);
  animation: loadbar 1.3s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ============ Hero entrance (after preloader) ============ */
.intro > *, .intro-terminal { opacity: 0; }

body.loaded .intro > * {
  animation: introUp .85s cubic-bezier(.2, .7, .2, 1) both;
}
body.loaded .intro > *:nth-child(1) { animation-delay: .05s; }
body.loaded .intro > *:nth-child(2) { animation-delay: .15s; }
body.loaded .intro > *:nth-child(3) { animation-delay: .3s; }
body.loaded .intro > *:nth-child(4) { animation-delay: .42s; }
body.loaded .intro > *:nth-child(5) { animation-delay: .54s; }
body.loaded .intro > *:nth-child(6) { animation-delay: .66s; }
@keyframes introUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

body.loaded .intro-terminal {
  animation: introTerm 1s cubic-bezier(.2, .7, .2, 1) .5s both;
}
@keyframes introTerm {
  from { opacity: 0; transform: translateY(36px) scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* per-letter title reveal */
.hero__title .ch {
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.loaded .hero__title .ch {
  animation: chIn .65s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.18s + var(--i) * .04s);
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
.hero__title .word { display: inline-block; white-space: nowrap; }

/* ============ Matrix rain ============ */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}
html.light #matrix-canvas { opacity: 0.18; }
@media (prefers-reduced-motion: reduce) {
  #matrix-canvas { display: none; }
}

/* ============ Scroll progress ============ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 10000;
  box-shadow: 0 0 12px var(--glow);
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled {
  background: rgba(5, 8, 16, 0.85);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.logo__prompt { color: var(--accent); }
.logo__accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 30px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
}
.lang button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.lang button.active { background: var(--grad); color: #04110b; }
.lang button:not(.active):hover { color: var(--text); }

.theme-toggle {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, transform .3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: none; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s, background .25s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--grad);
  color: #04110b;
  box-shadow: 0 8px 28px rgba(0, 255, 163, 0.22);
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(0, 255, 163, 0.38);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 163, 0.05);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 20px; font-size: 13.5px; border-radius: 10px; }

/* ============ Badge ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 163, 0.25);
  background: rgba(0, 255, 163, 0.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(0, 255, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.blob--1 {
  width: 560px; height: 560px;
  background: rgba(0, 255, 163, 0.13);
  top: -180px; left: -140px;
  animation: drift1 16s ease-in-out infinite alternate;
}
.blob--2 {
  width: 520px; height: 520px;
  background: rgba(124, 92, 255, 0.14);
  bottom: -220px; right: -120px;
  animation: drift2 19s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(70px, 50px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-60px, -45px) scale(1.08); } }

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #9aa7bd 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__role span:first-child {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cursor {
  color: var(--accent);
  animation: blink 1.05s steps(1) infinite;
  font-family: var(--font-mono);
}
@keyframes blink { 50% { opacity: 0; } }

.hero__subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__hint {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.65;
}

/* ============ Terminal ============ */
.terminal {
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(0, 255, 163, 0.06);
  font-family: var(--font-mono);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #27c93f; }
.terminal__title { margin-left: 10px; font-size: 12px; color: var(--muted); }

.terminal__body {
  padding: 18px;
  height: 330px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.75;
  cursor: text;
}

.terminal__body .line { white-space: pre-wrap; word-break: break-word; }
.terminal__body .line--out { color: var(--muted); }
.terminal__body .line--ok { color: var(--accent); }

.terminal__prompt { color: var(--accent); font-weight: 700; }

/* Snake o'yini (terminal ichida) */
.snake-grid {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.12;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 6px 0 2px;
  user-select: none;
}

/* Penalti o'yini (terminal ichida) */
.penalty-grid {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  margin: 6px 0 2px;
  user-select: none;
  white-space: pre;
}

.terminal__input-line { display: flex; gap: 8px; align-items: center; }
#terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  caret-color: var(--accent);
}

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.marquee__track span:hover { color: var(--accent); }
.marquee__track i {
  font-style: normal;
  color: var(--accent);
  opacity: 0.5;
  font-size: 11px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; overflow: hidden; }
.section--alt {
  /* yarim shaffof — orqadagi matrix yomg'iri xira ko'rinib turadi */
  background: rgba(8, 13, 24, 0.72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
html.light .section--alt { background: rgba(236, 239, 245, 0.74); }

.sec-head { margin-bottom: 56px; max-width: 640px; }
.sec-head__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 40%, #aab6ca 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* ============ About ============ */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.about__photo { display: flex; justify-content: center; }
.about__ring {
  position: relative;
  width: min(300px, 100%);
  flex-shrink: 0;
  padding: 5px;
  border-radius: 28px;
  background: var(--grad);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 255, 163, 0.15);
  animation: float 5.5s ease-in-out infinite;
}
.about__ring img {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%; /* portret rasmda yuz yuqoriroqda */
  border-radius: 24px;
  filter: saturate(1.05);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about__cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: .8;
}
.about__p { color: var(--muted); font-size: 16px; margin-bottom: 16px; max-width: 640px; }

.about__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: all .22s;
}
.chip:hover {
  border-color: rgba(0, 255, 163, 0.4);
  background: rgba(0, 255, 163, 0.06);
  transform: translateY(-2px);
}

/* ============ Glow (cursor spotlight) ============ */
.glow-card { position: relative; }
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 163, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* ============ Cards (services) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .3s ease, border-color .3s, background .3s, box-shadow .3s;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(0, 255, 163, 0.35);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.22);
  color: var(--accent);
  margin-bottom: 22px;
  transition: transform .3s, box-shadow .3s;
}
.card__icon svg { width: 25px; height: 25px; }
.card:hover .card__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 26px rgba(0, 255, 163, 0.22);
}

.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.card__num {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  transition: color .3s;
}
.card:hover .card__num { color: rgba(0, 255, 163, 0.14); }

/* ============ Stack ============ */
.stack {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack__group {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.stack__group:hover { background: rgba(255, 255, 255, 0.02); }
.stack__group:last-child { border-bottom: none; }
.stack__group h4 {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.stack__group h4::before { content: "# "; opacity: 0.55; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all .22s;
  cursor: default;
}
.tag:hover {
  border-color: rgba(0, 255, 163, 0.45);
  color: var(--accent);
  background: rgba(0, 255, 163, 0.07);
  transform: translateY(-2px);
}
.tags--sm .tag { padding: 3px 12px; font-size: 11.5px; color: var(--muted); }

/* ============ Projects ============ */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.project:hover {
  border-color: rgba(0, 255, 163, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}

.project__cover {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.project__cover--1 { background: linear-gradient(135deg, rgba(0, 255, 163, 0.16), rgba(0, 212, 255, 0.07)); }
.project__cover--2 { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 92, 255, 0.08)); }
.project__cover--3 { background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(0, 255, 163, 0.06)); }
.project__cover--4 { background: linear-gradient(135deg, rgba(0, 255, 163, 0.12), rgba(124, 92, 255, 0.09)); }
.project__cover--5 { background: linear-gradient(135deg, rgba(0, 212, 255, 0.13), rgba(0, 255, 163, 0.08)); }
.project__cover--6 { background: linear-gradient(135deg, rgba(124, 92, 255, 0.13), rgba(0, 212, 255, 0.08)); }
.project__cover--7 { background: linear-gradient(135deg, rgba(255, 184, 77, 0.20), rgba(255, 122, 41, 0.10)); }

/* jonli sayt belgisi */
.project__type.is-live {
  color: var(--accent);
  border-color: rgba(0, 255, 163, 0.45);
}
.project__type.is-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}

.project__mono {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .35s ease;
}
.project:hover .project__mono { transform: scale(1.12); }

.project__type {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(6px);
  padding: 3px 10px;
  border-radius: 999px;
}

.project__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.project__head { display: flex; justify-content: space-between; align-items: center; }
.project__head h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.project__link {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  transition: all .25s;
}
.project__link:hover {
  color: #04110b;
  background: var(--grad);
  border-color: transparent;
  transform: translate(2px, -2px);
  box-shadow: 0 6px 20px rgba(0, 255, 163, 0.3);
}
.project__body p { color: var(--muted); font-size: 14px; flex: 1; }

.projects__more { text-align: center; margin-top: 44px; }

/* ============ Project filters ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -20px 0 36px;
}
.filters button {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: all .22s;
}
.filters button:hover { color: var(--accent); border-color: rgba(0, 255, 163, 0.4); }
.filters button.active {
  background: var(--grad);
  color: #04110b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 255, 163, 0.2);
}
html.light .filters button { background: rgba(12, 22, 44, 0.035); }
.project.hidden { display: none; }

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  position: relative;
  max-width: 720px;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), var(--violet));
  border-radius: 2px;
  opacity: .55;
}
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 12px var(--glow);
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
}
.timeline__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform .25s, border-color .25s;
}
.timeline__card:hover { border-color: rgba(0, 255, 163, 0.35); transform: translateX(4px); }
html.light .timeline__card:hover { border-color: rgba(0, 163, 108, 0.45); }
.timeline__card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.timeline__card p { color: var(--muted); font-size: 14px; }

/* ============ Stats ============ */
.stats-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 130% at 50% 130%, rgba(0, 255, 163, 0.08), transparent 70%),
    rgba(8, 13, 24, 0.72);
  padding: 72px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 255, 163, 0.25));
}
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ============ Process ============ */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2%; right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 163, 0.25), rgba(0, 212, 255, 0.25), transparent);
  z-index: 0;
}
.process__step {
  position: relative;
  background: rgba(8, 13, 24, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s, border-color .3s;
  z-index: 1;
  overflow: hidden;
}
.process__step:hover {
  border-color: rgba(0, 255, 163, 0.35);
  transform: translateY(-5px);
}
.process__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.process__step h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.process__step p { color: var(--muted); font-size: 13.5px; }

/* ============ Contact ============ */
.contact {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 50% 45% at 50% 110%, rgba(0, 255, 163, 0.13), transparent 70%),
    radial-gradient(ellipse 45% 40% at 15% -10%, rgba(124, 92, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.contact > *:not(.contact__glow) { position: relative; }

.contact__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 40%, #aab6ca 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__lead { color: var(--muted); font-size: 16.5px; margin-bottom: 34px; }
.contact__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
/* ============ Contact form ============ */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 30px;
  text-align: left;
}
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact__form input,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html.light .contact__form input,
html.light .contact__form textarea { background: rgba(255, 255, 255, 0.7); }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--muted); opacity: .7; }
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.12);
}
.contact__form button { align-self: center; min-width: 200px; justify-content: center; }
#cf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; padding: 0; border: 0; }

.cf-status { font-size: 13.5px; text-align: center; min-height: 1.4em; margin: 0; }
.cf-status.ok { color: var(--accent); }
.cf-status.err { color: #ff6b6b; }

.contact__or {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  opacity: .7;
  margin-bottom: 24px;
}

.contact__phones {
  display: flex;
  gap: 12px 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.contact__phones a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.contact__phones a svg { color: var(--accent); flex-shrink: 0; }
.contact__phones a:hover { color: var(--accent); transform: translateY(-2px); }

.contact__socials { display: flex; gap: 14px; justify-content: center; }
.contact__socials a {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: all .25s;
}
.contact__socials a:hover {
  color: var(--accent);
  border-color: rgba(0, 255, 163, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.footer__cmd { font-family: var(--font-mono); color: var(--accent); opacity: 0.65; }

/* ============ Section background decorations ============ */
.bg-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* suzuvchi kod belgilari */
.bg-deco__glyph {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  opacity: 0.05;
  white-space: nowrap;
  animation: glyphFloat var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes glyphFloat {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to { transform: translateY(-28px) rotate(calc(var(--rot, 0deg) + 7deg)); }
}

/* bo'limga xos ulkan xira belgi */
.bg-deco__mark {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(150px, 24vw, 300px);
  line-height: 1;
  color: var(--text);
  opacity: 0.028;
}

/* yumshoq rangli shar */
.bg-deco__orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(85px);
}
.bg-deco__orb--a { background: rgba(0, 255, 163, 0.06); }
.bg-deco__orb--b { background: rgba(124, 92, 255, 0.065); }
.bg-deco__orb--c { background: rgba(0, 212, 255, 0.06); }

html.light .bg-deco__glyph { opacity: 0.065; }
html.light .bg-deco__mark { opacity: 0.04; }
html.light .bg-deco__orb--a { background: rgba(0, 163, 108, 0.1); }
html.light .bg-deco__orb--b { background: rgba(106, 76, 255, 0.09); }
html.light .bg-deco__orb--c { background: rgba(0, 137, 207, 0.09); }

@media (prefers-reduced-motion: reduce) {
  .bg-deco__glyph { animation: none; }
}
/* telefonda GPU tejash uchun sharlar o'chiq */
@media (max-width: 700px) {
  .bg-deco__orb { display: none; }
}

/* ============ Cursor FX ============ */
/* JS ishga tushgandagina tabiiy kursor yashiriladi (html.cursor-on) */
html.cursor-on * { cursor: none !important; }

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9996;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--glow), 0 0 4px var(--accent);
  z-index: 10003;
  transition: opacity .25s, width .2s, height .2s;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(0, 255, 163, 0.45);
  z-index: 10002;
  transition: opacity .25s, width .3s ease, height .3s ease,
    border-color .3s, background .3s;
}
html.cursor-on .cursor-dot.visible,
html.cursor-on .cursor-ring.visible { opacity: 1; }

/* interaktiv element ustida halqa kattalashadi */
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: rgba(0, 255, 163, 0.07);
  box-shadow: 0 0 24px rgba(0, 255, 163, 0.18);
}
.cursor-dot.hover { width: 5px; height: 5px; }

/* bosganda qisqaradi */
.cursor-ring.down { transform-origin: center; border-color: var(--accent2); }
.cursor-dot.down { background: var(--accent2); }

/* sensorli ekran va kam-animatsiya rejimida o'chiq */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #fx-canvas, .cursor-dot, .cursor-ring { display: none !important; }
  html.cursor-on * { cursor: auto !important; }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .badge__dot, .blob, .about__ring { animation: none; }
  .marquee__track { animation: none; }
  .preloader { display: none; }
  .intro > *, .intro-terminal, .hero__title .ch { opacity: 1 !important; animation: none !important; }
}

/* ============ Light mode ============ */
html.light {
  --bg: #f5f7fb;
  --bg-soft: #eceff5;
  --card: rgba(12, 22, 44, 0.03);
  --card-hover: rgba(12, 22, 44, 0.055);
  --border: rgba(12, 22, 44, 0.10);
  --border-strong: rgba(12, 22, 44, 0.18);
  --text: #0d1424;
  --muted: #5b6678;
  --accent: #00a36c;
  --accent2: #0089cf;
  --violet: #6a4cff;
  --grad: linear-gradient(135deg, #00b877 0%, #00a0e0 100%);
  --glow: rgba(0, 163, 108, 0.25);
}

html.light ::selection { color: #fff; }
html.light ::-webkit-scrollbar-track { background: #e7ebf2; }
html.light ::-webkit-scrollbar-thumb { background: rgba(12, 22, 44, 0.18); }

html.light .header { background: rgba(245, 247, 251, 0.7); }
html.light .header.scrolled { background: rgba(245, 247, 251, 0.9); }
html.light .lang,
html.light .theme-toggle,
html.light .btn--ghost,
html.light .tag,
html.light .chip,
html.light .contact__socials a { background: rgba(12, 22, 44, 0.035); }

html.light .hero__grid-bg {
  background-image:
    linear-gradient(rgba(12, 22, 44, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 22, 44, 0.055) 1px, transparent 1px);
}
html.light .blob--1 { background: rgba(0, 184, 119, 0.18); }
html.light .blob--2 { background: rgba(106, 76, 255, 0.15); }

html.light .hero__title,
html.light .sec-head h2,
html.light .contact__title {
  background: linear-gradient(180deg, #0d1424 40%, #45526b 120%);
  -webkit-background-clip: text;
  background-clip: text;
}

html.light .marquee { background: rgba(12, 22, 44, 0.025); }

html.light .badge { border-color: rgba(0, 163, 108, 0.35); background: rgba(0, 163, 108, 0.08); }

html.light .btn--primary { box-shadow: 0 8px 28px rgba(0, 163, 108, 0.25); }
html.light .btn--primary:hover { box-shadow: 0 14px 42px rgba(0, 163, 108, 0.35); }
html.light .btn--ghost:hover { background: rgba(0, 163, 108, 0.07); }

html.light .card__icon { background: rgba(0, 163, 108, 0.1); border-color: rgba(0, 163, 108, 0.3); }
html.light .card:hover .card__icon { box-shadow: 0 0 26px rgba(0, 163, 108, 0.2); }
html.light .card__num { color: rgba(12, 22, 44, 0.07); }
html.light .card:hover .card__num { color: rgba(0, 163, 108, 0.25); }
html.light .card:hover,
html.light .project:hover,
html.light .process__step:hover { border-color: rgba(0, 163, 108, 0.45); }
html.light .card:hover { box-shadow: 0 24px 50px rgba(15, 30, 60, 0.12); }
html.light .project:hover { box-shadow: 0 28px 56px rgba(15, 30, 60, 0.14); }

html.light .stack__group:hover { background: rgba(12, 22, 44, 0.025); }
html.light .tag:hover,
html.light .chip:hover { border-color: rgba(0, 163, 108, 0.5); background: rgba(0, 163, 108, 0.08); }

html.light .glow-card::before {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 163, 108, 0.09), transparent 45%);
}

html.light .project__mono {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.9), rgba(13, 20, 36, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
}
html.light .project__type { background: rgba(255, 255, 255, 0.7); color: #45526b; }

html.light .stats-band {
  background:
    radial-gradient(ellipse 60% 130% at 50% 130%, rgba(0, 163, 108, 0.1), transparent 70%),
    rgba(236, 239, 245, 0.74);
}
html.light .stat__value { filter: drop-shadow(0 0 18px rgba(0, 163, 108, 0.2)); }

html.light .process__step { background: rgba(255, 255, 255, 0.8); }
html.light .process::before {
  background: linear-gradient(90deg, transparent, rgba(0, 163, 108, 0.3), rgba(0, 137, 207, 0.3), transparent);
}

html.light .contact__glow {
  background:
    radial-gradient(ellipse 50% 45% at 50% 110%, rgba(0, 163, 108, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 15% -10%, rgba(106, 76, 255, 0.1), transparent 70%);
}
html.light .contact__socials a:hover { border-color: rgba(0, 163, 108, 0.5); box-shadow: 0 8px 24px rgba(15, 30, 60, 0.15); }

/* terminal light mode'da ham qora qoladi (autentik ko'rinish) */
html.light .terminal {
  background: #0a101d;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(15, 30, 60, 0.25),
    0 0 70px rgba(0, 163, 108, 0.08);
}
html.light .terminal__bar { background: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(255, 255, 255, 0.09); }
html.light .terminal__title { color: #8a96aa; }
html.light .terminal__body .line--out { color: #8a96aa; }
html.light .terminal__body .line--ok,
html.light .terminal .terminal__prompt { color: #00ffa3; }
html.light #terminal-input { color: #f2f5fa; }

/* kursor effektlari */
html.light .cursor-ring { border-color: rgba(0, 140, 95, 0.55); }
html.light .cursor-ring.hover {
  border-color: var(--accent);
  background: rgba(0, 163, 108, 0.08);
  box-shadow: 0 0 24px rgba(0, 163, 108, 0.2);
}
@media (max-width: 700px) {
  html.light .nav { background: rgba(245, 247, 251, 0.97); }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__ring img { max-width: 220px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header__cta { display: none; }
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 22px 28px;
    gap: 18px;
    display: none;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stack__group { grid-template-columns: 1fr; gap: 10px; align-items: start; padding: 20px 22px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 72px 0; }
  .contact { padding: 48px 24px; }
  .card { padding: 26px; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__actions .btn { justify-content: center; }
  .contact__actions a[href^="mailto:"] { font-size: 13.5px; padding: 13px 12px; overflow-wrap: anywhere; }
  .contact__form-row { grid-template-columns: 1fr; }
  .timeline { padding-left: 30px; }
  .snake-grid { font-size: 10px; letter-spacing: 1px; }
  .penalty-grid { font-size: 11px; }
}

/* juda tor ekranlar: header elementlarini siqish */
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .header__inner { gap: 8px; }
  .header__right { gap: 8px; }
  .logo { font-size: 13.5px; }
  .lang { padding: 2px; }
  .lang button { padding: 4px 7px; font-size: 10px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 14px; height: 14px; }
}
