:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-soft: #eef3fb;
  --line: rgba(28, 28, 28, 0.1);
  --text: #141414;
  --muted: #727272;
  --accent: #101010;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.hero-top {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(860px, 100%);
}

.avatar-block {
  display: flex;
  justify-content: center;
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3f6fb, #ebe6df);
  border: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.avatar-image {
  object-fit: cover;
  background: #d8e2f1;
}

.avatar-fallback {
  background: #d8e2f1;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

.eyebrow,
.section-label,
.section-meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.title {
  margin-bottom: 0;
  color: #5f6770;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lead {
  max-width: 48rem;
  margin-bottom: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  color: #323232;
  text-align: center;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.contact-link,
.contact-text {
  margin: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.contact-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-separator {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #efefed;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pill-link:hover {
  transform: translateY(-2px);
  background: #e7e7e3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.divider {
  margin: 48px 0;
  border-top: 1px solid var(--line);
}

.section {
  width: min(940px, 100%);
  margin: 0 auto 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.about-text {
  max-width: 48rem;
  margin-bottom: 0;
  color: #4e5358;
  font-size: 1.12rem;
  line-height: 1.9;
}

.experience-list,
.highlights,
.degree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list {
  display: grid;
  gap: 18px;
}

.experience-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px 24px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(169, 185, 213, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.experience-item[data-tone="blue"] {
  background: #eaf1ff;
}

.experience-item[data-tone="green"] {
  background: #edf9f2;
}

.experience-item[data-tone="purple"] {
  background: #f1eefc;
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(73, 86, 105, 0.08);
  border-color: rgba(126, 146, 179, 0.45);
}

.experience-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.experience-item:hover .experience-logo {
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.experience-main {
  display: grid;
  gap: 12px;
}

.experience-role {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
}

.experience-company {
  margin: -4px 0 0;
  color: #6d7a86;
  font-size: 0.98rem;
}

.experience-summary {
  margin-bottom: 0;
  color: #535d69;
  line-height: 1.8;
}

.experience-period {
  margin: 0;
  color: #94a0ad;
  white-space: nowrap;
  font-size: 0.95rem;
}

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

.experience-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #616b75;
  font-size: 0.9rem;
  transition: transform 180ms ease, background 180ms ease;
}

.experience-tag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.skills-section {
  margin-bottom: 52px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skill-group-card {
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.skill-group-card[data-group="cloud"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="containers"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="ci/cd"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="backend"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="observabilite"] {
  background: #FFFFFF;
}

.skill-group-card[data-group="security"] {
  background: #FFFFFF;
}

.skill-group-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(110, 122, 138, 0.18);
}

.skill-group-icon {
  margin-bottom: 0;
  color: #a2a2a2;
  font-size: 1.5rem;
  transition: transform 180ms ease, color 180ms ease;
}

.skill-group-card:hover .skill-group-icon {
  transform: scale(1.06);
  color: #6a7480;
}

.skill-group-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.skill-group-items {
  margin-bottom: 0;
  color: #66707a;
  line-height: 1.75;
  font-size: 0.98rem;
}

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

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

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

.highlight-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: #f6f6f4;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.highlight-item[data-tone="blue"] {
  background: #eef4ff;
}

.highlight-item[data-tone="peach"] {
  background: #fff4eb;
}

.highlight-item[data-tone="green"] {
  background: #edf8f2;
}

.highlight-item[data-tone="violet"] {
  background: #f2efff;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  border-color: rgba(110, 122, 138, 0.18);
}

.highlight-marker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9edf4;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.highlight-copy {
  margin-bottom: 0;
  color: #555d66;
  line-height: 1.7;
}

.degree-list {
  display: grid;
  gap: 16px;
}

.degree-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: #faf9f6;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.degree-item[data-tone="gold"] {
  background: #fff6df;
}

.degree-item[data-tone="rose"] {
  background: #fff1f3;
}

.degree-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  border-color: rgba(110, 122, 138, 0.18);
}

.degree-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.degree-school,
.degree-period {
  margin-bottom: 0;
  color: #67707a;
}

.footer-note {
  width: min(940px, 100%);
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
  color: var(--muted);
}

.footer-note p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hero-top,
  .dual-grid,
  .experience-item {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar-block {
    justify-content: center;
  }

  .contact-row {
    gap: 12px;
    align-items: center;
    flex-direction: column;
  }

  .contact-separator {
    display: none;
  }

  .experience-period {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 20px, 1040px);
    padding: 28px 0 48px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .lead {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .experience-item,
  .card,
  .skill-group-card {
    padding: 20px;
  }
}
