:root {
  --bg: #e2eeee;
  --text: #081e1f;
  --card-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(10,86,90,0.14), 0 32px 64px rgba(10,86,90,0.08);
  --gradient-start: #0e8a90;
  --gradient-end: #0A565A;
  --primary: #0A565A;
  --surface: #f0f8f8;
  --border: #b8d8d9;
  --section-border: #cae2e3;
  --tag-text: #0A565A;
  --text-body: #1c3e3f;
  --text-dark: #0d2b2c;
  --secondary-text: #2e6062;
  --featured-bg: #d8eced;
  --featured-border: #7fbfc1;
  --muted: #7fbfc1;
  --hover-bg: #d4ebec;
  --hover-border: #5aacae;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}

.card {
  background: #ffffff;
  border-radius: 28px;
  max-width: 1200px;
  width: 100%;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-small {
  background: #ffffff;
  border-radius: 28px;
  width: 500px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* ── HEADER ── */
.header {
  background: linear-gradient(150deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  padding: 2.4rem 2rem 2rem;
  color: #fff;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-catchphrase {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

/* ── QR CODE ── */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.qr-wrap img,
.qr-wrap canvas {
  border-radius: 0px;
  display: block;
}

.qr-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: flex;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-toggle button.active {
  background: rgba(255,255,255,0.28);
  color: #fff;
  border-radius: 18px;
}

.lang-toggle button:hover:not(.active) {
  color: rgba(255,255,255,0.9);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.55);
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.title {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.88;
  margin-top: 0.35rem;
}

.meta-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  opacity: 0.75;
  flex-wrap: wrap;
}

.meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── DOMAIN TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1.1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--border);
  color: var(--tag-text);
}

.tag.hot {
  background: var(--primary);
  color: #fff;
}

/* ── SECTIONS ── */
.section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--section-border);
}

.section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

/* ── ABOUT ── */
.about-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.1rem;
}


/* ── SUPERPOWERS ── */
.powers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.power {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.4;
}

.power.featured {
  grid-column: span 2;
  background: var(--featured-bg);
  border-color: var(--featured-border);
  font-size: 0.84rem;
}

.power-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CAREER ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.tl-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
}

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
  z-index: 1;
}

.tl-dot.muted { background: var(--muted); }

.tl-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 3px;
}

.tl-item:last-child .tl-line { display: none; }

.tl-role {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.tl-company {
  font-size: 0.79rem;
  color: var(--secondary-text);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── LANGUAGES ── */
.langs {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.lang-level {
  font-size: 0.7rem;
  color: var(--secondary-text);
  font-weight: 400;
}

.flag {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── LINKS ── */
.links { display: flex; flex-direction: column; gap: 0.5rem; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.link-btn:hover {
  background: var(--hover-bg);
  border-color: var(--hover-border);
}

.link-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.li { background: #0a66c2; }

html { scroll-behavior: smooth; }

/* ── TABLET (≤ 600px) ── */
@media (max-width: 600px) {
  .section { padding: 1.25rem 1.5rem; }
  .tags    { padding: 0.9rem 1.5rem; }
  .header  { padding: 2rem 1.5rem 1.75rem; gap: 1.2rem; }
  .langs   { gap: 0.85rem; }
  .header-right { max-width: 220px; }
  .header-catchphrase { font-size: 0.92rem; }
}

/* ── MOBILE (≤ 440px) ── */
@media (max-width: 440px) {
  body { padding: 0 0 3rem; }

  .card {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .header {
    padding: 1.75rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-right {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
  }

  .header-catchphrase {
    font-size: 0.9rem;
    text-align: left;
  }

  .section { padding: 1.1rem 1.25rem; }
  .tags    { padding: 0.8rem 1.25rem; gap: 0.35rem; }

  .name { font-size: 1.4rem; }

  .powers-grid { grid-template-columns: 1fr; }
  .power.featured { grid-column: span 1; }

  .langs { gap: 0.7rem; }
  .lang  { font-size: 0.8rem; }

  .about-body { font-size: 0.85rem; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  