/* =========================================================
   LETÍCIA FERRAZ · Link na Bio (Essencial) — style.css
   ========================================================= */

:root {
  --brand: #c69a52;
  --brand-2: #e6c079;
  --bg: #08080a;
  --ink: #f5f1ea;
  --dim: rgba(245, 241, 234, 0.6);
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 30px 18px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #1a1206; }

/* ---------- Fundo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(1.05) brightness(0.4);
  transform: scale(1.18);
}
.bg__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(198, 154, 82, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.55), var(--bg));
}

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}
.avatar {
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--brand-2) 70%, transparent);
  box-shadow: 0 0 0 6px var(--glass), 0 20px 46px rgba(0, 0, 0, 0.55);
  margin-bottom: 18px;
  background: #14110c;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__fb { font-family: var(--serif); font-size: 2.4rem; color: var(--brand-2); }
.name {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.role__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.bio { margin: 12px 0 26px; font-size: 0.9rem; font-weight: 300; color: var(--dim); max-width: 32ch; }

/* ---------- Links ---------- */
.links { width: 100%; display: grid; gap: 11px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: transform 0.18s var(--ease), border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 55%, transparent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.link--hot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #1a1206;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 40%, transparent);
}
.link--hot .link__meta { color: rgba(26, 18, 6, 0.7); }
.link__ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.link--hot .link__ic { background: rgba(26, 18, 6, 0.14); }
.link__txt { flex: 1; text-align: left; display: grid; gap: 1px; }
.link__label { font-size: 0.92rem; font-weight: 600; }
.link__meta { font-size: 0.72rem; font-weight: 400; color: var(--dim); }
.link__arrow { opacity: 0.55; transition: transform 0.2s var(--ease); }
.link:hover .link__arrow { transform: translate(2px, -2px); opacity: 1; }

/* ---------- Footer ---------- */
.foot { margin-top: 28px; display: grid; gap: 7px; }
.foot__creed { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--brand-2); }
.foot__pw { font-size: 11.5px; color: var(--dim); }
.foot__pw b { color: var(--ink); font-weight: 600; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Efeitos 3D + 2D (plano Essencial) ===== */
body { perspective: 1100px; }
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.card {
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.3s ease-out;
}
/* Profundidade 3D — os elementos saltam para frente ao inclinar o card */
.avatar[data-reveal].in { transform: translateZ(46px); }
.name[data-reveal].in { transform: translateZ(30px); }
.role[data-reveal].in { transform: translateZ(20px); }
.bio[data-reveal].in { transform: translateZ(16px); }
.links { transform: translateZ(24px); }
.foot[data-reveal].in { transform: translateZ(10px); }
/* Brilho 2D deslizante nos botões */
.link { position: relative; overflow: hidden; }
.link::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.link:hover::after { left: 135%; }
/* Assinatura personalizada */
.foot__sig {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--dim);
  transition: color 0.2s, transform 0.2s var(--ease);
}
.foot__sig:hover { color: var(--brand-2); transform: translateY(-1px); }
.foot__sig b { color: var(--ink); font-weight: 600; }
.foot__spark { color: var(--brand-2); animation: sparkPulse 2.4s ease-in-out infinite; }

@keyframes sparkPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .card { transform: none; }
}
