:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --card: rgba(19, 23, 29, .94);
  --border: rgba(108, 171, 255, .13);
  --text: #f2f5f8;
  --muted: #8d98a6;
  --accent: #5aa7ff;
  --accent-bright: #8fc5ff;
  --accent-blue: #2f7fd8;
  --accent-soft: rgba(73, 151, 255, .11);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 24px 118px;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  cursor: url("hello-kitty-cursor.png") 32 32, auto;
}

body::before,
body::after {
  position: fixed;
  inset: -20%;
  z-index: -2;
  content: "";
  pointer-events: none;
}

body::before {
  opacity: .55;
  background-image:
    radial-gradient(ellipse 2px 9px at 8% 15%, rgba(154, 194, 245, .30) 0 35%, transparent 70%),
    radial-gradient(ellipse 1px 5px at 24% 72%, rgba(94, 145, 211, .21) 0 35%, transparent 70%),
    radial-gradient(ellipse 3px 13px at 42% 36%, rgba(132, 177, 233, .20) 0 30%, transparent 68%),
    radial-gradient(ellipse 1px 6px at 63% 82%, rgba(77, 126, 188, .22) 0 35%, transparent 70%),
    radial-gradient(ellipse 2px 10px at 79% 20%, rgba(151, 194, 246, .25) 0 30%, transparent 68%),
    radial-gradient(ellipse 1px 4px at 94% 61%, rgba(94, 145, 211, .23) 0 35%, transparent 70%);
  background-size: 270px 310px, 190px 260px, 330px 390px, 230px 290px, 300px 360px, 170px 240px;
  filter: blur(1.5px);
  transform: scale(1.15) rotate(2deg);
  animation: rain-fall 4.2s linear infinite;
}


body::after {
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(7, 10, 15, .52), rgba(5, 7, 11, .84)),
    radial-gradient(ellipse at 24% 45%, rgba(36, 96, 166, .19), transparent 31%),
    radial-gradient(ellipse at 78% 42%, rgba(16, 61, 116, .23), transparent 32%),
    url("background.gif");
  background-position: center, center, center, center;
  background-size: cover, cover, cover, cover;
  filter: saturate(.72) contrast(1.09) brightness(.57) blur(1px);
  opacity: .86;
}

@keyframes rain-fall {
  to { background-position: 22px 330px, -18px 280px, 30px 420px, -12px 320px, 20px 390px, -10px 270px; }
}

#rain-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(83, 160, 255, .16), rgba(39, 100, 176, .09) 38%, transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transition: transform .12s ease-out;
}

.profile-card {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  width: min(100%, 520px);
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23, 28, 35, .98), var(--card));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.profile-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .035), transparent 28%, transparent 70%, rgba(66, 137, 225, .045));
}

.profile-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--shine-x) var(--shine-y), rgba(92, 165, 255, .13), rgba(37, 93, 161, .055) 37%, transparent 72%);
  transition: opacity .28s ease;
}

.profile-card:hover::after { opacity: 1; }

.visit-counter {
  position: fixed;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(205, 208, 212, .58);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.visit-counter svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  width: min(680px, calc(100vw - 150px));
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 158, 245, .18);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(22, 27, 34, .95), rgba(13, 17, 22, .94));
  box-shadow: 0 16px 55px rgba(0, 0, 0, .46), 0 0 34px rgba(34, 99, 178, .07), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.music-player::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, .028), transparent 36%, rgba(55, 132, 224, .045));
}

.player-track,
.player-center,
.player-volume { position: relative; z-index: 1; }

.player-track {
  min-width: 0;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-cover-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.player-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}

.player-cover-glow {
  position: absolute;
  inset: 6px;
  z-index: 0;
  border-radius: 10px;
  background: var(--accent);
  opacity: .34;
  filter: blur(13px);
}

.player-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.player-meta strong,
.player-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-meta strong {
  color: #eeeeef;
  font-size: 12px;
  font-weight: 650;
}

.player-meta span {
  color: #8e9399;
  font-size: 10px;
}

.player-center {
  min-width: 0;
  width: 300px;
  justify-self: center;
  display: grid;
  gap: 7px;
}

.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.player-icon-button,
.player-play {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(182, 205, 235, .76);
  background: transparent;
  cursor: url("hello-kitty-cursor.png") 32 32, auto;
  transition: color .18s, transform .18s, background .18s, box-shadow .18s;
}

.player-icon-button {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}

.player-icon-button:hover {
  color: #fff;
  background: rgba(75, 145, 235, .09);
  transform: translateY(-1px);
}

.player-play {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(130, 190, 255, .48);
  border-radius: 50%;
  color: #07111d;
  background: linear-gradient(145deg, #8dc8ff, #4b93e7);
  box-shadow: 0 0 20px rgba(70, 151, 245, .24);
}

.player-play:hover {
  transform: scale(1.055);
  box-shadow: 0 0 25px rgba(70, 151, 245, .34);
}

.player-icon-button svg,
.player-play svg,
.player-volume svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-play .player-play-icon { fill: currentColor; stroke: none; margin-left: 2px; }
.player-pause-icon { display: none; }
.player-play.is-playing .player-play-icon { display: none; }
.player-play.is-playing .player-pause-icon { display: block; }

.player-progress-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.player-time {
  color: rgba(158, 180, 207, .64);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-time:first-child { text-align: right; }
.player-time:last-child { text-align: left; }

.player-progress,
.volume-slider {
  --range-progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  height: 14px;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: url("hello-kitty-cursor.png") 32 32, auto;
}

.player-progress { width: 100%; }

.player-progress::-webkit-slider-runnable-track,
.volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 var(--range-progress), rgba(174, 194, 218, .25) var(--range-progress) 100%);
}

.player-progress::-moz-range-track,
.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(174, 194, 218, .25);
}

.player-progress::-moz-range-progress,
.volume-slider::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.player-progress::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 2px solid #d8eaff;
  border-radius: 50%;
  background: #5aa7ff;
  box-shadow: 0 0 0 3px rgba(73, 151, 255, .10), 0 0 11px rgba(73, 151, 255, .22);
}

.player-progress::-moz-range-thumb,
.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #d8eaff;
  border-radius: 50%;
  background: #5aa7ff;
  box-shadow: 0 0 0 3px rgba(73, 151, 255, .10), 0 0 11px rgba(73, 151, 255, .22);
}

.player-volume {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: rgba(151, 184, 225, .66);
}

.player-volume svg { width: 16px; height: 16px; flex: 0 0 16px; }
.volume-slider { width: 74px; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  pointer-events: none;
  opacity: .22;
}

.glow-one { width: 170px; height: 170px; top: -80px; right: -50px; background: #388fe8; }
.glow-two { width: 140px; height: 140px; bottom: 70px; left: -90px; background: #164f8f; }

.profile-header,
.contact-row,
.project,
.tech-list,
.intro,
.section { position: relative; z-index: 1; }

.profile-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: left;
}

.avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}

.avatar-wrap::before {
  position: absolute;
  inset: -6px;
  content: "";
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0 20%, rgba(107, 181, 255, .88), rgba(35, 104, 184, .82), transparent 72% 100%);
  filter: blur(1px);
  opacity: .72;
  animation: avatar-ring 7s linear infinite;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 3px solid rgba(102, 171, 248, .62);
  border-radius: 50%;
  background: #24272a;
  box-shadow: 0 0 0 6px rgba(61, 133, 218, .08), 0 10px 28px rgba(0, 0, 0, .32), 0 0 22px rgba(49, 123, 211, .10);
}

.avatar-question {
  position: absolute;
  top: -34px;
  right: -7px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(103, 173, 255, .34);
  border-radius: 50%;
  color: #f1f2f3;
  background: rgba(17, 23, 31, .97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34), 0 0 20px rgba(69, 145, 235, .18);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px) scale(.55) rotate(-12deg);
  pointer-events: none;
}

.avatar-question::after {
  position: absolute;
  left: 5px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 1px solid rgba(205, 210, 215, .22);
  border-bottom: 1px solid rgba(205, 210, 215, .22);
  background: rgba(17, 23, 31, .97);
  transform: rotate(45deg);
}

.avatar-wrap:hover .avatar-question {
  animation: avatar-question-pop 1.35s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes avatar-question-pop {
  0% { opacity: 0; transform: translateY(11px) scale(.52) rotate(-12deg); }
  18% { opacity: 1; transform: translateY(-3px) scale(1.11) rotate(5deg); }
  32% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  70% { opacity: 1; transform: translateY(-2px) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-13px) scale(.82) rotate(7deg); }
}

.avatar-status {
  position: absolute;
  right: 1px;
  bottom: 4px;
  z-index: 3;
  width: 14px;
  height: 14px;
  border: 3px solid #232629;
  border-radius: 50%;
  background: #65747b;
  box-shadow: 0 0 10px rgba(101, 116, 123, .35);
}

@keyframes avatar-ring { to { transform: rotate(360deg); } }

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: -.06em;
}

.dot { color: var(--accent); text-shadow: 0 0 18px rgba(67, 151, 248, .52); }

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65747b;
  box-shadow: 0 0 8px rgba(101, 116, 123, .35);
}

.status-dot {
  position: relative;
}

.discord-status.is-online .status-dot,
.avatar-status.is-online {
  background: #55e39d;
  box-shadow: 0 0 10px rgba(85, 227, 157, .64);
}

.discord-status.is-online .status-dot::after,
.avatar-status.is-online::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(85, 227, 157, .48);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: scale(.72);
  will-change: transform, opacity;
  animation: status-ring 2.2s cubic-bezier(.22,.61,.36,1) infinite;
}

.discord-status.is-offline .status-dot,
.avatar-status.is-offline {
  background: #65747b;
  box-shadow: 0 0 8px rgba(101, 116, 123, .35);
}

.discord-status.is-offline .status-dot::after,
.avatar-status.is-offline::after {
  content: none;
}

@keyframes status-ring {
  0% { opacity: 0; transform: scale(.72); }
  18% { opacity: .6; }
  70%, 100% { opacity: 0; transform: scale(1.7); }
}

.intro {
  max-width: 445px;
  margin: 26px 0 28px;
  color: #b1b4b8;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.intro strong { color: #eeeeef; font-weight: 600; }

.section { margin-top: 25px; }
.compact-section { margin-top: 28px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #a6aaaf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(80, 153, 240, .28), transparent);
}

.project-list { display: grid; gap: 9px; }

.project {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .032);
  text-align: left;
  transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
}


.project-link {
  color: inherit;
  text-decoration: none;
  cursor: url("hello-kitty-cursor.png") 32 32, auto;
}

.project-link:focus-visible {
  outline: 2px solid #69adf7;
  outline-offset: 3px;
}

.contact-static {
  cursor: url("hello-kitty-cursor.png") 32 32, auto;
}

.contact-static:hover {
  transform: none;
}

.contact-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  font-size: 14px;
  line-height: 1;
}

.contact-icon-mail {
  color: #fff;
}

.project:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 163, 247, .34);
  background: rgba(54, 119, 199, .075);
  box-shadow: 0 8px 25px rgba(20, 75, 140, .08);
}

.project-featured {
  border-color: rgba(84, 158, 246, .23);
  background: linear-gradient(105deg, rgba(50, 116, 196, .10), rgba(26, 57, 96, .035));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.project-logo { overflow: hidden; background: #081015; }
.project-logo img { width: 100%; height: 100%; object-fit: cover; }
.pfa-logo img { object-fit: contain; transform: scale(1.24); }
.code-icon { color: var(--accent-bright); background: rgba(255, 255, 255, .055); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.project-copy { min-width: 0; }
.project strong { display: block; margin-bottom: 4px; font-size: 13px; }
.project small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }

.project-badge {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid rgba(95, 165, 248, .22);
  border-radius: 7px;
  color: var(--accent-bright);
  background: rgba(58, 127, 210, .08);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #d5d7da;
  background: rgba(34, 71, 115, .045);
  font-size: 12px;
}

.tech img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  margin-top: 31px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-label {
  margin: 0;
  color: #81868c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #d1d4d7;
  background: rgba(255, 255, 255, .025);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}

.contact-button:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 164, 248, .36);
  color: white;
  background: rgba(48, 112, 191, .10);
}

.contact-button img { width: 16px; height: 16px; }
.button-arrow { color: var(--accent-bright); opacity: .75; }

@media (max-width: 440px) {
  body { padding: 12px 12px 132px; }
  .profile-card { width: 100%; padding: 24px 17px; border-radius: 20px; }
  .avatar-wrap, .avatar { width: 68px; height: 68px; }
  .avatar-wrap { flex-basis: 68px; }
  .avatar-question { top: -32px; right: -8px; }
  .intro { max-width: 100%; font-size: 13px; }
  .project small { max-width: 205px; }
  .visit-counter { left: 14px; bottom: 112px; }
  .music-player {
    bottom: 10px;
    width: calc(100vw - 22px);
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 9px 11px;
  }
  .player-track { grid-column: 1; }
  .player-center { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .player-volume { grid-column: 2; grid-row: 1; }
  .player-cover-wrap { width: 42px; height: 42px; flex-basis: 42px; }
  .volume-slider { width: 56px; }
  .player-progress-row { grid-template-columns: 27px minmax(80px, 1fr) 27px; gap: 5px; }

  .cursor-glow { display: none; }
}
