/* ============ Tokenlar (GitHub Dark uslubida) ============ */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2129;
  --border: #30363d;
  --border-soft: #21262d;
  --text: #e6edf3;
  --muted: #7d8590;

  /* Sintaksis ranglari */
  --green: #3fb950;
  --blue: #79c0ff;
  --purple: #d2a8ff;
  --red: #ff7b72;
  --orange: #ffa657;
  --string: #a5d6ff;

  --accent: var(--green);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Isometra", "JetBrains Mono", serif;

  --radius: 10px;
  --container: 1120px;
  --gutter: 16px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(63, 185, 80, .35); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Rang yordamchilari */
.c-green  { color: var(--green); }
.c-blue   { color: var(--blue); }
.c-purple { color: var(--purple); }
.c-muted  { color: var(--muted); }
.c-bg-muted { opacity: .5; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.05rem; }

/* Miltillovchi kursor */
.cursor {
  display: inline-block; width: .55em; height: 1.1em;
  margin-left: 4px; vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ Header ============ */
.header {
  /* Oval, suzuvchi: ekran tepasidan biroz pastda, to'liq kenglikda emas */
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  width: min(880px, calc(100% - 24px)); margin: 0 auto;
  height: calc(var(--header-h) - 4px);
  border-radius: 999px;
  background: rgba(13, 17, 23, .6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -14px rgba(0, 0, 0, .7);
  transition: top .35s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.header.is-scrolled {
  top: 8px; background: rgba(13, 17, 23, .78);
  border-color: rgba(63, 185, 80, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 40px -16px rgba(0, 0, 0, .9);
}
.header__inner { height: 100%; max-width: none; padding: 0 8px 0 24px; display: flex; align-items: center; justify-content: space-between; }

.logo { font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; }
.logo .cursor { width: 8px; height: 16px; }

.nav { display: flex; align-items: center; gap: 24px; font-size: .875rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active .c-muted { color: var(--green); }
.nav .nav__cta {
  color: var(--bg);
  background: var(--green);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: opacity .2s;
}
.nav .nav__cta:hover { color: var(--bg); opacity: .85; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============ Tugmalar ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 6px;
  font-weight: 500; font-size: .9rem;
  transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--bg); font-weight: 600; }
.btn--primary:hover { opacity: .9; }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); }

/* ============ Oyna (window) komponenti ============ */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 14px;
  height: 38px; padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.window__title { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kod bloki (qator raqamlari bilan) */
.code {
  padding: 18px 0;
  font-size: .85rem; line-height: 1.75;
  overflow-x: auto;
  counter-reset: ln;
}
.code code { display: block; min-width: max-content; }
.code code { padding-right: 20px; }
.code .line { display: inline; }
.code .line::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block; width: 2.5em; margin-right: 1.25em;
  text-align: right; color: #484f58;
  user-select: none;
}
.k { color: var(--red); }
.v { color: var(--orange); }
.s { color: var(--string); }
.n { color: var(--blue); }
.f { color: var(--purple); }
.p { color: var(--blue); }

/* ============ Hero ============ */
.hero { padding: calc(var(--header-h) + 80px) 0 32px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--muted);
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(63, 185, 80, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.comment { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.hero__title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.hero__role { margin-top: 20px; font-size: clamp(1rem, 2.6vw, 1.25rem); color: var(--blue); min-height: 1.8em; }
.hero__text { margin-top: 20px; max-width: 52ch; color: var(--muted); font-family: var(--sans); font-size: 1.02rem; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero kod oynasi */
.hero__code { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }

/* Hero rasmi va atrofida aylanadigan logolar */
.hero__stage { justify-self: center; width: min(560px, 100%); }
.orbit { position: relative; aspect-ratio: .82; }
/* Rasm ortidagi yorug'lik (qimirlamaydi) */
.orbit::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 86%; aspect-ratio: 1;
  margin: -43% 0 0 -43%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(63, 185, 80, .28), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(121, 192, 255, .22), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(210, 168, 255, .14), transparent 70%);
}
.avatar {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: 88%; height: auto; transform: translateX(-50%);
  /* Rasm beldan kesilgan — pastki qirrasi sekin so'nadi */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.orbit__item {
  /* O'z joyida havoda uchib turadi: sekin tepaga-pastga tebranadi. Fon/ramka yo'q — faqat logo */
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: max-content;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  animation: hover-float 5s ease-in-out var(--d, 0s) infinite;
}
@keyframes hover-float {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  50% { translate: 0 -14px; rotate: 4deg; }
}
.orbit__item img { width: 64px; height: 64px; max-width: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
/* Qora logolar (Codex, GitHub, Cursor) qorong'i fonda ko'rinishi uchun oqartiriladi */
.orbit__item img.is-dark-logo { filter: invert(1) hue-rotate(180deg) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.orbit__item b {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: .7rem; font-weight: 500; white-space: nowrap; color: var(--text);
  padding: 2px 8px; border-radius: 6px; background: rgba(13, 17, 23, .85); border: 1px solid var(--border);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.orbit__item:hover b { opacity: 1; }

/* Men haqimda */
.about { display: grid; gap: 32px; align-items: center; }
.about .section__head { margin-bottom: 0; }
.about__text { margin-top: 20px; color: var(--muted); font-family: var(--sans); font-size: 1.02rem; max-width: 52ch; }

.stats {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stat { padding: 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.stat dt { font-size: .75rem; color: var(--muted); }
.stat dd { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }

/* ============ Bo'limlar ============ */
.section { padding: 96px 0; }
.section__head { margin-bottom: 40px; }
.prompt { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }

/* Karta */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .3s, transform .3s var(--ease);
}

.card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  font-size: .78rem;
}
.card__file { color: var(--orange); }
.card__file::before { content: "◇ "; color: var(--muted); }
.card__num { color: #484f58; margin-left: auto; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { color: var(--muted); font-family: var(--sans); font-size: .95rem; }

.list { margin-top: 18px; display: grid; gap: 8px; font-size: .85rem; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }

/* Teglar */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags[hidden] { display: none; }
.tags li {
  font-size: .75rem;
  padding: 3px 10px;
  background: rgba(121, 192, 255, .08);
  border: 1px solid rgba(121, 192, 255, .2);
  border-radius: 6px;
  color: var(--blue);
}

.badge {
  align-self: flex-start;
  font-size: .72rem;
  padding: 2px 10px;
  border: 1px solid rgba(63, 185, 80, .4);
  border-radius: 999px;
  color: var(--green);
}

/* ============ Loyihalar ============ */
.projects { display: grid; gap: 2rem; }
.project { transition: border-color .3s, transform .3s var(--ease); }

.project__inner { display: grid; grid-template-columns: 1fr; }
.project__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(63, 185, 80, .06), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, .03) 23px 24px),
    var(--bg);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project__media { position: relative; }
/* Loyiha turi: rasm ustida, yuqori chap burchakda (Startup / Landing page / Telegram bot) */
.project__type {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: rgba(13, 17, 23, .72); border: 1px solid var(--type, rgba(255, 255, 255, .25));
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .8), 0 0 0 3px color-mix(in srgb, var(--type, #fff) 18%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.project__type .icon { width: 15px; height: 15px; color: var(--type, #fff); }
.project__type--startup { --type: #b388ff; }
.project__type--landing { --type: #79c0ff; }
.project__type--bot { --type: #2aabee; }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.project__media .img-portrait { object-position: center 20%; }


.project:hover .project__media img { transform: scale(1.03); }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.project__body h3 { font-size: 1.3rem; }
.project__body p { color: var(--muted); font-family: var(--sans); font-size: .95rem; }
.project__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 6px; font-size: .85rem; }
.project__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--green); transition: opacity .2s; }
.project__links a:hover { opacity: .7; }

/* ============ Jarayon (git log) ============ */
.gitlog { position: relative; display: grid; gap: 0; }
.gitlog::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 2px; background: var(--border);
}
.gitlog li {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 0 0 28px 32px;
}
.gitlog li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.gitlog li:last-child { padding-bottom: 0; }
.hash { color: var(--orange); font-size: .85rem; padding-top: 1px; }
.gitlog h3 { font-size: 1rem; font-weight: 500; }
.gitlog p { color: var(--muted); font-family: var(--sans); font-size: .925rem; margin-top: 2px; }

/* ============ Aloqa (terminal) ============ */
.terminal { transition: border-color .6s, box-shadow .6s; }
.terminal.is-home { border-color: rgba(63, 185, 80, .5); box-shadow: 0 0 0 1px rgba(63, 185, 80, .2), 0 30px 80px -30px rgba(63, 185, 80, .35); }

.contact__title { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.1; }
.terminal { max-width: 760px; }
.terminal__body { padding: 22px; display: grid; gap: 6px; font-size: .9rem; }
.terminal__body > p:not(:first-child) { margin-top: 14px; }
.terminal__body > p.c-muted { margin-top: 0; }

/* Terminal ichidagi aniq "Bog'lanish" tugmasi */
.contact-cta { display: grid; gap: 12px; justify-items: start; margin-top: 4px; }
.contact-cta__text { font-family: var(--sans); color: var(--muted); font-size: .95rem; }
.contact-cta__btn { height: 50px; padding: 0 28px; font-size: 1rem; }
.contact-form { display: grid; gap: 16px; }
.contact-form__hint { font-size: .78rem; color: var(--muted); margin-top: -4px; }
.contact-form[hidden] { display: none; }
@media (max-width: 767px) { .contact-cta__btn { width: 100%; justify-content: center; } }

.socials { display: grid; gap: 4px; }
.socials a {
  display: inline-grid; grid-template-columns: 130px 20px auto; align-items: center;
  padding: 4px 0;
  transition: color .2s, transform .2s var(--ease);
}
.socials a:hover { color: var(--green); transform: translateX(4px); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border-soft); padding: 24px 0; font-size: .8rem; color: var(--muted); background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a:hover { color: var(--green); }

/* ============ Ikonkalar ============ */
.icon, .stat__icon {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em;
}
.icon--sm { width: .85em; height: .85em; }
.btn .icon { width: 18px; height: 18px; }

/* ============ Orqa fon: suzuvchi blob'lar + kursor yorug'i ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.blob { translate: var(--px, 0) var(--py, 0); transition: translate 1.2s var(--ease); }
.blob {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(100px); opacity: .28;
  animation: float 24s ease-in-out infinite alternate;
}
.blob--1 { background: #3fb950; top: -160px; left: -140px; }
.blob--2 { background: #8b5cf6; top: 35%; right: -200px; animation-duration: 30s; animation-delay: -6s; }
.blob--3 { background: #2f81f7; bottom: -220px; left: 25%; animation-duration: 36s; animation-delay: -12s; }
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(140px, 90px) scale(1.15); }
  100% { transform: translate(-80px, 180px) scale(.9); }
}
.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, -20%), rgba(63, 185, 80, .30), transparent 60%);
}

/* ============ Glass effekt ============ */
.glass {
  --mx: -999px; --my: -999px;
  background:
    radial-gradient(200px circle at var(--mx) var(--my), rgba(63, 185, 80, .30), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    rgba(22, 27, 34, .45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -24px rgba(0, 0, 0, .65);
}
.glass .window__bar { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .07); }
.glass.card:hover, .glass.project:hover { border-color: rgba(63, 185, 80, .45); }
.btn--ghost, .status, .marquee__list li, .scroll-hint {
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .09);
}

/* ============ Hero animatsiyalari ============ */
.gradient-text {
  background: linear-gradient(90deg, #3fb950, #79c0ff, #d2a8ff, #3fb950);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }

.hero__code { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.btn--primary { position: relative; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(63, 185, 80, .7); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 4s ease-in-out infinite;
}
@keyframes sweep { 55%, 100% { transform: translateX(100%); } }

.stat__icon { width: 22px; height: 22px; color: var(--green); margin-bottom: 10px; transition: transform .4s var(--ease); }
.stat:hover .stat__icon { transform: translateY(-3px) rotate(-8deg); }

/* Texnologiyalar lentasi: konteyner kengligida, chapga uzluksiz aylanadi.
   Harakatni JS boshqaradi (avtomatik aylanish + sichqoncha/barmoq bilan sudrash). */
.marquee {
  position: relative; margin-top: 16px;
  overflow: hidden; white-space: nowrap;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.marquee.is-grabbing { cursor: grabbing; }
/* Chetlarda sayt foniga qo'shilib ketadigan so'nish */
/* Tunel effekti: o'rtada yorqin, chetlarga borgan sari asta xiralashib yo'qoladi (pardasiz, faqat mask) */
.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
/* Kattalashganda kesilmasligi uchun tepa-pastda joy */
.marquee__list { display: flex; flex: none; gap: 12px; padding: 12px 12px 12px 0; white-space: nowrap; }
.marquee__list li {
  display: flex; align-items: center; gap: 10px; opacity: 1;
  padding: 9px 18px; border-radius: 999px;
  font-size: .85rem; white-space: nowrap; cursor: pointer;
  transition: transform .3s ease, border-color .2s;
}
.marquee__list li:hover { transform: scale(1.2); border-color: rgba(63, 185, 80, .5); }
.marquee.is-grabbing .marquee__list li { cursor: grabbing; }
.marquee__list img { pointer-events: none; -webkit-user-drag: none; }
.marquee__list img, .icon--tg { width: 22px; height: 22px; }
.icon--tg { color: #2aabee; }

.scroll-hint {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin: 24px auto 0;
  border-radius: 50%; color: var(--muted);
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--green); }
@keyframes bounce { 50% { transform: translateY(8px); } }

/* ============ Kartalar ikonkalari ============ */
.card__icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(63, 185, 80, .12);
  border: 1px solid rgba(63, 185, 80, .28);
  color: var(--green);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card__icon .icon { width: 20px; height: 20px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 24px rgba(63, 185, 80, .35); }

/* ============ Loyiha: mijoz qatori ============ */
.section__sub { margin-top: 10px; color: var(--muted); font-family: var(--sans); }
.project__client { display: flex; align-items: center; gap: 12px; }
.project__client b { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.project__label { display: block; font-size: .72rem; color: var(--muted); }
.project__logo { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; object-fit: cover; transition: transform .4s var(--ease); }
.project:hover .project__logo { transform: scale(1.08) rotate(-4deg); }
.project__logo--round { border-radius: 50%; border: 1px solid var(--border); }
.project__logo--ph {
  display: grid; place-items: center;
  background: rgba(42, 171, 238, .12);
  border: 1px dashed rgba(42, 171, 238, .45);
  color: #2aabee;
}
.project__logo--ph .icon { width: 22px; height: 22px; }

/* Jarayon va aloqa ikonkalari */
.step-icon { color: var(--muted); margin-left: 4px; }
.gitlog li:hover .step-icon { color: var(--green); }
.gitlog li::before { transition: background .3s, box-shadow .3s; }
.gitlog li:hover::before { background: var(--green); box-shadow: 0 0 14px rgba(63, 185, 80, .7); }
.email__hint { display: inline-flex; align-items: center; gap: 6px; }
.socials .c-blue { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 767px) {
  .blob { width: 340px; height: 340px; filter: blur(80px); }
}

/* ============ Hover: 3D tilt + aylanuvchi chegara ============ */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glass { position: relative; }
.js .glass.reveal.is-visible, .glass.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
}
.glass.tilt { transition: transform .15s ease-out, border-color .3s; }
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), #3fb950, #79c0ff, #d2a8ff, #3fb950);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
  animation: spin 4s linear infinite;
}
.glass:hover::before { opacity: 1; }
@keyframes spin { to { --angle: 360deg; } }

/* Kichik hover animatsiyalar */
.tags li { transition: transform .2s var(--ease), border-color .2s, background .2s; }
.tags li:hover { transform: translateY(-2px); border-color: rgba(121, 192, 255, .5); background: rgba(121, 192, 255, .14); }
.list li { transition: transform .25s var(--ease), color .25s; }
.list li:hover { transform: translateX(4px); color: var(--text); }
.badge { transition: box-shadow .3s; }
.project:hover .badge { box-shadow: 0 0 16px rgba(63, 185, 80, .35); }
.stat { transition: background .3s; }
.stat:hover { background: rgba(63, 185, 80, .06); }
.stat:hover dd { color: var(--green); transition: color .3s; }

/* ============ Loyiha logolari ============ */
.project { cursor: pointer; }
.project:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.project__media img { transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }

.media--lenso { background: radial-gradient(circle at 70% 25%, #9a4dff, #7000ff 50%, #3e0184); }
.project__media.media--lenso img { position: static; width: 58%; height: auto; }

.media--logo { background: #000; }
.project__media.media--logo img { object-fit: contain; }

.media--alisher {
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, .30), transparent 60%),
    #0b0a0f;
}
.media-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.project__media .media-brand__ava {
  position: static; width: 112px; height: 112px;
  border-radius: 50%; object-fit: cover; object-position: center 12%;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 40px rgba(245, 158, 11, .35);
}
.media-brand__name { font-family: var(--sans); font-weight: 600; font-size: 1.4rem; color: #fbbf24; letter-spacing: -.01em; }
.media-brand__sub { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.project__more { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.project:hover .project__more .icon { color: var(--green); animation: twinkle 1s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(20deg); } }

/* ============ Modal ============ */
.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto; padding: 0;
  border-radius: 14px;
  color: var(--text);
  overflow: hidden;
}
/* .glass { position: relative } modalning standart position: fixed'ini bekor qilmasligi uchun */
dialog.modal { position: fixed; inset: 0; }
.modal.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(18, 22, 29, .9);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .35s var(--ease); }
.modal::backdrop { background: rgba(5, 8, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
html:has(.modal[open]) { overflow: hidden; }

.modal__close {
  margin-left: auto; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px; color: var(--muted);
  transition: background .2s, color .2s, transform .3s var(--ease);
}
.modal__close:hover { background: rgba(255, 255, 255, .08); color: var(--text); transform: rotate(90deg); }
.modal__body { padding: 24px; overflow-y: auto; overflow-x: hidden; display: grid; gap: 18px; }
/* Grid elementlari ichidagi uzun kontent modalni kengaytirib yubormasin */
.modal__body > *, .svc-step > * { min-width: 0; }
.modal__head { display: flex; align-items: center; gap: 16px; }
.modal__logo img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; display: block; }
.modal__logo img.project__logo--round { border-radius: 50%; }
.modal__head h3 { font-size: 1.35rem; margin-top: 8px; word-break: break-word; }
.modal__content p { color: #c9d1d9; font-family: var(--sans); }
.modal__content h4 { margin: 18px 0 10px; font-size: .85rem; font-weight: 500; color: var(--green); }
.modal__content h4::before { content: "## "; color: var(--muted); }
.modal__content h4.no-hash::before { content: none; }
.modal__content p + p { margin-top: 10px; }
.modal__content .list b { color: var(--text); font-weight: 600; }
/* Loyiha modalidagi texnologiyalar: guruhlarga ajratilgan */
.stack { display: grid; gap: 12px; }
.stack > div { display: grid; grid-template-columns: 96px 1fr; align-items: start; gap: 10px; }
.stack__label { font-size: .75rem; color: var(--muted); padding-top: 5px; }
@media (max-width: 560px) { .stack > div { grid-template-columns: 1fr; gap: 6px; } }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Modal skroll belgisi: pastga (sakraydi) → oxirida tepaga strelka */
.modal.has-cue .modal__body { padding-bottom: 76px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 16px; z-index: 5;
  width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center;
  border-radius: 50%; color: var(--green);
  background: rgba(13, 17, 23, .85); border: 1px solid rgba(63, 185, 80, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .9);
  animation: cue-bounce 1.4s ease-in-out infinite;
  transition: border-color .2s, background .2s;
}
.scroll-cue[hidden] { display: none; }
.scroll-cue::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--green); animation: cue-ring 1.4s ease-out infinite;
}
.scroll-cue .icon { transition: transform .35s var(--ease); }
.scroll-cue:hover { background: rgba(63, 185, 80, .15); }
.scroll-cue.is-up { animation: none; }
.scroll-cue.is-up::after { animation: none; opacity: 0; }
.scroll-cue.is-up .icon { transform: rotate(180deg); }
@keyframes cue-bounce { 50% { transform: translateY(6px); } }
@keyframes cue-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue, .scroll-cue::after { animation: none; } }

/* ============ Xizmatlar ============ */
:root { --red: #ff5c5c; }
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service { cursor: pointer; display: flex; flex-direction: column; }
.service:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.service .list { flex: 1; }
.service__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border);
}
.service__price { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.service__price small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-bottom: 4px; }
.service__more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--green); }
.service:hover .service__more .icon { transform: translate(2px, -2px); transition: transform .2s var(--ease); }


/* Xizmat modali */
.modal--wide { width: min(880px, calc(100% - 32px)); }
.svc-icon {
  width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 14px; color: var(--green);
  background: rgba(63, 185, 80, .12); border: 1px solid rgba(63, 185, 80, .3);
}
.svc-icon .icon { width: 28px; height: 28px; }
.svc-desc { color: var(--muted); font-family: var(--sans); font-size: .92rem; margin-top: 4px; }
.svc-step { display: grid; gap: 18px; }
.svc-step[hidden] { display: none; }

.pkg-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pkg-tab {
  flex: 1 1 120px; display: grid; gap: 2px; text-align: left;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  font-weight: 600; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.pkg-tab small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.pkg-tab:hover { border-color: var(--muted); transform: translateY(-2px); }
.pkg-tab[aria-selected="true"] { border-color: var(--green); background: rgba(63, 185, 80, .1); }
.pkg-tab[aria-selected="true"] small { color: var(--green); }
/* "Mashhur" — Standart tarif belgisi */
.pkg-tab { position: relative; }
.pkg-tab__badge {
  position: absolute; top: -9px; right: 8px;
  padding: 1px 8px; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  color: var(--bg); background: var(--green); box-shadow: 0 4px 12px -4px rgba(63, 185, 80, .8);
}

.pkg { display: grid; gap: 16px; animation: fade-up .35s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.pkg__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pkg__price { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; }
.pkg__price span { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.pkg__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg__meta span {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
}
.pkg__cols { display: grid; gap: 16px; }
.pkg__h { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.pkg__h--yes { color: var(--green); }
.pkg__h--no { color: var(--red); }
.pkg__list { display: grid; gap: 8px; align-content: start; font-family: var(--sans); font-size: .9rem; }
.pkg__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.pkg__list .icon { width: 16px; height: 16px; margin-top: 3px; }
.pkg__list--yes .icon { color: var(--green); }
.pkg__list--no li { color: var(--muted); }
.pkg__list--no .icon { color: var(--red); }

.bonus {
  padding: 16px; border-radius: 12px; display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(210, 168, 255, .1), rgba(121, 192, 255, .06));
  border: 1px dashed rgba(210, 168, 255, .45);
}
.bonus__title { font-weight: 600; color: var(--purple); }
.bonus__note { font-size: .8rem; color: var(--muted); margin-top: -6px; }

/* Buyurtma formasi */
.order__back { justify-self: start; font-size: .82rem; color: var(--muted); }
.order__back:hover { color: var(--green); }
.order__summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 12px 14px; border-radius: 10px; font-size: .88rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
}
.order__summary > span { display: block; }
.order__summary .icon { margin-right: 6px; }
.order__deposit b { color: var(--green); }
.pay { display: grid; gap: 10px; }
.pay__title { font-size: .85rem; color: var(--green); font-weight: 600; }
.pay__list { display: grid; gap: 8px; }
.pay__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pay__list li { min-width: 0; }

/* To'lov kartasi — bank kartasi ko'rinishida */
.paycard {
  --c1: #1f2933; --c2: #0d1117; --accent: var(--green);
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; max-width: 360px; min-width: 0; aspect-ratio: 1.586; padding: 18px 20px;
  container-type: inline-size; /* raqam shrifti karta eniga qarab o'lchanadi */
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  border-radius: 16px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    linear-gradient(135deg, var(--c1), var(--c2));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .35s var(--ease), box-shadow .35s;
}
/* Yaltirash */
.paycard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform .9s var(--ease);
}
.paycard:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .2); }
.paycard:hover::before { transform: translateX(100%); }
.paycard:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.paycard--humo    { --c1: #0e2a5c; --c2: #07142e; --accent: #ff8a00; }
.paycard--uzcard  { --c1: #0b5d3b; --c2: #04281a; --accent: #39d98a; }
.paycard--visa    { --c1: #1a1f71; --c2: #0b0e3a; --accent: #f7b600; }
.paycard--master  { --c1: #2b2b2b; --c2: #111; --accent: #eb001b; }
.paycard--click   { --c1: #0060c9; --c2: #002b5c; --accent: #00b2ff; }
.paycard--payme   { --c1: #00a5a8; --c2: #004b54; --accent: #33ccff; }

.paycard__top { display: flex; align-items: center; justify-content: space-between; }
.paycard__brand { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.paycard__chip { width: 40px; height: 30px; fill: #d9b25f; stroke: rgba(0, 0, 0, .35); stroke-width: 1.2; }
.paycard__number {
  /* 19 belgi (4×4 raqam + 3 bo'sh joy) har doim bitta qatorga sig'adi: shrift karta eniga moslashadi */
  font-family: var(--mono); font-size: clamp(.8rem, calc(7.2cqi - 3px), 1.35rem); font-weight: 600;
  letter-spacing: .06em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.paycard__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.paycard__holder { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paycard__copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: .72rem;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); transition: background .2s;
}
.paycard__copy .icon { width: 14px; height: 14px; }
.paycard:hover .paycard__copy { background: rgba(255, 255, 255, .24); }
/* Juda tor kartada (kichik telefon) tugma faqat belgicha — egasining ismi to'liq sig'adi */
@container (max-width: 250px) {
  .paycard__copy > span { display: none; }
  .paycard__copy { padding: 6px 8px; }
}

/* Nusxalandi — karta ustida yashil qatlam */
.paycard__done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  background: rgba(13, 40, 22, .88); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.paycard__done .icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 50%; stroke-width: 3;
  color: var(--bg); background: var(--green); box-shadow: 0 0 0 6px rgba(63, 185, 80, .25);
}
.paycard__done b { font-family: var(--sans); font-size: 1.05rem; color: #fff; }
.paycard__done small { font-family: var(--mono); font-size: .78rem; color: #bff5c9; letter-spacing: .06em; }
.paycard.is-copied { box-shadow: 0 0 0 2px var(--green), 0 18px 40px -18px rgba(63, 185, 80, .7); }
.paycard.is-copied .paycard__done { opacity: 1; }
.paycard.is-copied .paycard__done .icon { animation: pop .45s var(--ease); }
.paycard.is-copied .paycard__copy { background: var(--green); color: var(--bg); border-color: var(--green); }
.paycard.is-failed .paycard__copy { background: rgba(255, 92, 92, .3); border-color: var(--red); }
.pay__empty { font-size: .85rem; color: var(--muted); }
.pay__empty a { color: var(--green); }

/* Qizil, animatsiyali ogohlantirish */
.warn {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 12px;
  color: #ffd6d6; font-family: var(--sans); font-size: .9rem; line-height: 1.5;
  background: rgba(255, 92, 92, .1);
  border: 1px solid rgba(255, 92, 92, .55);
  animation: warn-pulse 2.2s ease-in-out infinite;
}
.warn b { color: var(--red); }
.warn__icon { width: 22px; height: 22px; color: var(--red); animation: warn-shake 2.2s ease-in-out infinite; }
@keyframes warn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, .0); border-color: rgba(255, 92, 92, .55); }
  50% { box-shadow: 0 0 22px 2px rgba(255, 92, 92, .35); border-color: rgba(255, 92, 92, .95); }
}
@keyframes warn-shake {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-12deg); } 70% { transform: rotate(10deg); }
  75% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); }
}

.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  font: inherit; font-family: var(--sans); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; }

/* Oldindan yozilgan qism (+998, @) */
.affix {
  display: flex; align-items: stretch; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.affix:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(63, 185, 80, .18); }
.affix__pre {
  display: grid; place-items: center; padding: 0 4px 0 13px;
  font-family: var(--sans); font-size: .95rem; color: var(--text); user-select: none;
}
.field .affix input { border: 0; background: transparent; padding-left: 4px; min-width: 0; }
.field .affix input:focus { box-shadow: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63, 185, 80, .18); }

.upload {
  position: relative; display: grid; place-items: center; gap: 10px;
  min-height: 130px; padding: 18px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--border); background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s;
}
.upload:hover, .upload:focus-within { border-color: var(--green); background: rgba(63, 185, 80, .05); }
.upload.has-file { border-style: solid; border-color: rgba(63, 185, 80, .6); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__text { display: grid; justify-items: center; gap: 4px; font-size: .85rem; }
.upload__text .icon { width: 26px; height: 26px; color: var(--green); }
.upload__text small { color: var(--muted); }
.upload__preview { max-height: 160px; width: auto; border-radius: 8px; border: 1px solid var(--border); }
.order__error {
  padding: 10px 14px; border-radius: 10px; font-size: .88rem;
  color: #ffd6d6; background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .5);
}
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .icon { animation: spin-icon 1s linear infinite; }
@keyframes spin-icon { to { transform: rotate(360deg); } }

/* Kalendar */
.pick { display: grid; gap: 10px; }
.pick__info { font-size: .85rem; color: var(--muted); font-family: var(--sans); display: flex; align-items: center; gap: 6px; }
.pick__info.is-ok { color: var(--text); }
.pick__info.is-ok .icon { color: var(--green); }
.pick__info b { color: var(--green); }
.cal {
  display: grid; gap: 8px; padding: 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--border);
  max-width: 420px;
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__title { font-size: .95rem; font-weight: 600; }
.cal__nav {
  width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; line-height: 1;
  border: 1px solid var(--border); color: var(--text); transition: border-color .2s, opacity .2s;
}
.cal__nav:hover:not(:disabled) { border-color: var(--green); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__week span { text-align: center; font-size: .7rem; color: var(--muted); padding: 2px 0; }
.cal__day {
  aspect-ratio: 1; min-height: 34px; border-radius: 8px; font-size: .85rem;
  color: var(--muted); border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.cal__day.is-free { color: var(--text); background: rgba(63, 185, 80, .14); border-color: rgba(63, 185, 80, .45); }
.cal__day.is-busy { color: #ffb3b3; background: rgba(255, 92, 92, .1); border-color: rgba(255, 92, 92, .35); text-decoration: line-through; }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--muted); }
.cal__day:not(:disabled) { cursor: pointer; }
.cal__day:not(:disabled):hover { transform: translateY(-1px); border-color: var(--green); }
.cal__day:disabled { cursor: default; opacity: .45; }
.cal__day.is-free:disabled, .cal__day.is-busy:disabled { opacity: .8; }
.cal__day.is-selected { background: var(--green); color: var(--bg); border-color: var(--green); font-weight: 700; opacity: 1; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .72rem; color: var(--muted); padding-top: 2px; }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--border); }
.cal__legend i.is-free { background: rgba(63, 185, 80, .4); border-color: var(--green); }
.cal__legend i.is-busy { background: rgba(255, 92, 92, .3); border-color: var(--red); }

/* Admin panel */
.admin-login { display: grid; gap: 12px; }
.admin-login .btn { justify-self: start; }
.admin-panel { display: grid; gap: 16px; }
.admin-panel .cal { max-width: none; }
.admin-login[hidden], .admin-panel[hidden] { display: none; }

/* Rejim tanlash */
.admin-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.admin-mode {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 8px; font-size: .85rem; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.admin-mode:hover { color: var(--text); }
.admin-mode[aria-checked="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.admin-mode[aria-checked="true"][data-mode="free"] { box-shadow: inset 0 0 0 1px rgba(63, 185, 80, .6); }
.admin-mode[aria-checked="true"][data-mode="busy"] { box-shadow: inset 0 0 0 1px rgba(255, 92, 92, .6); }
.admin-dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--border); }
.admin-dot--free { background: rgba(63, 185, 80, .5); border-color: var(--green); }
.admin-dot--busy { background: rgba(255, 92, 92, .4); border-color: var(--red); }

/* Katta, bo'yaladigan kalendar */
.cal--admin { padding: 16px; gap: 10px; }
.cal--admin .cal__grid { gap: 6px; touch-action: none; user-select: none; }
.cal--admin .cal__day { aspect-ratio: auto; height: 46px; min-height: 0; font-size: .95rem; }
.cal--admin .cal__day:not(:disabled):hover { transform: scale(1.06); }

/* Tezkor tugmalar */
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-chip {
  padding: 7px 12px; border-radius: 999px; font-size: .78rem; color: var(--muted);
  border: 1px dashed var(--border); transition: color .2s, border-color .2s, background .2s;
}
.admin-chip:hover { color: var(--text); border-color: var(--green); background: rgba(63, 185, 80, .08); }

/* Xulosa */
.admin-sum { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; }
.admin-stat { display: grid; align-content: center; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.admin-stat b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.admin-stat span { font-size: .72rem; color: var(--muted); }
.admin-stat--free b { color: var(--green); }
.admin-stat--busy b { color: #ff8a8a; }
.admin-next { display: grid; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.admin-next > span { font-size: .72rem; color: var(--muted); }
.admin-next ul { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-next li { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: rgba(63, 185, 80, .1); border: 1px solid rgba(63, 185, 80, .3); color: var(--muted); }
.admin-next li b { color: var(--text); font-weight: 600; }
.admin-next li.is-empty { background: none; border-style: dashed; border-color: var(--border); }

.admin-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-save { font-size: .8rem; color: var(--muted); }
.admin-save.is-ok { color: var(--green); }

/* Footer: admin panelga kirish */
.footer__links { display: inline-flex; gap: 18px; }
.footer__admin { color: var(--muted); opacity: .45; transition: opacity .2s; }
.footer__admin:hover { opacity: 1; color: var(--green); }

@media (max-width: 560px) {
  /* Tor ekranda kalendar katakchalari torayadi — 7 ustun sig'adi */
  .cal { padding: 10px; }
  .cal__day { min-height: 0; }
  .admin-sum { grid-template-columns: 1fr 1fr; }
  .admin-next { grid-column: 1 / -1; }
  .cal--admin { padding: 10px; }
  .cal--admin .cal__grid { gap: 4px; }
  .cal--admin .cal__day { height: 40px; }
}

/* Muvaffaqiyat */
.done { justify-items: center; text-align: center; padding: 10px 0; }
.done__icon {
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(63, 185, 80, .15); border: 1px solid rgba(63, 185, 80, .5); color: var(--green);
  animation: pop .5s var(--ease);
}
.done__icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h4 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.done p { color: var(--muted); font-family: var(--sans); max-width: 46ch; }
.done .done__hint { color: var(--text); }
.done .modal__actions { justify-content: center; }

@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .pkg__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Display shrift (Isometra) ============ */
.hero__title, h2, .stat dd {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
.hero__title { line-height: 1.05; }

/* ============ Reveal animatsiya ============ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .glass::before { display: none; }
}

/* ============ Responsive ============ */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr; gap: 40px 56px;
    grid-template-areas: "intro stage" "code stage";
  }
  .hero__intro { grid-area: intro; }
  .hero__stage { grid-area: stage; }
  .hero__code { grid-area: code; }
  .about { grid-template-columns: 1fr 1fr; gap: 56px; }
  .project__inner { grid-template-columns: 1.1fr 1fr; }
  .project__media { aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--border); }
  .project:nth-child(even) .project__media { order: 2; border-right: 0; border-left: 1px solid var(--border); }
  .project__body { padding: 36px; justify-content: center; }
  .section { padding: 120px 0; }
}

@media (max-width: 767px) {
  .burger { display: block; }
  /* Mobil menyu: oval navbar ostida ochiladigan yumaloq panel */
  .header__inner { padding: 0 6px 0 20px; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 20px 20px;
    border-radius: 22px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { width: 100%; padding: 16px 0; font-size: 1.25rem; color: var(--text); border-bottom: 1px solid var(--border-soft); }
  .nav .nav__cta { margin-top: 16px; text-align: center; padding: 12px; border: 0; border-radius: 999px; }
  body.menu-open { overflow: hidden; }
  .hero { padding: calc(var(--header-h) + 48px) 0 24px; }
  .section { padding: 72px 0; }
  .code { font-size: .78rem; }
  .socials a { grid-template-columns: 118px 18px auto; font-size: .85rem; }
}

/* ============ 3D maskot ============ */
/* O'ng pastki burchakda, sahifa ustida emas (header va modallardan past). JS right/bottom'ni boshqaradi */
.trail { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 40; pointer-events: none; }


.bot {
  --s: 50px;
  position: absolute; left: 0; top: 0;
  width: var(--s); height: calc(var(--s) + 22px);
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
  pointer-events: auto; will-change: transform;
}
.bot__jump { position: absolute; inset: 0; transform-origin: 50% 100%; }
.bot__head { width: var(--s); height: var(--s); margin-top: 10px; perspective: 260px; }
.cube {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -8deg)) rotateY(calc(var(--ry, -20deg) + var(--spin))) rotateZ(var(--rz, 0deg));
}
.cube__f {
  position: absolute; inset: 0; border-radius: 9px;
  display: grid; place-items: center;
  font-style: normal; font-size: .72rem; font-weight: 700; color: var(--green);
  background: linear-gradient(160deg, #2a323d, #161b22);
  border: 1.5px solid rgba(63, 185, 80, .45);
}
.cube__f--front  { transform: translateZ(calc(var(--s) / 2)); background: #0a0e13; box-shadow: inset 0 0 14px rgba(63, 185, 80, .25); }
.cube__f--back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube__f--right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube__f--left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__f--top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #3a4452, #222a33); }
.cube__f--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.bot__antenna {
  position: absolute; left: 50%; top: 0; width: 3px; height: 12px; margin-left: -1.5px;
  background: #3a4452; transform: translateY(-100%);
}
.bot__antenna::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: .45; } }

/* Yuz: ko'zlar va og'iz */
.bot__face { position: relative; width: 70%; height: 60%; display: block; }
.bot__eye {
  position: absolute; top: 12%; width: 22%; height: 42%; border-radius: 4px;
  background: var(--green); box-shadow: 0 0 8px rgba(63, 185, 80, .9);
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: height .12s, top .12s, border-radius .12s, background .12s;
}
.bot__eye:nth-child(1) { left: 12%; }
.bot__eye:nth-child(2) { right: 12%; }
.bot__mouth {
  position: absolute; left: 50%; bottom: 4%; width: 30%; height: 18%; margin-left: -15%;
  border: 2px solid var(--green); border-top: 0; border-radius: 0 0 10px 10px;
  transition: height .15s, background .15s, width .15s, margin .15s;
}
.bot.is-blink .bot__eye { height: 6%; top: 32%; }
.bot.is-laughing .bot__eye {
  height: 22%; top: 18%; background: transparent; box-shadow: none;
  border: 2.5px solid var(--green); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.bot.is-laughing .bot__mouth { height: 32%; width: 40%; margin-left: -20%; background: var(--green); box-shadow: 0 0 8px rgba(63, 185, 80, .8); }
.bot.is-laughing .bot__head { animation: bot-laugh .16s ease-in-out infinite alternate; }
@keyframes bot-laugh { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(-2px); } }

/* Skrollsiz turgandagi harakatlar: aylanish, raqs, uyqu */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.bot.is-spin .cube { animation: bot-spin 1.2s var(--ease); }
@keyframes bot-spin { to { --spin: 360deg; } }
.bot.is-dance .bot__jump { animation: bot-dance .5s ease-in-out 4; transform-origin: 50% 100%; }
.bot.is-dance .bot__feet i:first-child { animation: bot-step .25s ease-in-out 8; }
.bot.is-dance .bot__feet i:last-child { animation: bot-step .25s ease-in-out 8 reverse; }
@keyframes bot-dance {
  0%, 100% { transform: none; }
  25% { transform: translateY(-7px) rotate(-11deg); }
  50% { transform: translateY(0) scale(1.05, .95); }
  75% { transform: translateY(-7px) rotate(11deg); }
}
.bot.is-sleep .bot__eye { height: 6%; top: 34%; box-shadow: none; }
.bot.is-sleep .bot__mouth { width: 16%; margin-left: -8%; height: 8%; }
.bot.is-sleep .bot__antenna::after { animation: none; opacity: .25; box-shadow: none; }
.bot.is-sleep .bot__jump { animation: bot-breathe 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bot-breathe { 50% { transform: scale(1.03, .97); } }

/* Oyoqlar va soya */
.bot__feet { position: absolute; left: 50%; bottom: 0; width: 60%; height: 10px; transform: translateX(-50%); display: flex; justify-content: space-between; }
.bot__feet i { width: 11px; height: 8px; border-radius: 4px 4px 3px 3px; background: #2a323d; border: 1.5px solid rgba(63, 185, 80, .45); }
.bot__shadow {
  position: absolute; left: 50%; bottom: -5px; width: 70%; height: 8px; margin-left: -35%;
  border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(2px); z-index: -1;
}

/* Yurish, sakrash */
.bot.is-walking .bot__jump { animation: bot-walk .38s ease-in-out infinite; }
.bot.is-walking .bot__feet i:first-child { animation: bot-step .38s ease-in-out infinite; }
.bot.is-walking .bot__feet i:last-child { animation: bot-step .38s ease-in-out infinite reverse; }
@keyframes bot-walk { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes bot-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bot.is-jumping .bot__jump { animation: bot-jump .75s cubic-bezier(.3, .7, .4, 1); }
.bot.is-jumping .bot__shadow { animation: bot-shadow .75s cubic-bezier(.3, .7, .4, 1); }
@keyframes bot-jump {
  0% { transform: scale(1.12, .86); }
  30% { transform: translateY(-46px) scale(.94, 1.08) rotate(-8deg); }
  50% { transform: translateY(-52px) rotate(8deg); }
  80% { transform: translateY(0) scale(1.14, .84); }
  100% { transform: none; }
}
@keyframes bot-shadow { 30%, 50% { transform: scale(.5); opacity: .4; } }

/* Gap pufakchasi */
.bot__bubble {
  position: absolute; right: 40%; bottom: calc(100% + 14px);
  max-width: 270px; width: max-content; padding: 7px 12px;
  font-family: var(--sans); font-size: .8rem; line-height: 1.35; color: var(--bg);
  background: var(--text); border-radius: 12px 12px 2px 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 100% 100%;
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
.bot__bubble.is-on { opacity: 1; transform: none; }
/* Sudrab ko'chirish */
.bot { cursor: grab; touch-action: none; }
.bot.is-dragging { cursor: grabbing; }
.bot.is-dragging .bot__jump { animation: bot-dangle .5s ease-in-out infinite alternate; transform-origin: 50% 10%; }
.bot.is-dragging .bot__feet i:first-child { animation: bot-step .25s ease-in-out infinite; }
.bot.is-dragging .bot__feet i:last-child { animation: bot-step .25s ease-in-out infinite reverse; }
.bot.is-dragging .bot__shadow { opacity: 0; }
@keyframes bot-dangle { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.bot.is-left .bot__bubble { right: auto; left: 40%; border-radius: 12px 12px 12px 2px; transform-origin: 0 100%; }

/* Modal ochilganda: robot ekran pastida, modal yonida turadi (top layer — fon ustida) */
.watcher { position: fixed; inset: 0; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; pointer-events: none; }
.bot--watch { position: fixed; left: var(--wx, 0px); top: auto; bottom: 14px; transform: none; pointer-events: none; }
.bot--watch.is-in { animation: watch-in .6s var(--ease) both; }
@keyframes watch-in { from { transform: translateY(140%); } }
.bot--watch .bot__bubble { max-width: 220px; }
/* Mobilda modal yonida joy yo'q — pufakcha tugmalarni yopmasin */
@media (max-width: 767px) { .bot--watch .bot__bubble { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .bot__antenna::after, .orbit__item { animation: none; }
  .bot.is-walking .bot__jump, .bot.is-walking .bot__feet i, .bot.is-jumping .bot__jump,
  .bot.is-jumping .bot__shadow, .bot.is-laughing .bot__head,
  .bot.is-spin .cube, .bot.is-dance .bot__jump, .bot.is-dance .bot__feet i, .bot.is-sleep .bot__jump { animation: none; }
}
@media (max-width: 767px) {
  .stat { padding: 16px 12px; }
  /* Hero tugmalari: ikkalasi bir xil enli va balandlikda, yozuv o'rtada */
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  .bot { --s: 36px; }
  .bot__bubble { max-width: 200px; font-size: .75rem; }
  .orbit__item { left: clamp(26px, var(--x), calc(100% - 26px)); }
  .orbit__item img { width: 44px; height: 44px; }
}

/* ============ Texnologiyalar: 3D shar ============ */
/* Logolar sharning chetidan chiqib, sahifani yon tomonga kengaytirmasin */
#texnologiyalar { overflow-x: clip; }

/* Logo 48×48 */
.tl { width: 48px; height: 48px; max-width: none; display: block; object-fit: contain; flex: none; user-select: none; -webkit-user-drag: none; }
.tl--invert { filter: invert(1); }
.tl--mask { background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tl--icon { display: grid; place-items: center; color: var(--c); }
.tl--icon .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.tl--text { display: grid; place-items: center; font-family: var(--sans); font-weight: 800; font-size: .9rem; letter-spacing: -.02em; color: var(--c); }
.tech-tip {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  font-size: .72rem; color: var(--text); background: rgba(13, 17, 23, .92); border: 1px solid var(--border);
  opacity: 0; transition: opacity .2s; z-index: 5;
}

.vb {
  position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; cursor: grab; touch-action: pan-y; user-select: none;
  background: radial-gradient(circle at 40% 35%, rgba(121, 192, 255, .1), rgba(63, 185, 80, .05) 45%, transparent 70%);
}
.vb.is-grabbing { cursor: grabbing; }
.vb-item { position: absolute; left: 50%; top: 50%; width: max-content; will-change: transform, opacity; }
.vb-item .tl { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.vb-item .tl--invert { filter: invert(1) drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.vb-item:hover { opacity: 1 !important; }
.vb-item:hover .tech-tip { opacity: 1; }
.vb.is-grabbing .tech-tip { opacity: 0; }
