html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.cv-body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: #e8ecf4;
  background: #0a0e17;
}

.cv-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.cv-lang-switch {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
}

.cv-lang-btn {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: transparent;
  border: 0;
  font: inherit;
  transition: color 0.15s, background 0.15s;
}

.cv-lang-btn:hover {
  color: #e2e8f0;
  background: rgba(99, 102, 241, 0.15);
}

.cv-lang-btn.is-active {
  color: #f1f5f9;
  background: rgba(99, 102, 241, 0.28);
  pointer-events: none;
}

.cv-lang-sep {
  color: #475569;
  font-weight: 500;
  user-select: none;
}

.cv-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.35), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(139, 92, 246, 0.15), transparent 40%),
    linear-gradient(180deg, #0a0e17 0%, #0f1629 50%, #0a0e17 100%);
  pointer-events: none;
}

.cv-page .container {
  z-index: 1;
}

.cv-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.cv-name {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cv-role {
  font-size: 1.15rem;
  color: #94a3b8;
  font-weight: 500;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cv-chip:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.cv-chip-static {
  cursor: default;
}

.cv-chip-accent {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
}

.cv-chip-accent:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(165, 180, 252, 0.55);
}

.cv-chip-linkedin {
  background: rgba(10, 102, 194, 0.22);
  border-color: rgba(59, 154, 225, 0.45);
}

.cv-chip-linkedin:hover {
  background: rgba(10, 102, 194, 0.4);
  border-color: rgba(112, 178, 236, 0.6);
}

.cv-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.cv-section-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-section-title i {
  color: #818cf8;
  font-size: 1.1rem;
}

.cv-period {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.cv-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.cv-item-title a {
  color: inherit;
  text-decoration: none;
}

.cv-item-title a:hover {
  text-decoration: underline;
}

.cv-item-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.cv-timeline-item + .cv-timeline-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cv-skills dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
}

.cv-skills dt:first-child {
  margin-top: 0;
}

.cv-skills dd {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.cv-cert-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cv-cert-list li:last-child {
  margin-bottom: 0;
}

.cv-job:not(:last-child) {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.cv-role-line {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.cv-project-list {
  padding-left: 1.1rem;
  margin: 0;
}

.cv-project-list li {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.85rem;
  padding-left: 0.35rem;
}

.cv-project-list li::marker {
  color: #818cf8;
}

.cv-project-list li:last-child {
  margin-bottom: 0;
}

.cv-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (min-width: 992px) {
  .cv-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}
