/* ========================================
   DESIGN TOKENS & CSS VARIABLES
   ======================================== */
:root {
  /* Colors - Balanced Dark Theme (not too dark, not too bright) */
  --bg-primary: rgba(12, 12, 22, 0.88);
  --bg-card: rgba(25, 25, 45, 0.55);
  --bg-card-hover: rgba(30, 30, 55, 0.62);
  --bg-status: rgba(20, 20, 40, 0.55);
  --bg-player: rgba(22, 22, 42, 0.55);

  --glass-border: rgba(140, 130, 200, 0.18);
  --glass-border-hover: rgba(160, 150, 220, 0.3);
  --glass-shadow: rgba(120, 110, 200, 0.08);

  --text-primary: #eaeaf2;
  --text-secondary: rgba(210, 210, 230, 0.75);
  --text-muted: rgba(170, 170, 200, 0.55);

  /* Soft purple/violet accent - elegant, not neon */
  --accent: #9585d6;
  --accent-glow: rgba(149, 133, 214, 0.3);
  --accent-bright: #b8aaef;
  --accent-secondary: #7b9ec7;
  --accent-secondary-glow: rgba(123, 158, 199, 0.25);

  --online-green: #6fcf97;
  --danger: #e88;
  --terminal-green: #7ecfa0;

  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: #08081a;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   ENTER SCREEN — Hacker Boot Sequence
   ======================================== */
.enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s var(--ease-out);
  overflow: hidden;
}

.enter-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #00ff88;
  max-width: 600px;
  width: 90%;
  line-height: 1.8;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.boot-line {
  opacity: 0;
  animation: bootLineIn 0.15s forwards;
  white-space: nowrap;
  overflow: hidden;
}

.boot-line.error {
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

.boot-line.warning {
  color: #ffaa00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

.boot-line.success {
  color: #00ff88;
}

.boot-line.accent {
  color: var(--accent-bright);
  text-shadow: 0 0 8px var(--accent-glow);
}

@keyframes bootLineIn {
  from { opacity: 0; transform: translateX(-5px); }
  to   { opacity: 1; transform: translateX(0); }
}

.boot-enter {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.boot-enter.visible {
  display: flex;
  animation: bootEnterPulse 0.5s ease-out;
}

.boot-access {
  color: #00ff88;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
  animation: accessGlow 1.5s ease-in-out infinite alternate;
}

@keyframes accessGlow {
  0%   { text-shadow: 0 0 20px rgba(0, 255, 136, 0.6); }
  100% { text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.4); }
}

.boot-click {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-primary);
  font-size: 14px;
  animation: pulse-enter 2s infinite ease-in-out;
}

@keyframes pulse-enter {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes bootEnterPulse {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.boot-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 255, 136, 0.08);
  animation: bootScanMove 3s linear infinite;
  pointer-events: none;
}

@keyframes bootScanMove {
  0%   { top: 0; }
  100% { top: 100%; }
}

.boot-flicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 136, 0.02);
  pointer-events: none;
  animation: crtFlicker 0.1s infinite;
}

@keyframes crtFlicker {
  0%   { opacity: 0.02; }
  50%  { opacity: 0.04; }
  100% { opacity: 0.01; }
}

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 133, 214, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}


/* ========================================
   VIDEO BACKGROUND
   ======================================== */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

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

/* Overlay - balanced, not too dark */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(8, 8, 26, 0.35) 0%, rgba(8, 8, 26, 0.65) 100%);
  pointer-events: none;
}

/* Scanlines */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.02) 0px,
    rgba(0, 0, 0, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanline-flicker 8s ease-in-out infinite;
}

@keyframes scanline-flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.2; }
}

/* Matrix Rain Canvas */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* ========================================
   CONSTELLATION CANVAS
   ======================================== */
.constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ========================================
   VOLUME BUTTON
   ======================================== */
.volume-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  color: var(--accent-bright);
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--glass-shadow);
}

/* ========================================
   VIEW COUNTER
   ======================================== */
.view-counter {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
}

.view-counter i {
  color: var(--accent);
  font-size: 12px;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  max-width: 640px;
  width: 100%;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

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

/* ========================================
   PROFILE CARD
   ======================================== */
.profile-card {
  width: 100%;
  padding: 38px 34px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 
    0 8px 36px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(149, 133, 214, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: breathingGlow 4s ease-in-out infinite alternate 1s;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
  position: relative;
  overflow: hidden;
}

@keyframes breathingGlow {
  0% {
    box-shadow: 
      0 8px 36px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(149, 133, 214, 0.04) inset,
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 0 10px rgba(149, 133, 214, 0.1);
  }
  100% {
    box-shadow: 
      0 8px 36px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(149, 133, 214, 0.04) inset,
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 0 30px rgba(149, 133, 214, 0.5);
  }
}

/* Shimmer */
.profile-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(149, 133, 214, 0.1) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmer-border 5s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes shimmer-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 0 40px var(--glass-shadow),
    0 0 0 1px rgba(149, 133, 214, 0.06) inset;
}

/* ========================================
   AVATAR
   ======================================== */
.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center 30%;
  border: 3px solid rgba(20, 20, 40, 0.8);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.avatar-wrapper:hover .avatar {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* Soft ring - muted tones matching avatar */
.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    from 0deg,
    #9585d6,
    #7b9ec7,
    #9585d6,
    #7b9ec7,
    #9585d6
  );
  z-index: 1;
  animation: ring-rotate 5s linear infinite;
  opacity: 0.55;
}

.avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(149, 133, 214, 0.1),
    transparent,
    rgba(123, 158, 199, 0.1),
    transparent
  );
  animation: ring-rotate 7s linear infinite reverse;
  opacity: 0.4;
}

@keyframes ring-rotate {
  to {
    transform: rotate(360deg);
  }
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--online-green);
  border: 3px solid rgba(20, 20, 40, 0.8);
  z-index: 3;
  box-shadow: 0 0 6px rgba(111, 207, 151, 0.25);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 4px rgba(111, 207, 151, 0.2);
  }
  50% {
    box-shadow: 0 0 10px rgba(111, 207, 151, 0.35), 0 0 18px rgba(111, 207, 151, 0.15);
  }
}

/* ========================================
   USERNAME
   ======================================== */
.username {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 0 25px rgba(149, 133, 214, 0.2);
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ========================================
   TERMINAL BOX (Quote)
   ======================================== */
.terminal-box {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(10, 10, 24, 0.6);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 15, 30, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff605c; }
.terminal-dot.yellow { background: #ffbd44; }
.terminal-dot.green { background: #00ca4e; }

.terminal-title {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-prompt {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.terminal-user {
  color: var(--terminal-green);
  font-weight: 500;
}

.terminal-at {
  color: var(--text-muted);
}

.terminal-host {
  color: var(--accent-secondary);
  font-weight: 500;
}

.terminal-path {
  color: var(--accent-bright);
}

.terminal-output {
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  padding-left: 4px;
  letter-spacing: 0.2px;
}

.terminal-author {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: 4px;
}

/* ========================================
   TAGS
   ======================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(149, 133, 214, 0.07);
  color: var(--accent-bright);
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}

.tag:hover::before {
  left: 100%;
}

.tag:hover {
  background: rgba(149, 133, 214, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-2px);
}

.tag i {
  font-size: 10px;
}

/* ========================================
   LOCATION
   ======================================== */
.location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.location i {
  color: var(--danger);
  font-size: 11px;
  animation: location-bounce 2.5s ease-in-out infinite;
}

@keyframes location-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ========================================
   STATUS CARD
   ======================================== */
.status-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-status);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.status-card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(25, 25, 50, 0.65);
  transform: translateX(4px);
}

.status-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center 30%;
}

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

.status-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.status-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-circle {
  font-size: 6px;
  color: var(--online-green);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* Rich Presence */
.status-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-rich-presence {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.rp-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rp-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.rp-state, .rp-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-primary);
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 4px;
}

.social-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(149, 133, 214, 0.05);
  color: var(--text-secondary);
  font-size: 17px;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.social-icon:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Brand colors on hover */
.social-icon[aria-label="Discord"]:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: #5865F2;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.25);
}
.social-icon[aria-label="Facebook"]:hover {
  background: rgba(66, 103, 178, 0.2);
  border-color: #4267B2;
  box-shadow: 0 6px 18px rgba(66, 103, 178, 0.25);
}
.social-icon[aria-label="TikTok"]:hover {
  background: rgba(254, 44, 85, 0.15);
  border-color: #FE2C55;
  box-shadow: 0 6px 18px rgba(254, 44, 85, 0.25);
}
.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(253, 29, 29, 0.15), rgba(252, 176, 69, 0.15));
  border-color: #C13584;
  box-shadow: 0 6px 18px rgba(193, 53, 132, 0.25);
}
.social-icon[aria-label="GitHub"]:hover {
  background: rgba(200, 200, 200, 0.12);
  border-color: #c8c8c8;
  box-shadow: 0 6px 18px rgba(200, 200, 200, 0.15);
}

/* Tooltip */
.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   MUSIC PLAYER
   ======================================== */
.music-player {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--bg-player);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 
    0 8px 36px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(149, 133, 214, 0.04) inset;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Gradient line */
.music-player::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--accent), 
    var(--accent-secondary), 
    var(--accent)
  );
  background-size: 200% 100%;
  animation: gradient-slide 4s linear infinite;
  opacity: 0.45;
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.music-player:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 0 30px var(--glass-shadow);
  transform: translateY(-2px);
}

/* Artwork */
.player-artwork {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(149, 133, 214, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.artwork-overlay i {
  color: white;
  font-size: 18px;
}

.player-artwork:hover .artwork-img {
  transform: scale(1.1);
}

.player-artwork:hover .artwork-overlay {
  opacity: 1;
}

/* Player Info */
.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.song-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Progress Bar */
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-current,
.time-total {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--transition-fast);
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 4px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px var(--accent-glow);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--accent-bright);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-fast);
  box-shadow: 0 0 8px var(--accent-glow);
}

.progress-bar:hover .progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  color: var(--accent-bright);
  transform: scale(1.15);
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  font-size: 13px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all var(--transition-normal);
}

.play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: white;
}

.play-btn.playing {
  animation: pulse-play 2.5s ease-in-out infinite;
}

@keyframes pulse-play {
  0%, 100% {
    box-shadow: 0 4px 16px var(--accent-glow);
  }
  50% {
    box-shadow: 0 4px 24px var(--accent-glow), 0 0 40px rgba(149, 133, 214, 0.15);
  }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(149, 133, 214, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(149, 133, 214, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
  body {
    cursor: auto;
  }

  .cursor-glow {
    display: none;
  }

  .container {
    padding: 24px 16px;
    gap: 12px;
    max-width: 100%;
  }

  .profile-card {
    padding: 28px 20px 22px;
  }

  .username {
    font-size: 22px;
  }

  .terminal-output {
    font-size: 12px;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .music-player {
    padding: 12px 14px;
  }

  .player-artwork {
    width: 48px;
    height: 48px;
  }

  .volume-btn {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .view-counter {
    bottom: 16px;
    left: 16px;
  }

  .constellation-canvas {
    display: none;
  }

  .ripple-canvas {
    display: none;
  }

  .github-heatmap {
    padding: 14px 12px 10px;
  }

  .heatmap-grid {
    gap: 1px;
  }

  .heatmap-cell {
    width: 7px;
    height: 7px;
  }
}

/* ========================================
   LIQUID RIPPLE CANVAS
   ======================================== */
.ripple-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* ========================================
   GLITCH EFFECT — Username
   ======================================== */
.glitch-wrapper {
  position: relative;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.glitch-wrapper::before {
  color: #ff00aa;
  z-index: -1;
}

.glitch-wrapper::after {
  color: #00ffff;
  z-index: -1;
}

.glitch-wrapper:hover::before {
  opacity: 0.8;
  animation: glitchTop 0.3s infinite linear alternate-reverse;
}

.glitch-wrapper:hover::after {
  opacity: 0.8;
  animation: glitchBottom 0.3s infinite linear alternate-reverse;
}

.glitch-wrapper:hover {
  animation: glitchMain 0.3s infinite linear alternate-reverse;
}

@keyframes glitchMain {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px, 2px); }
  40%  { transform: translate(-2px, -2px); }
  60%  { transform: translate(2px, 2px); }
  80%  { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitchTop {
  0%   { clip-path: inset(0 0 80% 0); transform: translate(-3px, -2px); }
  25%  { clip-path: inset(20% 0 60% 0); transform: translate(3px, 2px); }
  50%  { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 1px); }
  75%  { clip-path: inset(60% 0 20% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(80% 0 0 0); transform: translate(-1px, 2px); }
}

@keyframes glitchBottom {
  0%   { clip-path: inset(80% 0 0 0); transform: translate(3px, 2px); }
  25%  { clip-path: inset(60% 0 20% 0); transform: translate(-3px, -2px); }
  50%  { clip-path: inset(40% 0 40% 0); transform: translate(2px, -1px); }
  75%  { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
  100% { clip-path: inset(0 0 80% 0); transform: translate(1px, -2px); }
}

/* ========================================
   AUDIO VISUALIZER
   ======================================== */
.audio-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  border-radius: var(--radius-xl);
}

.music-player {
  position: relative;
}

.music-player > *:not(.audio-visualizer) {
  position: relative;
  z-index: 1;
}

/* ========================================
   HOLOGRAPHIC CARD EFFECT
   ======================================== */
.profile-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.profile-card .holo-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.profile-card:hover .holo-shine {
  opacity: 1;
}

.profile-card .holo-rainbow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    var(--holo-angle, 135deg),
    rgba(255, 0, 128, 0.08),
    rgba(255, 165, 0, 0.08),
    rgba(255, 255, 0, 0.08),
    rgba(0, 255, 128, 0.08),
    rgba(0, 128, 255, 0.08),
    rgba(128, 0, 255, 0.08),
    rgba(255, 0, 128, 0.08)
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-card:hover .holo-rainbow {
  opacity: 1;
}

.profile-card > *:not(.holo-shine):not(.holo-rainbow) {
  position: relative;
  z-index: 1;
}

/* ========================================
   GITHUB HEATMAP
   ======================================== */
.github-heatmap {
  width: 100%;
  padding: 18px 20px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(149, 133, 214, 0.04) inset;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.github-heatmap:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 0 30px var(--glass-shadow);
  transform: translateY(-2px);
}

.heatmap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.heatmap-header i {
  font-size: 18px;
  color: var(--text-secondary);
}

.heatmap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.heatmap-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.heatmap-link:hover {
  color: var(--accent-bright);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  grid-auto-flow: column;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(149, 133, 214, 0.06);
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
}

.heatmap-cell[data-level="1"] { background: rgba(149, 133, 214, 0.2); }
.heatmap-cell[data-level="2"] { background: rgba(149, 133, 214, 0.4); }
.heatmap-cell[data-level="3"] { background: rgba(149, 133, 214, 0.6); }
.heatmap-cell[data-level="4"] { background: rgba(149, 133, 214, 0.85); box-shadow: 0 0 4px var(--accent-glow); }

.heatmap-cell:hover {
  transform: scale(1.8);
  z-index: 10;
  box-shadow: 0 0 8px var(--accent-glow);
}

.heatmap-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 10px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.heatmap-cell:hover::after {
  opacity: 1;
}

.heatmap-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.heatmap-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.heatmap-legend {
  display: flex;
  gap: 3px;
}

.legend-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(149, 133, 214, 0.06);
}

.legend-cell[data-level="1"] { background: rgba(149, 133, 214, 0.2); }
.legend-cell[data-level="2"] { background: rgba(149, 133, 214, 0.4); }
.legend-cell[data-level="3"] { background: rgba(149, 133, 214, 0.6); }
.legend-cell[data-level="4"] { background: rgba(149, 133, 214, 0.85); }

/* ========================================
   EASTER EGG — Matrix Rain
   ======================================== */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.matrix-canvas.active {
  opacity: 0.6;
}

/* Easter Egg — Party/Confetti Mode */
.party-mode .profile-card {
  animation: partyCard 0.5s ease infinite alternate !important;
}

@keyframes partyCard {
  0%   { border-color: #ff0080; box-shadow: 0 0 30px rgba(255, 0, 128, 0.4); }
  25%  { border-color: #ff8c00; box-shadow: 0 0 30px rgba(255, 140, 0, 0.4); }
  50%  { border-color: #00ff88; box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); }
  75%  { border-color: #00bfff; box-shadow: 0 0 30px rgba(0, 191, 255, 0.4); }
  100% { border-color: #bf00ff; box-shadow: 0 0 30px rgba(191, 0, 255, 0.4); }
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  z-index: 99998;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg);
  }
}

/* Easter Egg notification */
.easter-egg-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 100002;
  animation: toastIn 0.4s var(--ease-spring), toastOut 0.4s ease 3s forwards;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
  backdrop-filter: blur(12px);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ========================================
   EASTER EGG — "i miss her" Overlay
   ======================================== */
.miss-her-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.miss-her-overlay.visible {
  opacity: 1;
}

.miss-her-text {
  font-family: var(--font-primary);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  letter-spacing: 6px;
  text-transform: lowercase;
  text-shadow:
    0 0 20px rgba(149, 133, 214, 0.8),
    0 0 40px rgba(149, 133, 214, 0.5),
    0 0 80px rgba(149, 133, 214, 0.3),
    0 0 120px rgba(149, 133, 214, 0.15);
  animation: missHerBreathing 3s ease-in-out infinite alternate;
}

@keyframes missHerBreathing {
  0% {
    text-shadow:
      0 0 20px rgba(149, 133, 214, 0.8),
      0 0 40px rgba(149, 133, 214, 0.5),
      0 0 80px rgba(149, 133, 214, 0.3);
    transform: scale(1);
  }
  100% {
    text-shadow:
      0 0 30px rgba(149, 133, 214, 1),
      0 0 60px rgba(149, 133, 214, 0.7),
      0 0 100px rgba(149, 133, 214, 0.4),
      0 0 150px rgba(149, 133, 214, 0.2);
    transform: scale(1.03);
  }
}
