:root {
  --text: #f0fafa;
  --muted: #88bbbb;
  --line: rgba(14, 206, 206, 0.22);
  --panel: rgba(6, 20, 20, 0.88);
  --panel-strong: rgba(10, 28, 28, 0.96);
  --teal: #0ecece;
  --teal-bright: #26e0e0;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #060f0e;
  border: 0;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(ellipse at 54% 45%, rgba(14, 206, 206, 0.18) 0 18%, transparent 56%),
    radial-gradient(circle at 17% 20%, rgba(38, 224, 224, 0.15), transparent 28%),
    linear-gradient(135deg, #060f0e 0%, #0a1a19 48%, #0e2322 100%);
  background-size: auto, 760px 900px, auto;
  background-repeat: no-repeat;
  background-position: center 6px;
  overflow-x: hidden;
  border: 0;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 44px));
  min-height: calc(100vh - 38px);
  margin: 0 auto;
  padding: 60px 0 58px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: start;
}

.profile {
  text-align: center;
}

.portrait {
  position: relative;
  width: 216px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(14, 206, 206, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 8px rgba(14, 206, 206, 0.08);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.profile h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile p {
  margin: 8px 0 9px;
  font-size: 16px;
  color: var(--muted);
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.socials a {
  width: 18px;
  height: 18px;
  color: #e8f8f8;
  display: inline-grid;
  place-items: center;
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.actions {
  width: 255px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.actions a {
  min-height: 29px;
  padding: 6px 12px;
  color: #fff;
  background: #076e6e;
  border: 1px solid rgba(14, 206, 206, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(310px, 1fr));
  gap: 9px 9px;
}

.project-card {
  min-height: 150px;
  padding: 37px 40px;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.project-card h2 {
  margin: 0 0 3px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-card p {
  max-width: 282px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.28;
}

.app-icon {
  position: relative;
  width: 75px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.app-icon span,
.app-icon span::before,
.app-icon span::after {
  content: "";
  position: absolute;
}

.cube {
  border-radius: 18px;
  background: #060f0e;
  box-shadow: inset 0 0 0 1px rgba(14, 206, 206, 0.2);
}

.cube span {
  width: 38px;
  height: 38px;
  border: 7px solid #0ecece;
  transform: rotate(30deg) skewY(-28deg);
}

.cube span::before {
  width: 7px;
  height: 42px;
  left: 14px;
  top: -8px;
  background: #0ecece;
  transform: rotate(-60deg);
}

.jesus {
  background: #102828;
}

.jesus span {
  width: 44px;
  height: 58px;
  border: 3px solid #99e6e6;
  border-radius: 45% 45% 40% 40%;
}

.jesus span::before {
  left: 13px;
  top: 13px;
  width: 18px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #99e6e6;
  background: transparent;
}

.jesus span::after {
  left: 5px;
  top: 5px;
  width: 34px;
  height: 48px;
  border: 3px solid #99e6e6;
  border-radius: 50% 50% 38% 38%;
  border-top-color: transparent;
}

.love {
  border-radius: 13px;
  background:
    radial-gradient(circle at 67% 33%, #f5ffff 0 18%, transparent 19%),
    linear-gradient(135deg, #0a8e8e, #ec4899);
}

.love span {
  left: 18px;
  top: 18px;
  width: 41px;
  height: 41px;
  background: linear-gradient(135deg, #ff879b, #fff);
  transform: rotate(-45deg);
}

.love span::before,
.love span::after {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: inherit;
}

.love span::before {
  top: -20px;
}

.love span::after {
  left: 20px;
}

.template {
  border-radius: 10px;
  background: linear-gradient(135deg, #0dbdbd, #063a3a);
}

.template span {
  inset: 12px;
  border: 5px solid #b8f0f0;
  border-radius: 7px;
}

.template span::before {
  left: 8px;
  top: 11px;
  width: 34px;
  height: 20px;
  border: 5px solid #b8f0f0;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 10px;
}

.template span::after {
  right: 6px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8f0f0;
  box-shadow: -23px 23px 0 #b8f0f0;
}

.hollow {
  background:
    radial-gradient(circle at 77% 43%, #26e0e0 0 10%, #0a8e8e 11% 18%, transparent 19%),
    radial-gradient(circle at 27% 62%, #99e6e6 0 6%, transparent 7%),
    linear-gradient(160deg, #0c2424 0 34%, #0b3535 35% 58%, #060f0e 59%);
}

.hollow span {
  left: 23px;
  bottom: 7px;
  width: 14px;
  height: 31px;
  border-radius: 9px 9px 3px 3px;
  background: #1d2618;
}

.avatar {
  background: linear-gradient(145deg, #0d1e1e, #1a6060);
}

.avatar span {
  width: 46px;
  height: 50px;
  border-radius: 45% 45% 40% 40%;
  background: #cf9f78;
}

.avatar span::before {
  left: -6px;
  top: -8px;
  width: 58px;
  height: 26px;
  border-radius: 48% 48% 30% 30%;
  background: #473526;
}

.avatar span::after {
  left: 9px;
  bottom: 7px;
  width: 29px;
  height: 13px;
  border-radius: 0 0 16px 16px;
  border-bottom: 8px solid #493225;
}

.court {
  background:
    radial-gradient(circle at 29% 56%, #f5ffff 0 15%, transparent 16%),
    linear-gradient(180deg, #0a5555 0 45%, #64748b 46%);
}

.court span {
  left: 16px;
  top: 24px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f0c9a2;
  border: 3px solid #111;
}

.court span::before {
  left: 22px;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #b9792e;
  border: 2px solid #fff;
}

.court span::after {
  left: 6px;
  bottom: -19px;
  width: 35px;
  height: 24px;
  border-radius: 4px 4px 0 0;
  background: #df3a20;
}

.pong {
  background:
    radial-gradient(circle at 18px 60px, #0ecece 0 11px, transparent 12px),
    radial-gradient(circle at 52px 10px, #94a3b8 0 6px, transparent 7px),
    linear-gradient(177deg, #060f0e 0 27%, #0b1f1f 28% 63%, #0ecece 64% 67%, #0b1f1f 68%);
}

.pong span {
  left: 8px;
  top: 19px;
  width: 55px;
  height: 36px;
  border-left: 4px solid #99e6e6;
  border-bottom: 4px solid #99e6e6;
  transform: skewX(-11deg);
}

#modal-cafe {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
}

#modal-cafe.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: #0a1e1e;
  border: 1px solid rgba(14, 206, 206, 0.3);
  border-radius: 12px;
  padding: 32px 28px 24px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--teal);
}

.modal-sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
}

#pix-qrcode {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#pix-qrcode canvas,
#pix-qrcode img {
  border-radius: 8px;
  border: 6px solid #ffffff;
  background: #ffffff;
  display: block;
}

.pix-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 206, 206, 0.07);
  border: 1px solid rgba(14, 206, 206, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
}

.pix-key-row span {
  flex: 1;
  font-size: 11.5px;
  color: var(--text);
  text-align: left;
  word-break: break-all;
}

#btn-copy-pix {
  background: var(--teal);
  border: none;
  border-radius: 4px;
  color: #060f0e;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-thanks {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 18px 2px;
  color: #7ab0b4;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  background: rgba(6, 15, 14, 0.72);
}

@media (max-width: 980px) {
  body {
    background-size: auto, 620px 740px, auto;
  }

  .page-shell {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 420px);
    padding-bottom: 84px;
  }

  .portrait {
    width: 184px;
  }

  .projects {
    gap: 10px;
  }

  .project-card {
    min-height: 122px;
    padding: 22px 18px;
    grid-template-columns: 62px 1fr;
  }

  .project-card h2 {
    font-size: 19px;
  }

  .project-card p {
    font-size: 12px;
  }

  .app-icon {
    width: 58px;
  }

  .actions {
    width: min(255px, 100%);
  }
}
