* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  color: #333;
  overflow-x: hidden;
}

.bio-container {
  background-color: #ffffff;
  padding: 44px 36px 40px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: min(420px, calc(100vw - 24px));
  width: 100%;
  min-width: 0;
  text-align: center;
}

/* Profile */
.profile {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-pic {
  width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 18px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

@media (prefers-reduced-motion: reduce) {
  .profile-pic { animation: none; }
}

.profile-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #FF6F61;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* Links */
.links-wrap {
  margin-top: 4px;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links li {
  display: block;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 16px;
  background-color: #4fb8e7;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  letter-spacing: 0.02em;
}

.links a i {
  margin-right: 12px;
  font-size: 1.125rem;
  opacity: 0.95;
}

.links a .link-icon {
  margin-right: 12px;
  height: 1.25rem;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

/* Retângulo azul (WhatsApp) – mesmo tamanho dos outros botões */
.links a.link-logo-box {
  background: linear-gradient(145deg, #4fb8e7 0%, #45aad9 100%);
  padding: 2px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow:
    0 2px 8px rgba(79, 184, 231, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.links a.link-logo-box img {
  width: auto;
  height: 4.5rem;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.links a.link-logo-box:hover {
  background: linear-gradient(145deg, #3aa0c9 0%, #3595bc 100%);
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 24px rgba(79, 184, 231, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.links a.link-logo-box:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(79, 184, 231, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.links a:hover {
  background-color: #3aa0c9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(79, 184, 231, 0.4);
}

.links a:active {
  transform: translateY(-1px);
}

.links a:focus-visible {
  outline: 2px solid #4fb8e7;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .links a:hover { transform: none; }
  .links a:active { transform: none; }
  .links a.link-logo-box:hover,
  .links a.link-logo-box:active { transform: none; }
}

/* Responsivo: tablets e telas médias */
@media (max-width: 600px) {
  body { padding: 10px; }
  .bio-container {
    padding: 36px 24px 32px;
    border-radius: 24px;
    max-width: calc(100vw - 20px);
  }
  .profile {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }
  .profile-pic { width: 160px; max-width: 50vw; margin-bottom: 16px; }
  .profile-title { font-size: clamp(1.25rem, 4.5vw, 1.5rem); }
  .links { gap: 12px; }
  .links a {
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.9375rem;
  }
  .links a.link-logo-box { padding: 2px 20px; }
  .links a.link-logo-box img { height: 4.25rem; }
}

/* Responsivo: celulares pequenos */
@media (max-width: 400px) {
  body { padding: 8px; }
  .bio-container {
    padding: 28px 20px 26px;
    border-radius: 20px;
    max-width: calc(100vw - 16px);
  }
  .profile {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .profile-pic { width: 140px; max-width: 45vw; margin-bottom: 14px; }
  .profile-title { font-size: clamp(1.2rem, 5vw, 1.375rem); }
  .links { gap: 10px; }
  .links a {
    padding: 14px 18px;
    font-size: 0.875rem;
    min-height: 48px;
  }
  .links a i { margin-right: 10px; font-size: 1rem; }
  .links a .link-icon { margin-right: 10px; }
  .links a.link-logo-box { padding: 2px 18px; min-height: 48px; }
  .links a.link-logo-box img { height: 4rem; }
}

/* Evita overflow em telas muito estreitas */
@media (max-width: 320px) {
  body { padding: 6px; }
  .bio-container {
    padding: 24px 16px 22px;
    border-radius: 18px;
    max-width: calc(100vw - 12px);
  }
  .profile-pic { width: 120px; max-width: 42vw; }
  .profile-title { font-size: 1.25rem; }
  .links a { padding: 12px 16px; font-size: 0.8125rem; }
  .links a.link-logo-box { padding: 2px 16px; }
  .links a.link-logo-box img { height: 3.75rem; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
