 :root {
  --bg: #090c14;
  --bg-soft: #0e1320;
  --panel: rgba(19, 26, 42, .78);
  --panel-border: rgba(160, 180, 220, .13);
  --text: #f1f4ff;
  --muted: #a2acc3;
  --blue: #79a6ff;
  --purple: #b69aff;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: radial-gradient(ellipse at 80% 0%, #17213b 0%, transparent 38%), var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(9,12,20,.84); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.08em; }
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a, .nav-cta { color: var(--muted); font-size: .86rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active, .nav-cta:hover { color: var(--text); }
.nav-cta { border: 1px solid var(--panel-border); padding: 10px 15px; border-radius: 12px; color: var(--text); }
.nav-cta span, .button span { color: var(--blue); margin-left: 8px; }
.menu-toggle { display: none; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); border-radius: 9px; padding: 7px 11px; }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; padding-block: 80px 65px; position: relative; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--blue); margin: 0 0 18px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #6fe2b1; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 12px #6fe2b1; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 5.1rem); line-height: 1.04; letter-spacing: -.07em; margin: 0 0 18px; max-width: 650px; }
.hero h1 span, .section-heading h2 span, .contact-inner h2 span { background: linear-gradient(100deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; letter-spacing: -.035em; font-weight: 500; max-width: 560px; margin: 0 0 16px; }
.hero h2 em { color: var(--purple); font-style: normal; }
.hero-description { color: var(--muted); max-width: 510px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; border-radius: 12px; font-weight: 600; font-size: .9rem; transition: transform .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(110deg, #487ff0, #765de9); box-shadow: 0 8px 28px #456ef033; }
.button.primary span { color: white; }
.button.secondary { border: 1px solid var(--panel-border); background: rgba(255,255,255,.025); }
.social-links { display: flex; gap: 20px; margin-top: 28px; color: var(--muted); font-size: .84rem; }
.social-links a:hover, .contact-socials a:hover, .footer a:hover { color: var(--blue); }
.hero-art { min-height: 390px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #536dff30; filter: blur(70px); z-index: -1; }
.orbit { position: absolute; border: 1px solid #90aaff22; border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 430px; height: 260px; }
.orbit-two { width: 350px; height: 350px; border-color: #b69aff22; }
.code-window { width: min(100%, 435px); border: 1px solid #9aaeff38; border-radius: 16px; background: linear-gradient(140deg, #151e32f5, #0c101cf5); box-shadow: 0 28px 80px #0008, 0 0 50px #5677ff12; transform: rotate(-2deg); overflow: hidden; }
.window-top { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #ffffff0d; color: var(--muted); }
.window-top > span { width: 8px; height: 8px; border-radius: 50%; background: #ff737b; }
.window-top > span:nth-child(2) { background: #ffc96c; }
.window-top > span:nth-child(3) { background: #65d6a0; }
.window-top small { margin-left: 12px; font-size: .72rem; }
.code-window pre { margin: 0; padding: 24px; font: .87rem/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d4ddf7; overflow-x: auto; }
.code-window b { color: #c3a6ff; font-weight: 500; }
.code-window i { color: #a7e6c3; font-style: normal; }
.code-window strong { color: #ffcf87; }
.code-window u { color: #82c8ff; text-decoration: none; }
.floating-chip { position: absolute; display: flex; gap: 9px; align-items: center; padding: 10px 14px; background: #18223a; border: 1px solid #b2c5ff26; border-radius: 12px; box-shadow: 0 12px 30px #0005; font-weight: 700; color: var(--purple); }
.floating-chip span { color: var(--text); font-size: .8rem; font-weight: 500; }
.chip-top { top: 48px; right: -3px; }
.chip-bottom { bottom: 35px; left: -4px; color: var(--blue); }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--panel-border); border-radius: 16px; background: #ffffff04; margin-bottom: 80px; }
.quick-facts div { padding: 21px 25px; display: flex; flex-direction: column; border-right: 1px solid var(--panel-border); }
.quick-facts div:last-child { border: 0; }
.quick-facts strong { font-size: 1.2rem; }
.quick-facts span { font-size: .8rem; color: var(--muted); }
.section { padding-block: 48px 58px; }
.section-heading { margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .contact-inner h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.06em; margin: 0; }
.row-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.muted { color: var(--muted); font-size: .9rem; margin: 0; }
.panel { background: linear-gradient(145deg, rgba(24,32,51,.82), rgba(14,19,31,.88)); border: 1px solid var(--panel-border); border-radius: 18px; }
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.about-copy, .about-note { padding: 28px; }
.about-copy p { color: #c0c9dc; margin: 0 0 15px; }
.text-link { display: inline-block; margin-top: 8px; color: var(--blue); font-size: .88rem; font-weight: 600; }
.text-link span { margin-left: 8px; }
.about-note { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 90% 10%, #a68bff20, transparent 45%), var(--panel); }
.note-icon { color: var(--purple); font-size: 2rem; }
.quote { font-size: 1.45rem; line-height: 1.45; letter-spacing: -.04em; font-weight: 600; margin: 15px 0; }
.note-caption { color: var(--muted); font-size: .8rem; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-card { padding: 23px; }
.skill-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--blue); background: #6f91ff17; font-size: 1.35rem; }
.skill-card h3 { margin: 16px 0 5px; font-size: 1rem; }
.skill-card p { color: var(--muted); font-size: .84rem; margin: 0 0 18px; }
.skill-track { height: 4px; background: #ffffff0d; border-radius: 5px; overflow: hidden; }
.skill-track span { display: block; height: 100%; background: linear-gradient(90deg, #6396ff, #b49aff); border-radius: inherit; }
.small-note { color: #77839d; font-size: .74rem; margin: 15px 2px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.project-card { overflow: hidden; transition: transform .22s, border-color .22s; }
.project-card:hover { transform: translateY(-5px); border-color: #8faaff4a; }
.project-visual { min-height: 220px; position: relative; display: grid; place-items: center; overflow: hidden; }
.visual-label { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: .62rem; letter-spacing: .13em; color: #d8e3ffb8; }
.visual-hop { background: radial-gradient(circle at 50% 80%, #285c9a, transparent 45%), linear-gradient(135deg, #16243b, #0b1424); }
.mock-phone { width: 130px; height: 176px; background: #eef4ff; color: #18233a; border-radius: 17px; padding: 20px 13px 12px; transform: rotate(-7deg); box-shadow: 0 20px 40px #0005; }
.phone-notch { width: 35px; height: 5px; background: #c8d2e7; border-radius: 9px; margin: -12px auto 13px; }
.phone-title { font-weight: 800; color: #4f7cf3; }
.phone-line { height: 5px; border-radius: 5px; background: #d4dced; margin-top: 9px; }
.phone-line.short { width: 60%; }
.phone-box { padding: 10px; margin-top: 13px; border-radius: 8px; background: #dce8ff; font-size: .6rem; }
.phone-box b { display: block; font-size: 1rem; margin-top: 3px; }
.visual-orbit { position: absolute; right: 20%; top: 45%; font-size: 2rem; color: #a9c7ff; }
.visual-builder { background: radial-gradient(circle at 80% 20%, #7153c444, transparent 38%), linear-gradient(135deg, #1a1834, #111727); }
.builder-ui { width: 72%; height: 140px; border: 1px solid #a6b8ff40; border-radius: 10px; padding: 13px; background: #0c1221; transform: rotate(4deg); box-shadow: 0 18px 40px #0006; }
.builder-bar { height: 8px; width: 55%; background: #6679a8; border-radius: 4px; margin-bottom: 13px; }
.builder-row { display: flex; gap: 7px; }
.builder-row i { height: 23px; flex: 1; background: #222f4b; border-radius: 5px; }
.builder-row i:first-child { background: #536fbc; }
.builder-row.wide { margin-top: 8px; }
.builder-chip { display: inline-block; background: #b69aff22; color: #c7b3ff; border-radius: 5px; padding: 2px 7px; font-size: .6rem; margin-top: 8px; }
.builder-chip.blue { color: #94c8ff; background: #79a6ff22; }
.visual-testing { background: radial-gradient(circle at 20% 70%, #256c6240, transparent 45%), linear-gradient(135deg, #101e2b, #0c1420); }
.terminal { width: 82%; background: #081019; border: 1px solid #6c9c9a38; border-radius: 10px; padding: 15px; font: .65rem/1.8 ui-monospace, monospace; color: #b9cbd8; box-shadow: 0 18px 40px #0005; }
.terminal b, .terminal p { color: #8de5b8; }
.terminal p { margin: 3px 0; }
.terminal .terminal-pass { border-top: 1px solid #ffffff12; padding-top: 6px; margin-top: 7px; color: #82c8ff; }
.project-body { padding: 21px; }
.project-meta { color: var(--blue); font-size: .62rem; letter-spacing: .12em; font-weight: 700; }
.project-body h3 { margin: 8px 0; font-size: 1.12rem; letter-spacing: -.03em; }
.project-body p { color: var(--muted); font-size: .82rem; min-height: 82px; margin: 0 0 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 8px; border-radius: 7px; background: #ffffff0a; color: #b9c6e3; font-size: .66rem; }
.project-links { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--panel-border); margin-top: 17px; padding-top: 14px; font-size: .72rem; }
.project-links a { color: var(--blue); }
.project-links span { color: #8490a8; }
.project-gif {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.project-card:hover .project-gif {
  transform: scale(1.04);
}
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.game-card { display: flex; align-items: center; gap: 15px; padding: 13px; }

.game-art { width: 240px; height: 110px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-weight: 900; letter-spacing: -.08em; font-size: 1.1rem; overflow: hidden; }
.wuwa { background: linear-gradient(145deg, #7f8eab, #233b5d 50%, #111a2b); }

.zzz { background: linear-gradient(145deg, #ffda72, #f58c4b 48%, #8d2f48); color: #241528; }

.nte { background: linear-gradient(145deg, #a5d4e5, #6577a8 50%, #272d53); }

.dota { background: linear-gradient(145deg, #a64c45, #4e242b 55%, #14151e); }

.game-card h3 { font-size: .9rem; margin: 0 0 3px; }

.game-card p { font-size: .75rem; color: var(--muted); margin: 0; }

.game-status { margin-left: auto; align-self: start; color: #8de5b8; font-size: .65rem; white-space: nowrap; }

.contact-section { margin-top: 45px; border-block: 1px solid var(--panel-border); background: radial-gradient(ellipse at 50% 100%, #4d5fe21c, transparent 60%); text-align: center; }
.contact-inner { padding-block: 85px; }

.contact-inner h2 { font-size: clamp(2.4rem, 5vw, 4rem); }

.contact-inner > .muted { margin: 20px 0 25px; }

.contact-socials { display: flex; justify-content: center; gap: 22px; margin-top: 28px; color: var(--muted); font-size: .82rem; }

.footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .78rem; }
.footer p { margin: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


.hero-profile {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(
    135deg,
    #79a6ff,
    #b69aff
  );
  box-shadow: 0 0 25px rgba(121, 166, 255, 0.35);
  z-index: 5;
  overflow: hidden;
}

.hero-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}


@media (max-width: 650px) {
  .hero-profile {
    width: 85px;
    height: 85px;
    right: 8px;
    bottom: 5px;
  }
}

.nav-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #79a6ff55;
  border-radius: 12px;
  background: #79a6ff12;
  color: #a9c4ff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.nav-cv:hover {
  background: #79a6ff25;
  transform: translateY(-2px);
}

@media (max-width: 650px) {
  .nav-actions {
    gap: 6px;
  }

  .nav-cv {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* Featured multimedia project */
.featured-project {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  margin-bottom: 18px;
  overflow: hidden;
}

.featured-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #05070d;
}

.featured-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.featured-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.featured-body h3 {
  font-size: 1.6rem;
  margin: 8px 0;
}

.featured-body > p:not(.project-meta) {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 650px) {
  .featured-project {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }
}

@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .78rem; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-art { min-height: 330px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .container { width: min(var(--max), calc(100% - 30px)); }
  .nav { min-height: 66px; gap: 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 16px 22px 20px; background: #0c111e; border-bottom: 1px solid var(--panel-border); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .9rem; }
  .hero { padding-block: 55px 35px; gap: 5px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-art { min-height: 290px; }
  .code-window pre { padding: 18px; font-size: .72rem; }
  .orbit-one { width: 320px; height: 210px; }
  .orbit-two { width: 270px; height: 270px; }
  .chip-top { right: 0; top: 25px; }
  .chip-bottom { left: 0; bottom: 18px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-bottom: 35px; }
  .quick-facts div { padding: 16px; border-bottom: 1px solid var(--panel-border); }
  .quick-facts div:nth-child(2) { border-right: 0; }
  .quick-facts div:nth-child(3), .quick-facts div:nth-child(4) { border-bottom: 0; }
  .section { padding-block: 35px 40px; }
  .row-heading { align-items: flex-start; flex-direction: column; }
  .about-grid, .skills-grid, .projects-grid, .games-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; }
  .project-body p { min-height: 0; }
  .about-copy, .about-note { padding: 22px; }
  .game-status { font-size: .6rem; }
  .contact-inner { padding-block: 65px; }
  .footer { flex-wrap: wrap; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
