/* Nền video */
#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  #bgVideo {
    object-fit: contain;
    min-width: 100%;
    min-height: auto;
    transform: translateX(23px);
  }
}

/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

@media (max-width: 787px) {
  body {
    overflow-y: auto;
    height: 94vh;
  }
}

/* Profile Card */
.profile-card {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  padding: 49px;
  padding-top: 0px;
  padding-right: 45px;
  padding-bottom: 38px;
  border-radius: 15px;
  text-align: center;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border-radius: 15px;
  background: transparent;
  z-index: -1;
  filter: blur(8px);
}

@media screen and (max-width: 400px) {
  .profile-card {
    width: 90%;
    padding: 20px;
  }
}

/* Avatar */
.avatar-wrapper-outer {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 15px auto 0;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  transition: 0.3s;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px white, 0 0 50px rgba(38, 0, 253, 0.5);
}

.avatar-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 2;
  border: 3px solid transparent;
  box-shadow: 0 0 10px transparent;
}

.avatar-img {
  position: absolute;
  top: 12px;
  left: -2px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-frame-outer {
  position: absolute;
  top: 15px;
  left: 3px;
  width: 121px;
  height: 120px;
  z-index: 5;
}

.frame-overlay {
  position: absolute;
  top: 3px;
  left: 48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: scale-down;
  z-index: 11;
  pointer-events: none;
}

@media screen and (max-width: 400px) {
  .frame-overlay {
    top: 2px;
    left: 62px;
    width: 95px;
    height: 110px;
  }
}

/* Name */
.name h2 {
  font-size: 20px;
  position: relative;
  top: -8px;
  left: 2px;
  font-weight: bold;
  color: blue;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Notes (Discord Links) */
.notes {
  margin-top: 20px;
  text-align: center;
}

.notes p {
  margin: 10px 0;
  font-size: 14px;
  opacity: 0.8;
}

.notes a.discord-link {
  display: inline-block;
  padding: 10px 15px;
  background: rgba(114, 137, 218, 0.1);
  border: 1px solid rgba(114, 137, 218, 0.5);
  border-radius: 8px;
  color: #7289da;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(114, 137, 218, 0.3);
  position: relative;
}

.notes a.discord-link:hover {
  background: #7289da;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(114, 137, 218, 0.7);
}

/* Social Links */
.social-links {
  position: relative;
  top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  display: flex;
  gap: 3px;
  height: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a i {
  font-size: 18px;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #3700ff;
  text-shadow: 0 0 10px #0400ff, 0 0 20px blue;
}

/* Music Control */
.music-control {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 1000;
  transition: 0.3s;
}

#soundIcon {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.volume-slider {
  opacity: 0;
  width: 0;
  margin-left: 10px;
  transition: 0.5s ease;
  overflow: hidden;
}

.volume-slider.show {
  opacity: 1;
  width: 100px;
}

.volume-slider input[type="range"] {
  width: 100%;
  accent-color: red;
}

/* Responsive */
@media screen and (max-width: 768px) {
  h2 {
    font-size: 14px;
  }

  .profile-card {
    width: 95%;
    padding: 10px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .social-links a {
    font-size: 12px;
  }

  .music-control {
    top: 10px;
    left: 10px;
  }

  .volume-slider.show {
    width: 80px;
    margin-left: 10px;
  }
}
