:root {
  --bg-color: #0d1117;
  --text-color: #f0f6fc;
  --accent-color: #3b82f6;
  --card-color: #161b22;
  --border-color: #30363d;
}

.light {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #4f46e5;
  --card-color: #f3f4f6;
  --border-color: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

#container {
  max-width: 400px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

#language-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  transform: translate(55%, -200%);
  position: relative;
  z-index: 10;
}

.language-selector-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  position: relative;
  z-index: 11;
}

.dropbtn .flag {
  width: 20px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  border-radius: 8px;
  z-index: 9999;
  width: max-content;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--border-color);
}

.show {
  display: block;
}

#profile {
  position: relative;
  z-index: 1;
}

.profile-pic-wrapper {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  border: var(--accent-color) 4px solid;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto;
}

.profile-pic-wrapper img {
  width: 305%;
  height: 305%;
  object-fit: cover;
  object-position: center;
  transform: translate(2.4%, 5%);
}

#profile p {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

#switch {
  margin: 20px auto;
  width: 60px;
  height: 30px;
  background: var(--border-color);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

#switch button {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 50%;
  border: none;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.light #switch button {
  transform: translateX(30px);
}

ul {
  list-style: none;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul li a {
  display: block;
  padding: 12px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

ul li a:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.03);
}

#social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

#social-links a {
  font-size: 24px;
  color: var(--text-color);
  transition: transform 0.2s, color 0.2s;
}

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

@media (max-width: 425px) {
  #container {
    width: 90%;
    padding: 10px;
  }

  #language-bar {
    transform: translate(0, -200%);
  }

  .profile-pic-wrapper {
    width: 120px;
    height: 120px;
  }

  .profile-pic-wrapper img {
    width: 350%;
    height: 350%;
    transform: translate(3, 2%);
  }

  ul li a {
    font-size: 0.9rem;
    padding: 10px;
  }
}