@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Space Grotesk', 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #e9f3ff;
  --surface: #f7fbff;
  --text: #0d1b2a;
  --muted: #4c5b72;
  --accent: #00b2a9;
  --accent-strong: #008f86;
  --coral: #ff6f61;
  --border: rgba(13, 27, 42, 0.08);
  --shadow: 0 20px 50px rgba(13, 27, 42, 0.08);
}

[data-theme="dark"] {
  --bg: #0d1b2a;
  --surface: #12263a;
  --text: #e9f3ff;
  --muted: #a7b8cc;
  --accent: #00b2a9;
  --accent-strong: #3ed8cd;
  --coral: #ff8f7f;
  --border: rgba(233, 243, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--bg) 0%, rgba(0, 178, 169, 0.08) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 12px 0;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .topbar {
  background: rgba(13, 27, 42, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-circle.large {
  width: 120px;
  height: 120px;
  font-size: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(0, 178, 169, 0.12);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero {
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.intro h1 {
  font-size: 34px;
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 178, 169, 0.12);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.avatar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 178, 169, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.badge.accent {
  background: rgba(0, 178, 169, 0.18);
}

.badge.soft {
  background: rgba(13, 27, 42, 0.06);
  color: var(--text);
}

[data-theme="dark"] .badge.soft {
  background: rgba(233, 243, 255, 0.08);
  color: var(--text);
}

.badge.coral {
  background: rgba(255, 111, 97, 0.18);
  color: var(--coral);
}

.section-header {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.time {
  font-weight: 700;
  color: var(--accent);
}

.role h3 {
  margin-bottom: 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.language-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.language-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(13, 27, 42, 0.12);
}

.language-flag img {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.list-block {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.label {
  font-weight: 700;
  color: var(--text);
}

.value {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.social {
  display: flex;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 178, 169, 0.08);
  color: var(--text);
  font-weight: 700;
}

.social-link img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.cv-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.embed-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 520px;
}

[data-theme="dark"] .embed-wrapper {
  background: #0d1b2a;
}

.embed-wrapper embed {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .footer {
  background: rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flags img {
  width: 34px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer-note {
  color: var(--muted);
  font-weight: 600;
}

.mobile-page .topbar {
  display: none;
}

.mobile-page .hero {
  padding-top: 20px;
}

@media (max-width: 900px) {
  .hero-content,
  .timeline-item,
  .list-item,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 60px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-content {
    gap: 22px;
  }

  .embed-wrapper {
    height: 400px;
  }
}
