:root {
  --bg: #0a0b0e;
  --bg-elevated: rgba(20, 22, 29, 0.78);
  --bg-hover: rgba(30, 34, 45, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  --accent: #3b82f6;
  --adobe: #fa0f00;
  --adobe-bg: rgba(250, 15, 0, 0.12);
  --unibuc: #38bdf8;
  --unibuc-bg: rgba(56, 189, 248, 0.12);
  --shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  --glow-1: rgba(250, 15, 0, 0.09);
  --glow-2: rgba(56, 189, 248, 0.09);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px circle at 20% 10%, var(--glow-1), transparent 65%),
    radial-gradient(600px circle at 80% 25%, var(--glow-2), transparent 65%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Hero Card */
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  display: block;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.headline {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-subtle);
  margin-top: 0.05rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.affiliation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.affil-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}

.adobe-pill {
  background: var(--adobe-bg);
  color: var(--text);
}

.unibuc-pill {
  background: var(--unibuc-bg);
  color: var(--text);
}

.affil-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.adobe-dot {
  background: var(--adobe);
}

.unibuc-dot {
  background: var(--unibuc);
}

.bio-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.bio-section strong {
  color: var(--text);
  font-weight: 600;
}

.bio-section em {
  font-style: normal;
  color: var(--text);
}

/* CTA Row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 0.95rem;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--text-subtle);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.bento-item {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-item:hover {
  border-color: var(--border-strong);
}

.bento-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.bento-item h3 {
  font-size: 0.96rem;
  font-weight: 600;
}

.bento-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.tag-list span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Affiliations */
.affiliations-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.affil-card {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.affil-card:hover {
  border-color: var(--border-strong);
}

.affil-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.affil-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.adobe-mark {
  background: var(--adobe-bg);
  color: var(--adobe);
}

.unibuc-mark {
  background: var(--unibuc-bg);
  color: var(--unibuc);
}

.affil-brand h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

.affil-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.affil-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-subtle);
  padding-top: 0.15rem;
}

.affil-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0.2rem;
}

.affil-highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.affil-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.affil-highlights strong,
.affil-highlights em {
  color: var(--text);
  font-style: normal;
}

/* Contact Card */
.contact-card {
  padding: 1.5rem 1.75rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: all 0.18s ease;
}

.contact-link-btn {
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

.contact-link:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.contact-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.contact-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  padding-top: 0.25rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 60;
}

.toast[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .affil-top {
    flex-direction: column;
    gap: 0.35rem;
  }
}
