*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

:root {
  --bg: #050505;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #818cf8;
  --accent-dim: rgba(129, 140, 248, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-dot.hover {
  width: 10px;
  height: 10px;
  background: #fff;
}

.cursor-ring.hover {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.3);
}

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

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.35);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(129, 140, 248, 0.06), transparent),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.6));
}

/* Music Bar - guns.lol style */
.music-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 280px;
}

.music-bar-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.music-bar-btn:hover {
  background: rgba(129, 140, 248, 0.25);
}

.music-bar-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.music-bar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.music-bar-controls svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: none;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: none;
}

.music-bar-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-left: 8px;
}

.music-bar-visualizer span {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  height: 4px;
  transition: height 0.15s;
}

.music-bar-visualizer.playing span {
  animation: viz 0.5s ease-in-out infinite alternate;
}

.music-bar-visualizer.playing span:nth-child(1) { animation-delay: 0s; }
.music-bar-visualizer.playing span:nth-child(2) { animation-delay: 0.1s; }
.music-bar-visualizer.playing span:nth-child(3) { animation-delay: 0.2s; }
.music-bar-visualizer.playing span:nth-child(4) { animation-delay: 0.15s; }
.music-bar-visualizer.playing span:nth-child(5) { animation-delay: 0.05s; }

@keyframes viz {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Main */
main {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  main {
    padding: 40px 16px 100px;
  }
  .music-bar {
    min-width: unset;
    width: calc(100% - 32px);
  }
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
}

.status-online { background: #22c55e; }
.status-idle { background: #facc15; }
.status-dnd { background: #ef4444; }
.status-offline { background: #71717a; }

.profile-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0.9;
}

.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Discord Card */
.discord-card-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.discord-card-link:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Live Activity */
.live-activity {
  margin-bottom: 16px;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 12px;
  animation: fade-in 0.4s ease;
}

.live-card img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.live-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.live-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
}

.live-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.live-card-detail {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* Weight Bars */
.weight-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.weight-item {
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.weight-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.weight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.weight-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.weight-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.weight-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.weight-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.weight-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.tech-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.tech-icon {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}

.tech-item:hover .tech-icon {
  opacity: 1;
}

.tech-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Project Cards */
.project-card {
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.project-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
