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

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: left center;
  z-index: -2;
  filter: brightness(0.4) blur(2px);
}

.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.menu {
  position: fixed;
  top: 20px;
  left: 90px;
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
}

.menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.menu a:hover::after {
  width: 80%;
}

.hero {
  transform: translateY(0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px 20px;
}

.status-hero {
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px 20px;
}

.avatar-row-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -15px;
}

.avatar#main-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,255,255,0.4), 
              0 0 80px rgba(255,255,255,0.2),
              0 0 0 8px rgba(255,255,255,0.1);
  border: 4px solid rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: avatar-glow 3s infinite alternate;
  position: relative;
}

.avatar#main-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #fff, transparent, #fff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 3s linear infinite;
}

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

@keyframes avatar-glow {
  0% {
    box-shadow: 0 0 30px rgba(255,255,255,0.3), 
                0 0 60px rgba(255,255,255,0.15),
                0 0 0 6px rgba(255,255,255,0.08);
  }
  100% {
    box-shadow: 0 0 50px rgba(255,255,255,0.5), 
                0 0 100px rgba(255,255,255,0.25),
                0 0 0 12px rgba(255,255,255,0.15);
  }
}

.avatar#main-avatar:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 60px rgba(255,255,255,0.6), 
              0 0 120px rgba(255,255,255,0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transition: transform 0.5s ease;
}

.avatar#main-avatar:hover img {
  transform: scale(1.1);
}

h1, .wavy-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 20px rgba(255,255,255,0.3));
  margin: 16px 0 12px 0;
  animation: shake 14s infinite ease-in-out;
  transform-origin: 50% 60%;
  letter-spacing: -0.5px;
}

@keyframes shake {
  0%, 100% { transform: rotate(-3deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

h1:hover {
  animation-play-state: paused;
  transform: scale(1.03) rotate(0deg);
}

.desc {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.desc:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.location {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
}

.location:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.loc-icon {
  width: 20px;
  height: 20px;
  filter: brightness(1.2) drop-shadow(0 0 4px rgba(255,255,255,0.5));
  pointer-events: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.custom-player {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.custom-player:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.12) 100%);
}

#btn {
  outline: none;
  border: none;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

#btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

#btn:hover::before {
  opacity: 1;
  animation: rotate 2s linear infinite;
}

#btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.5);
}

#btn:active {
  transform: scale(0.95);
}

#btn-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
  user-select: none;
}

.track-title {
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.socials {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.socials a {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.socials a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.socials a:hover::before {
  opacity: 1;
}

.socials a:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255,255,255,0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.socials a img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  padding: 8px;
  transition: all 0.3s ease;
  pointer-events: none;
  display: block;
}

.socials a:hover img {
  transform: scale(1.1);
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

#falling-chars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.char {
  position: absolute;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 24px rgba(0,255,255,0.6);
  opacity: 0.7;
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

body {
  cursor: url('../icons/cur.png'), auto;
}

a:hover, button:hover {
  cursor: url('../icons/cur.png'), pointer;
}

/* Overlay blur improvements */
#overlay-blur {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
  cursor: pointer;
}

#overlay-blur.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-text {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-shadow: 0 4px 32px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.6);
  user-select: none;
  pointer-events: none;
  letter-spacing: 1px;
  animation: overlayTextFadeIn 1.5s ease-out;
  text-align: center;
  padding: 0 20px;
}

@keyframes overlayTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.blur-active > *:not(#overlay-blur) {
  filter: blur(20px) brightness(0.4);
  pointer-events: none;
  user-select: none;
}

#overlay-blur .ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4), rgba(255,255,255,0.1), transparent);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-effect 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@keyframes ripple-effect {
  to {
    transform: scale(10);
    opacity: 0;
  }
}

/* Lyrics box improvements */
#lyrics-box {
  position: fixed;
  bottom: 32px;
  left: 0;
  width: 100vw;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  pointer-events: none;
  z-index: 9999;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8));
}

#lyrics-box.show {
  opacity: 1;
  transform: translateY(-8px);
}

.lyric-inner {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.9);
  z-index: 1;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lyric-mask {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.5));
  z-index: 2;
  pointer-events: none;
  transition: width linear;
  mix-blend-mode: overlay;
  border-radius: 4px;
}

/* Discord status improvements */
.status-row-right {
  width: 95%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 8px;
}

.discord-status-box-center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(40,40,40,0.4) 0%, rgba(20,20,20,0.3) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 140px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.discord-status-box-center:hover {
  background: linear-gradient(135deg, rgba(50,50,50,0.5) 0%, rgba(30,30,30,0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.discord-activity {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .menu {
    left: 70px;
    padding: 10px 16px;
    gap: 12px;
  }

  .menu a {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .avatar#main-avatar {
    width: 120px;
    height: 120px;
  }

  h1, .wavy-title {
    font-size: 2rem;
    margin: 12px 0 8px 0;
  }

  .desc {
    font-size: 1rem;
  }

  .custom-player {
    max-width: 280px;
    padding: 10px 16px;
  }

  .socials {
    gap: 12px;
    margin-bottom: 60px;
  }

  .socials a img {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  #lyrics-box {
    font-size: 1rem;
    bottom: 16px;
    min-height: 2em;
  }

  .lyric-inner {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .discord-status-box-center {
    font-size: 0.9rem;
    padding: 8px 12px;
    min-width: 100px;
  }

  .status-row-right {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  #bg-video {
    object-position: 25% center;
  }

  .menu-toggle {
    padding: 10px 12px;
  }

  .avatar#main-avatar {
    width: 100px;
    height: 100px;
  }

  .location {
    font-size: 0.95rem;
    padding: 6px 12px;
  }

  .socials a {
    padding: 6px;
  }

  .socials a img {
    width: 36px;
    height: 36px;
    padding: 5px;
  }
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

a:focus, button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}