/* =========================================================
   Bosh sahifa
   ========================================================= */

/* ---------------- HERO ---------------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 0; margin-top: -78px; padding-top: 112px; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(700px 520px at 72% 38%, rgba(59, 130, 246, 0.28), transparent 62%),
        radial-gradient(520px 380px at 92% 60%, rgba(139, 92, 246, 0.22), transparent 60%),
        radial-gradient(600px 300px at 10% 0%, rgba(59, 130, 246, 0.10), transparent 70%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
}
/* Orqa fondagi xira kod: harfma-harf yoziladi va pastdan tepaga ko'tariladi (faqat bezak) */
.hero-code {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.hc-col {
    position: absolute; bottom: 6%; display: flex; flex-direction: column; justify-content: flex-end;
    max-height: 88%; overflow: hidden; width: 30%;
    font-family: var(--font-mono); font-size: 13px; line-height: 22px; white-space: pre;
    color: rgba(148, 163, 184, .11);
}
.hc-col.c1 { left: 2%; }
.hc-col.c2 { left: 35%; font-size: 12px; color: rgba(148, 163, 184, .10); }
.hc-col.c3 { left: 68%; }
.hc-col .hc-in { will-change: transform; }
.hc-col .hc-in.shift { transform: translateY(22px); transition: none; }
.hc-col .hc-in.go { transform: translateY(0); transition: transform .45s ease-out; }
.hc-line { display: block; height: 22px; overflow: hidden; text-overflow: clip; }
.hc-k { color: rgba(96, 165, 250, .17); }
.hc-s { color: rgba(52, 211, 153, .14); }
.hc-c { color: rgba(148, 163, 184, .09); font-style: italic; }
.hc-caret { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; margin-left: 1px; background: rgba(96, 165, 250, .25); }
body.light-mode .hc-col { color: rgba(30, 41, 59, .10); }
body.light-mode .hc-k { color: rgba(37, 99, 235, .16); }
body.light-mode .hc-s { color: rgba(5, 150, 105, .14); }
@media (max-width: 900px) { .hc-col.c2 { display: none; } .hc-col.c1, .hc-col.c3 { width: 46%; } .hc-col.c3 { left: 52%; } }
@media (max-width: 560px) { .hc-col.c3 { display: none; } .hc-col.c1 { width: 92%; } }

.hero::after { /* pastki chegara chizig'i */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,.35), rgba(139,92,246,.35), transparent);
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 8px; align-items: stretch;
    min-height: 600px;
}
.hero-content { padding: 36px 0 44px; align-self: center; position: relative; z-index: 3; }
.hero-title {
    font-size: clamp(36px, 4.3vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
    margin: 18px 0 20px; text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}
.hero-title .t-line { white-space: nowrap; }
.hero-title .text-gradient { filter: drop-shadow(0 0 22px rgba(99, 102, 241, 0.35)); }

/* ---- Almashuvchi ibora: rangli gradient + chapdan o'ngga "pardali" almashish ---- */
.rotator { display: inline-block; position: relative; filter: drop-shadow(0 0 20px var(--rot-glow, rgba(99, 102, 241, .45))); transition: filter .6s; }
.rot-word {
    --rot-grad: linear-gradient(90deg, #2F8CFF, #6D7BFF, #8B5CF6, #2F8CFF);
    --rot-glow: rgba(99, 102, 241, .45);
    display: inline-block; padding-right: .04em;
    background: var(--rot-grad); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rotShimmer 6s linear infinite;
    clip-path: inset(-15% -2% -25% 0);
    transition: clip-path .6s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
.rot-word.is-out { clip-path: inset(-15% -2% -25% 100%); opacity: .2; transform: translateX(.15em); }
.rot-word.is-pre { clip-path: inset(-15% 100% -25% 0); opacity: .2; transform: translateX(-.15em); transition: none; }

/* Harfma-harf rejim (JS yoqadi): gradient har bir harfga so'z bo'ylab uzluksiz taqsimlanadi */
.rot-word.is-split { background: none; animation: none; clip-path: none; transition: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
.rot-word .w { display: inline-block; white-space: nowrap; }
.rot-word .ch {
    display: inline-block; white-space: pre;
    background: var(--rot-grad); background-size: var(--gw, 200%) 100%; background-repeat: repeat-x;
    background-position: calc(0px - var(--gx, 0px)) 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: chShimmer 7s linear infinite;
    transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1), filter .9s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
}
.rot-word .ch.ch-hide { opacity: 0; transform: translateY(.32em); filter: blur(7px); }
.rot-word .ch.ch-leave {
    opacity: 0; transform: translateY(-.22em); filter: blur(5px);
    transition-duration: .55s; transition-delay: calc(var(--i, 0) * 35ms);
}
@keyframes chShimmer {
    from { background-position: calc(0px - var(--gx, 0px)) 0; }
    to   { background-position: calc(var(--gw, 0px) - var(--gx, 0px)) 0; }
}
.rot-word[data-variant="1"] { --rot-grad: linear-gradient(90deg, #22D3EE, #38BDF8, #3B82F6, #22D3EE); --rot-glow: rgba(34, 211, 238, .4); }
.rot-word[data-variant="2"] { --rot-grad: linear-gradient(90deg, #A78BFA, #C084FC, #F472B6, #A78BFA); --rot-glow: rgba(192, 132, 252, .45); }
.rot-word[data-variant="3"] { --rot-grad: linear-gradient(90deg, #29A9EB, #5EEAD4, #38BDF8, #29A9EB); --rot-glow: rgba(41, 169, 235, .45); }
.rot-word[data-variant="4"] { --rot-grad: linear-gradient(90deg, #34D399, #22D3EE, #3B82F6, #34D399); --rot-glow: rgba(52, 211, 153, .4); }
@keyframes rotShimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.hero-bio { font-size: 17px; line-height: 1.6; color: var(--text-soft); max-width: 520px; margin-bottom: 30px; }
.hero-bio strong { color: var(--text-main); font-weight: 600; }
.hero-bio p + p { margin-top: .6em; }
.hero-bio a { color: var(--accent-cyan); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.btn-lg { padding: 16px 30px; font-size: 16px; gap: 12px; }
.hero-buttons .btn-outline { padding-left: 34px; padding-right: 34px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); max-width: 540px; padding: 18px 8px; border-radius: 14px; }
.hero-stats li { display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.hero-stats li + li { border-left: 1px solid rgba(148, 163, 184, 0.16); }
.stat-icon {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    color: #93C5FD; font-size: 14px; border: 1.5px solid rgba(147, 197, 253, .55);
    box-shadow: 0 0 14px rgba(59, 130, 246, .35);
}
.hero-stats strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.hero-stats small { display: block; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

/* ---- Hero vizual qismi ---- */
.hero-visual { position: relative; min-height: 600px; }
.hv-grid { /* perspektiv "pol" */
    position: absolute; left: -10%; right: -20%; bottom: 0; height: 46%;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.22) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(500px) rotateX(62deg); transform-origin: bottom center;
    mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
}
/* Portret "sahnasi": halqa + rasm bir xil geometriyada (eni = halqa diametri, bo'yi = 1.2 x) */
.hv-stage {
    position: absolute; left: 50%; bottom: 6%; z-index: 2;
    width: min(460px, 74%); aspect-ratio: 1 / 1.2; transform: translateX(-38%);
}
.hv-ring {
    position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1;
    border-radius: 50%; border: 2px solid rgba(96, 165, 250, 0.85);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.8), 0 0 80px rgba(59, 130, 246, 0.35), inset 0 0 60px rgba(59, 130, 246, 0.25);
    background: radial-gradient(circle at 50% 55%, rgba(59, 130, 246, 0.24), rgba(139, 92, 246, 0.14) 45%, rgba(11, 17, 32, 0.2) 70%);
}
.hv-ring--inner {
    width: 120%; left: -4%; bottom: -10%; border: 1px solid rgba(139, 92, 246, 0.3); background: none;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}
.hv-ring--front { /* halqaning pastki yoyi rasm ustidan o'tadi */
    z-index: 3; background: none; box-shadow: 0 0 18px rgba(59, 130, 246, 0.9), inset 0 -18px 30px -18px rgba(59, 130, 246, 0.8);
    mask-image: linear-gradient(180deg, transparent 52%, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 70%);
}
.hv-orb {
    position: absolute; right: -36px; top: 22%; width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8B5CF6, #3730A3 70%); box-shadow: 0 0 30px rgba(139, 92, 246, .8);
}
.hv-photo { position: absolute; inset: 0; z-index: 2; }
.hv-photo img { position: absolute; left: 0; bottom: 0; width: 100%; }

/* 1) Shaffof PNG: bosh halqadan chiqadi, pastki qism aylana bo'ylab kesiladi */
.is-cutout .hv-photo {
    --m-rect: linear-gradient(#000, #000);
    --m-circle: radial-gradient(circle closest-side at 50% 58.333%, #000 98%, transparent 98.6%);
    mask-image: var(--m-rect), var(--m-circle); -webkit-mask-image: var(--m-rect), var(--m-circle);
    mask-size: 100% 58.333%, 100% 100%; -webkit-mask-size: 100% 58.333%, 100% 100%;
    mask-position: top center, center; -webkit-mask-position: top center, center;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.is-cutout .hv-photo img {
    height: 100%; object-fit: cover; object-position: center top;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

/* 2) Oddiy fonli rasm (qora/oq/rangli): butunlay doira ichida */
.is-circle .hv-photo img {
    left: 2.5%; bottom: 2.5%; width: 95%; height: auto; aspect-ratio: 1;
    border-radius: 50%; object-fit: cover; object-position: 50% 18%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.hv-monogram { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.hv-mono-gq {
    font-size: clamp(110px, 13vw, 190px); font-weight: 900; letter-spacing: -0.07em; line-height: 1;
    background: linear-gradient(160deg, #FFFFFF 0%, #93C5FD 45%, #8B5CF6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, .55));
}
.hv-laptop {
    position: absolute; bottom: -4%; left: 50%; transform: translateX(-50%);
    padding: 12px 26px; border-radius: 14px; font-size: 26px; color: #E0E7FF;
    background: rgba(15, 23, 42, .7); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(59, 130, 246, .45);
}

/* ---- Kod oynasi (macOS uslubi, yozilish effekti) ---- */
.code-window {
    position: absolute; left: -4%; top: 2%; z-index: 4; width: min(400px, 49%);
    padding: 0; overflow: hidden; border-radius: 12px; background: rgba(9, 16, 34, 0.82);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.cw-bar {
    position: relative; display: flex; align-items: center; height: 32px; padding: 0 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.cw-dots { display: flex; gap: 7px; }
.cw-dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .35); }
.cw-dots .d-red { background: #FF5F57; }
.cw-dots .d-yellow { background: #FEBC2E; }
.cw-dots .d-green { background: #28C840; }
.cw-title { position: absolute; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--font-mono); color: #64748B; }
.cw-body { display: flex; padding: 10px 14px 12px 0; }
.cw-gutter, .cw-code { font-family: var(--font-mono); font-size: 11px; line-height: 1.9; }
.cw-gutter { list-style: none; margin: 0; padding: 0 12px 0 10px; min-width: 34px; text-align: right; color: #3E4C63; user-select: none; }
.cw-code { flex: 1; margin: 0; min-height: calc(1.9em * 7); color: #CBD5E1; white-space: pre; overflow: hidden; }
.cw-code .kw { color: #C084FC; }
.cw-code .fn { color: #60A5FA; }
.cw-code .mod { color: #E2E8F0; }
.cw-code .var { color: #7DD3FC; }
.cw-code .str { color: #FDBA74; }
.cw-code .op, .cw-code .pn { color: #94A3B8; }
.cw-code .dom { color: #86EFAC; font-weight: 700; text-shadow: 0 0 10px rgba(134, 239, 172, .55); transition: text-shadow .3s; }
.cw-code .dom.dom-hit { text-shadow: 0 0 14px rgba(134, 239, 172, .95), 0 0 2px rgba(134, 239, 172, .9); }
.cw-cursor {
    display: inline-block; width: 7px; height: 1.2em; margin-left: 1px; vertical-align: -0.25em;
    background: #93C5FD; border-radius: 1px; box-shadow: 0 0 8px rgba(96, 165, 250, .9);
    animation: cwBlink 1.05s steps(1) infinite;
}
.code-window.is-typing .cw-cursor { animation: none; }
@keyframes cwBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.tech-card {
    position: absolute; right: -5%; top: 3%; z-index: 3; padding: 12px 14px; border-radius: 14px;
    display: flex; flex-direction: column; gap: 7px; min-width: 150px;
    background: rgba(11, 20, 42, 0.72); border-color: rgba(96, 165, 250, 0.3);
}
.tech-card li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-soft); font-weight: 500; }
.tech-card i { font-size: 17px; width: 20px; text-align: center; }
.tech-card .tg { color: #29A9EB; }
.ngx {
    display: inline-grid; place-items: center; width: 22px; height: 22px; color: #fff; background: #009639;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    font-size: 12px; font-weight: 800; font-family: var(--font-sans);
}
.skill-icon .ngx { width: 48px; height: 52px; font-size: 26px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.devicon-linux-plain { color: #F8FAFC; }
.dj {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
    background: #0C4B33; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -0.04em; font-family: var(--font-sans);
}

.script {
    position: absolute; z-index: 3; font-family: var(--font-script); line-height: .95; pointer-events: none; white-space: nowrap;
}
.script--name {
    left: 2%; top: 52%; font-size: clamp(30px, 3.2vw, 46px); color: #38BDF8; transform: rotate(-14deg);
    text-shadow: 0 0 10px rgba(56, 189, 248, .9), 0 0 26px rgba(59, 130, 246, .6);
}
.script--build {
    right: 0; bottom: 8%; font-size: clamp(28px, 3vw, 42px); transform: rotate(-14deg);
    background: linear-gradient(180deg, #A78BFA, #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, .8));
}

/* ---------------- LOYIHALAR ---------------- */
.home-projects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* ---------------- KO'NIKMALAR ---------------- */
.skills-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.skill-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 22px 10px 18px; border-radius: 12px;
    transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.skill-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 36px -18px rgba(37, 99, 235, .6); }
.skill-icon { height: 52px; display: grid; place-items: center; margin-bottom: 10px; }
.skill-icon i { font-size: 46px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.skill-icon .dj { width: 46px; height: 46px; border-radius: 10px; font-size: 24px; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.skill-tile strong { font-size: 15px; font-weight: 600; }
.skill-tile small { font-size: 12.5px; color: var(--text-muted); }

/* ---------------- BLOG ---------------- */
.home-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card {
    display: flex; gap: 18px; padding: 14px; border-radius: 12px; align-items: center;
    transition: transform .4s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.post-thumb { flex: 0 0 34%; aspect-ratio: 1.15; border-radius: 10px; overflow: hidden; background: #0A1224; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s; }
.post-thumb { position: relative; }
.post-thumb::after { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); opacity: 0; }
.post-card:hover .post-thumb img { filter: brightness(1.08) saturate(1.1); }
.post-card:hover .post-thumb::after { animation: blogShine .9s var(--ease) forwards; }
@keyframes blogShine { 0% { left: -70%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.post-thumb-ph {
    width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; color: #fff;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.65), transparent 60%), radial-gradient(circle at 80% 80%, rgba(139,92,246,.6), transparent 60%), #0B1530;
}
.post-body { min-width: 0; }
.post-body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.post-body h3 a:hover { color: #93C5FD; }
.post-meta-row { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.post-views { display: inline-flex; align-items: center; gap: 6px; }
.post-views i { color: #93C5FD; }
.post-body p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.post-more { font-size: 13px; }

/* ---------------- ALOQA ---------------- */
.contact-section { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1.25fr 0.72fr; gap: 26px; align-items: stretch; }
.contact-intro h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.contact-intro > p { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; max-width: 460px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; font-size: 12.5px; color: var(--text-muted); }
.contact-list a, .contact-list li > span > span { font-size: 15px; font-weight: 500; color: var(--text-main); }
.contact-list a:hover { color: #93C5FD; }
.c-icon {
    width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 18px; color: #E0E7FF;
    background: rgba(15, 23, 42, .8); border: 1.5px solid transparent;
    background-image: linear-gradient(rgba(15,23,42,1), rgba(15,23,42,1)), linear-gradient(135deg, #3B82F6, #8B5CF6);
    background-origin: border-box; background-clip: padding-box, border-box;
    box-shadow: 0 0 16px rgba(99, 102, 241, .35);
}
.c-icon--tg { background-image: linear-gradient(135deg, #2AABEE, #229ED9), linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; font-size: 22px; }

.contact-form { padding: 22px 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin-bottom: 7px; }
.cf-field .form-control { padding: 10px 14px; font-size: 13.5px; }
.cf-field textarea.form-control { min-height: 82px; }
.cf-error { display: block; color: #FCA5A5; font-size: 12px; margin-top: 5px; }
.contact-form .btn-block { padding: 14px; font-size: 15px; margin-top: 4px; }

.cdr-card { position: relative; overflow: hidden; border-radius: 16px; padding: 22px 24px; min-height: 230px;
    background: linear-gradient(160deg, rgba(30, 27, 75, .55), rgba(11, 17, 32, .8)); }
.cdr-card::before {
    content: ''; position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(139,92,246,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.25) 1px, transparent 1px);
    background-size: 26px 26px; mask-image: linear-gradient(135deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
}
.cdr-words { position: relative; z-index: 1; display: flex; flex-direction: column; font-family: var(--font-mono); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.cdr-words span { background: linear-gradient(90deg, #C4B5FD, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cdr-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cdr-tag { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: #93C5FD; text-shadow: 0 0 14px rgba(59,130,246,.9); }
.cdr-note { position: relative; z-index: 1; font-size: 13px; color: var(--text-soft); margin-bottom: 14px; max-width: 200px; line-height: 1.45; }
.cdr-globe {
    position: absolute; right: -32%; bottom: -46%; width: 115%; aspect-ratio: 1; border-radius: 50%;
    background:
        repeating-linear-gradient(90deg, rgba(147,197,253,.35) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(0deg, rgba(147,197,253,.35) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 30% 30%, #3B82F6, #312E81 60%, #0B1120 85%);
    box-shadow: -6px -6px 30px rgba(59,130,246,.7), inset 10px 10px 40px rgba(167,139,250,.6);
    border-top: 2px solid rgba(147, 197, 253, .9);
    border-left: 2px solid rgba(167, 139, 250, .9);
}

/* ---------------- Light mode ---------------- */
body.light-mode .hero-title { text-shadow: none; }
body.light-mode .code-window, body.light-mode .tech-card { background: rgba(11, 20, 42, 0.86); }
body.light-mode .tech-card li { color: #E2E8F0; }
body.light-mode .c-icon { color: #fff; }
body.light-mode .skill-tile .devicon-linux-plain { color: #0F172A; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1280px) {
    .home-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr 1.3fr; }
    .cdr-card { grid-column: 1 / -1; min-height: 150px; }
    .cdr-card .cdr-words { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
    .cdr-card .cdr-globe { width: 340px; right: -60px; bottom: -220px; }
}
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-content { padding-bottom: 10px; text-align: center; }
    .hero-content .eyebrow, .hero-buttons { justify-content: center; }
    .hero-bio { margin-left: auto; margin-right: auto; }
    .hero-stats { margin: 0 auto; }
    .hero-visual { min-height: 560px; max-width: 760px; width: 100%; margin: 0 auto; }
    .home-posts { grid-template-columns: 1fr; }
    .code-window { left: 0; }
    .post-thumb { flex-basis: 160px; aspect-ratio: 1.4; }
}
@media (max-width: 768px) {
    .hero { padding-top: 96px; }
    .home-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 460px; }
    .code-window { display: none; }
    .script--name { top: 8%; left: 0; }
}
@media (max-width: 560px) {
    .hero-title .t-line { white-space: normal; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; padding: 14px 4px; }
    .hero-stats li { flex-direction: column; text-align: center; gap: 8px; padding: 0 6px; }
    .hero-stats small { white-space: normal; font-size: 11.5px; }
    .hero-buttons .btn { flex: 1 1 100%; }
    .hero-visual { min-height: 400px; }
    .tech-card { top: auto; bottom: 0; right: 0; min-width: 0; padding: 10px 12px; gap: 6px; }
    .tech-card li { font-size: 12px; gap: 8px; }
    .tech-card i, .tech-card .dj { font-size: 14px; width: 16px; height: 16px; }
    .tech-card li:nth-child(n+6) { display: none; }
    .script--build { display: none; }
    .hv-stage { transform: translateX(-60%); width: 72%; }
    .home-projects { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .skill-tile { padding: 14px 4px 12px; }
    .skill-icon { height: 36px; margin-bottom: 6px; }
    .skill-icon i { font-size: 32px; }
    .skill-icon .dj { width: 32px; height: 32px; font-size: 16px; }
    .skill-icon .ngx { width: 32px; height: 35px; font-size: 17px; }
    .skill-tile strong { font-size: 12px; }
    .skill-tile small { font-size: 11px; }
    .cf-row { grid-template-columns: 1fr; }
    .post-card { gap: 14px; padding: 12px; }
    .post-thumb { flex-basis: 92px; aspect-ratio: 1; }
    .post-body h3 { font-size: 15px; }
}


/* =========================================================
   Effektlar: "Available" holati, aylanuvchi nurli chegara, podium
   ========================================================= */

/* --- Holat belgisi (Ochiq / Band) --- */
.status-pill {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
    font: 600 11px/1 var(--font-sans); color: #4ADE80; letter-spacing: .01em; white-space: nowrap;
}
.status-pill--lg { font-size: 13.5px; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(74, 222, 128, .28); }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px #22C55E; flex-shrink: 0; }
.status-pill--lg .status-dot { width: 9px; height: 9px; }
.status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .55); animation: statusPing 2s cubic-bezier(0, 0, .2, 1) infinite; }
.status-pill.is-busy { color: #FBBF24; }
.status-pill--lg.is-busy { background: rgba(245, 158, 11, .08); border-color: rgba(251, 191, 36, .3); }
.status-pill.is-busy .status-dot { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.status-pill.is-busy .status-dot::after { border-color: rgba(245, 158, 11, .5); }
@keyframes statusPing { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.cw-bar .status-pill { position: relative; z-index: 1; }

/* --- Chegara bo'ylab aylanuvchi nur (2-rasmdagi kabi) --- */
@property --arc { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.arc-border { position: relative; isolation: isolate; }
.arc-border::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
    background: conic-gradient(from var(--arc), transparent 0deg, transparent 250deg, rgba(56, 189, 248, .15) 280deg,
                               #38BDF8 320deg, #A78BFA 345deg, transparent 360deg);
    -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);
    animation: arcSpin 7s linear infinite;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, .8));
}
@keyframes arcSpin { to { --arc: 360deg; } }

/* --- Portret ostidagi yorug' podium (1-rasmdagi kabi) --- */
.hv-podium {
    position: absolute; left: 50%; bottom: 0; width: 132%; aspect-ratio: 4.2 / 1;
    transform: translate(-50%, 46%); z-index: 1; pointer-events: none;  /* rasm ORQASIDA */
}
.pd-ring, .pd-pulse, .pd-glow { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.pd-ring { border: 2px solid rgba(96, 165, 250, .9); box-shadow: 0 0 14px rgba(59, 130, 246, .9), inset 0 0 14px rgba(59, 130, 246, .55); }
.pd-ring--1 { width: 100%; height: 100%; border-color: rgba(96, 165, 250, .55); border-width: 1.5px; }
.pd-ring--2 { width: 72%; height: 72%; border-color: rgba(56, 189, 248, .95); box-shadow: 0 0 22px rgba(56, 189, 248, 1), inset 0 0 18px rgba(56, 189, 248, .7); }
.pd-ring--3 { width: 44%; height: 44%; border-color: rgba(167, 139, 250, .8); box-shadow: 0 0 14px rgba(139, 92, 246, .9); }
.pd-glow { width: 80%; height: 80%; background: radial-gradient(ellipse at center, rgba(56, 189, 248, .55), rgba(59, 130, 246, .2) 40%, transparent 70%); filter: blur(6px); }
.pd-pulse { width: 44%; height: 44%; border: 2px solid rgba(56, 189, 248, .8); animation: podiumPulse 3.6s cubic-bezier(.22, .61, .36, 1) infinite; }
.pd-pulse--late { animation-delay: 1.8s; }
@keyframes podiumPulse { 0% { width: 40%; height: 40%; opacity: .9; } 100% { width: 118%; height: 118%; opacity: 0; } }
.pd-beam {   /* podiumdan yuqoriga ko'tariluvchi nur */
    position: absolute; left: 50%; bottom: 50%; width: 58%; height: 560%; transform: translateX(-50%); z-index: -1;
    background: linear-gradient(0deg, rgba(56, 189, 248, .22), rgba(59, 130, 246, .06) 45%, transparent 80%);
    -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 100%, #000 40%, transparent 72%);
    mask: radial-gradient(ellipse 50% 100% at 50% 100%, #000 40%, transparent 72%);
    animation: beamFlicker 5s ease-in-out infinite;
}
@keyframes beamFlicker { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hv-grid { opacity: .55; }
body.light-mode .pd-ring--1 { border-color: rgba(37, 99, 235, .5); }

@media (max-width: 560px) {
    .hv-podium { width: 120%; }
    .cdr-card .cdr-globe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .arc-border::before, .pd-pulse, .pd-beam, .status-dot::after { animation: none; }
    .pd-pulse { display: none; }
}
