/* ═══════════════════════════════════════════
   WIMBLY BIO — STYLE
   ═══════════════════════════════════════════ */

/* ── Color Variants ── */
:root {
  --bg: #050508;
  --surface: #0a0a0e;
  --surface-2: #0f0f14;
  --border: #1a1a1f;
  --border-bright: #252530;
  --text: #e0e0e6;
  --text-dim: #555566;
  --text-muted: #333340;
  --red: #FF5F57;
  --yellow: #FEBC2E;
  --green: #28C840;
  --font-mono: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --card-radius: 20px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default: BI flag (pink/purple/blue) */
:root, [data-theme="bi"] {
  --accent-1: #D162A4;
  --accent-2: #B5579E;
  --accent-3: #5BCEFA;
  --glow-1: rgba(209, 98, 164, 0.35);
  --glow-2: rgba(181, 87, 158, 0.25);
  --glow-3: rgba(91, 206, 250, 0.35);
}

/* Variant: Coral Sunset (warm rose/peach/coral) */
[data-theme="sunset"] {
  --accent-1: #FF6B8A;
  --accent-2: #E8826A;
  --accent-3: #FFB347;
  --glow-1: rgba(255, 107, 138, 0.35);
  --glow-2: rgba(232, 130, 106, 0.3);
  --glow-3: rgba(255, 179, 71, 0.35);
}

/* Variant: Electric (hot pink + cyan) */
[data-theme="electric"] {
  --accent-1: #FF2D78;
  --accent-2: #FF00FF;
  --accent-3: #00FFFF;
  --glow-1: rgba(255, 45, 120, 0.5);
  --glow-2: rgba(255, 0, 255, 0.4);
  --glow-3: rgba(0, 255, 255, 0.5);
}

/* Variant: Frost (cool ice/silver) */
[data-theme="frost"] {
  --accent-1: #7EB8F7;
  --accent-2: #A78BFA;
  --accent-3: #E0F2FE;
  --glow-1: rgba(126, 184, 247, 0.35);
  --glow-2: rgba(167, 139, 250, 0.3);
  --glow-3: rgba(224, 242, 254, 0.4);
}

/* Variant: Mint (dark + mint/green) */
[data-theme="mint"] {
  --accent-1: #6EE7B7;
  --accent-2: #34D399;
  --accent-3: #A7F3D0;
  --glow-1: rgba(110, 231, 183, 0.35);
  --glow-2: rgba(52, 211, 153, 0.3);
  --glow-3: rgba(167, 243, 208, 0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 10px var(--glow-1);
  will-change: transform;
}

.cursor-trail {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.3s ease;
  will-change: transform;
}

/* ── Theme Switcher ── */
.theme-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.5s;
}

.theme-btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
}

.theme-btn:hover { transform: scale(1.2); }
.theme-btn.active { border-color: white; transform: scale(1.1); }

.theme-btn[data-theme="bi"] { background: linear-gradient(135deg, #D162A4, #B5579E, #5BCEFA); }
.theme-btn[data-theme="sunset"] { background: linear-gradient(135deg, #FF6B8A, #FFB347); }
.theme-btn[data-theme="electric"] { background: linear-gradient(135deg, #FF2D78, #00FFFF); }
.theme-btn[data-theme="frost"] { background: linear-gradient(135deg, #7EB8F7, #A78BFA); }
.theme-btn[data-theme="mint"] { background: linear-gradient(135deg, #6EE7B7, #34D399); }

/* ── Matrix Rain Canvas ── */
#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

/* ── Floating Code Particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-3);
  opacity: 0.15;
  animation: particleFloat linear infinite;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
  padding: 20px 16px 40px;
}

/* ── Top Bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0;
  animation: slideDown 0.6s var(--transition) forwards;
  animation-delay: 0.1s;
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.topbar-dot.online {
  background: var(--accent-1);
  box-shadow: 0 0 6px var(--glow-1);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.topbar-text { color: var(--text-dim); letter-spacing: 0.5px; }
.topbar-title { color: rgba(232, 232, 232, 0.4); }
.topbar-time { color: var(--text-dim); letter-spacing: 1px; }

/* ── Main Card ── */
.main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-1) 25%,
    var(--accent-2) 50%,
    var(--accent-3) 75%,
    transparent 100%
  );
  opacity: 0.6;
}

.main-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Avatar Section ── */
.avatar-section {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeInScale 0.8s var(--transition) forwards;
  animation-delay: 0.3s;
}

.avatar-ring-outer {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3),
    var(--accent-1)
  );
  animation: spinRing 8s linear infinite;
  opacity: 0.7;
}
.avatar-ring-outer::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface);
}

.avatar-ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    var(--accent-3),
    var(--accent-2),
    var(--accent-1),
    var(--accent-3)
  );
  animation: spinRing 12s linear infinite reverse;
  opacity: 0.4;
  filter: blur(2px);
}

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

.avatar {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 50%, var(--accent-1) 100%);
  z-index: 2;
}

.avatar-placeholder {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  letter-spacing: -1px;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
  animation: avatarGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avatarGlowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Name ── */
.name-section {
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeIn 0.8s var(--transition) forwards;
  animation-delay: 0.5s;
}

.name {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
}

.name-underline {
  height: 2px;
  margin: 8px auto 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent-3), transparent);
  border-radius: 2px;
}

/* Glitch effect */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.glitch::before {
  animation: glitch1 4s infinite;
  color: var(--accent-1);
  z-index: -1;
}
.glitch::after {
  animation: glitch2 4s infinite;
  color: var(--accent-3);
  z-index: -1;
}

@keyframes glitch1 {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  95% { clip-path: inset(20% 0 50% 0); transform: translate(-3px, 2px); }
  96% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
  97% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
}

@keyframes glitch2 {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  91% { clip-path: inset(10% 0 60% 0); transform: translate(3px, -1px); }
  92% { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 2px); }
  93% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); }
}

/* ── Tags ── */
.tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.7s var(--transition) forwards;
  animation-delay: 0.65s;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.vibecoding-tag {
  background: color-mix(in srgb, var(--accent-3) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-3) 15%, transparent);
  color: var(--accent-3);
}

.tag-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 6px var(--glow-3);
  animation: pulseDot 2s ease-in-out infinite;
}

.bi-tag {
  background: color-mix(in srgb, var(--accent-1) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-1) 12%, transparent);
  color: var(--accent-1);
}

.tag-stripe {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.tag-stripe:nth-child(1) { background: var(--accent-1); }
.tag-stripe:nth-child(2) { background: var(--accent-2); }
.tag-stripe:nth-child(3) { background: var(--accent-3); }

/* ── Quote ── */
.quote {
  text-align: center;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 0.8s var(--transition) forwards;
  animation-delay: 0.75s;
}

.quote-mark {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--accent-2);
  opacity: 0.4;
  line-height: 0;
  vertical-align: middle;
}

.quote-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(232, 232, 232, 0.55);
  letter-spacing: 0.3px;
  padding: 0 8px;
}

.cursor-blink {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-3);
  animation: blink 1s step-end infinite;
}

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

/* ── Divider ── */
.divider-fancy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 0.8s;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright));
}
.divider-line:last-child {
  background: linear-gradient(90deg, var(--border-bright), transparent);
}

.divider-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ── Code Block ── */
.code-block {
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s var(--transition) forwards;
  animation-delay: 0.9s;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: 0.5;
}

.code-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-dots { display: flex; gap: 6px; }
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

.code-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 12px;
  letter-spacing: 0.5px;
}

.code-actions { margin-left: auto; }
.code-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: none;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}
.code-btn:hover { background: var(--border); color: var(--text); }
.code-btn.copied { color: var(--green); }

.code-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  overflow-x: auto;
}

.code-body::-webkit-scrollbar { height: 4px; }
.code-body::-webkit-scrollbar-track { background: transparent; }
.code-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.code-line {
  display: flex;
  opacity: 0;
  animation: codeReveal 0.4s ease forwards;
}

.c-line-num {
  width: 28px;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
}

.c-comment { color: #555566; font-style: italic; }
.c-keyword { color: var(--accent-1); font-weight: 600; }
.c-module { color: #c792ea; }
.c-class { color: var(--accent-2); font-weight: 600; }
.c-func { color: var(--accent-3); }
.c-var { color: var(--accent-2); }
.c-string { color: #a5d6ff; }
.c-prop { color: rgba(232, 232, 232, 0.6); }
.c-op { color: rgba(232, 232, 232, 0.25); }
.c-indent { padding-left: 32px; }
.c-cursor {
  color: var(--accent-3);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── System Info ── */
.sysinfo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: 1s;
}

.sysinfo-item { display: flex; align-items: center; gap: 5px; }
.sysinfo-label { color: var(--text-muted); letter-spacing: 1px; }
.sysinfo-value { color: rgba(232, 232, 232, 0.5); letter-spacing: 0.5px; }
.sysinfo-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-online {
  color: var(--accent-1) !important;
  text-shadow: 0 0 8px var(--glow-1);
}

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(232, 232, 232, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s var(--transition) forwards;
}

.link-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link:hover .link-glow { opacity: 1; }

.link-telegram:hover {
  border-color: color-mix(in srgb, var(--accent-3) 20%, transparent);
}
.link-telegram .link-glow {
  background: radial-gradient(ellipse at left, color-mix(in srgb, var(--accent-3) 8%, transparent) 0%, transparent 70%);
}

.link-github:hover { border-color: rgba(255, 255, 255, 0.12); }
.link-github .link-glow {
  background: radial-gradient(ellipse at left, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

.link-spotify:hover {
  border-color: color-mix(in srgb, #1DB954 25%, transparent);
}
.link-spotify .link-glow {
  background: radial-gradient(ellipse at left, rgba(29, 185, 84, 0.05) 0%, transparent 70%);
}

.link-discord:hover {
  border-color: color-mix(in srgb, #5865F2 25%, transparent);
}
.link-discord .link-glow {
  background: radial-gradient(ellipse at left, rgba(88, 101, 242, 0.05) 0%, transparent 70%);
}

.link:hover {
  transform: translateY(-1px) translateX(2px);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.link-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition);
}

.link-telegram .link-icon-wrap {
  background: color-mix(in srgb, var(--accent-3) 8%, transparent);
}
.link-github .link-icon-wrap { background: rgba(255, 255, 255, 0.04); }
.link-spotify .link-icon-wrap { background: rgba(29, 185, 84, 0.08); }
.link-discord .link-icon-wrap { background: rgba(88, 101, 242, 0.08); }

.link:hover .link-icon-wrap { transform: scale(1.1); }

.link-icon {
  width: 18px; height: 18px;
  transition: transform 0.3s ease;
}

.link-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.link-name { font-size: 14px; font-weight: 500; }
.link-desc { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; }

.link-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  color: var(--text-dim);
}
.link:hover .link-arrow {
  opacity: 0.5;
  transform: translateX(0);
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 1.5s;
}

.footer-sep { margin: 0 6px; opacity: 0.3; }
.footer-year { color: var(--text-muted); }

/* ── Animations ── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .container { padding: 12px 12px 32px; }
  .main-card { padding: 24px 18px 20px; }
  .name { font-size: 38px; }
  .tag-row { flex-wrap: wrap; gap: 8px; }
  .sysinfo { flex-wrap: wrap; gap: 6px; }
  body { cursor: auto; }
  .cursor-dot, .cursor-trail { display: none; }
  .theme-switcher { display: none; }
}

/* ── Cursor override ── */
a, button, .code-btn, [role="button"] {
  cursor: none;
}

/* ── Focus states ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--accent-2);
  color: white;
}
