/* =========================================================
   Ko'nikmalar / Men haqimda sahifasi
   ========================================================= */
.about-page { position: relative; overflow: hidden; padding: 30px 0 30px; isolation: isolate; }

/* ---------- Fon bezaklari ---------- */
.ab-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about-page::before {   /* o'ng yuqoridagi yorug' yoy */
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    width: 1100px; height: 1100px; right: -620px; top: -560px; border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, .55);
    box-shadow: 0 0 40px rgba(59, 130, 246, .45), inset 0 0 80px rgba(59, 130, 246, .18);
    mask-image: linear-gradient(200deg, #000 20%, transparent 62%);
    -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 62%);
}
.ab-wave {
    position: absolute; left: -15%; right: -15%; bottom: -260px; height: 420px; border-radius: 50%;
    border-top: 2px solid rgba(96, 165, 250, .55);
    box-shadow: 0 -14px 70px rgba(59, 130, 246, .32);
    background: radial-gradient(60% 70% at 50% 0%, rgba(59, 130, 246, .18), transparent 70%);
}
.ab-cube {
    position: absolute; width: var(--s, 34px); aspect-ratio: 1; border-radius: 7px;
    border: 1.5px solid rgba(129, 140, 248, .55);
    background: linear-gradient(135deg, rgba(59, 130, 246, .38), rgba(139, 92, 246, .08));
    box-shadow: 0 0 18px rgba(99, 102, 241, .45), inset 0 0 12px rgba(147, 197, 253, .25);
    transform: rotate(var(--r, 24deg));
    animation: abFloat var(--t, 9s) ease-in-out infinite alternate;
    opacity: .75;
}
.ab-cube.c1 { --s: 30px; left: 4%;  top: 120px; --r: 18deg; }
.ab-cube.c2 { --s: 40px; left: 2%;  top: 260px; --r: 35deg; --t: 11s; }
.ab-cube.c3 { --s: 46px; left: 1%;  top: 600px; --r: 12deg; --t: 12s; opacity: .55; }
.ab-cube.c4 { --s: 56px; right: 18%; top: 150px; --r: 28deg; --t: 10s; opacity: .55; }
.ab-cube.c5 { --s: 30px; right: 4%; top: 240px; --r: 40deg; }
.ab-cube.c6 { --s: 34px; right: 2%; top: 720px; --r: 22deg; --t: 13s; opacity: .5; }
@keyframes abFloat { from { translate: 0 0; } to { translate: 0 -18px; } }

/* ---------- Asosiy panjara ---------- */
.about-hero {
    display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.65fr);
    grid-template-areas: "head head" "profile title" "profile groups";
    column-gap: 64px; row-gap: 22px; align-items: start; grid-template-rows: auto auto 1fr;
}
.ab-head { grid-area: head; }
.ab-head .section-title { gap: 12px; }
.ab-head-line { display: inline-block; width: 34px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.ab-head h1 { font-size: clamp(38px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 12px; }
.ab-head h1 .text-gradient { filter: drop-shadow(0 0 22px rgba(99, 102, 241, .35)); }
.ab-head p { color: var(--text-soft); font-size: 17px; }

.ab-skills-title {
    grid-area: title; align-self: start; margin-top: -58px !important; display: flex; align-items: center; gap: 16px;
    font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0;
}
.ab-skills-title > i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.ab-code-ico {
    font-family: var(--font-mono); font-weight: 800; font-size: 1.05em; letter-spacing: -.08em;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, .6));
}

/* ---------- Profil kartasi ---------- */
.ab-profile { grid-area: profile; }
.abp-card {
    position: relative; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .45);
    background:
        radial-gradient(90% 60% at 50% 38%, rgba(79, 70, 229, .38), transparent 70%),
        linear-gradient(180deg, rgba(30, 27, 75, .55), rgba(11, 17, 32, .92));
    box-shadow: 0 0 0 1px rgba(59, 130, 246, .12), 0 0 40px -6px rgba(59, 130, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.abp-card::after {   /* pastki o'ng burchakdagi yorug' kesik */
    content: ''; position: absolute; right: -1px; bottom: -1px; width: 34px; height: 34px;
    background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, .9) 50%);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, .9));
}
.abp-visual { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: end center; }
.abp-orbit {
    position: absolute; left: 50%; top: 50%; border-radius: 50%; z-index: 1;
    border: 2px solid rgba(96, 165, 250, .85);
    box-shadow: 0 0 16px rgba(59, 130, 246, .9), inset 0 0 14px rgba(59, 130, 246, .5);
    transform: translate(-50%, -50%) rotate(var(--rot)); animation: abOrbit var(--ot, 9s) ease-in-out infinite alternate;
    /* halqaning old (pastki-o'rta) yoyi umuman chizilmaydi — u gavda ustidan o'tmaydi, faqat yon va orqa qismi ko'rinadi */
    -webkit-mask-image: radial-gradient(ellipse 37% 62% at 50% 82%, transparent 97%, #000 100%);
            mask-image: radial-gradient(ellipse 37% 62% at 50% 82%, transparent 97%, #000 100%);
}
.abp-orbit.o1 { width: 92%; height: 46%; --rot: -16deg; top: 46%; }
.abp-orbit.o2 { width: 78%; height: 38%; --rot: 14deg; top: 44%; border-color: rgba(167, 139, 250, .8); box-shadow: 0 0 16px rgba(139, 92, 246, .9); --ot: 18s; animation-direction: reverse; }
.abp-orbit.o3 { width: 104%; height: 56%; --rot: -6deg; top: 48%; border-width: 1px; border-color: rgba(96, 165, 250, .35); box-shadow: none; --ot: 24s; }
/* halqalar faqat yengil tebranadi (to'liq aylanmaydi) — doim rasm ORQASIDA, gorizontal holatda */
@keyframes abOrbit { from { transform: translate(-50%, -50%) rotate(calc(var(--rot) - 6deg)); }
                     to   { transform: translate(-50%, -50%) rotate(calc(var(--rot) + 6deg)); } }
/* pastki qism: rasm va halqalar birga karta foniga singib ketadi (halqa rasm orqali ko'rinmaydi) */
.abp-visual::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(11, 17, 32, .85) 70%, #0B1120);
}
.abp-spark { position: absolute; z-index: 1; width: 12px; height: 12px; border-radius: 3px; transform: rotate(30deg);
    background: linear-gradient(135deg, #6366F1, #3B82F6); box-shadow: 0 0 12px rgba(99, 102, 241, .9); opacity: .8; }
.abp-spark.s1 { left: 12%; top: 16%; }
.abp-spark.s2 { right: 16%; top: 10%; width: 9px; height: 9px; }
.abp-spark.s3 { right: 7%; top: 56%; width: 14px; height: 14px; }

.abp-photo { position: relative; z-index: 2; display: block; }
.is-cutout .abp-photo {
    width: 88%; height: 100%; object-fit: contain; object-position: center bottom;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
}
.is-cutout .abp-silhouette { position: absolute; left: 6%; bottom: 0; filter: url(#abp-solid); }
.is-circle { place-items: center; }
.is-circle .abp-photo {
    width: 62%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
    border: 3px solid rgba(96, 165, 250, .7); box-shadow: 0 0 30px rgba(59, 130, 246, .6);
}
.abp-mono { position: relative; z-index: 2; align-self: center; font-size: 110px; font-weight: 900; letter-spacing: -.06em;
    background: var(--grad-logo); -webkit-background-clip: text; background-clip: text; color: transparent; }

.abp-body { position: relative; z-index: 3; text-align: center; padding: 6px 22px 26px; margin-top: -18px; }
.abp-name { font-size: 27px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.abp-title { margin-top: 4px; font-weight: 600; font-size: 16px;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abp-social { display: flex; justify-content: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.abp-social a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
    color: #BFDBFE; background: rgba(15, 23, 42, .7); border: 1px solid rgba(96, 165, 250, .4);
    box-shadow: 0 0 14px -2px rgba(59, 130, 246, .5); transition: transform .25s var(--ease), color .2s, box-shadow .25s, border-color .2s;
}
.abp-social a:hover { transform: translateY(-3px); color: #fff; border-color: rgba(147, 197, 253, .8); box-shadow: 0 0 20px rgba(59, 130, 246, .9); }

.abp-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 16px 10px; border-radius: 18px;
    background: var(--surface); border: 1px solid rgba(96, 165, 250, .35);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 24px -8px rgba(59, 130, 246, .5);
}
.abp-stats li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 8px; }
.abp-stats li + li { border-left: 1px solid var(--line-strong); }
.abp-stats i { font-size: 20px; color: #60A5FA; filter: drop-shadow(0 0 8px rgba(59, 130, 246, .7)); }
.abp-stats strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; }
.abp-stats small { display: block; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

/* ---------- Ko'nikma guruhlari ---------- */
.ab-groups { grid-area: groups; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ab-groups.is-single { grid-template-columns: 1fr; }
.sg-blue   { --c1: #2563EB; --c2: #60A5FA; --rgb: 59, 130, 246; }
.sg-violet { --c1: #7C3AED; --c2: #A78BFA; --rgb: 139, 92, 246; }
.sg-teal   { --c1: #0D9488; --c2: #2DD4BF; --rgb: 20, 184, 166; }
.sg-orange { --c1: #EA580C; --c2: #FB923C; --rgb: 249, 115, 22; }
.sg-pink   { --c1: #DB2777; --c2: #F472B6; --rgb: 236, 72, 153; }
.sg-cyan   { --c1: #0284C7; --c2: #38BDF8; --rgb: 14, 165, 233; }

.skill-group {
    position: relative; border-radius: 20px; padding: 24px 26px 26px; overflow: hidden;
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(var(--rgb), .16), transparent 60%),
        linear-gradient(180deg, rgba(17, 26, 46, .78), rgba(11, 17, 32, .9));
    border: 1px solid rgba(var(--rgb), .42);
    box-shadow: 0 0 34px -12px rgba(var(--rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.skill-group.fade-up { transition: opacity .8s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s), box-shadow .4s, border-color .3s; }
.skill-group::after {   /* yuqori o'ng burchakdagi rangli kesik */
    content: ''; position: absolute; top: -1px; right: -1px; width: 44px; height: 44px;
    background: linear-gradient(225deg, var(--c2) 0 50%, transparent 50%); opacity: .9;
    filter: drop-shadow(0 0 10px rgba(var(--rgb), .9));
}
.skill-group:hover { border-color: rgba(var(--rgb), .7); box-shadow: 0 0 46px -10px rgba(var(--rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (hover: hover) { .skill-group.show-animate:hover, .skill-group:not(.fade-up):hover { transform: translateY(-4px); } }

.sg-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.sg-icon {
    flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; color: #fff;
    background: linear-gradient(140deg, var(--c2), var(--c1));
    box-shadow: 0 8px 24px -6px rgba(var(--rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sg-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.sg-head small { display: block; color: var(--text-soft); font-size: 14px; margin-top: 3px; }
.sg-demo { position: static; margin-left: auto; align-self: flex-start; }

.sg-list { display: flex; flex-direction: column; gap: 16px; }
.sk { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 14px; }
.sk-icon { font-size: 27px; line-height: 1; display: grid; place-items: center; color: var(--text-main); }
.sk-icon .fa-telegram { color: #29A9EB; }
.sk-icon .ngx {
    display: inline-grid; place-items: center; width: 26px; height: 28px; color: #fff; background: #009639;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    font-size: 14px; font-weight: 800; font-family: var(--font-sans);
}
.sk-icon .fa-github, .sk-icon .devicon-github-original { color: var(--text-main); }
.sk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sk-name { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-val { font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.sk-bar { display: block; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.sk-fill {
    display: block; height: 100%; width: var(--lvl); border-radius: inherit;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    box-shadow: 0 0 10px rgba(var(--rgb), .8);
    transition: width 1.3s var(--ease) calc(var(--delay, 0s) + .25s);
}
.skill-group.fade-up:not(.show-animate) .sk-fill { width: 0; }
.ab-empty { color: var(--text-muted); }

/* ---------- Pastga tugmasi ---------- */
.ab-scroll { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 46px auto 0; max-width: 720px; padding: 0 var(--gutter); }
.ab-scroll::before, .ab-scroll::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.ab-scroll::after { transform: scaleX(-1); }
.ab-down {
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #93C5FD; font-size: 17px;
    border: 1.5px solid rgba(96, 165, 250, .6); box-shadow: 0 0 20px rgba(59, 130, 246, .5); background: rgba(15, 23, 42, .6);
    animation: abBounce 2.4s ease-in-out infinite;
}
.ab-down:hover { color: #fff; box-shadow: 0 0 28px rgba(59, 130, 246, .9); }
@keyframes abBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* ---------- Bio va ish tajribasi ---------- */
.about-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; padding-top: 56px; padding-bottom: 40px; align-items: start; }
.ab-bio, .ab-exp { padding: 30px; border-radius: 20px; }
.block-title { font-size: 20px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.block-title i { color: var(--accent-cyan); }
.ab-bio .bio { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.about-info { list-style: none; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.about-info li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14.5px; word-break: break-word; }
.about-info i { color: var(--accent-cyan); width: 20px; text-align: center; font-size: 16px; }

.timeline { border-left: 2px solid var(--line-strong); padding-left: 22px; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--grad-primary); border: 3px solid var(--bg-main); box-shadow: 0 0 12px rgba(59, 130, 246, .8); }
.timeline-date { font-size: 12px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.timeline-item h4 { font-size: 18px; margin-bottom: 2px; }
.timeline-item .company { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.timeline-item p { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }

/* ---------- Kunduzgi rejim ---------- */
body.light-mode .about-page::before { border-color: rgba(37, 99, 235, .35); box-shadow: 0 0 30px rgba(37, 99, 235, .2); }
body.light-mode .ab-wave { border-top-color: rgba(37, 99, 235, .35); box-shadow: 0 -14px 60px rgba(37, 99, 235, .15); }
body.light-mode .ab-cube { opacity: .4; }
body.light-mode .skill-group {
    background: radial-gradient(120% 70% at 0% 0%, rgba(var(--rgb), .12), transparent 60%), rgba(255, 255, 255, .88);
    box-shadow: 0 18px 40px -24px rgba(var(--rgb), .55);
}
body.light-mode .sk-bar { background: rgba(15, 23, 42, .08); }
body.light-mode .abp-stats i { color: #2563EB; }
/* profil kartasi kunduzi ham qorong'i qoladi — rasm va yorug' halqalar shu fonda chiroyli */
body.light-mode .abp-card { --text-main: #F8FAFC; color: #F8FAFC; }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1180px) {
    .about-hero { column-gap: 36px; }
    .ab-groups { gap: 18px; }
    .skill-group { padding: 20px; }
}
@media (max-width: 1024px) {
    .about-hero { grid-template-columns: 1fr; grid-template-areas: "head" "profile" "title" "groups"; }
    .ab-profile { width: 100%; max-width: 440px; justify-self: center; }
    .ab-skills-title { margin-top: 26px !important; }
    .about-more { grid-template-columns: 1fr; }
    .ab-cube.c4 { display: none; }
}
@media (max-width: 680px) {
    .ab-groups { grid-template-columns: 1fr; }
    .ab-head p { font-size: 15.5px; }
    .abp-stats { padding: 14px 4px; }
    .abp-stats li { flex-direction: column; gap: 4px; text-align: center; padding: 0 4px; }
    .abp-stats small { white-space: normal; }
    .ab-bio, .ab-exp { padding: 22px; }
    .ab-cube.c2, .ab-cube.c3, .ab-cube.c6 { display: none; }
    .about-page::before { width: 700px; height: 700px; right: -460px; top: -380px; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-cube, .abp-orbit, .ab-down { animation: none; }
    .sk-fill { transition: none; }
}
body.light-mode .abp-card {
    background:
        radial-gradient(90% 60% at 50% 38%, rgba(79, 70, 229, .45), transparent 70%),
        linear-gradient(180deg, #1E1B4B, #0B1120);
}
