:root {
  --accent-blue: #00d2ff;
  --accent-yellow: #ffd700;
  --glass: rgba(15, 20, 35, 0.5);
  --glass-dark: rgba(0, 0, 0, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #cbd5e1;
  --bg-fallback: url('https://raw.githubusercontent.com/code-andrewy/jumpman64beta/refs/heads/main/charlie-brown-snoopy-stargazing-desktop-wallpaper-preview.jpg');
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background-color: #05070a;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), var(--bg-fallback);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.container { width: 100%; max-width: 1050px; padding: 20px; perspective: 2000px; }

.card {
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08), transparent 50%);
}


.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

.pfp-outer {
  width: 180px;
  height: 180px;
  background: var(--accent-yellow);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.pfp-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid rgba(0,0,0,0.1); }
.pfp-img { width: 100%; height: 100%; object-fit: cover; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.social-btn {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-btn:hover { background: var(--accent-blue); transform: scale(1.1) translateY(-3px); }


.content-section { display: flex; flex-direction: column; gap: 20px; justify-content: center; }

.greeting {
  color: var(--accent-blue);
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 0.75rem;
}

.name-logo { max-width: 100%; height: auto; width: 340px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }


.pill-wrapper { display: flex; align-items: center; }
.exp-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
}
.exp-pill i { color: var(--accent-blue); }
#typewriter { color: var(--accent-blue); }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--accent-blue); margin-left: 4px; animation: blink 1s infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.bio {
  background: var(--glass-dark);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }
.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-box i { font-size: 1.2rem; color: var(--accent-blue); }
.stat-val { display: block; font-size: 1.05rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--muted); }


#context-menu {
  position: fixed; display: none; background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(10px); border: 1px solid var(--border);
  border-radius: 12px; padding: 5px 0; z-index: 9999; min-width: 160px;
}
.menu-item { padding: 10px 15px; cursor: pointer; display: flex; align-items: center; font-size: 0.9rem; transition: 0.2s; }
.menu-item:hover { background: rgba(255,255,255,0.1); }


@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; padding: 30px; text-align: center; }
  .profile-section { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 30px; }
  .pill-wrapper { justify-content: center; }
  .name-logo { margin: 0 auto; }
  .stat-box { justify-content: center; text-align: left; }
}

@media (max-width: 500px) {
  .card { padding: 20px; }
  .name-logo { width: 100%; }
  .exp-pill { font-size: 0.95rem; padding: 8px 15px; }
}
