/* ── RESET & VARIÁVEIS ────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #e040fb;
  --yellow: #ffd740;
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --radius: 16px;
}

/* ── BASE ─────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* Brilho suave no topo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(224, 64, 251, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── CARD ─────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.6s ease both;
}

/* ── AVATAR ───────────────────────────────────────────── */
.avatar-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 28px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 30%,
    var(--pink) 50%,
    var(--yellow) 70%,
    var(--pink) 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  filter: blur(0.5px);
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.avatar-img,
.avatar-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* ── NOME E BIO ───────────────────────────────────────── */
.username {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: -2px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pink) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.bio {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-bottom: 32px;
  max-width: 280px;
  line-height: 1.5;
}

/* ── LINKS ────────────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.link-btn:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.12);
}
.link-btn:active {
  transform: scale(0.97);
}

/* Cores por rede */
.btn-whatsapp {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}
.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}
.btn-website {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
}
.btn-tiktok {
  background: linear-gradient(135deg, #010101, #2b2b2b);
  border: 1px solid #333;
}
.btn-youtube {
  background: linear-gradient(135deg, #b71c1c, #c62828);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 28px rgba(46, 125, 50, 0.5);
}
.btn-instagram:hover {
  box-shadow: 0 8px 28px rgba(253, 29, 29, 0.35);
}
.btn-website:hover {
  box-shadow: 0 8px 28px rgba(21, 101, 192, 0.45);
}
.btn-tiktok:hover {
  box-shadow: 0 8px 28px rgba(105, 201, 255, 0.25);
}
.btn-youtube:hover {
  box-shadow: 0 8px 28px rgba(198, 40, 40, 0.45);
}

/* Ícone */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.btn-label {
  flex: 1;
  text-align: center;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  margin-top: 40px;
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.05em;
}

/* ── ANIMAÇÕES ────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.links .link-btn:nth-child(1) {
  animation: fadeUp 0.5s 0.1s ease both;
}
.links .link-btn:nth-child(2) {
  animation: fadeUp 0.5s 0.2s ease both;
}
.links .link-btn:nth-child(3) {
  animation: fadeUp 0.5s 0.3s ease both;
}
.links .link-btn:nth-child(4) {
  animation: fadeUp 0.5s 0.4s ease both;
}
.links .link-btn:nth-child(5) {
  animation: fadeUp 0.5s 0.5s ease both;
}

/* ── RESPONSIVO MOBILE ────────────────────────────────── */
@media (max-width: 480px) {
  .username {
    font-size: clamp(1.6rem, 11vw, 2.2rem);
    letter-spacing: -1px;
    white-space: nowrap;
  }

  .avatar-wrap {
    width: 160px;
    height: 160px;
  }
}

/* Ícone de portfólio usa stroke, não fill */
.btn-website .btn-icon svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── NOME MOBILE FIX ──────────────────────────────────── */
@media (max-width: 520px) {
  .username {
    font-size: 8vw;
    white-space: nowrap;
    letter-spacing: -1px;
  }
}

@media (max-width: 360px) {
  .username {
    font-size: 7vw;
  }
}
