/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0; }

/**
 * Basic styling
 */
body {
  font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal; }

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px; }

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle; }

/**
 * Figures
 */
figure > img {
  display: block; }

figcaption {
  font-size: 14px; }

/**
 * Lists
 */
ul, ol {
  margin-left: 30px; }

li > ul,
li > ol {
  margin-bottom: 0; }

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400; }

/**
 * Links
 */
a {
  color: #2a7ae2;
  text-decoration: none; }
  a:visited {
    color: #1756a9; }
  a:hover {
    color: #111;
    text-decoration: underline; }

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic; }
  blockquote > :last-child {
    margin-bottom: 0; }

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef; }

code {
  padding: 1px 5px; }

pre {
  padding: 8px 12px;
  overflow-x: auto; }
  pre > code {
    border: 0;
    padding-right: 0;
    padding-left: 0; }

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(800px - (30px * 2));
  max-width: calc(800px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px; }
  @media screen and (max-width: 800px) {
    .wrapper {
      max-width: -webkit-calc(800px - (30px));
      max-width: calc(800px - (30px));
      padding-right: 15px;
      padding-left: 15px; } }

/**
 * Clearfix
 */
.wrapper:after, .footer-col-wrapper:after {
  content: "";
  display: table;
  clear: both; }

/**
 * Icons
 */
.icon > svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle; }
  .icon > svg path {
    fill: #828282; }

/**
 * Site header
 */
.site-header {
  border-top: 5px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 56px;
  position: relative; }

.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 56px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left; }
  .site-title, .site-title:visited {
    color: #424242; }

.site-nav {
  float: right;
  line-height: 56px; }
  .site-nav .menu-icon {
    display: none; }
  .site-nav .page-link {
    color: #111;
    line-height: 1.5; }
    .site-nav .page-link:not(:last-child) {
      margin-right: 20px; }
  @media screen and (max-width: 600px) {
    .site-nav {
      position: absolute;
      top: 9px;
      right: 15px;
      background-color: #fdfdfd;
      border: 1px solid #e8e8e8;
      border-radius: 5px;
      text-align: right; }
      .site-nav .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center; }
        .site-nav .menu-icon > svg {
          width: 18px;
          height: 15px; }
          .site-nav .menu-icon > svg path {
            fill: #424242; }
      .site-nav .trigger {
        clear: both;
        display: none; }
      .site-nav:hover .trigger {
        display: block;
        padding-bottom: 5px; }
      .site-nav .page-link {
        display: block;
        padding: 5px 10px;
        margin-left: 20px; }
        .site-nav .page-link:not(:last-child) {
          margin-right: 0; } }

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0; }

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px; }

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0; }

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-left: -15px; }

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px; }

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - (30px / 2)); }

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - (30px / 2)); }

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - (30px / 2)); }

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - (30px / 2)); }

  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2)); } }
@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2)); } }
/**
 * Page content
 */
.page-content {
  padding: 30px 0; }

.page-heading {
  font-size: 20px; }

.post-list {
  margin-left: 0;
  list-style: none; }
  .post-list > li {
    margin-bottom: 30px; }

.post-meta {
  font-size: 14px;
  color: #828282; }

.post-link {
  display: block;
  font-size: 24px; }

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px; }

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1; }
  @media screen and (max-width: 800px) {
    .post-title {
      font-size: 36px; } }

.post-content {
  margin-bottom: 30px; }
  .post-content h2 {
    font-size: 32px; }
    @media screen and (max-width: 800px) {
      .post-content h2 {
        font-size: 28px; } }
  .post-content h3 {
    font-size: 26px; }
    @media screen and (max-width: 800px) {
      .post-content h3 {
        font-size: 22px; } }
  .post-content h4 {
    font-size: 20px; }
    @media screen and (max-width: 800px) {
      .post-content h4 {
        font-size: 18px; } }

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff; }
  .highlighter-rouge .highlight {
    background: #eef; }
  .highlight .c {
    color: #998;
    font-style: italic; }
  .highlight .err {
    color: #a61717;
    background-color: #e3d2d2; }
  .highlight .k {
    font-weight: bold; }
  .highlight .o {
    font-weight: bold; }
  .highlight .cm {
    color: #998;
    font-style: italic; }
  .highlight .cp {
    color: #999;
    font-weight: bold; }
  .highlight .c1 {
    color: #998;
    font-style: italic; }
  .highlight .cs {
    color: #999;
    font-weight: bold;
    font-style: italic; }
  .highlight .gd {
    color: #000;
    background-color: #fdd; }
  .highlight .gd .x {
    color: #000;
    background-color: #faa; }
  .highlight .ge {
    font-style: italic; }
  .highlight .gr {
    color: #a00; }
  .highlight .gh {
    color: #999; }
  .highlight .gi {
    color: #000;
    background-color: #dfd; }
  .highlight .gi .x {
    color: #000;
    background-color: #afa; }
  .highlight .go {
    color: #888; }
  .highlight .gp {
    color: #555; }
  .highlight .gs {
    font-weight: bold; }
  .highlight .gu {
    color: #aaa; }
  .highlight .gt {
    color: #a00; }
  .highlight .kc {
    font-weight: bold; }
  .highlight .kd {
    font-weight: bold; }
  .highlight .kp {
    font-weight: bold; }
  .highlight .kr {
    font-weight: bold; }
  .highlight .kt {
    color: #458;
    font-weight: bold; }
  .highlight .m {
    color: #099; }
  .highlight .s {
    color: #d14; }
  .highlight .na {
    color: #008080; }
  .highlight .nb {
    color: #0086B3; }
  .highlight .nc {
    color: #458;
    font-weight: bold; }
  .highlight .no {
    color: #008080; }
  .highlight .ni {
    color: #800080; }
  .highlight .ne {
    color: #900;
    font-weight: bold; }
  .highlight .nf {
    color: #900;
    font-weight: bold; }
  .highlight .nn {
    color: #555; }
  .highlight .nt {
    color: #000080; }
  .highlight .nv {
    color: #008080; }
  .highlight .ow {
    font-weight: bold; }
  .highlight .w {
    color: #bbb; }
  .highlight .mf {
    color: #099; }
  .highlight .mh {
    color: #099; }
  .highlight .mi {
    color: #099; }
  .highlight .mo {
    color: #099; }
  .highlight .sb {
    color: #d14; }
  .highlight .sc {
    color: #d14; }
  .highlight .sd {
    color: #d14; }
  .highlight .s2 {
    color: #d14; }
  .highlight .se {
    color: #d14; }
  .highlight .sh {
    color: #d14; }
  .highlight .si {
    color: #d14; }
  .highlight .sx {
    color: #d14; }
  .highlight .sr {
    color: #009926; }
  .highlight .s1 {
    color: #d14; }
  .highlight .ss {
    color: #990073; }
  .highlight .bp {
    color: #999; }
  .highlight .vc {
    color: #008080; }
  .highlight .vg {
    color: #008080; }
  .highlight .vi {
    color: #008080; }
  .highlight .il {
    color: #099; }

/* Home page immersive experience */
body.home-page {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #e6ebff;
  background-color: #040612;
  margin: 0;
  overflow-x: hidden;
}

body.home-page a {
  color: #8fb5ff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.home-page a:hover,
body.home-page a:focus {
  color: #bfd6ff;
  text-decoration: none;
  opacity: 0.9;
}

.home-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px clamp(20px, 6vw, 104px);
  display: flex;
  justify-content: center;
  z-index: 5;
  background: linear-gradient(180deg, rgba(4, 6, 18, 0.95) 0%, rgba(4, 6, 18, 0.55) 60%, rgba(4, 6, 18, 0) 100%);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.home-header .header-inner {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.home-header .brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.home-header .header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1 1 auto;
  position: relative;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  z-index: 6;
}

.home-nav a {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(120, 147, 255, 0.25);
  background: rgba(4, 6, 18, 0.65);
  box-shadow: 0 12px 24px rgba(6, 10, 31, 0.28);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.language-button {
  border: none;
  background: transparent;
  color: rgba(214, 223, 255, 0.86);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-button:hover,
.language-button:focus {
  color: #ffffff;
}

.language-button:focus-visible {
  outline: 2px solid rgba(197, 210, 255, 0.6);
  outline-offset: 2px;
}

.language-button.is-active {
  background: linear-gradient(135deg, rgba(98, 123, 255, 0.9), rgba(155, 185, 255, 0.9));
  color: #050813;
  box-shadow: 0 10px 20px rgba(6, 10, 31, 0.35);
}

.theme-toggle {
  border: 1px solid rgba(191, 214, 255, 0.25);
  border-radius: 999px;
  background: rgba(4, 6, 18, 0.65);
  color: rgba(214, 223, 255, 0.9);
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(6, 10, 31, 0.28);
}

.theme-toggle:hover,
.theme-toggle:focus {
  color: #ffffff;
  background: rgba(4, 6, 18, 0.8);
  border-color: rgba(191, 214, 255, 0.45);
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(197, 210, 255, 0.6);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  border: 1px solid rgba(191, 214, 255, 0.25);
  border-radius: 999px;
  background: rgba(4, 6, 18, 0.6);
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 24%;
  right: 24%;
  height: 2px;
  background: #f5f7ff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::before {
  top: 34%;
}

.nav-toggle::after {
  top: 66%;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(4, 6, 18, 0.8);
  border-color: rgba(191, 214, 255, 0.45);
  outline: none;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 8vw;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(34, 71, 151, 0.45) 0%, rgba(4, 6, 18, 0.75) 55%, rgba(4, 6, 18, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

#space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  color: #f5f7ff;
}

.hero-overlay .tagline {
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(200, 214, 255, 0.75);
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-overlay .lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(223, 231, 255, 0.85);
  margin-bottom: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5c8cff 0%, #889dff 100%);
  color: #050813;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(102, 140, 255, 0.35);
}

.cta:hover,
.cta:focus {
  color: #050813;
  box-shadow: 0 16px 36px rgba(102, 140, 255, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  transition: border-color 0.2s ease, transform 0.3s ease;
}

.scroll-indicator span {
  width: 6px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.65);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
  border-color: rgba(255, 255, 255, 0.75);
  transform: translate(-50%, 4px);
}

@keyframes scrollPulse {
  0%,
  20% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.profile {
  position: relative;
  background: linear-gradient(180deg, rgba(6, 10, 31, 1) 0%, rgba(10, 14, 40, 1) 100%);
  padding: 120px 8vw;
}

.profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(84, 129, 255, 0.25), transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(126, 92, 255, 0.2), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.profile-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.profile-intro h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
  font-weight: 600;
}

.profile-intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(222, 231, 255, 0.8);
}

.info-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  background: rgba(9, 13, 38, 0.8);
  border: 1px solid rgba(120, 147, 255, 0.18);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 40px rgba(6, 10, 31, 0.35);
  backdrop-filter: blur(6px);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
  color: #f0f3ff;
}

.info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: rgba(222, 231, 255, 0.85);
  font-size: 0.98rem;
}

.info-card li::before {
  content: '✦';
  margin-right: 8px;
  color: rgba(173, 197, 255, 0.9);
}

.projects {
  position: relative;
  padding: 120px 8vw;
  background: radial-gradient(circle at 20% 20%, rgba(53, 90, 210, 0.18), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(118, 61, 223, 0.12), transparent 50%),
    rgba(4, 6, 18, 0.96);
  overflow: hidden;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 80%, rgba(140, 176, 255, 0.12), transparent 55%),
    radial-gradient(circle at 95% 60%, rgba(64, 119, 255, 0.1), transparent 50%);
  opacity: 0.65;
  pointer-events: none;
}

.projects-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 16px;
}

.section-header .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(173, 197, 255, 0.75);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #f5f7ff;
}

.section-header .description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(222, 231, 255, 0.8);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.projects-columns {
  display: grid;
  gap: 56px;
}

.projects-column {
  display: grid;
  gap: 24px;
}

.projects-column-header {
  display: grid;
  gap: 10px;
}

.projects-column-header h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f5f7ff;
  margin: 0;
}

.projects-column-header p {
  margin: 0;
  font-size: 1rem;
  color: rgba(222, 231, 255, 0.75);
}

.project-card {
  position: relative;
  background: rgba(9, 13, 38, 0.82);
  border: 1px solid rgba(120, 147, 255, 0.16);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 50px rgba(6, 10, 31, 0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(120, 147, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(158, 182, 255, 0.45);
  box-shadow: 0 34px 65px rgba(8, 12, 36, 0.5);
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 600;
  color: #f1f4ff;
}

.project-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(214, 223, 255, 0.82);
}

.project-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(140, 176, 255, 0.35);
  color: #c7d5ff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-links a:hover,
.project-links a:focus {
  color: #050813;
  background: linear-gradient(135deg, #6e8fff 0%, #a1b4ff 100%);
  border-color: transparent;
}

.playground {
  position: relative;
  padding: 120px 8vw 140px;
  background: linear-gradient(180deg, rgba(7, 9, 24, 1) 0%, rgba(4, 6, 18, 1) 100%);
}

.playground::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 28%, rgba(120, 147, 255, 0.2), transparent 52%),
    radial-gradient(circle at 82% 72%, rgba(103, 74, 255, 0.22), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.playground-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 56px;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.playground-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  background: rgba(9, 13, 38, 0.85);
  border: 1px solid rgba(120, 147, 255, 0.16);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 26px 50px rgba(6, 10, 31, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.playground-card:hover,
.playground-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(158, 182, 255, 0.42);
  box-shadow: 0 34px 64px rgba(8, 12, 36, 0.5);
}

.playground-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(43, 62, 143, 0.35) 0%, rgba(103, 88, 194, 0.25) 100%);
  border: 1px solid rgba(140, 176, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(140, 176, 255, 0.08);
}

.playground-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  border-radius: 16px;
  background: rgba(10, 15, 45, 0.65);
  box-shadow: 0 10px 24px rgba(7, 12, 33, 0.45);
}

.playground-meta h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f5f7ff;
}

.playground-subtitle {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(197, 210, 255, 0.65);
}

.playground-content {
  display: grid;
  gap: 20px;
}

.playground-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(214, 223, 255, 0.82);
}

.playground-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.playground-link {
  justify-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(140, 176, 255, 0.35);
  color: #c7d5ff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.playground-link:hover,
.playground-link:focus {
  color: #050813;
  background: linear-gradient(135deg, #7a9aff 0%, #a3b7ff 100%);
  border-color: transparent;
}

.publications {
  position: relative;
  padding: 120px 8vw;
  background: radial-gradient(circle at 10% 20%, rgba(82, 112, 224, 0.18), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(107, 76, 215, 0.12), transparent 55%),
    rgba(4, 6, 18, 0.96);
}

.publications-wrapper {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.publication-card {
  display: grid;
  gap: 24px;
  padding: 36px;
  border-radius: 24px;
  background: rgba(9, 13, 38, 0.82);
  border: 1px solid rgba(120, 147, 255, 0.16);
  box-shadow: 0 24px 50px rgba(6, 10, 31, 0.4);
}

.publication-content {
  display: grid;
  gap: 12px;
  color: rgba(214, 223, 255, 0.85);
}

.publication-content h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #f5f7ff;
}

.publication-content p {
  margin: 0;
  line-height: 1.8;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer {
  text-align: center;
  padding: 48px 8vw;
  background: #050817;
  color: rgba(198, 208, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-page.theme-light {
  color: #1b2340;
  background-color: #f5f7ff;
}

body.home-page.theme-light a {
  color: #2b5fd6;
}

body.home-page.theme-light a:hover,
body.home-page.theme-light a:focus {
  color: #1b2b5a;
}

body.home-page.theme-light .home-header {
  background: linear-gradient(180deg, rgba(245, 247, 255, 0.95) 0%, rgba(245, 247, 255, 0.7) 60%, rgba(245, 247, 255, 0) 100%);
}

body.home-page.theme-light .home-header .brand {
  color: #1b2340;
}

body.home-page.theme-light .language-toggle {
  border-color: rgba(43, 95, 214, 0.2);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(42, 56, 96, 0.12);
}

body.home-page.theme-light .language-button {
  color: rgba(35, 48, 92, 0.8);
}

body.home-page.theme-light .language-button:hover,
body.home-page.theme-light .language-button:focus {
  color: #1b2340;
}

body.home-page.theme-light .language-button.is-active {
  background: linear-gradient(135deg, #5a8eff 0%, #9bb8ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(42, 56, 96, 0.18);
}

body.home-page.theme-light .theme-toggle {
  border-color: rgba(43, 95, 214, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(35, 48, 92, 0.8);
  box-shadow: 0 12px 24px rgba(42, 56, 96, 0.12);
}

body.home-page.theme-light .theme-toggle:hover,
body.home-page.theme-light .theme-toggle:focus {
  color: #1b2340;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(43, 95, 214, 0.4);
}

body.home-page.theme-light .nav-toggle {
  border-color: rgba(43, 95, 214, 0.25);
  background: rgba(255, 255, 255, 0.85);
}

body.home-page.theme-light .nav-toggle span,
body.home-page.theme-light .nav-toggle::before,
body.home-page.theme-light .nav-toggle::after {
  background: #1b2340;
}

body.home-page.theme-light .hero::after {
  background: radial-gradient(circle at 50% 40%, rgba(123, 168, 255, 0.35) 0%, rgba(240, 244, 255, 0.85) 55%, rgba(245, 247, 255, 0.95) 100%);
}

body.home-page.theme-light .hero-overlay {
  color: #1b2340;
}

body.home-page.theme-light .hero-overlay .tagline {
  color: rgba(64, 86, 160, 0.7);
}

body.home-page.theme-light .hero-overlay h1 {
  color: #1a2040;
}

body.home-page.theme-light .hero-overlay .lead {
  color: rgba(43, 58, 110, 0.85);
}

body.home-page.theme-light .cta {
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(74, 112, 214, 0.25);
}

body.home-page.theme-light .cta:hover,
body.home-page.theme-light .cta:focus {
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(74, 112, 214, 0.35);
}

body.home-page.theme-light .scroll-indicator {
  border-color: rgba(50, 74, 150, 0.4);
}

body.home-page.theme-light .scroll-indicator span {
  background: rgba(50, 74, 150, 0.55);
}

body.home-page.theme-light .profile {
  background: linear-gradient(180deg, rgba(243, 246, 255, 1) 0%, rgba(235, 240, 255, 1) 100%);
}

body.home-page.theme-light .profile::before {
  opacity: 0.4;
}

body.home-page.theme-light .profile-intro p {
  color: rgba(39, 52, 98, 0.8);
}

body.home-page.theme-light .info-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(160, 182, 255, 0.35);
  box-shadow: 0 20px 40px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light .info-card h3 {
  color: #1b2340;
}

body.home-page.theme-light .info-card ul {
  color: rgba(39, 52, 98, 0.75);
}

body.home-page.theme-light .info-card li::before {
  color: rgba(88, 120, 214, 0.75);
}

body.home-page.theme-light .projects {
  background: radial-gradient(circle at 20% 20%, rgba(122, 160, 255, 0.2), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(160, 120, 255, 0.18), transparent 50%),
    rgba(242, 246, 255, 0.95);
}

body.home-page.theme-light .projects::before {
  opacity: 0.3;
}

body.home-page.theme-light .section-header .eyebrow {
  color: rgba(64, 86, 160, 0.7);
}

body.home-page.theme-light .section-header h2 {
  color: #1a2040;
}

body.home-page.theme-light .section-header .description {
  color: rgba(39, 52, 98, 0.78);
}

body.home-page.theme-light .projects-column-header h3 {
  color: #1a2040;
}

body.home-page.theme-light .projects-column-header p {
  color: rgba(39, 52, 98, 0.7);
}

body.home-page.theme-light .project-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 182, 255, 0.3);
  box-shadow: 0 22px 40px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light .project-content h3 {
  color: #1b2340;
}

body.home-page.theme-light .project-content p {
  color: rgba(39, 52, 98, 0.75);
}

body.home-page.theme-light .project-links a {
  border-color: rgba(110, 146, 240, 0.55);
  color: rgba(32, 60, 132, 0.9);
}

body.home-page.theme-light .project-links a:hover,
body.home-page.theme-light .project-links a:focus {
  color: #ffffff;
}

body.home-page.theme-light .playground {
  background: linear-gradient(180deg, rgba(240, 244, 255, 1) 0%, rgba(233, 239, 255, 1) 100%);
}

body.home-page.theme-light .playground::before {
  opacity: 0.35;
}

body.home-page.theme-light .playground-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 182, 255, 0.3);
  box-shadow: 0 22px 40px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light .playground-header {
  background: linear-gradient(135deg, rgba(110, 146, 240, 0.2) 0%, rgba(164, 142, 255, 0.2) 100%);
  border-color: rgba(120, 150, 240, 0.25);
}

body.home-page.theme-light .playground-icon {
  background: rgba(235, 241, 255, 0.85);
  box-shadow: 0 10px 24px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light .playground-meta h3 {
  color: #1b2340;
}

body.home-page.theme-light .playground-subtitle {
  color: rgba(64, 86, 160, 0.7);
}

body.home-page.theme-light .playground-content p {
  color: rgba(39, 52, 98, 0.78);
}

body.home-page.theme-light .playground-link {
  border-color: rgba(110, 146, 240, 0.55);
  color: rgba(32, 60, 132, 0.9);
}

body.home-page.theme-light .playground-link:hover,
body.home-page.theme-light .playground-link:focus {
  color: #ffffff;
}

body.home-page.theme-light .publications {
  background: radial-gradient(circle at 10% 20%, rgba(122, 160, 255, 0.2), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(160, 120, 255, 0.18), transparent 55%),
    rgba(242, 246, 255, 0.95);
}

body.home-page.theme-light .publication-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 182, 255, 0.3);
  box-shadow: 0 22px 40px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light .publication-content {
  color: rgba(39, 52, 98, 0.78);
}

body.home-page.theme-light .publication-content h3 {
  color: #1b2340;
}

body.home-page.theme-light .home-footer {
  background: #eef2ff;
  color: rgba(39, 52, 98, 0.6);
}

body.home-page.theme-light.nav-enhanced .home-nav {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(160, 182, 255, 0.3);
  box-shadow: 0 16px 30px rgba(47, 65, 120, 0.12);
}

body.home-page.theme-light.nav-enhanced .home-nav a {
  border-bottom-color: rgba(160, 182, 255, 0.2);
}

@media (max-width: 900px) {
  .home-header {
    padding: 20px clamp(18px, 7vw, 88px);
  }

  .home-header .header-inner {
    gap: 24px;
  }

  .home-header .header-controls {
    gap: 16px;
  }

  .home-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 0 6vw;
  }

  .profile {
    padding: 100px 6vw;
  }

  .projects {
    padding: 100px 6vw;
  }

  .playground {
    padding: 100px 6vw 120px;
  }
}

@media (max-width: 640px) {
  .home-header {
    padding: 18px clamp(18px, 8vw, 80px);
  }

  .home-header .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .home-header .header-controls {
    width: 100%;
    gap: 12px;
  }

  .language-toggle {
    order: 2;
  }

  .theme-toggle {
    order: 3;
  }

  .home-header .nav-toggle {
    margin-left: auto;
  }

  body.nav-enhanced .home-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 clamp(18px, 8vw, 80px);
    max-height: 0;
    overflow: hidden;
    background: rgba(4, 6, 18, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(120, 147, 255, 0.15);
    box-shadow: 0 16px 30px rgba(6, 10, 31, 0.35);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  body.nav-enhanced .home-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(120, 147, 255, 0.12);
  }

  body.nav-enhanced .home-nav a:last-child {
    border-bottom: none;
  }

  body.nav-enhanced .home-nav.is-open {
    padding: 12px clamp(18px, 8vw, 80px) 20px;
    max-height: 320px;
  }

  body.nav-enhanced .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 560px;
    padding-top: 120px;
  }

  .hero-overlay .tagline {
    letter-spacing: 0.25em;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .profile {
    padding: 80px 6vw;
  }

  .projects {
    padding: 80px 6vw;
  }

  .playground {
    padding: 80px 6vw 100px;
  }
}

@media (max-width: 480px) {
  .home-header {
    padding: 16px clamp(16px, 9vw, 72px);
  }

  .home-header .header-inner {
    gap: 10px;
  }

  .hero {
    padding: 140px 5vw 80px;
    align-items: flex-start;
  }

  .hero-overlay {
    text-align: left;
  }

  .hero-overlay .tagline {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
  }

  .hero-overlay p.lead {
    font-size: 0.95rem;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .profile {
    padding: 72px 5vw;
  }

  .projects {
    padding: 72px 5vw;
  }

  .playground {
    padding: 72px 5vw 90px;
  }
}

@media (max-width: 360px) {
  .hero-overlay h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .info-card {
    padding: 22px;
  }

  body.nav-enhanced .home-nav.is-open {
    padding-bottom: 16px;
  }
}
