* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #121212;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hidden {
  display: none;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #1e90ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.7);
  z-index: -1;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  z-index: 1;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: width 0.3s, height 0.3s;
}

.name {
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: font-size 0.3s;
}

.links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.8rem;
  transition: font-size 0.3s, gap 0.3s;
}

.links a {
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.links a:hover {
  color: #1e90ff;
  transform: scale(1.2);
}

.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 3;
}

.sound-toggle:hover {
  color: #1e90ff;
  transform: scale(1.2);
}

footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 0.9rem;
  background: transparent;
  z-index: 2;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-left span {
  display: flex;
  align-items: center;
}

.footer-left .fas {
  margin-right: 0.5rem;
}

.footer-right {
  gap: 1.5rem;
}

.error-message {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.home-link {
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: #1e90ff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.home-link:hover {
  background-color: #0d6efd;
}

@media (max-width: 1200px) {
  .avatar {
    width: 140px;
    height: 140px;
  }

  .name {
    font-size: 2.3rem;
  }

  .links {
    font-size: 1.7rem;
    gap: 1.3rem;
  }
}

@media (max-width: 1024px) {
  .avatar {
    width: 130px;
    height: 130px;
  }

  .name {
    font-size: 2.2rem;
  }

  .links {
    font-size: 1.6rem;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .avatar {
    width: 120px;
    height: 120px;
  }

  .name {
    font-size: 2rem;
  }

  .links {
    font-size: 1.5rem;
    gap: 1rem;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .footer-right {
    flex-direction: row;
    gap: 1rem;
  }

  .sound-toggle {
    font-size: 1.3rem;
  }

  .content-wrapper .content {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .avatar {
    width: 100px;
    height: 100px;
  }

  .name {
    font-size: 1.8rem;
  }

  .links {
    font-size: 1.2rem;
    gap: 0.8rem;
  }

  .sound-toggle {
    font-size: 1rem;
  }

  footer {
    padding: 5px 10px;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-right {
    flex-direction: row;
    gap: 1rem;
  }
}
