:root {
  --pink: #d9c2f0;
  --lavender: #b088f9;
  --peach: #e5d4ff;
  --mint: #c9b6f7;
  --ink: #4a2e6b;
  --ink-soft: #8768a8;
  --card-bg: rgba(255, 255, 255, 0.65);
  --btn-bg: rgba(255, 255, 255, 0.75);
  --shadow: 0 8px 24px rgba(130, 80, 180, 0.2);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f3e8ff 0%, #e4d4fb 50%, #ede0ff 100%);
  position: relative;
}

/* floating background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.blob-1 {
  width: 320px;
  height: 320px;
  background: var(--pink);
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: var(--lavender);
  bottom: -120px;
  right: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: var(--mint);
  bottom: 10%;
  left: -60px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* sparkle particles */
#sparkles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sparkle-particle {
  position: absolute;
  bottom: -20px;
  font-size: 1rem;
  animation: rise linear forwards;
  opacity: 0.9;
  user-select: none;
}

@keyframes rise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* card */
.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  transition: max-width 0.3s ease;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  padding: 48px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
  0% { opacity: 0; transform: translateY(24px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.box-topper {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  50% { transform: translateX(-50%) translateY(-8px) rotate(4deg); }
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  background: var(--peach);
  margin-bottom: 16px;
}

.name {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 4px 0 6px;
  color: var(--ink);
}

.sparkle {
  display: inline-block;
  margin-left: 4px;
  animation: twinkle 1.8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.2) rotate(15deg); }
}

.tagline {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  background: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 14px 20px;
  box-shadow: 0 3px 10px rgba(180, 120, 160, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  background: #fff;
  box-shadow: 0 10px 20px rgba(180, 120, 160, 0.22);
}

.link-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.link-btn .emoji {
  font-size: 1.1rem;
}

.live-dot {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d6d;
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 77, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0);
  }
}

.content-columns {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed rgba(160, 100, 200, 0.25);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.column {
  text-align: left;
}

@media (min-width: 640px) {
  .card:has(.content-columns) {
    max-width: 580px;
  }

  .content-columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 24px;
  }

  .content-columns > .column + .column {
    border-left: 1px dashed rgba(160, 100, 200, 0.25);
    padding-left: 24px;
  }
}

.section-title {
  margin: 0 0 14px;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.section-status {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* projects */
.repo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repo-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 3px 10px rgba(180, 120, 160, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.repo-item:hover,
.repo-item:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(180, 120, 160, 0.2);
}

.repo-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.repo-stars {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.repo-desc {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* click sparkle burst */
.burst-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 1.1rem;
  animation: burst 0.7s ease-out forwards;
}

@keyframes burst {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.1);
    opacity: 0;
  }
}

.footer {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .card {
    padding: 44px 22px 26px;
    border-radius: 26px;
  }
  .name {
    font-size: 1.6rem;
  }
}
