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

body, html {
  height: 100%;
  min-height: 100vh;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 60px;
  text-align: center;
  color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  max-width: 95%;
  width: 600px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00d4ff rgba(0, 119, 255, 0.3);
  position: relative;
}

.card::-webkit-scrollbar {
  width: 8px;
}

.card::-webkit-scrollbar-track {
  background: rgba(0, 119, 255, 0.3);
  border-radius: 10px;
}

.card::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.card h1 {
  background: linear-gradient(45deg, #0077ff, #00d4ff);
  background-clip: text;
  animation: glow 2s ease-in-out infinite;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 119, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
}

@keyframes glow {
  0% { text-shadow: 0 0 10px rgba(0, 119, 255, 0.8); }
  50% { text-shadow: 0 0 20px rgba(0, 212, 255, 1); }
  100% { text-shadow: 0 0 10px rgba(0, 119, 255, 0.8); }
}

@media (max-width: 600px) {
  .card h1 {
      font-size: 1.6rem;
  }
}

.card p {
  color: #bff6f8;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  white-space: normal;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: #bff6f8;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: rgba(0, 119, 255, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.4);
  transform: rotate(10deg) scale(1.2);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.achievements-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  color: #bff6f8;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  background: rgba(0, 119, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.achievements-btn:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transform: scale(1.05);
}

.achievements-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Tăng gap để cách xa hơn */
}

.achievement-item {
  background: rgba(0, 119, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  transition: all 0.3s ease;
  margin-bottom: 15px; /* Thêm margin-bottom để đảm bảo khoảng cách */
}

.achievement-item:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.achievement-item h3 {
  color: #00d4ff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
}

.achievement-item p {
  color: #bff6f8;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 5px; /* Cách giữa các <p> trong item */
}

@media (max-width: 600px) {
  .card {
      padding: 20px;
      width: 90%;
      max-height: calc(100vh - 40px);
  }
  .achievement-item {
      padding: 10px;
      margin-bottom: 10px; /* Giảm margin trên mobile */
  }
  .achievements-list {
      gap: 15px; /* Giảm gap trên mobile */
  }
  .achievement-item h3 {
      font-size: 1rem;
  }
  .achievement-item p {
      font-size: 0.8rem;
  }
}

.volume-control {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 12px;
  z-index: 10;
  transition: all 0.3s ease;
}

.volume-control:hover {
  background: rgba(0, 119, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.volume-icon {
  color: #bff6f8;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.volume-control:hover .volume-icon {
  color: #00d4ff;
}

#volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  background: transparent;
}

.volume-control:hover #volume-slider {
  width: 80px;
  opacity: 1;
}

#volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(0, 119, 255, 0.3);
  border-radius: 3px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #00d4ff;
  border-radius: 50%;
  margin-top: -4px;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

#volume-slider::-moz-range-track {
  height: 6px;
  background: rgba(0, 119, 255, 0.3);
  border-radius: 3px;
}

#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #00d4ff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.card.programming-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 250px;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.2);
  font-family: 'Poppins', sans-serif;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-list li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.language-list i {
  margin-right: 10px;
  color: #00bfff;
}
.card.tools-card {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 250px;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.2);
  z-index: 10;
  font-family: 'Poppins', sans-serif;
}

.tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-list li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #bff6f8;
}

.tools-list i {
  margin-right: 10px;
  color: #00bfff;
}

@media (max-width: 768px) {
  .card.tools-card,
  .card.programming-card {
      position: static;
      transform: none;
      width: 90%;
      margin-top: 20px;
  }
}
.view-counter {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #bff6f8;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  font-family: 'Poppins', sans-serif;
}

.view-counter::after {
  content: 'Profile Views';
  position: absolute;
  top: -30px;
  left: 0;
  background: rgba(0, 119, 255, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.view-counter:hover::after {
  opacity: 1;
  transform: translateY(0);
}
