:root {
  --background: #000000;
  --surface: #12151c;
  --surface-raised: #20242d;
  --text: #ffffff;
  --muted: #a1a6af;
  --accent: #ffffff;
  --accent-hover: #e5e7eb;
  --border: #ffffff26;
  --radius: 24px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "Orbitron", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a, summary { transition: color .2s, background-color .2s, border-color .2s; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:active, .button:active { filter: brightness(.92); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; display: block; }
.line-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-icon { fill: currentColor; stroke: none; }
.site-shell { width: min(1200px, calc(100% - 96px)); margin: 0 auto; position: relative; z-index: 1; }
#particle-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: .5; }
h1, h2, h3 { font-family: "Orbitron", var(--font); }
.mono, .eyebrow { font-family: var(--mono); }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.5; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 32px; border-bottom: 1px solid var(--border); }
.wordmark { display: flex; align-items: center; gap: 14px; }
.monogram { font-family: "Orbitron", var(--font); font-size: 31px; font-weight: 700; letter-spacing: -.07em; line-height: 1; text-shadow: 0 0 8px #ffffff40; }
.monogram span { color: var(--accent); }
.wordmark-domain { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.navigation { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.navigation a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; }
.navigation a:hover { color: var(--text); }
.language-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #1f293780; backdrop-filter: blur(10px); }
.lang-btn { border: 0; color: var(--muted); background: transparent; min-width: 44px; min-height: 44px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.lang-btn:hover { color: var(--text); background: var(--surface-raised); }
.lang-btn.active { color: var(--background); background: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-areas: "identity contact" "details contact"; align-items: center; column-gap: 72px; row-gap: 0; padding: 76px 0 80px; }
.hero-identity { grid-area: identity; min-width: 0; align-self: end; }
.hero-details { grid-area: details; min-width: 0; align-self: start; }
.profile-line { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.portrait { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid #6b7280; padding: 4px; box-shadow: 0 0 15px #ffffff12; }
.profile-line .eyebrow { color: var(--accent); margin-bottom: 9px; }
.location { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.location .icon { width: 15px; height: 15px; }
h1 { font-size: clamp(48px, 5.8vw, 80px); font-weight: 700; letter-spacing: -.045em; line-height: 1.13; margin-left: -4px; margin-bottom: 24px; text-shadow: 0 0 18px #ffffff18; }
.name-last { color: var(--text); }
.name-dot { color: var(--accent); }
.hero-role { font-size: clamp(18px, 1.65vw, 22px); font-weight: 600; line-height: 1.55; letter-spacing: -.03em; text-shadow: 0 0 8px #ffffff24; }
.hero-role .muted { font-weight: 500; }
.hero-bio { max-width: 475px; margin-top: 20px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.skills > span { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 7px; padding: 7px 11px; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.4; }
.skills .icon { width: 14px; height: 14px; color: var(--accent); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 20px; font-size: 13px; line-height: 1.4; font-weight: 800; border-radius: 10px; border: 1px solid transparent; }
.button-primary { background: #00000060; color: var(--text); border-color: #ffffff70; box-shadow: 0 0 5px #ffffff40, inset 0 0 5px #ffffff18; }
.button-primary:hover { background: #ffffff0d; box-shadow: 0 0 15px #ffffff50, inset 0 0 10px #ffffff20; }
.button .icon { width: 18px; height: 18px; }
.hero-actions .button .icon:last-child { width: 16px; height: 16px; margin-left: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--muted); }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 16px; height: 16px; }

.contact-card { grid-area: contact; min-width: 0; position: relative; padding: 30px; background: #1f29374d; border: 1px solid #ffffff40; border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 28px #ffffff08; }
.contact-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.contact-top .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .13em; }
.card-spark { width: 34px; height: 34px; color: var(--accent); }
.contact-card h2 { font-size: 27px; font-weight: 700; letter-spacing: -.04em; text-shadow: 0 0 8px #ffffff26; }
.contact-intro { color: var(--muted); font-size: 13px; margin-top: 9px; }
.contact-methods { margin: 26px 0 24px; }
.contact-row { display: flex; align-items: center; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-address { display: flex; flex: 1; min-width: 0; align-items: center; gap: 13px; min-height: 44px; }
.contact-address:hover .contact-value { color: var(--accent); }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; background: var(--surface-raised); border-radius: 10px; color: var(--text); }
.contact-icon .icon { width: 18px; height: 18px; }
.contact-text { min-width: 0; display: block; }
.contact-label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.contact-value { font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: color .2s; }
.copy-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: transparent; }
.copy-button .icon { width: 17px; height: 17px; }
.copy-button:hover { color: var(--accent); background: var(--surface-raised); border-color: #ffffff70; }
.save-contact { width: 100%; font-size: 14px; background: var(--text); color: var(--background); box-shadow: 0 0 15px #ffffff26; }
.save-contact:hover { background: var(--accent-hover); }
.save-hint { font-size: 11px; line-height: 1.65; text-align: center; color: var(--muted); margin-top: 10px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.card-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 9px; font-size: 12px; font-weight: 600; padding: 9px 6px; }
.card-actions .icon { width: 16px; height: 16px; }
.card-actions button:hover { background: var(--surface-raised); border-color: #ffffff70; }
.socials { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; }
.socials > p { font-size: 10px; color: var(--muted); }
.social-list { display: flex; align-items: center; gap: 2px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); border-radius: 8px; }
.social-link:hover { color: var(--accent); background: var(--surface-raised); }
.social-link .icon { width: 17px; height: 17px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px dashed var(--border); margin-top: 16px; padding-top: 17px; font-size: 10px; }

.links-section { padding: 50px 0 64px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 13px; }
.section-heading h2 { font-size: 30px; font-weight: 700; letter-spacing: -.045em; }
.section-description { font-size: 12px; color: var(--muted); padding-bottom: 3px; }
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: #1f29374d; min-height: 228px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.link-card:hover { background: #1f293770; border-color: #ffffff99; box-shadow: 0 0 15px #ffffff14; }
.link-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; }
.github-card .card-icon { color: var(--accent); }
.articles-card .card-icon { color: #d1d5db; }
.resume-card .card-icon { color: #d1d5db; }
.card-number { font-size: 10px; color: var(--muted); }
.link-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.link-card p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 10px 0 25px; max-width: 260px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; font-size: 12px; font-weight: 600; }
.card-link .icon { width: 17px; height: 17px; color: var(--muted); }
.link-card:hover .card-link, .link-card:hover .card-link .icon { color: var(--accent); }

.personal-section { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; padding: 32px 0 38px; border-top: 1px solid var(--border); }
.personal-heading { display: flex; align-items: flex-start; gap: 20px; }
.quote-mark { font-family: Georgia, serif; color: var(--accent); font-size: 76px; line-height: 1; height: 50px; }
.personal-heading .eyebrow { font-size: 10px; color: var(--muted); margin: 3px 0 8px; }
.personal-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.personal-heading .muted { font-size: 12px; margin-top: 10px; }
.quote-details { min-width: 0; margin-top: 20px; }
.quote-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; list-style: none; font-size: 12px; cursor: pointer; }
.quote-details summary::-webkit-details-marker { display: none; }
.quote-details summary:hover { border-color: #ffffff70; background: var(--surface); }
.quote-details summary .icon { width: 15px; height: 15px; transition: transform .2s; }
.quote-details[open] { grid-column: 1 / -1; margin-top: 0; }
.quote-details[open] summary { width: fit-content; }
.quote-details[open] summary .icon { transform: rotate(90deg); }
blockquote { margin: 24px 0 0; padding: 0 0 0 25px; border-left: 2px solid var(--accent); max-width: 850px; font-size: 14px; color: var(--muted); line-height: 1.9; }
blockquote p + p { margin-top: 16px; }
blockquote cite { display: block; font-size: 12px; font-style: normal; color: var(--text); margin-top: 20px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--border); padding: 30px 0 34px; }
.footer-domain { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.footer-domain span { color: var(--accent); }
.site-footer > div p { margin-top: 3px; font-size: 10px; color: var(--muted); }
.copyright { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.back-top { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--muted); }
.back-top:hover { color: var(--accent); }
.back-top .icon { width: 15px; height: 15px; transform: rotate(-45deg); }
.noscript-message { padding: 16px; border: 1px solid var(--border); font-size: 13px; margin-bottom: 20px; color: var(--muted); }
.enhanced { display: none; }
.js .enhanced.copy-button { display: flex; }
.js .enhanced.card-actions { display: grid; }

dialog { width: min(410px, calc(100vw - 32px)); padding: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog::backdrop { background: #000000ba; backdrop-filter: blur(5px); }
dialog .eyebrow { color: var(--accent); margin-right: 30px; font-size: 10px; }
dialog h2 { margin-top: 20px; font-size: 26px; letter-spacing: -.04em; }
dialog > p:not(.eyebrow):not(.qr-url) { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 12px; }
.dialog-close { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }
.dialog-close:hover { color: var(--text); background: var(--surface-raised); }
.qr-image-wrap { background: #fff; padding: 12px; width: fit-content; border-radius: 14px; margin: 24px auto 0; }
.qr-image-wrap img { width: 224px; height: 224px; }
.qr-url { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 24px; }
dialog .button { width: 100%; }
.dialog-status:empty { display: none; }
.toast { position: fixed; z-index: 110; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 15px 20px; background: var(--accent); color: var(--background); border-radius: 12px; box-shadow: 0 8px 40px #00000055; font-size: 13px; font-weight: 600; line-height: 1.5; }
.toast.error { background: #e5e7eb; }

@media (min-width: 1440px) { .hero { column-gap: 96px; grid-template-columns: minmax(0, 1fr) 410px; padding: 94px 0; } .contact-card { padding: 34px; } }
@media (max-width: 1150px) {
  .site-shell { width: calc(100% - 72px); }
  .hero { column-gap: 36px; grid-template-columns: minmax(0, 1fr) 370px; padding: 64px 0; }
  h1 { font-size: 64px; }
  .contact-card { padding: 26px; }
  .hero-actions { gap: 14px; }
  .section-description { max-width: 240px; }
}
@media (max-width: 960px) {
  .site-shell { width: calc(100% - 56px); }
  .hero { column-gap: 28px; grid-template-columns: minmax(0, 1fr) 350px; }
  h1 { font-size: 55px; }
  .hero-role { font-size: 18px; }
  .hero-bio { font-size: 13px; }
  .contact-card { padding: 24px; }
  .contact-card h2 { font-size: 25px; }
  .contact-address { gap: 10px; }
  .contact-value { font-size: 15px; }
  .hero-actions .button { font-size: 12px; padding: 13px 14px; }
  .navigation { gap: 18px; }
  .wordmark-domain { display: none; }
}
@media (max-width: 800px) {
  .site-shell { width: min(600px, calc(100% - 48px)); }
  .site-header { min-height: 90px; gap: 18px; }
  .navigation { gap: 16px; }
  .navigation a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "identity" "contact" "details"; gap: 30px; padding: 44px 0 48px; }
  .hero-details .hero-bio { margin-top: 0; }
  .profile-line { margin-bottom: 27px; }
  h1 { font-size: clamp(54px, 10vw, 74px); }
  .hero-role { font-size: 20px; }
  .hero-bio { font-size: 15px; max-width: 500px; }
  .contact-card { padding: 28px; }
  .contact-card h2 { font-size: 30px; }
  .contact-value { font-size: 18px; }
  .contact-label { font-size: 10px; }
  .contact-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .hero-actions .button { font-size: 13px; padding: 13px 20px; }
  .socials > p { font-size: 12px; }
  .social-list { gap: 6px; }
  .social-link { width: 44px; }
  .contact-top .eyebrow, .save-hint { font-size: 11px; }
  .card-actions button { font-size: 13px; }
  .links-section { padding: 36px 0 40px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 28px; }
  .section-description { max-width: none; margin-top: 12px; font-size: 13px; }
  .links-grid { grid-template-columns: 1fr; gap: 12px; }
  .link-card { position: relative; min-height: 0; padding: 22px 22px 22px 88px; }
  .link-card-top { margin: 0; }
  .card-icon { position: absolute; top: 22px; left: 22px; }
  .card-number { position: absolute; top: 27px; right: 22px; }
  .link-card h3 { padding-right: 24px; font-size: 18px; }
  .link-card p { font-size: 13px; margin-bottom: 18px; max-width: none; }
  .card-link { font-size: 12px; }
  .personal-section { grid-template-columns: 1fr; gap: 14px; }
  .quote-details { margin: 0 0 0 48px; }
  .quote-details summary { width: fit-content; }
  .quote-details[open] { margin-left: 0; }
  .personal-heading { gap: 15px; }
  .personal-heading .muted { font-size: 13px; }
  .site-footer { flex-wrap: wrap; }
  .copyright { order: 3; width: 100%; }
}
@media (max-width: 480px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { min-height: 82px; }
  .navigation { display: none; }
  .lang-btn { min-height: 44px; }
  .hero { padding-top: 32px; gap: 30px; }
  .profile-line { gap: 15px; margin-bottom: 25px; }
  .portrait { width: 64px; height: 64px; }
  .profile-line .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(34px, 11.5vw, 52px); letter-spacing: -.045em; margin-left: -2px; margin-bottom: 20px; }
  .hero-role { font-size: 17px; }
  .hero-bio { font-size: 14px; margin-top: 17px; line-height: 1.8; }
  .skills { margin-top: 22px; gap: 6px; }
  .skills > span { font-size: 10px; padding: 7px 9px; }
  .hero-actions { margin-top: 26px; gap: 16px; }
  .hero-actions .button { flex: 1 0 100%; }
  .hero-actions .text-link { min-height: 44px; }
  .hero-details .hero-actions { display: none; }
  .contact-card { padding: 24px; border-radius: 20px; }
  .contact-card h2 { font-size: 27px; }
  .contact-value { font-size: 16px; }
  .contact-label { font-size: 9px; letter-spacing: .04em; }
  .contact-address { gap: 10px; }
  .contact-icon { width: 32px; height: 36px; flex-basis: 32px; background: none; }
  .contact-row { gap: 4px; }
  .copy-button { width: 44px; flex-basis: 44px; }
  .socials { flex-direction: column; align-items: flex-start; gap: 9px; }
  .social-list { width: 100%; justify-content: space-between; gap: 8px; }
  .social-link { background: var(--surface-raised); }
  .save-hint { font-size: 11px; }
  .section-heading h2 { font-size: 26px; }
  .link-card { padding-left: 78px; }
  .card-icon { left: 18px; }
  .personal-heading h2 { font-size: 18px; }
  .quote-details summary { font-size: 12px; }
  .site-footer { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
  dialog { padding: 30px 24px; }
}
@media (max-width: 350px) {
  .site-shell { width: calc(100% - 32px); }
  .contact-card { padding: 20px; }
  .contact-value { font-size: 14px; }
  .contact-address { gap: 7px; }
  .card-actions { gap: 8px; }
  .card-actions button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; color: #111; }
  .site-shell { width: 100%; }
  .hero { display: block; padding: 20px 0; }
  .hero-identity, .hero-details, .navigation, .language-switcher, .links-section, .personal-section, .site-footer, .card-actions, .copy-button, .save-contact, .save-hint, .socials, .toast { display: none !important; }
  .contact-card { color: #111; background: #fff; max-width: 450px; border-color: #999; box-shadow: none; }
  .contact-card::before { content: "Daulet Turgaliev · Game Developer"; display: block; font-weight: 700; margin-bottom: 15px; }
  .contact-top .eyebrow, .contact-label, .contact-intro, .card-footer { color: #444; }
  .contact-icon { color: #111; background: #eee; }
}
