:root {
  --bg: #0a0b14;
  --bg-2: #0f1120;
  --text: #e7e9f3;
  --text-muted: #9aa0b5;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-turquoise: #22d3ee;
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue) 55%,
    var(--accent-turquoise)
  );
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(6, 8, 20, 0.45);
  --maxw: 1080px;
  --gap: clamp(1rem, 2vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-turquoise);
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-blobs span {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.bg-blobs span:nth-child(1) {
  background: var(--accent-purple);
  top: -10%;
  left: -10%;
}

.bg-blobs span:nth-child(2) {
  background: var(--accent-turquoise);
  right: -10%;
  bottom: -15%;
}

.bg-blobs span:nth-child(3) {
  background: var(--accent-blue);
  top: 40%;
  left: 55%;
  opacity: 0.22;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 3rem 0 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem 3rem;
  font-size: 0.85rem;
}

.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem 1rem;
}

.hero__name {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.card__list a {
  text-decoration: none;
}

.card__list a:hover {
  text-decoration: underline;
}

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

.chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.timeline {
  position: relative;
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 20px;
  width: 3px;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding: 0 0 25px 56px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: calc(1.15rem + 8px);
  left: 20px;
  width: 36px;
  height: 2px;
  background: var(--glass-border);
}

.timeline__dot {
  position: absolute;
  top: 1.15rem;
  left: 20px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--accent-gradient);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  z-index: 2;
}

.timeline__item.is-open .timeline__dot {
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.5), 0 0 22px rgba(34, 211, 238, 0.6);
}

.timeline__card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline__item.is-open .timeline__card {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.18), var(--glass-shadow);
}

.timeline__toggle {
  position: relative;
  width: 100%;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
}

.timeline__period {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-turquoise);
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline__org {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline__chevron {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.timeline__item.is-open .timeline__chevron {
  transform: rotate(180deg);
}

.timeline__details {
  display: grid;
  grid-template-rows: 0fr;
  text-align: left;
  transition: grid-template-rows 0.35s ease;
}

.timeline__details > ul {
  overflow: hidden;
  margin: 0;
  padding-left: 1.2rem;
}

.timeline__item.is-open .timeline__details {
  grid-template-rows: 1fr;
}

.timeline__item.is-open .timeline__details > ul {
  padding-bottom: 1.25rem;
}

.timeline__details li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.timeline__toggle:focus-visible {
  outline: 2px solid var(--accent-turquoise);
  outline-offset: 2px;
  border-radius: 12px;
}

@media (max-width: 560px) {
  .timeline__item {
    padding-left: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline__details,
  .timeline__chevron,
  .timeline__card,
  .timeline__dot {
    transition: none;
  }
}
.languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto 4rem;
}

.lang-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--glass-shadow);
  padding: 1.25rem 1.5rem;
}

.lang-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lang-card__level {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lang-card__bar {
  margin-top: 0.75rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lang-card__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-gradient);
}

.controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--glass-shadow);
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.lang-switch button[aria-pressed=true] {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-print {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--glass-shadow);
  border: 0;
  color: var(--text);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
}

.btn-print:hover {
  color: var(--accent-turquoise);
}

@media print {
  .bg-blobs,
  .controls,
  .timeline__chevron {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .hero__name,
  .section-title {
    color: #111 !important;
    -webkit-text-fill-color: #111;
  }
  .card,
  .timeline__card,
  .lang-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .timeline__details {
    display: block !important;
  }
  .timeline__details > ul {
    overflow: visible !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }
  .timeline::before,
  .timeline__item::before,
  .timeline__dot {
    display: none !important;
  }
  .timeline__item {
    padding: 0 0 1rem 0;
    break-inside: avoid;
  }
}
