:root {
  --bg: #010203;
  --ink: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.72);
  --soft: rgba(244, 247, 251, 0.45);
  --line: rgba(255, 255, 255, 0.4);
  --edge: rgba(255, 255, 255, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 85, 120, 0.2), transparent 32%),
    radial-gradient(circle at 80% 8%, rgba(5, 42, 72, 0.17), transparent 28%),
    var(--bg);
  font-family: "IBM Plex Mono", monospace;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.18;
}

#clickBurst {
  position: fixed;
  left: var(--click-x, 50vw);
  top: var(--click-y, 50vh);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(0, 143, 191, 0.18), transparent 72%);
}

body.transitioning #clickBurst {
  animation: burst 950ms cubic-bezier(0.21, 0.69, 0.14, 1);
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

.screen-intro {
  backdrop-filter: blur(22px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.92)),
    url("intro-bg.jpg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: backdrop-filter 0.6s ease;
}

.screen-intro:hover {
  backdrop-filter: blur(18px);
}

.screen-intro.active:focus {
  outline: none;
}

.screen-intro .intro-content {
  text-align: center;
  width: min(90vw, 840px);
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.screen-intro:hover .intro-content {
  transform: translateY(-6px);
}

.quote {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(0, 129, 175, 0.22);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.screen-intro:hover .quote {
  transform: scale(1.02);
  text-shadow: 0 0 50px rgba(100, 180, 255, 0.35);
}

.hint {
  margin: 1.2rem 0 0;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--soft);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

.btn {
  display: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.75rem, 2.2vw, 0.92rem);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(12, 16, 20, 0.9);
  box-shadow: 0 0 24px rgba(120, 198, 255, 0.26);
}

.screen-profile {
  transform: scale(1.04);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.8)),
    url("Untitled.jpg");
  background-size: cover;
  background-position: center;
}

.screen-profile.active {
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 35%, rgba(12, 133, 163, 0.18), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(15, 64, 120, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.74));
}

.card {
  position: relative;
  z-index: 2;
  width: min(92vw, 520px);
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(3px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transition: all 0.4s cubic-bezier(0.21, 0.69, 0.14, 1);
  cursor: default;
}

.screen-profile:hover .card {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 90px rgba(120, 200, 255, 0.25), 0 24px 70px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(8, 16, 28, 0.48);
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background-image:
    linear-gradient(145deg, rgba(73, 110, 133, 0.45), rgba(8, 9, 12, 0.88)),
    url("Q64AJYC.png");
  background-size: cover;
  background-position: center;  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.screen-profile:hover .avatar {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 0 4px rgba(120, 200, 255, 0.4), 0 0 30px rgba(120, 200, 255, 0.3);
  border-color: rgba(255, 255, 255, 1);}

.profile-text h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  line-height: 0.85;
  letter-spacing: 0.03em;
  transition: all 0.4s ease;
}

.screen-profile:hover .profile-text h2 {
  transform: translateX(4px);
  color: #ffffff;
  text-shadow: 0 0 20px rgba(120, 200, 255, 0.4);
}

.status {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bio {
  margin: 0.9rem 0 0;
  color: var(--soft);
  line-height: 1.6;
  min-height: 3.4em;
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.btn-small {
  margin-top: 0.15rem;
}

body.transitioning .screen-intro.active {
  transform: scale(1.08);
  filter: blur(8px);
  opacity: 0;
  backdrop-filter: blur(0);
}

.screen-profile {
  backdrop-filter: none;
}

@keyframes burst {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.12;
  }
  45% {
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(30);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .card {
    width: min(94vw, 420px);
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.35rem 1rem;
  }

  .profile-text {
    width: 100%;
  }

  .actions {
    justify-content: center;
  }

  .quote {
    font-size: clamp(1.6rem, 10vw, 3rem);
  }
}
