:root {
  --bg: #eef2f6;
  --bg-soft: #f7f9fc;
  --card: #ffffff;
  --text: #162033;
  --muted: #667085;
  --muted-2: #8a94a6;
  --line: #d8e0ea;
  --blue: #0f3d5e;
  --blue-2: #176b9f;
  --cyan: #1aa6b7;
  --orange: #ff7a1a;
  --shadow: 0 22px 70px rgba(21, 32, 50, 0.10);
  --shadow-soft: 0 12px 32px rgba(21, 32, 50, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(26, 166, 183, 0.14), transparent 26%),
    radial-gradient(circle at 95% 12%, rgba(255, 122, 26, 0.10), transparent 22%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 55%, #e8eef5 100%);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 61, 94, 0.10);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(15, 61, 94, 0.18);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.hero {
  padding: 64px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 34px;
  align-items: stretch;
}

.hero-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 61, 94, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
}

.hero-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-2);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--blue);
}

.hero-subtitle {
  max-width: 750px;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.5;
  color: #344054;
  letter-spacing: -0.025em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--blue);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #155b8c);
  color: white;
  border: none;
}

.profile-card {
  background: #0f172a;
  color: white;
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.profile-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(26,166,183,.32), transparent 68%);
}

.photo {
  height: 292px;
  border-radius: 22px;
  background: #172033;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
  z-index: 1;
}

.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.photo-initials {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255,255,255,.35);
}

.profile-card h2 {
  margin-top: 20px;
  font-size: 24px;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.profile-card p {
  color: #b8c5d6;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.contact-list a {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #e9f5ff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.section {
  padding: 24px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.section-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  color: var(--blue);
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
}

.about-card {
  background: var(--card);
  border: 1px solid rgba(15, 61, 94, 0.10);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-card p {
  color: #344054;
  font-size: 17px;
}

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.expertise-card {
  width: calc((100% - 36px) / 3);
  flex: 0 0 calc((100% - 36px) / 3);
}

.expertise-card {
  background: var(--card);
  border: 1px solid rgba(15, 61, 94, 0.10);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  min-height: 150px;
}

.expertise-card h3 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.expertise-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.tech-strip {
  background: var(--blue);
  color: white;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  position: relative;
}

.tech-strip::after {
  content: "{ }";
  position: absolute;
  right: 26px;
  bottom: -42px;
  font-family: "JetBrains Mono", monospace;
  font-size: 110px;
  font-weight: 700;
  opacity: .07;
}

.tech-strip h2 {
  color: white;
  font-size: 28px;
}

.tech-strip p {
  color: #c8d8e8;
  margin-top: 10px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.tech-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #e9f7fb;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  padding: 8px 10px;
}

.timeline {
  background: var(--card);
  border: 1px solid rgba(15, 61, 94, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.experience-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.experience-item:first-child {
  border-top: none;
}

.experience-meta {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 26px;
}

.period {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-2);
}

.company {
  display: block;
  margin-top: 12px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.status {
  display: inline-flex;
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.experience-content {
  padding: 27px 30px;
}

.experience-content h3 {
  color: var(--blue);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.context {
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 16px;
}

.experience-content ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.experience-content li {
  color: #344054;
  position: relative;
  padding-left: 20px;
}

.experience-content li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  position: absolute;
  left: 0;
  top: 0.72em;
}

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

.experience-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #edf7fb;
  border: 1px solid #ccebf2;
  border-radius: 999px;
  padding: 6px 9px;
}

.small-grid {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    justify-content: center;
    gap: 20px;
    margin-bottom: 54px;
}

.small-card {
  background: var(--card);
  border: 1px solid rgba(15, 61, 94, 0.10);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.small-card h3 {
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.small-card p,
.small-card li {
  color: var(--muted);
}

.small-card ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.small-card li::before {
  content: "- ";
  color: var(--cyan);
}

.footer {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 0 0 44px;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-card,
  .tech-strip {
    grid-template-columns: 1fr;
  }

  .profile-card {
    order: -1;
  }

  .photo {
    height: 250px;
  }

  .expertise-card {
    width: calc((100% - 18px) / 2);
    flex-basis: calc((100% - 18px) / 2);
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-meta {
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .company {
    margin-top: 0;
  }

  .small-grid {
    grid-template-columns: minmax(0, 350px);
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card,
  .profile-card,
  .about-card,
  .tech-strip,
  .timeline {
    border-radius: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .photo {
    height: 270px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
  }

  .expertise-card {
    width: 100%;
    flex-basis: 100%;
  }

  .experience-meta {
    display: block;
  }

  .company {
    margin-top: 8px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner span {
    display: block;
    margin-bottom: 8px;
  }
}