/* Configurações Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: white;
  --bg-url: url(./assets/bg-mobile.jpg);
  --stroke-color: rgba(255, 255, 255, 0.4); /* Borda mais visível */
  --surface-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Fundo um pouco mais opaco para o blur funcionar */
  --surface-color-hover: rgba(255, 255, 255, 0.2);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./assets/moon-stars.svg);
}

.light {
  --text-color: black;
  --bg-url: url(./assets/bg-mobile-light.jpg);
  --stroke-color: rgba(0, 0, 0, 0.3);
  --surface-color: rgba(0, 0, 0, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.1);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./assets/sun.svg);
}

/* Modificação para Desktop */
@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/bg-desktop.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-desktop-light.jpg);
  }
}

body {
  background: var(--bg-url) no-repeat top center/cover;
  background-attachment: fixed; /* Mantém o fundo fixo ao rolar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza tudo verticalmente */
  align-items: center; /* Centraliza tudo horizontalmente */
  overflow: hidden; /* Trava a rolagem e o zoom elástico */
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

/* Layout do Container */
#container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0px;
  padding: 0 24px;
}

/* Perfil */
#profile {
  text-align: center;
  padding: 30px;
}

#profile img {
  width: 125px;
  border-radius: 50%;
  border: 2px solid var(--text-color); /* Moldura na foto */
}

#profile p {
  font-weight: 600; /* Texto mais gordinho */
  font-size: 18px; /* Aumentado levemente */
  line-height: 24px;
  margin-top: 12px;
  /* Sombra para destacar o nome do fundo */
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Links (Botões) */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;

  /* Efeito de Vidro (Glassmorphism) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  text-decoration: none;
  font-weight: 600;

  /* Sombra no texto para contraste */
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);

  transition:
    background 0.3s,
    border 0.3s,
    transform 0.2s;
}

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

/* Redes Sociais */
#social-links {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  font-size: 28px; /* Aumentado para melhor visibilidade */
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.2s;

  /* A mágica para os ícones aparecerem no fundo claro */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8));
}

#social-links a:hover {
  transform: scale(1.2);
}

/* Rodapé */
footer {
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4);
}

.coracao {
  color: #ff4d4d;
  font-size: 18px;
}
