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

:root {
  --text-color: #ffffff;
  --bg-color: #0d0d0d;
  /*--bg-url: url(./Png/FUNDOO.avif);*/
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(255, 255, 255, 0.05);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./Png/MoonStars.png);
}

html.light,
body.light {
  --text-color: #000000;
  --bg-color: #f3f3f3;
  /*--bg-url: url(./Png/BK_Branco.avif);*/ 
  --stroke-color: rgba(0, 0, 0, 0.3);
  --surface-color: rgba(0, 0, 0, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./Png/Sun.png);
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-url);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

#container {
  width: 100%;
  max-width: 460px; /* Reduz a largura máxima para ficar mais proporcional */
  margin: 0 auto;
  padding: 60px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Diminui a distância excessiva entre os blocos */
  box-sizing: border-box;
}


/* Profile */
#profile {
  text-align: center;
}

#profile img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke-color);
  margin-top: 10px;
}

#profile p {
  font-weight: 500;
  line-height: 24px;
  margin-top: 8px;
}

/* Switch */
#switch {
  position: relative;
  width: 64px;
  margin: 20px;
  cursor: pointer;
}

#switch button {
  width: 32px;
  height: 32px;
  background: #ffffff var(--switch-bg-url) no-repeat center;
  border: 0.1px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-back 0.2s;
  cursor: pointer;
}

/* Efeito de borda transparente ao passar o mouse sobre o botão do switch */
#switch button:hover {
  outline: 8px solid var(--highlight-color);
  transition: outline 0.2s ease-in-out;
}

html.light #switch button,
body.light #switch button {
  animation: slide-in 0.2s forwards;
}

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

/* Links (Botões) */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Espaço ideal entre um botão e outro */
  width: 100%;
  padding: 0;
  margin-top: 8px;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px; /* Reduz a altura para ficar mais elegante */
  background: var(--surface-color);
  border: 1px solid var(--stroke-color); /* Borda fina e precisa */
  border-radius: 12px; /* Cantos arredondados modernos */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-color);
  transition: all 0.2s ease-in-out;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border-color: var(--text-color);
  transform: translateY(-2px); /* Efeito suave ao clicar/passar o mouse */
}


/* Social Links */
#social-links {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  font-size: 24px;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s;
}

#social-links a:hover {
  background: var(--highlight-color);
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-color);
  margin-top: 80px;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

/* Animações Switch */
@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

@keyframes slide-back {
  from {
    left: 50%;
  }
  to {
    left: 0;
  }
}