/* ===== Liquid glass portfolio — Turg'unov Sanjar ===== */
:root {
  --bg: #070910;
  --text: #eef1fb;
  --muted: #9aa3bd;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.14);
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --pink: #f9a8d4;
  --radius: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand-name { font-family: 'Space Grotesk', 'Manrope', sans-serif; letter-spacing: -0.04em; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #121630 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 18s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #6d28d9; top: -180px; left: -120px; }
.orb-2 { width: 480px; height: 480px; background: #0e7490; top: 20%; right: -160px; animation-delay: -5s; }
.orb-3 { width: 420px; height: 420px; background: #be185d; bottom: -120px; left: 25%; opacity: .32; animation-delay: -9s; }
.orb-4 { width: 360px; height: 360px; background: #4338ca; top: 55%; left: -140px; opacity: .35; animation-delay: -13s; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.noise { position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,70px,0) scale(1.15); } }

.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(167,139,250,.11), transparent 65%); transform: translate(-50%, -50%); transition: opacity .3s; }

/* ---------- glass base ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.04);
}
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, rgba(255,255,255,.5), transparent 35%, transparent 65%, rgba(167,139,250,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .5; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 18px 24px 0; }
.nav { max-width: 1180px; margin: 0 auto; padding: 12px 16px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; background: linear-gradient(140deg, var(--violet), #6366f1 55%, var(--cyan)); box-shadow: 0 6px 22px rgba(139,92,246,.4); }
.brand-name b { font-weight: 700; color: var(--violet); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 10px; transition: .25s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.menu-btn { display: none; background: none; border: 1px solid var(--stroke); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 700; border: 1px solid var(--stroke); transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap; }
.btn span { font-size: 17px; transition: transform .25s; }
.btn:hover { transform: translateY(-3px); }
.btn:hover span { transform: translate(3px, -3px); }
.btn-small { padding: 9px 16px; font-size: 13px; background: rgba(255,255,255,.07); }
.btn-primary { background: linear-gradient(120deg, #8b5cf6, #6d28d9 55%, #4f46e5); border-color: rgba(255,255,255,.25); box-shadow: 0 12px 32px rgba(109,40,217,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(109,40,217,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255,255,255,.045); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn.big { padding: 16px 30px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 90px 24px 110px; min-height: 88vh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.055); border: 1px solid var(--stroke); font-size: 12px; letter-spacing: .04em; color: #d7dcf0; backdrop-filter: blur(10px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }
h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.08; font-weight: 700; margin: 26px 0 22px; }
.accent { background: linear-gradient(100deg, #c4b5fd, #67e8f9 55%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { -webkit-text-stroke: 1.5px rgba(196,181,253,.7); color: transparent; background: none; }
.hero-text { max-width: 540px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Space Grotesk'; font-size: 32px; line-height: 1; background: linear-gradient(120deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* profile card */
.hero-visual { position: relative; display: flex; justify-content: center; }
.profile-card { width: 100%; max-width: 390px; padding: 26px; text-align: center; border-radius: 32px; transform: rotate(-2deg); transition: transform .4s; }
.profile-card:hover { transform: rotate(0deg) translateY(-6px); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status i { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 10px #4ade80; }
.card-code { letter-spacing: .1em; }
.avatar-wrap { position: relative; width: 150px; height: 150px; margin: 26px auto 20px; display: grid; place-items: center; }
.avatar { width: 122px; height: 122px; border-radius: 36px; display: grid; place-items: center; font-family: 'Space Grotesk'; font-size: 42px; font-weight: 700; letter-spacing: -3px; background: linear-gradient(145deg, #a78bfa, #6366f1 45%, #22d3ee); box-shadow: 0 20px 50px rgba(99,102,241,.45), inset 0 2px 0 rgba(255,255,255,.5); }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(167,139,250,.5); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-card h2 { font-size: 25px; }
.role { color: var(--violet); font-size: 14px; font-weight: 600; margin-top: 2px; }
.chips, .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.chips span, .tags span { font-size: 11px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); color: #dfe4f5; }
.card-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); margin: 24px 0 16px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; animation: bob 5s ease-in-out infinite; }
.float-badge strong { display: block; font-size: 12px; }
.float-badge small { font-size: 10px; color: var(--muted); }
.badge-icon { font-size: 18px; }
.badge-1 { top: 12%; left: -6%; }
.badge-2 { bottom: 12%; right: -5%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 70px 24px; }
.section-head { margin-bottom: 36px; }
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin-top: 12px; }
.panel { border-radius: var(--radius); padding: 30px; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.about-main p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.about-main p:first-child { color: #dfe4f5; font-size: 18px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.about-tags span { font-size: 12px; padding: 6px 13px; border-radius: 10px; border: 1px solid var(--stroke); background: rgba(255,255,255,.05); }
.about-side h3 { font-size: 19px; margin-bottom: 18px; }
.steps { list-style: none; }
.steps li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #d5dbee; }
.steps li:last-child { border-bottom: 0; }
.steps b { font-family: 'Space Grotesk'; color: var(--violet); font-size: 13px; }

.skills-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.skill-card { transition: transform .35s, box-shadow .35s; }
.skill-card:hover, .project:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.skill-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; border-radius: 14px; background: linear-gradient(140deg, rgba(167,139,250,.35), rgba(103,232,249,.15)); border: 1px solid var(--stroke); }
.skill-card h3 { font-size: 20px; margin-top: 18px; }
.skill-card p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.skill-card .tags { justify-content: flex-start; margin-top: 20px; }
.meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 24px; overflow: hidden; }
.meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.22,1,.36,1) .2s; }
.in-view .meter i { transform: scaleX(1); }

.project { padding: 0; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.project-visual { height: 170px; display: flex; align-items: center; justify-content: space-between; padding: 26px; position: relative; overflow: hidden; }
.project-visual::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); right: -70px; top: -80px; }
.project-visual span { font-family: 'Space Grotesk'; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.project-visual i { font-style: normal; font-size: 76px; opacity: .55; }
.v1 { background: linear-gradient(135deg, rgba(139,92,246,.5), rgba(79,70,229,.15)); }
.v2 { background: linear-gradient(135deg, rgba(236,72,153,.42), rgba(103,232,249,.12)); }
.v3 { background: linear-gradient(135deg, rgba(14,165,233,.42), rgba(167,139,250,.16)); }
.project-body { padding: 24px; }
.project-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-body h3 { font-size: 20px; margin: 12px 0 8px; }
.project-body p { color: var(--muted); font-size: 14px; min-height: 62px; }
.project-body .tags { justify-content: flex-start; margin-top: 16px; }

/* contact */
.contact-section { padding-top: 40px; padding-bottom: 90px; }
.contact-card { text-align: center; padding: 64px 30px; overflow: hidden; }
.contact-card h2 { font-size: clamp(34px, 5vw, 58px); margin: 14px 0; }
.contact-card p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }
.socials { display: flex; justify-content: center; gap: 26px; margin-top: 32px; }
.socials a { font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; transition: .25s; }
.socials a:hover { color: #fff; border-color: var(--violet); }
.footer { max-width: 1180px; margin: 0 auto; padding: 26px 24px 40px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); color: var(--muted); font-size: 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }
.hero-visual.reveal { transition-delay: .15s; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 70px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
}
@media (max-width: 680px) {
  .nav-wrap { padding: 12px 14px 0; }
  .nav { padding: 10px 12px; }
  .brand-name { display: none; }
  .nav .btn-small { display: none; }
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px; background: rgba(16,18,32,.92); border: 1px solid var(--stroke); border-radius: 18px; backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-link { text-align: center; padding: 12px; }
  .hero { padding: 50px 20px 80px; }
  h1 { font-size: 39px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .stat strong { font-size: 26px; }
  .badge-1 { left: -2%; }
  .badge-2 { right: -2%; }
  .section { padding: 50px 20px; }
  .panel { padding: 22px; }
  .contact-card { padding: 46px 20px; }
  .footer { flex-direction: column; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
