/* ===== Paleta (tirada da logomarca e do papel de parede) ===== */
:root {
  --navy-900: #182240;
  --navy-800: #1F2A48;
  --navy-700: #243255;
  --navy-600: #2B3A62;
  --pink: #F6C7D1;
  --pink-strong: #E98FA8;
  --yellow: #F5E49F;
  --cream: #FFF9F7;
  --ink: #21304D;
  --ink-soft: #5D6784;
  --white: #FFFFFF;

  --radius-card: 20px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--white);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(60vmax 60vmax at 85% 10%, rgba(233, 143, 168, .14), transparent 60%),
    radial-gradient(50vmax 50vmax at 10% 95%, rgba(245, 228, 159, .07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Coluna principal (mobile first) ===== */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--navy-700);
  padding-top: env(safe-area-inset-top);
}

/* Papel de parede dividido: arcos do topo + rodapé com a assinatura.
   O meio é cor sólida, então o conteúdo pode crescer sem cortar nada. */
.wallpaper {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: -1;
  background-image: url("images/tela_de_fundo.jpeg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

.wallpaper--top {
  top: 0;
  aspect-ratio: 900 / 1150;
  background-position: top center;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
          mask-image: linear-gradient(#000 72%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
  transform-origin: 80% 15%;
}

/* Fundo do rodapé: os arcos sem o texto (images/rodape_fundo.jpg).
   Sobe e desce devagar, como uma onda. Só desce a partir da posição
   original, para a ponta dos arcos nunca se descolar da borda de baixo.
   Sem escala, sem perda de nitidez. */
.wallpaper--bottom {
  bottom: 0;
  aspect-ratio: 900 / 420;
  background-image: url("images/rodape_fundo.jpg");
  background-position: bottom center;
  -webkit-mask-image: linear-gradient(transparent, #000 32%);
          mask-image: linear-gradient(transparent, #000 32%);
  will-change: transform;
  animation: wave 6s ease-in-out infinite;
}

/* Logo + nome + CRP (images/rodape_marca.png), parados por cima,
   exatamente no mesmo lugar onde estavam na imagem original */
.footer__brand {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 900 / 420;
  pointer-events: none;
}
.footer__brand img {
  position: absolute;
  left: 30%;
  top: 34.762%;
  width: 39.778%;
  height: auto;
}

@keyframes wave {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, 10px, 0); }
}

@keyframes drift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.04) rotate(-1.5deg); }
}

/* ===== Topo ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 0;
}

.topbar__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(10, 16, 36, .35);
}

.topbar__share {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: var(--white);
  background: rgba(24, 34, 64, .45);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.topbar__share:hover { background: rgba(24, 34, 64, .7); }
.topbar__share:active { transform: scale(.94); }

/* ===== Perfil ===== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 0;
}

.avatar {
  position: relative;
  width: 156px;
  height: 156px;
  margin-bottom: 22px;
}
.avatar::before {
  /* halo suave que "respira" */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 199, 209, .45), rgba(246, 199, 209, 0) 100%);
  animation: breathe 6s ease-in-out infinite;
}
/* Círculo fixo (borda e sombra) */
.avatar__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(255, 249, 247, .9);
  box-shadow: 0 14px 34px rgba(10, 16, 36, .45);
}

/* Foto dentro do círculo.
   --foto-x: positivo move para a direita, negativo para a esquerda (até ~6%)
   --foto-y: positivo move para baixo, negativo para cima
   --foto-zoom: precisa ser maior que 1 para sobrar imagem dos lados */
.avatar img {
  /* --foto-x: 4%;
  --foto-y: 0%;
  --foto-zoom: 1.15; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 42%;
  transform: scale(var(--foto-zoom)) translate(var(--foto-x), var(--foto-y));
}

@keyframes breathe {
  0%, 100% { transform: scale(.94); opacity: .55; }
  50%      { transform: scale(1.06); opacity: 1; }
}

.profile__name {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(10, 16, 36, .35);
}

.profile__role {
  margin: 6px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
}
.profile__role span { color: var(--pink); margin: 0 .25em; }

.profile__tagline {
  max-width: 22ch;
  margin: 14px 0 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--pink);
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.social__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.social__icon:hover,
.social__icon:focus-visible {
  background: var(--pink);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 16px 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 28px rgba(10, 16, 36, .28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 34px rgba(10, 16, 36, .36);
}
.link-card:active { transform: scale(.985); }

.link-card__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}
.link-card__thumb--face { object-position: 45% 25%; }

.link-card__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.link-card__title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}
.link-card__hint {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.link-card__arrow {
  flex: none;
  color: var(--pink-strong);
  transition: transform .4s var(--ease);
}
.link-card:hover .link-card__arrow { transform: translateX(3px); }

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}
.note__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(245, 228, 159, .7);
  animation: glow 3.2s ease-in-out infinite;
}

/* Luz amarela que acende e apaga suavemente */
@keyframes glow {
  0%, 100% {
    opacity: .55;
    box-shadow: 0 0 4px rgba(245, 228, 159, .35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px 2px rgba(245, 228, 159, .75), 0 0 22px 4px rgba(245, 228, 159, .3);
  }
}

/* ===== Rodapé (assinatura do papel de parede) ===== */
.footer {
  position: relative;
  margin-top: auto;
  width: 100%;
  aspect-ratio: 900 / 420;
  min-height: 190px;
  flex: none;
}
.footer__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(6px + env(safe-area-inset-bottom));
  font-size: .68rem;
  text-align: center;
  color: rgba(255, 255, 255, .4);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(10, 16, 36, .35);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Foco acessível ===== */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ===== Entrada suave ===== */
.reveal {
  animation: rise .9s var(--ease) both;
}
.profile .reveal:nth-child(2) { animation-delay: .08s; }
.profile .reveal:nth-child(3) { animation-delay: .14s; }
.profile .reveal:nth-child(4) { animation-delay: .2s; }
.profile .reveal:nth-child(5) { animation-delay: .26s; }
.links .reveal:nth-child(1) { animation-delay: .34s; }
.links .reveal:nth-child(2) { animation-delay: .42s; }
.links .reveal:nth-child(3) { animation-delay: .5s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Telas maiores: vira um "cartão" centralizado ===== */
@media (min-width: 560px) {
  body { padding: 40px 16px; }
  .page {
    min-height: calc(100vh - 80px);
    border-radius: 36px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .06),
      0 40px 80px rgba(6, 10, 26, .55);
  }
  .topbar { padding: 24px 24px 0; }
  .links { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
