* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

:root {
  --text-color: white;
  --bg-url: url("../assets/bg-mobile.jpg");
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 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.5);
  --surface-color: rgba(0, 0, 0, 0.05); 
  --surface-hover-color: rgba(0, 0, 0, 0.2);
  --highlight-color: rgba(0, 0, 0, 0.2);
  --switch-bg-url: url("../assets/sun.svg");
  --profile-url: url("../assets/profile-dark.jpeg");
}

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

body {
  background: var(--bg-url) no-repeat top center/cover;
}

#container {
  width: 360px;
  margin: auto;
  margin: 56px auto 0px;
  padding: 0 24px;
}

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

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

#switch button {
  background: var(--switch-bg-url) no-repeat center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: white;
  transform: translatey(-50%);
  top: 50%;
  left: 0;
  position: absolute;
  z-index: 1;
}

#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;
}

.light #switch button {
  right: 0;
  left: inherit;
}

#profile img {
  width: 112px;
}

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

ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;

  background-color: var(--highlight-color);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -web-kit-backdrop-filter: blur(4px);
  transition: background .2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border: 1.5px solid var(--text-color);
}

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

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 50%;
  transition: background .2s;
}

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

footer {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}