@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ==========================================
   1. RESET & CORE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #050508;
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ==========================================
   2. ENTER SCREEN
   ========================================== */
#enter-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.enter-text {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 16px rgba(255, 255, 255, 0.8); }
}

/* ==========================================
   3. DYNAMIC BACKGROUND
   ========================================== */
.media-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.bg-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  filter: brightness(0.6);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: -1;
}

/* ==========================================
   4. SNAP SCROLL CONTAINER
   ========================================== */
.snap-container {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}

.snap-container::-webkit-scrollbar {
  display: none;
}

section {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
  perspective: 1000px;
}

section:nth-child(1),
section:nth-child(3) {
  align-items: center !important;
  justify-content: center !important;
}

section#about-section,
.snap-container > section:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding-left: 9vw !important;
  padding-right: 20px !important;
}

/* ==========================================
   5. FADE IN SLIDE UP ANIMATION
   ========================================== */
.fade-slide-wrapper {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-slide-wrapper.active {
  opacity: 1 !important;
  transform: translateY(0) translateZ(0) !important;
}

section:nth-child(1) .fade-slide-wrapper {
  align-items: center !important;
  max-width: 600px;
}

section:nth-child(3) .fade-slide-wrapper {
  align-items: center !important;
  max-width: 680px;
}

/* ==========================================
   6. SECTION 1: BIO CARD 3D
   ========================================== */
.bio-card.tilt-card-3d {
  width: 100%;
  padding: 35px 24px;
  border-radius: 28px;
  text-align: center;
  position: relative;
  background: transparent !important;
  border: none !important;
  transform-style: preserve-3d;
}

.avatar-wrapper {
  width: 105px;
  height: 105px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transform: translateZ(35px);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.username {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8);
  transform: translateZ(30px);
}

.badges-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 22px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: rgba(18, 18, 26, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  z-index: 1000;
  transform: translateZ(40px);
}

.badge-item {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.badge-item:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.badge-item .tooltip {
  position: absolute !important;
  bottom: 140% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 10, 15, 0.95) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  z-index: 999999 !important;
}

.badge-item:hover .tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.bio-description-wrapper {
  margin-bottom: 22px;
  padding: 0 10px;
  transform: translateZ(20px);
}

.bio-description {
  font-size: 1.05rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.8);
  min-height: 30px;
}

.typing-cursor {
  display: inline-block;
  color: #ffffff;
  margin-left: 2px;
  font-weight: 800;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  transform: translateZ(28px);
}

.social-links a {
  color: #ffffff !important;
  font-size: 1.6rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.95));
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.25);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95));
}

.scroll-hint {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ==========================================
   7. SECTION 2: ABOUT ME
   ========================================== */
#about-card-wrapper {
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

.content-box {
  width: 100%;
  text-align: left !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: left !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.9);
}

.subtitle {
  color: #e5e7eb;
  font-weight: 600;
  margin-bottom: 22px;
  font-size: 1rem;
  min-height: 24px;
  text-align: left !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.info-card {
  padding: 0;
  background: transparent;
  width: 100%;
  text-align: left !important;
}

.info-card ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: left !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9);
}

.info-card ul li {
  margin-bottom: 12px;
  text-align: left !important;
}

/* ==========================================
   8. SECTION 3: MUSIC PLAYER (THU NHỎ TITLE & NÚT ĐẸP)
   ========================================== */
.ez-music-card.borderless {
  width: 100%;
  max-width: 680px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
}

.ez-cover-box {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.ez-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ez-player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.ez-info-box {
  text-align: left;
}

/* Tên bài hát được thu nhỏ gọn gàng hơn */
.ez-song-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.2px;
}

.ez-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ez-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  min-width: 36px;
}

.ez-progress-container {
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ez-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  position: relative;
  transition: height 0.15s ease;
}

.ez-progress-container:hover .ez-progress-bar {
  height: 6px;
}

.ez-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.ez-progress-scrubber {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease;
}

.ez-progress-container:hover .ez-progress-scrubber {
  transform: translateY(-50%) scale(1.3);
}

/* Cụm nút bấm điều khiển */
.ez-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 6px;
}

.ez-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.ez-btn:hover {
  color: #ffffff;
  transform: scale(1.18);
}

.ez-btn.ez-play-btn {
  font-size: 1.35rem;
}

/* ==========================================
   9. QUICK VOLUME CONTROL
   ========================================== */
.audio-wrapper {
  position: fixed;
  top: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  height: 42px;
  width: 42px;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 100;
  padding: 0;
  overflow: hidden;
  opacity: 0.85;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.audio-wrapper:hover {
  width: 170px;
  opacity: 1;
}

.audio-control {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  outline: none;
}

.audio-control i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  padding-right: 12px;
  transition: opacity 0.2s ease 0.05s, visibility 0.2s ease 0.05s;
}

.audio-wrapper:hover .volume-slider-container {
  opacity: 1;
  visibility: visible;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Nav Dots & Bottom Info */
.nav-dots {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(10, 10, 15, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.dot:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.bottom-info {
  position: fixed;
  bottom: 20px;
  left: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  z-index: 100;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ez-music-card.borderless {
    max-width: 95vw;
    padding: 6px;
    gap: 12px;
  }

  .ez-cover-box {
    width: 56px;
    height: 56px;
  }

  .ez-song-title {
    font-size: 0.85rem;
  }

  .ez-time {
    font-size: 0.85rem;
    min-width: 30px;
  }

  .ez-controls-row {
    gap: 8px;
  }

  .ez-player-controls {
    gap: 10px;
  }

  section#about-section,
  .snap-container > section:nth-child(2) {
    padding-left: 6vw !important;
    padding-right: 6vw !important;
    align-items: center !important;
    text-align: center !important;
  }

  .fade-slide-wrapper {
    align-items: center !important;
  }

  .content-box,
  .section-title,
  .subtitle,
  .info-card,
  .info-card ul,
  .info-card ul li {
    text-align: center !important;
  }

  .info-card ul {
    padding-left: 0 !important;
    list-style-position: inside;
  }

  .audio-wrapper {
    top: 15px;
    left: 15px;
  }

  .nav-dots {
    right: 15px;
  }

  .bottom-info {
    left: 15px;
    bottom: 15px;
    font-size: 0.75rem;
  }
}