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

:root {
  --text-color: #ffffff;
  --secondary-text: #cccccc;
  --bg-gradient: linear-gradient(to bottom right, #160040, #4E12A5);
  --stroke-color: rgba(255, 255, 255, 0.1);
  --surface-color: rgba(40, 20, 80, 0.25);
  --surface-color-hover: rgba(60, 30, 110, 0.4);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./assets/MoonStars.svg);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  --brand-color: #8367C7;
  /* Cor roxa para combinar com o gradiente */
  --brand-color-hover: #9370DB;
  --border-radius: 8px;
}

.light {
  --text-color: #333333;
  --secondary-text: #777777;
  --bg-gradient: linear-gradient(to bottom right, #D6C6F4, #FFFFFF);
  --stroke-color: rgba(0, 0, 0, 0.05);
  --surface-color: rgba(255, 255, 255, 0.8);
  --surface-color-hover: rgba(255, 255, 255, 1);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./assets/Sun.svg);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-gradient);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  color: var(--text-color);
  height: 100vh;
  min-height: 100vh;
}

#container {
  width: 100%;
  max-width: 588px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#profile {
  text-align: center;
  padding: 24px 0 32px;
}

.logo-text {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--brand-color);
  padding: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-color: rgba(131, 103, 199, 0.2);
  font-weight: 600;
  font-size: 1.2rem;
}

#profile h1 {
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.4;
  margin-top: 16px;
}

#profile .tagline {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--secondary-text);
}

#switch {
  position: relative;
  width: 64px;
  margin: 0 auto 36px;
}

#switch button {
  width: 32px;
  height: 32px;
  background: white var(--switch-bg-url) no-repeat center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-back 0.2s ease-out;
  cursor: pointer;
}

.light #switch button {
  animation: slide-in 0.4s forwards;
}

#switch button:hover {
  outline: 8px solid var(--highlight-color);
}

#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 {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin-bottom: 32px;
}

.links li a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--text-color);
  box-shadow: var(--card-shadow);
}

.links li a:hover {
  background: var(--surface-color-hover);
  border-color: var(--brand-color);
  transform: translateY(-2px);
}

.links li a i {
  font-size: 1.1rem;
  margin-right: 12px;
  color: var(--brand-color);
  min-width: 24px;
  text-align: center;
}

#social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: auto;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  border-bottom: none;
}

#social-links a:hover {
  background: var(--brand-color);
  transform: translateY(-3px);
}

#social-links a:hover i {
  color: white;
}

#social-links a i {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

footer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary-text);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer a {
  text-decoration: none;
  color: var(--brand-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--brand-color-hover);
  text-decoration: underline;
}

@media (min-width: 700px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #container {
    margin: 0 auto;
    padding: 48px 24px;
  }

  .links li a {
    padding: 16px 32px;
  }
}

@keyframes slide-in {
  from {
    left: 0;
  }

  to {
    left: 50%;
  }
}

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

  to {
    left: 0;
  }
}