:root {
  --bg: #f4f2e8;
  --panel: #fffaf0;
  --ink: #1f2f2b;
  --ink-soft: #45534f;
  --accent: #0c7a5e;
  --accent-soft: #d7efe8;
  --line: #d9d3c2;
  --shadow: 0 18px 40px rgba(25, 37, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #fff8d9 0, transparent 42%),
    radial-gradient(circle at 88% 4%, #d8f7ed 0, transparent 38%),
    linear-gradient(180deg, #f9f6eb 0%, #eee8d7 100%);
}

.resume-shell {
  width: min(980px, calc(100vw - 2rem));
  margin: 2.5rem auto;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 88%, white 12%);
  box-shadow: var(--shadow);
  animation: fade-up 0.8s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  align-items: stretch;
}

.hero-main {
  min-width: 0;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.avatar {
  width: clamp(128px, 16vw, 188px);
  height: auto;
  max-height: 264px;
  aspect-ratio: 5 / 7;
  border-radius: 22px;
  border: 1px solid #d4dbd8;
  background:
    linear-gradient(160deg, #ffffff 0%, #f0f4f2 100%);
  box-shadow: 0 8px 18px rgba(30, 46, 40, 0.08);
  object-fit: cover;
  object-position: center center;
}

.name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5.4vw, 3rem);
  letter-spacing: -0.02em;
}

.role {
  margin: 0.45rem 0 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.summary {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact li {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #d6e6e1;
  background: #f6fbf9;
  font-size: 0.88rem;
  line-height: 1.25;
}

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

.contact-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-icon {
  width: 0.95rem;
  margin-right: 0.1rem;
  color: var(--accent);
  text-align: center;
  font-size: 0.86rem;
}

.contact-strip {
  margin-top: 0.9rem;
  padding: 0.9rem 0 1.15rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lang-switcher {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1000;
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.lang-fab {
  width: 52px;
  height: 52px;
  border: 1px solid #0f6b53;
  border-radius: 999px;
  background: linear-gradient(170deg, #128164 0%, #0d6f57 100%);
  color: #f7fff9;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 53, 41, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-fab i {
  font-size: 1.2rem;
}

.lang-menu {
  margin: 0;
  padding: 0.38rem;
  list-style: none;
  min-width: 130px;
  border: 1px solid #d9d3c2;
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 12px 26px rgba(24, 37, 32, 0.16);
  display: none;
}

.lang-menu.open {
  display: grid;
  gap: 0.26rem;
}

.lang-option {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 0.42rem 0.58rem;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.lang-option:hover {
  background: #edf6f2;
}

.lang-option.active {
  background: #dff2ea;
  color: #0d6f57;
  font-weight: 600;
}

.grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: 1.15rem;
}

.section {
  margin-bottom: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  animation: fade-up 0.7s ease both;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #1b6552;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.item h3 {
  margin: 0;
  font-size: 1rem;
}

.meta {
  margin: 0.25rem 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.item ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #badfd4;
  font-size: 0.88rem;
  background: var(--accent-soft);
}

.projects {
  display: grid;
  gap: 0.7rem;
}

.project {
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 0.7rem;
}

.project p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

a.link {
  color: #0d6f8d;
}

@media (max-width: 820px) {
  .resume-shell {
    width: min(980px, calc(100vw - 1rem));
    margin: 1.1rem auto;
    padding: 1rem;
    border-radius: 18px;
  }

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

  .hero-aside {
    justify-content: center;
  }

  .avatar {
    width: 110px;
    height: 154px;
  }

  .contact {
    justify-content: center;
  }

  .lang-switcher {
    right: 0.75rem;
    bottom: 0.75rem;
  }

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
