/* ═══════════════════════════════════════════════════════════════════════════
   NaiPrints3D — Linktree CSS  v2.0
   Tema: Neon Futurista · Roxo/Preto · Premium
   Paleta: #8b5cf6 (roxo) · #e879f9 (rosa) · #60a5fa (azul) · #fbbf24 (dourado)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variáveis de design ──────────────────────────────────────────────── */

:root {
  /* Fundos */
  --bg:          #05011a;
  --surface:     #0d0629;

  /* Texto */
  --text:        #f0ebff;
  --muted:       #9d8fc7;
  --dim:         rgba(240, 235, 255, 0.35);

  /* Cores de destaque */
  --purple:      #8b5cf6;
  --purple-l:    #a78bfa;
  --purple-d:    #5b21b6;
  --pink:        #e879f9;
  --pink-d:      #a21caf;
  --blue:        #60a5fa;
  --teal:        #2dd4bf;
  --green:       #22c55e;
  --gold:        #fbbf24;
}

/* ── 2. Reset base ───────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── 3. Aurora — manchas de luz animadas no fundo ────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

/* Mancha 1 — roxo escuro, canto superior esquerdo */
.aurora-blob--1 {
  width: 75vmax;
  height: 75vmax;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.55) 0%, transparent 65%);
  top: -25vmax;
  left: -25vmax;
  animation: blob-drift1 18s ease-in-out infinite alternate;
}

/* Mancha 2 — magenta, canto inferior direito */
.aurora-blob--2 {
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(131, 24, 67, 0.45) 0%, transparent 65%);
  bottom: -18vmax;
  right: -18vmax;
  animation: blob-drift2 22s ease-in-out infinite alternate;
}

/* Mancha 3 — azul índigo, centro */
.aurora-blob--3 {
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(30, 27, 75, 0.5) 0%, transparent 65%);
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  animation: blob-drift3 28s ease-in-out infinite alternate;
}

@keyframes blob-drift1 {
  0%   { transform: translate(0, 0)        scale(1);    }
  100% { transform: translate(8vw, 12vh)   scale(1.15); }
}
@keyframes blob-drift2 {
  0%   { transform: translate(0, 0)         scale(1);    }
  100% { transform: translate(-7vw, -10vh)  scale(1.18); }
}
@keyframes blob-drift3 {
  0%   { transform: translateX(-50%)               scale(1);   }
  100% { transform: translateX(-50%) translateY(8vh) scale(1.2); }
}

/* ── 4. Partículas brilhantes (CSS puro) ─────────────────────────────────── */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particles i {
  display: block;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: var(--c, #8b5cf6);
  opacity: 0;
  box-shadow: 0 0 8px 3px var(--c, #8b5cf6);
  animation: particle-pulse var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes particle-pulse {
  0%,  100% { opacity: 0;    transform: scale(1);   }
  50%        { opacity: 0.7;  transform: scale(2.8); }
}

/* ── 5. Layout principal (coluna centrada) ───────────────────────────────── */

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

/* ── 6. Header — avatar, badge, nome, slogan ────────────────────────────── */

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeInDown 0.7s ease forwards;
}

/* Anel giratório em gradiente em redor do avatar */
.avatar-ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  /* Conic-gradient cria o efeito de arco-íris que roda */
  background: conic-gradient(
    from 0deg,
    #8b5cf6, #e879f9, #fbbf24, #22c55e, #60a5fa, #8b5cf6
  );
  animation: ring-spin 5s linear infinite;
}

/* Camada interior: fundo escuro para criar separação visual do anel */
.avatar-glow {
  border-radius: 50%;
  background: var(--bg);
  padding: 4px;
  animation: glow-pulse 3.5s ease-in-out infinite;
}

.avatar {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 22px 8px  rgba(139, 92, 246, 0.45); }
  50%       { box-shadow: 0 0 48px 18px rgba(139, 92, 246, 0.78); }
}

/* Badge pequena "IMPRESSÃO 3D" com ponto pulsante */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-l);
  animation: badgeFade 0.6s ease 0.25s both;
}

.brand-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(139, 92, 246, 0.8); }
  50%       { box-shadow: 0 0 0 5px rgba(139, 92, 246, 0);   }
}

@keyframes badgeFade {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1);   }
}

/* Nome da marca com fonte Orbitron + efeito neon */
.brand-name {
  font-family: "Orbitron", sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 1.15;
  margin: 0;
  /* Gradiente no texto */
  background: linear-gradient(135deg, #f0ebff 0%, #a78bfa 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Brilho neon via filter (funciona com gradiente de texto) */
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.75));
}

.brand-slogan {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 310px;
  font-style: italic;
  line-height: 1.55;
}

/* ── 7. Lista de botões ──────────────────────────────────────────────────── */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: auto;
}

/* Base dos botões — glassmorphism leve + borda neon */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  /* Vidro fosco sobre o fundo escuro */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform    0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.26s ease,
    border-color 0.26s ease;
  /* Animação de entrada em cascata */
  opacity: 0;
  animation: slideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Shimmer — brilho que atravessa o botão no hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::before { left: 145%; }

.btn:hover {
  transform: translateY(-4px) scale(1.015);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* Ícone — quadrado arredondado com fundo semitransparente */
.btn-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.08);
}

/* Bloco de texto central */
.btn-body {
  flex: 1;
  position: relative;
  z-index: 2;
}

.btn-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.015em;
  line-height: 1.3;
}

.btn-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(240, 235, 255, 0.55);
  margin-top: 3px;
  line-height: 1.4;
}

/* Seta — move para a direita no hover */
.btn-arrow {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: rgba(240, 235, 255, 0.38);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
  position: relative;
  z-index: 2;
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
  color: rgba(240, 235, 255, 0.85);
}

/* Delays em cascata para a animação de entrada */
.btn:nth-child(1) { animation-delay: 0.10s; }
.btn:nth-child(2) { animation-delay: 0.22s; }
.btn:nth-child(3) { animation-delay: 0.34s; }
.btn:nth-child(4) { animation-delay: 0.46s; }
.btn:nth-child(5) { animation-delay: 0.58s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── 7a. Temas individuais dos botões ────────────────────────────────────── */

/* Botão 1 — BTS · roxo neon */
.btn--bts {
  background: linear-gradient(135deg, rgba(28, 18, 88, 0.88) 0%, rgba(54, 34, 122, 0.82) 100%);
  border-color: rgba(139, 92, 246, 0.45);
}
.btn--bts .btn-icon {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
}
.btn--bts:hover {
  border-color: rgba(167, 139, 250, 0.9);
  box-shadow:
    0 10px 40px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.5) inset;
}

/* Botão 2 — Instagram · rosa neon */
.btn--ig {
  background: linear-gradient(135deg, rgba(55, 8, 75, 0.88) 0%, rgba(95, 18, 70, 0.82) 100%);
  border-color: rgba(232, 121, 249, 0.38);
}
.btn--ig .btn-icon {
  background: rgba(232, 121, 249, 0.14);
  color: #f0abfc;
}
.btn--ig:hover {
  border-color: rgba(240, 171, 252, 0.85);
  box-shadow:
    0 10px 40px rgba(200, 50, 200, 0.52),
    0 0 0 1px rgba(232, 121, 249, 0.45) inset;
}

/* Botão 3 — WhatsApp · verde neon */
.btn--wa {
  background: linear-gradient(135deg, rgba(4, 28, 20, 0.92) 0%, rgba(7, 46, 33, 0.88) 100%);
  border-color: rgba(34, 197, 94, 0.42);
}
.btn--wa .btn-icon {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}
.btn--wa:hover {
  border-color: rgba(74, 222, 128, 0.88);
  box-shadow:
    0 10px 40px rgba(34, 197, 94, 0.52),
    0 0 0 1px rgba(34, 197, 94, 0.4) inset;
}

/* Botão 4 — Produtos · azul neon */
.btn--produtos {
  background: linear-gradient(135deg, rgba(10, 5, 48, 0.9) 0%, rgba(18, 8, 70, 0.84) 100%);
  border-color: rgba(96, 165, 250, 0.38);
}
.btn--produtos .btn-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}
.btn--produtos:hover {
  border-color: rgba(147, 197, 253, 0.85);
  box-shadow:
    0 10px 40px rgba(96, 165, 250, 0.5),
    0 0 0 1px rgba(96, 165, 250, 0.4) inset;
}

/* Botão 5 — Encomenda personalizada · dourado */
.btn--custom {
  background: linear-gradient(135deg, rgba(24, 12, 0, 0.94) 0%, rgba(40, 20, 0, 0.9) 100%);
  border-color: rgba(251, 191, 36, 0.48);
}
.btn--custom .btn-icon {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}
/* Título em gradiente dourado */
.btn--custom .btn-title {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn--custom:hover {
  border-color: rgba(252, 211, 77, 0.9);
  box-shadow:
    0 10px 40px rgba(251, 191, 36, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.4) inset;
}

/* Botão — Guardar Contacto · teal/ciano */
.btn--contact {
  background: linear-gradient(135deg, rgba(4, 30, 34, 0.92) 0%, rgba(6, 46, 50, 0.88) 100%);
  border-color: rgba(45, 212, 191, 0.42);
}
.btn--contact .btn-icon {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
}
.btn--contact .btn-title {
  background: linear-gradient(90deg, #99f6e4, #2dd4bf, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn--contact:hover {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow:
    0 10px 40px rgba(45, 212, 191, 0.5),
    0 0 0 1px rgba(45, 212, 191, 0.4) inset;
}

/* ── 8. Footer ───────────────────────────────────────────────────────────── */

.footer {
  margin-top: 44px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.7s forwards;
}

/* Links legais (Privacidade · Termos · Contactos) */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--dim);
  transition: color 0.22s;
}

.footer-links a:hover {
  color: var(--purple-l);
}

.footer-sep {
  font-size: 0.72rem;
  color: rgba(240, 235, 255, 0.2);
  user-select: none;
}

/* Linha de ícones das redes sociais */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 235, 255, 0.1);
  background: rgba(240, 235, 255, 0.04);
  font-size: 0.98rem;
  color: var(--muted);
  transition: all 0.24s ease;
}

.social-btn:hover {
  transform: translateY(-4px);
}

/* Cores individuais dos ícones sociais no hover */
.social-btn--ig:hover {
  background: rgba(232, 121, 249, 0.16);
  border-color: rgba(232, 121, 249, 0.55);
  color: #f0abfc;
  box-shadow: 0 4px 18px rgba(200, 50, 200, 0.3);
}
.social-btn--wa:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.55);
  color: #4ade80;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.3);
}
.social-btn--yt:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.3);
}
.social-btn--email:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.55);
  color: var(--purple-l);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.3);
}

.copyright {
  font-size: 0.72rem;
  color: rgba(240, 235, 255, 0.28);
}

.visit-counter {
  margin-top: 6px;
  font-size: 0.65rem;
  color: rgba(240, 235, 255, 0.18);
  letter-spacing: 0.02em;
}

/* ── 9. Animações globais ────────────────────────────────────────────────── */

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0);     }
}

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

/* ── 10. Responsividade ──────────────────────────────────────────────────── */

/* Telemóvel pequeno */
@media (max-width: 400px) {
  .page {
    padding: 30px 14px 24px;
  }

  .avatar {
    width: 88px;
    height: 88px;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .btn {
    min-height: 62px;
    padding: 11px 13px;
    gap: 11px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}

/* Telemóvel médio */
@media (min-width: 401px) and (max-width: 480px) {
  .page {
    padding: 36px 16px 28px;
  }

  .brand-name {
    font-size: 1.75rem;
  }
}

/* Tablet e desktop — cartão centrado com mais espaçamento */
@media (min-width: 481px) {
  .page {
    padding: 60px 38px 50px;
  }

  .brand-name {
    font-size: 2.3rem;
  }

  .btn {
    min-height: 74px;
  }
}

/* ── 11. Acessibilidade ──────────────────────────────────────────────────── */

/* Respeita a preferência do utilizador por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visível para navegação por teclado */
.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.social-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--purple-l);
  outline-offset: 2px;
  border-radius: 3px;
}
