:root {
  --bg: #0b0f14;
  --text: #e6f1ff;
  --muted: #9fb3c8;
  --card: rgba(16, 24, 33, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #5efce8;
  --accent-glow: rgba(94, 252, 232, 0.25);
  --glass: blur(16px) saturate(180%);
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1) saturate(1.2);
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #000 90%);
  pointer-events: none;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.click-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; text-shadow: 0 0 12px var(--accent-glow); }
}

/* Main Container */
.container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glass Card */
.card {
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #4fd1c5;
  border: 2px solid #1a202c;
  border-radius: 50%;
  box-shadow: 0 0 8px #4fd1c5;
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.username {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.badge svg {
  width: 12px;
  height: 12px;
}

/* Bio */
.bio {
  font-size: 14px;
  color: #cbd5e0;
  line-height: 1.6;
}

.sub-bio {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.link-item svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.2s;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.link-item:hover svg {
  color: #fff;
}

/* Specific colors for brands (subtle) */
.link-item.github:hover { border-color: #6e5494; }
.link-item.youtube:hover { border-color: #ff0000; }
.link-item.twitch:hover { border-color: #9146ff; }

/* Projects / Hosting */
.projects-section {
  margin-top: 8px;
}

.projects-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.project-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Skills */
.skills-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(94, 252, 232, 0.08);
  color: var(--accent);
  border-radius: 4px;
  border: 1px solid rgba(94, 252, 232, 0.15);
}

/* Audio Player */
.audio-player-container {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.track-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.track-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.track-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-time {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}

.control-btn:hover {
  color: #fff;
}

.control-btn.play {
  color: var(--accent);
}

.control-btn svg {
  width: 18px;
  height: 18px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

#volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 480px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .badges {
    justify-content: center;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
}
