:root {
  --bg: #0b0c10;
  --card: #11141a;
  --text: #e6e6e6;
  --muted: #a1a1aa;
  --brand: #7c5cff;
  --brand-2: #4ecdc4;
  --accent: #ff6b6b;
  --ring: rgba(255,255,255,.12);
  --r: 16px;
  --sp: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.35);
}

/* Winter theme colors */
.winter-theme {
  --bg: #0a0f1c;
  --card: #1a2332;
  --text: #e0e0e0; /* Adjusted for better readability */
  --brand: #64b5f6;
  --brand-2: #81c784;
  --accent: #e1f5fe;
}

/* Sakura theme colors */
.sakura-theme {
  --bg: #1a0f1a;
  --card: #2d1b2d;
  --text: #f0f0f0; /* Adjusted for better readability */
  --brand: #f48fb1;
  --brand-2: #ce93d8;
  --accent: #fce4ec;
}

/* Neon theme colors */
.neon-theme {
  --bg: #0d0208;
  --card: #1a0f1a;
  --text: #e6e6e6; /* Adjusted for better readability */
  --brand: #ff006e;
  --brand-2: #8338ec;
  --accent: #3a86ff;
}

/* High Contrast theme colors */
.high-contrast-theme {
  --bg: #000000;
  --card: #1a1a1a;
  --text: #ffffff;
  --muted: #cccccc;
  --brand: #00ffff;
  --brand-2: #ff00ff;
  --accent: #ffff00;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--bg), #121826);
  color: var(--text);
  font: 500 16px/1.6 system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.wrap {
  max-width: 480px;
  margin: 24px auto;
  padding: 24px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ring);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
}

.info {
  flex: 1;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.3s ease;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Links Section */
.links {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ring);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.i {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 4px;
}

.i-ig {
  background: conic-gradient(from 200deg, #fdc468, #df4996, #4f5bd5);
}

.i-discord {
  background: #5865f2;
}

.i-github {
  background: #fff;
}

.i-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Chips Section */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.chips li {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-trigger {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.3s ease;
  border: 3px solid rgba(78, 205, 196, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-trigger:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(78, 205, 196, 0.6);
  box-shadow: 0 15px 40px rgba(78, 205, 196, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.about-trigger:active {
  transform: translateY(-4px) scale(1.02);
}

/* Hover effects with labels */
.chips li::after {
  content: attr(data-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 20, 26, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.chips li:hover::after {
  opacity: 1;
  bottom: -30px;
}

/* Add labels via data attributes */
.chips li:nth-child(1)::after {
  content: "About Me";
}

.chips li:nth-child(2)::after {
  content: "Interests & Hobbies";
}

.chips li:nth-child(3)::after {
  content: "Likes & Dislikes";
}

/* Music Player */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ring);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  margin: 20px 0;
}

.player #play,
.player #expand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.player #play:hover,
.player #expand:hover {
  background: var(--brand);
  transform: scale(1.05);
}

.player .track {
  flex: 1;
  min-width: 0;
}

.player #title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.player .bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.player #progress {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 3px;
  transition: right 0.1s ease;
}

/* Hide breadcrumb navigation */
.breadcrumb {
  display: none !important;
}

/* Tools Section */
.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.tools button {
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ring);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tools button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.tools button.active {
  background: var(--brand);
  border-color: var(--brand);
}

/* Modal Styles */
.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal article {
  background: rgba(17, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ring);
  border-radius: 20px;
  padding: 24px;
  min-width: 320px;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal .close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.modal h2 {
  margin: 0 0 16px 0;
  color: var(--brand);
  font-size: 24px;
  text-align: center;
}

.modal h3 {
  margin: 20px 0 12px 0;
  color: var(--brand-2);
  font-size: 18px;
}

.modal h4 {
  margin: 12px 0 8px 0;
  color: var(--text);
  font-size: 16px;
}

.modal p {
  margin: 8px 0;
  line-height: 1.6;
}

.content {
  margin-top: 16px;
}

.interests, .preferences {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.category, .likes, .dislikes {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--ring);
}

/* Playlist Modal */
.playlist-content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.playlist-item:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--brand-2);
}

.playlist-item.active {
  background: rgba(78, 205, 196, 0.2);
  border-color: var(--brand-2);
}

.playlist-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-artist {
  color: var(--muted);
  font-size: 14px;
}

/* Background Video */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.bg.on {
  opacity: 0.3;
}

/* Winter Effects */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.snow-container.active {
  opacity: 1;
}

.snowflake {
  position: absolute;
  color: #fff;
  user-select: none;
  pointer-events: none;
  animation: fall linear infinite;
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .wrap {
    margin: 16px;
    padding: 16px;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .avatar {
    width: 76px;
    height: 76px;
  }
  
  .title {
    font-size: 24px;
  }
  
  .btn {
    padding: 14px 16px;
  }
  
  .tools {
    flex-direction: column;
    align-items: center;
  }
  
  .modal article {
    margin: 16px;
    padding: 20px;
    min-width: auto;
  }
}

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

.wrap > * {
  animation: fadeIn 0.6s ease forwards;
}

.wrap > *:nth-child(1) { animation-delay: 0.1s; }
.wrap > *:nth-child(2) { animation-delay: 0.2s; }
.wrap > *:nth-child(3) { animation-delay: 0.3s; }
.wrap > *:nth-child(4) { animation-delay: 0.4s; }
.wrap > *:nth-child(5) { animation-delay: 0.5s; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}



