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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf4ff 0%, #dff7e8 100%);
  font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
  color: #2b3a4a;
  padding: 40px 16px;
  position: relative;
  overflow-x: hidden;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  padding-top: 64px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  border: 3px dashed #7fb8e0;
}

.badge {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #ffd166;
  color: #4a3200;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  transform: rotate(6deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.avatar-wrap {
  position: relative;
  width: 160px;
  margin: 0 auto 16px;
}

.avatar {
  width: 160px;
}

.speech-bubble {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8e6;
  border: 3px solid #2b3a4a;
  border-radius: 18px;
  padding: 10px 16px;
  font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  color: #2b3a4a;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  z-index: 2;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  margin-left: -10px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #fff8e6;
  border-bottom: 0;
  filter: drop-shadow(0 2px 0 #2b3a4a);
}

h1 {
  font-size: 2.2rem;
  color: #2f6690;
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: #3b6ea5;
  margin-bottom: 24px;
}

.bio {
  background: #fff4f0;
  border: 2px dashed #e0a07f;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
}

.cert {
  background: #f4faff;
  border-radius: 14px;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #5a6b7a;
  text-align: center;
}

.decor {
  position: fixed;
  font-size: 2.2rem;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}
.decor-1 { top: 8%; left: 8%; }
.decor-2 { top: 15%; right: 10%; animation-delay: 1s; }
.decor-3 { bottom: 12%; left: 12%; animation-delay: 2s; }
.decor-4 { bottom: 18%; right: 8%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
