:root {
  --bg-color: #000000;
  --accent-color: #ffffff;
  --text-main: #ffffff;
  --text-dim: #888888;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  position: relative;
  z-index: 10;
  animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  z-index: 100;
}

.scroll-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  margin-top: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-box {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  border-radius: 32px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: border-color 0.3s ease;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  z-index: 3;
  background-color: #747f8d;
  transition: background-color 0.3s ease;
}

.username {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1.5px;
}

.discord-tag {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  display: block;
}

.activity-section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.activity-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.activity-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  transition: opacity 0.3s ease;
}

.activity-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px currentColor;
}

.activity-icon.spotify-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.5);
}

.activity-text {
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.links-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.link-item {
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.projects-section {
  width: 100%;
  max-width: 420px;
  margin: 220px auto 60px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--box-shadow);
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.project-name {
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
}

.status-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #555;
  transition: background-color 0.3s ease;
}

.status-online { background-color: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.status-offline { background-color: #e74c3c; box-shadow: 0 0 8px #e74c3c; }

.langs-container {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.langs-track {
  display: flex;
  gap: 12px;
  animation: scrollLeft 25s linear infinite;
  width: max-content;
}

.lang-box {
  flex: 0 0 auto;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s ease;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

.langs-container {
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.langs-container::before,
.langs-container::after {
  display: none;
}

.lyrics-section {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.lyrics-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.lyrics-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  justify-content: center;
}

.lyrics-body.lyrics-scroll {
  display: block;
  position: relative;
  height: 220px;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.lyrics-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.lyrics-line {
  font-size: 1.2rem;
  color: var(--text-dim);
  opacity: 0.55;
  transform-origin: center;
  transition: color 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-line.lyrics-current {
  color: var(--text-main);
  opacity: 1;
  font-weight: 700;
  transform: scale(1.15);
}

.lyrics-line.lyrics-message {
  font-size: 0.9rem;
  opacity: 1;
  animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-plain {
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.lyrics-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.lyrics-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

.lyrics-time:first-child { text-align: right; }
.lyrics-time:last-child { text-align: left; }

.lyrics-bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lyrics-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--text-main);
  transition: width 0.25s linear;
}

.lyrics-bar-hit {
  flex: 1;
  padding: 8px 0;
}

.lyrics-bar-hit.seekable { cursor: pointer; }

.lyrics-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.lyrics-controls[hidden],
.lyrics-btn[hidden] { display: none; }

.lyrics-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lyrics-btn.main { width: 44px; height: 44px; }

.lyrics-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lyrics-btn svg { width: 16px; height: 16px; fill: currentColor; }
.lyrics-btn.main svg { width: 20px; height: 20px; }
.lyrics-btn .icon-pause { display: none; }
.lyrics-btn.is-playing .icon-play { display: none; }
.lyrics-btn.is-playing .icon-pause { display: inline; }

.activity-source {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--text-dim);
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease, color 0.3s ease;
}

.activity-source.visible {
  max-height: 20px;
  margin-top: 10px;
  opacity: 1;
}

.activity-source[data-source="spotify"] { color: #1ed760; }
.activity-source[data-source="soundcloud"] { color: #ff5500; }

.lyrics-error {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #e74c3c;
  text-align: center;
  word-break: break-word;
}

.lyrics-error[hidden] { display: none; }

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  cursor: pointer;
  touch-action: none;
  overscroll-behavior: contain;
  outline: none;
  transition: opacity 0.8s ease;
}

.enter-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.enter-text {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: lowercase;
  user-select: none;
  animation:
    fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    enterPulse 2.4s ease-in-out 1.2s infinite;
}

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

.lyrics-section {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.lyrics-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.lyrics-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  justify-content: center;
}

.lyrics-body.lyrics-scroll {
  display: block;
  position: relative;
  height: 220px;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.lyrics-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.lyrics-line {
  font-size: 1.2rem;
  color: var(--text-dim);
  opacity: 0.55;
  transform-origin: center;
  transition: color 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-line.lyrics-current {
  color: var(--text-main);
  opacity: 1;
  font-weight: 700;
  transform: scale(1.15);
}

.lyrics-line.lyrics-message {
  font-size: 0.9rem;
  opacity: 1;
  animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-plain {
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.lyrics-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.lyrics-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

.lyrics-time:first-child { text-align: right; }
.lyrics-time:last-child { text-align: left; }

.lyrics-bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lyrics-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--text-main);
  transition: width 0.25s linear;
}

.lyrics-bar-hit {
  flex: 1;
  padding: 8px 0;
}

.lyrics-bar-hit.seekable { cursor: pointer; }

.lyrics-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.lyrics-controls[hidden],
.lyrics-btn[hidden] { display: none; }

.lyrics-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lyrics-btn.main { width: 44px; height: 44px; }

.lyrics-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lyrics-btn svg { width: 16px; height: 16px; fill: currentColor; }
.lyrics-btn.main svg { width: 20px; height: 20px; }
.lyrics-btn .icon-pause { display: none; }
.lyrics-btn.is-playing .icon-play { display: none; }
.lyrics-btn.is-playing .icon-pause { display: inline; }

.activity-source {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--text-dim);
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease, color 0.3s ease;
}

.activity-source.visible {
  max-height: 20px;
  margin-top: 10px;
  opacity: 1;
}

.activity-source[data-source="spotify"] { color: #1ed760; }
.activity-source[data-source="soundcloud"] { color: #ff5500; }

.lyrics-error {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #e74c3c;
  text-align: center;
  word-break: break-word;
}

.lyrics-error[hidden] { display: none; }

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  cursor: pointer;
  touch-action: none;
  overscroll-behavior: contain;
  outline: none;
  transition: opacity 0.8s ease;
}

.enter-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.enter-text {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: lowercase;
  user-select: none;
  animation:
    fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    enterPulse 2.4s ease-in-out 1.2s infinite;
}

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