:root {
  --bg: #0f0c12;
  --panel: #1b1430;
  --accent: #7b6bff;
  --accent-2: #6ee7b7;
  --muted: #dfe6f7;
  --glass: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 12px 30px rgba(16, 12, 20, 0.6);
}

* {
  box-sizing: border-box;
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #0b0911 0%, #0f0c12 60%);
  color: var(--muted);
  font-family: "Nunito", system-ui, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.wrap {
  max-width: 1100px;
  margin: 36px auto;
  padding: 28px;
  position: relative;
  z-index: 1;
}

header.hero {
  display: flex;
  gap: 22px;
  align-items: center;
  position: relative;
}

.avatar-blob {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), #b490ff);
  box-shadow: 0 20px 40px rgba(118, 95, 255, 0.12),
    inset 0 -6px 18px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  flex: 0 0 140px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-blob:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(118, 95, 255, 0.25),
    inset 0 -6px 18px rgba(255, 255, 255, 0.1);
}

.avatar-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-blob .sparkle {
  position: absolute;
  left: -20px;
  top: -12px;
  width: 70px;
  height: 70px;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(-25deg);
  filter: blur(6px);
  opacity: 0.9;
  animation: sparkle 4s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
  }
}

.hero-info {
  flex: 1;
}

.name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--muted);
  position: relative;
  display: inline-block;
}

.name::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s ease;
}

.name:hover::after {
  width: 100%;
}

.tag {
  font-weight: 600;
  color: var(--accent);
  background: linear-gradient(
    90deg,
    rgba(123, 107, 255, 0.14),
    rgba(110, 231, 183, 0.06)
  );
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.bio {
  margin-top: 10px;
  color: #cfd6ee;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  margin-top: 22px;
}

.card {
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(123, 107, 255, 0.03),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.card:hover::before {
  transform: translateX(100%);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 12, 20, 0.8);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
}

.card p {
  margin: 0;
  color: #c8d0f5;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

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

.social-btn:hover::before {
  left: 100%;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.98;
}

.social-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(106, 82, 255, 0.12);
}

.social-btn .label {
  font-weight: 600;
}

.social-grid .big {
  flex: 1 1 100%;
}

.side .small-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.stat {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-3px);
}

.stat h4 {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
}

.stat p {
  margin: 6px 0 0;
  font-weight: 700;
}

.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b2440, #332a5a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.thumb:hover {
  background: linear-gradient(135deg, #3a2e5a, #443a7a);
  color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.donate {
  display: flex;
  gap: 10px;
  align-items: center;
}

.donate a {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), #9a87ff);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.donate a:hover::before {
  left: 100%;
}

.donate a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(123, 107, 255, 0.3);
}

footer {
  margin-top: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .avatar-blob {
    width: 120px;
    height: 120px;
    border-radius: 20px;
  }
}

.floaty {
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.icon-sprite {
  display: inline-block;
  width: 22px;
  height: 22px;
}

.vrchip {
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(123, 107, 255, 0.12),
    rgba(110, 231, 183, 0.06)
  );
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.3s ease;
}

.vrchip:hover {
  transform: scale(1.05);
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(123, 107, 255, 0.1);
  pointer-events: none;
  z-index: -1;
}

.glow {
  box-shadow: 0 0 20px rgba(123, 107, 255, 0.3);
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  opacity: 0;
  z-index: 1000;
}
