@font-face {
  font-family: "Sinistre";
  src: url("fonts/Sinistre-StCaroline.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --accent: #00d6e8;
  --accent-rgb: 0, 214, 232;
  --accent-soft: rgba(var(--accent-rgb), 0.13);
  --text: #f4f7fb;
  --muted: #8995a5;
  --panel: rgba(8, 12, 19, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --font: "Segoe UI", Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background: #05070b;
  overflow-x: hidden;
}
button,
a,
input {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #05070b;
}
.backdrop__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.43;
  filter: saturate(0.72) contrast(1.08);
}
.backdrop__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(3, 6, 11, 0.94),
    rgba(3, 7, 13, 0.56) 55%,
    rgba(3, 6, 11, 0.86)
  );
}
.backdrop__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.backdrop__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}
.site-shell {
  min-height: 100vh;
  max-width: 1440px;
  margin: auto;
  padding: 0 6.2vw;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 800;
}
.wordmark__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
  font-family: Sinistre, serif;
  font-size: 19px;
}
.wordmark__mark::first-letter {
  transform: rotate(-45deg);
}
.wordmark__dim {
  color: var(--muted);
}
.topbar__status,
.eyebrow,
.live-label,
.site-footer,
.theme-picker__label {
  font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}
.topbar__status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9b5c4;
}
.status-dot,
.enter-button__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.25s;
}
.icon-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 42px;
  perspective: 1200px;
}
.profile-card,
.skills-card {
  width: min(790px, 100%);
  min-height: 350px;
  position: relative;
  overflow: hidden;
  padding: 27px 32px 24px;
  background: var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 50px var(--accent-soft),
    inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
}
.profile-card::before,
.skills-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    rgba(var(--accent-rgb), 0.09),
    transparent 35%,
    transparent 70%,
    rgba(255, 255, 255, 0.035)
  );
}
.card-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.12) 4px
  );
  mask-image: linear-gradient(to right, transparent, black, transparent);
}
.card-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  color: #aab4c1;
}
.eyebrow__slash {
  color: var(--accent);
  padding: 0 5px;
}
.live-label {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}
.live-label .status-dot {
  width: 5px;
  height: 5px;
}
.profile-layout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 38px 8px 31px;
}
.avatar-wrap {
  flex: 0 0 146px;
  width: 146px;
  height: 146px;
  position: relative;
  display: grid;
  place-items: center;
}
.avatar {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 28px var(--accent-soft);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: orbit 5s linear infinite;
}
.avatar-ring::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  position: absolute;
  top: 12px;
  left: 14px;
}
.avatar-ring--inner {
  inset: 9px;
  opacity: 0.42;
  animation-direction: reverse;
  animation-duration: 8s;
}
.avatar-status {
  position: absolute;
  z-index: 3;
  width: 17px;
  height: 17px;
  bottom: 13px;
  right: 14px;
  border-radius: 50%;
  background: #42df91;
  border: 3px solid #0a1119;
  box-shadow: 0 0 13px rgba(66, 223, 145, 0.65);
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.identity {
  min-width: 0;
  flex: 1;
}
.identity__meta {
  color: var(--muted);
  font: 600 10px ui-monospace, monospace;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
#profile-name {
  margin: 0;
  font-family: Sinistre, Georgia, serif;
  font-size: clamp(35px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: linear-gradient(100deg, #fff 10%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-index {
  font-family: var(--font);
  font-size: 0.38em;
  vertical-align: top;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.badges {
  display: flex;
  gap: 7px;
}
.badge-wrap {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.badge-wrap img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090e16;
  color: white;
  font-size: 11px;
  transition: 0.2s;
}
.badge-wrap:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.bio-line {
  margin: 15px 0 7px;
  color: #d9e3ed;
  font: 500 13px ui-monospace, monospace;
}
.prompt {
  color: var(--accent);
}
.typing-cursor {
  color: var(--accent);
  animation: blink 0.8s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
.intro-copy {
  margin: 0;
  max-width: 440px;
  color: #8996a6;
  font-size: 13px;
  line-height: 1.7;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.tag-list span {
  padding: 6px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: var(--accent-soft);
  color: #c7e9ed;
  border-radius: 5px;
  font: 600 9px ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.card-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.17),
    transparent
  );
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
}
.visitor-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c4d0;
  font: 600 10px ui-monospace, monospace;
  letter-spacing: 0.12em;
}
.visitor-counter svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}
.visitor-counter__number {
  color: white;
}
.visitor-counter__label {
  color: var(--muted);
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.social-links a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.social-links img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.skills-card {
  min-height: 350px;
}
.skills-card h2 {
  position: relative;
  margin: 38px 0 7px;
  font-size: clamp(32px, 5vw, 43px);
  letter-spacing: -0.04em;
}
.skills-card h2 span {
  color: var(--accent);
}
.skills-intro,
.skills-note {
  color: var(--muted);
  font-size: 13px;
}
.skill-list {
  position: relative;
  margin-top: 32px;
  max-width: 520px;
}
.skill__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font: 600 12px ui-monospace, monospace;
}
.skill__top span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.skill__top img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.skill__top strong {
  color: var(--accent);
}
.skill__track {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.skill__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #a7f8ff);
  box-shadow: 0 0 15px var(--accent);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skills-card.is-visible .skill__track span {
  width: 15%;
}
.skills-note {
  margin-top: 25px;
  font-size: 11px;
}
.is-hidden {
  display: none !important;
}
.page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.page-switch {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.76);
  color: var(--text);
  font: 700 10px ui-monospace, monospace;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: 0.25s;
}
.page-switch:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.page-switch__icon,
.page-switch__arrow {
  color: var(--accent);
  font-size: 15px;
}
.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.72);
}
.theme-picker__label {
  color: var(--muted);
  font-size: 9px;
  margin-right: 4px;
}
.theme-swatch {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #00d6e8;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}
.theme-swatch:hover,
.theme-swatch.is-active {
  transform: scale(1.18);
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.theme-swatch--hacker {
  background: #42ed70;
}
.theme-swatch--rain {
  background: #719dff;
}
.theme-swatch--anime {
  background: #f05bce;
}
.theme-swatch--car {
  background: #ff9b45;
}
.site-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #687586;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
}
.site-footer b {
  color: var(--accent);
  padding-left: 5px;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.volume-control label {
  color: #a4afbc;
}
.volume-control input {
  width: 82px;
  accent-color: var(--accent);
  cursor: pointer;
}
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 11, 0.91);
  backdrop-filter: blur(18px);
  transition: opacity 0.7s, visibility 0.7s;
}
.start-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.start-screen__content {
  text-align: center;
  animation: rise 0.8s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.start-screen__orb {
  width: 76px;
  height: 76px;
  margin: 0 auto 25px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 45px var(--accent-soft), inset 0 0 25px var(--accent-soft);
}
.start-screen__orb span {
  width: 23px;
  height: 23px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(0.65);
    opacity: 0.6;
  }
}
.start-screen__overline {
  color: var(--muted);
  font: 600 10px ui-monospace, monospace;
  letter-spacing: 0.22em;
}
.start-screen__overline span {
  color: var(--accent);
}
.start-screen h2 {
  margin: 24px 0 30px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.start-screen h2 em {
  color: var(--accent);
  font-style: normal;
}
.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.65);
  border-radius: 7px;
  background: var(--accent-soft);
  font: 700 10px ui-monospace, monospace;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: 0.25s;
}
.enter-button:hover {
  background: rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 0 30px var(--accent-soft);
  transform: translateY(-2px);
}
.enter-button > span:last-child {
  color: var(--accent);
  font-size: 16px;
}
.enter-button__dot {
  width: 6px;
  height: 6px;
}
.start-screen__hint {
  margin-top: 19px;
  color: #667282;
  font: 9px ui-monospace, monospace;
  letter-spacing: 0.14em;
}
.theme-hacker {
  --accent: #42ed70;
  --accent-rgb: 66, 237, 112;
}
.theme-rain {
  --accent: #719dff;
  --accent-rgb: 113, 157, 255;
}
.theme-anime {
  --accent: #f05bce;
  --accent-rgb: 240, 91, 206;
}
.theme-car {
  --accent: #ff9b45;
  --accent-rgb: 255, 155, 69;
}
.theme-hacker .backdrop__image {
  filter: grayscale(1) contrast(1.3);
  opacity: 0.2;
}
.theme-rain .backdrop__image {
  filter: hue-rotate(30deg) saturate(0.65);
}
.theme-anime .backdrop__image {
  filter: hue-rotate(100deg) saturate(0.8);
}
.theme-car .backdrop__image {
  filter: sepia(0.35) saturate(1.3);
}
@media (max-width: 650px) {
  .site-shell {
    padding: 0 20px;
  }
  .topbar {
    height: 68px;
  }
  .topbar__status {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .main-content {
    padding: 38px 0 28px;
  }
  .profile-card,
  .skills-card {
    padding: 21px 19px;
    min-height: 0;
  }
  .profile-layout {
    flex-direction: column;
    text-align: center;
    gap: 19px;
    padding: 30px 0 24px;
  }
  .avatar-wrap {
    flex-basis: 126px;
    width: 126px;
    height: 126px;
  }
  .avatar {
    width: 108px;
    height: 108px;
  }
  .avatar-status {
    bottom: 10px;
    right: 10px;
  }
  .name-row {
    justify-content: center;
  }
  .identity__meta {
    margin-bottom: 10px;
  }
  .bio-line {
    margin-top: 13px;
  }
  .intro-copy {
    margin-inline: auto;
  }
  .tag-list {
    justify-content: center;
  }
  .card-footer {
    flex-direction: column-reverse;
    gap: 15px;
  }
  .page-controls {
    flex-direction: column;
    width: 100%;
  }
  .page-switch,
  .theme-picker {
    justify-content: center;
  }
  .site-footer {
    padding: 17px 0;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .site-footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 380px) {
  .topbar__status {
    display: none;
  }
  .name-row {
    gap: 8px;
  }
  #profile-name {
    font-size: 35px;
  }
  .badges {
    gap: 5px;
  }
  .badge-wrap {
    width: 27px;
    height: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
