:root {
  --bg: #f6f8fb;
  --bg-alt: #edf3f8;
  --surface: #ffffff;
  --surface-raised: #fbfcfe;
  --text: #0b1220;
  --muted: #526070;
  --line: #d9e2ec;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #d8f3ef;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --code: #101827;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 38%, #f1f6f9 100%);
  background-size: 44px 44px, 44px 44px, auto;
  line-height: 1.65;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #f4f8fb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h1 span {
  color: var(--primary-dark);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 26px;
}

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

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

a:hover {
  text-decoration: underline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.lead {
  font-size: 1.05rem;
  max-width: 62ch;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.88);
  -webkit-backdrop-filter: saturate(130%) blur(10px);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

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

.nav a {
  color: #334155;
  font-weight: 600;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: #334155;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--code);
  border-color: var(--code);
  color: #fff;
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 251, 0.42));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-side {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-card,
.contact-card,
.card,
.edu-item,
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
}

.profile-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
}

.hero-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--code);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #020617;
}

.btn-ghost {
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  background: var(--accent-soft);
}

.btn-ghost:hover {
  text-decoration: none;
  background: #cfe0ff;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.cards,
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.edu-item,
.timeline-item,
.contact-card {
  padding: 20px;
}

.card:hover,
.edu-item:hover,
.timeline-item:hover,
.contact-card:hover {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

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

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.timeline-head span,
.muted {
  color: #64748b;
  font-size: 0.92rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.8);
}

.footer p {
  margin: 0;
  text-align: center;
  color: #667085;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .hero-side,
  .contact-wrap,
  .content-grid,
  .cards,
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 10px;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 4vw;
    display: none;
    width: min(300px, 92vw);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }
}
