/* Variáveis de temas */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-bg: #f0f0f0;
  --link-hover: #e2e2e2;
  --switch-bg: #ccc;
  --icon-color: #000;
}

.dark {
  --bg-color: #1f1f1f;
  --text-color: #ffffff;
  --link-bg: #333;
  --link-hover: #444;
  --switch-bg: #666;
  --icon-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#container {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* Perfil */
#profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  margin-bottom: 0.5rem;
  transition: border 0.3s ease;
}

#profile p {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Botão de troca de tema */
#switch {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#switch button {
  width: 50px;
  height: 26px;
  border-radius: 30px;
  border: none;
  background-color: var(--switch-bg);
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#switch button::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.dark #switch button::before {
  transform: translateX(24px);
}

/* Lista de links */
ul {
  list-style: none;
  margin-bottom: 2rem;
}

ul li {
  margin: 12px 0;
}

ul li a {
  display: block;
  background-color: var(--link-bg);
  color: var(--text-color);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

ul li a:hover {
  background-color: var(--link-hover);
}

/* Redes sociais */
#social-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2rem;
}

#social-links a {
  font-size: 1.5rem;
  color: var(--icon-color);
  transition: color 0.3s ease;
}

#social-links a:hover {
  color: #0077ff;
}

/* Rodapé */
footer {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.6;
  padding-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  #profile img {
    width: 100px;
    height: 100px;
  }

  #profile p {
    font-size: 1rem;
  }

  ul li a {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  #social-links a {
    font-size: 1.3rem;
  }

  #switch button {
    width: 44px;
    height: 22px;
  }

  #switch button::before {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
  }

  .dark #switch button::before {
    transform: translateX(22px);
  }
}

#switch {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#switch button {
  background: var(--switch-bg);
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

#switch i {
  font-size: 1.2rem;
  color: var(--icon-color);
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
}

#switch i.active {
  opacity: 1;
}

