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

body {
  font-family: "Poppins", sans-serif;
  background-color: #f3f3f3;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-direction: column;
  text-align: center;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 3rem;
  position: relative;
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card h1,
.card h2,
.card p {
  color: inherit;
  transition: color 0.3s ease;
}

.card h1 {
  font-size: 1.5rem;
}

.card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #666;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.social a:hover img {
  transform: scale(1.5);
  opacity: 0.8;
}

/* Botão padrão */
button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover {
  background-color: #fff;
  color: #222;
}

/* Modo escuro */
body.dark {
  background-color: #121212;
  color: #eee;
}

body.dark .card {
  background-color: #1e1e1e;
  color: #eee;
}

body.dark .card h1,
body.dark .card h2 {
  color: #ccc;
}

body.dark .card p {
  color: #bbb;
}

body.dark .social a img {
  filter: invert(1);
}

body.dark button {
  background-color: #fff;
  color: #222;
}

body.dark button:hover {
  background-color: #222;
  color: #fff;
}

/* Footer corrigido e responsivo */
.footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  color: #666;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  padding: 0 1rem;
  max-width: 100vw;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .footer {
  color: #ccc;
}

/* Responsividade */
@media (max-width: 400px) {
  .card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .footer {
    font-size: 0.7rem;
    padding: 0 0.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* Seletor de idioma fixo no topo direito */
.language-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 9999;
}

.language-selector button {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 1.5px solid #222;
  background-color: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s, color 0.3s;
  color: #222;
}

.language-selector button:hover {
  background-color: #222;
  color: #fff;
}

body.dark .language-selector button {
  border-color: #222;
  color: gray;
}

body.dark .language-selector button:hover {
  background-color: #eee;
  color: #222;
}
