* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: rgb(176, 69, 121);
  --bg-url: url(./assets/mobile-pink-green-bg.png);
  --stroke-color: rgb(176, 69, 121);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgb(255, 228, 241);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./assets/svg/moon-stars.svg);
}

.light {
  --text-color: black;
  --bg-url: url(./assets/pink-bg.png);
  --stroke-color: rgba(0, 0, 0, 0.5);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./assets/svg/sun.svg);
}

body {
  background: var(--bg-url) no-repeat top center fixed;
  background-size: cover;
  min-height: 100vh;
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

#container {
  width: 100%;
  max-width: 36.75rem;
  margin: 3.5rem auto 0px;
  padding: 0 1.5rem;
}

#profile {
  text-align: center;
  padding: 1.5rem;
}

#profile img {
  width: 7rem;
  border-radius: 50%;
}

#profile p {
  font-weight: 500;
  line-height: 1.5rem;
  margin-top: 0.5rem;
}

#switch {
  position: relative;
  width: 4rem;
  margin: 4px auto;
}

#switch button {
  width: 2rem;
  height: 2rem;
  background: white var(--switch-bg-url) no-repeat center;
  border: 1px solid var(--stroke-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-out 0.2s;
}
.light #switch button {
  animation: slide-in 0.2s forwards;
}

#switch button:hover {
  outline: 0.5rem solid var(--highlight-color);
  transition: outline 0.2s;
}

#switch span {
  display: block;
  width: 4rem;
  height: 1.5rem;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: 0.5rem;
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border: 1.5px solid var(--text-color);
}

#social-links {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  font-size: 1.5rem;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: background 0.2s;
  border-radius: 50%;
}

#social-links a:hover {
  background: var(--highlight-color);
}

footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 14px;
}

footer a {
  text-decoration: none;
}

@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/pink-bg.png);
  }

  .light {
    --bg-url: url(./assets/pink-green-bg.png);
  }
}

@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

@keyframes slide-out {
  from {
    left: 50%;
  }
  to {
    left: 0;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo {
  width: 100%;
  max-width: 80vw;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  #logo {
    max-width: 280px;
  }
}

@media (min-width: 1024px) {
  #logo {
    max-width: 350px;
  }
}
@media (min-width: 1280px) {
  #logo {
    max-width: 400px;
  }
}
@media (min-width: 1536px) {
  #logo {
    max-width: 450px;
  }
}
