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

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9e9e9e;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --border: #e8e8e8;
  --accent: #1a1a1a;
  --instagram: #c13584;
  --linkedin: #0077b5;
  --radius: 12px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Layout */

.container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Hero */

.hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* Avatar */

.avatar-wrap {
  margin-bottom: 0.5rem;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Name & tagline */

.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Divider */

.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* Bio */

.bio {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bio p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Social links */

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  transform: translateY(-1px);
}

.social-btn.instagram:hover {
  background: var(--instagram);
  border-color: var(--instagram);
  color: #fff;
}

.social-btn.linkedin:hover {
  background: var(--linkedin);
  border-color: var(--linkedin);
  color: #fff;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer */

.footer {
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 400px) {
  .hero {
    padding: 2rem 1.5rem;
  }

  .name {
    font-size: 1.75rem;
  }
}

/* ── Chat widget ─────────────────────────────────── */

.chat-bubble {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 100;
}

.chat-bubble svg {
  width: 22px;
  height: 22px;
}

.chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 340px;
  max-height: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 99;
  overflow: hidden;
}

.chat-panel[hidden] { display: none; }

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.chat-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.chat-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background var(--transition);
}

.chat-close:hover { background: var(--border); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
}

.chat-msg p { margin: 0; }

.chat-msg.user {
  align-self: flex-end;
  background: var(--text-primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}

.chat-msg.thinking p {
  color: var(--text-muted);
  font-style: italic;
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus { border-color: var(--text-primary); }

.chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.chat-send:hover { opacity: 0.8; }

.chat-send svg {
  width: 14px;
  height: 14px;
}
