:root {
  --primary: #0f172a;
  --secondary: #64748b;
  --accent: #1a73e8;
  --accent-soft: rgba(26, 115, 232, 0.12);
  --bg: #f5f7fa;
  --bg-alpha: #f5f7fa;
  --line: rgba(100, 116, 139, 0.18);
  --line-strong: rgba(100, 116, 139, 0.24);
  --text: #0f172a;
  --text-muted: #475569;
  --sidebar-bg: #edf2f7;
  --canvas-bg: #e7edf4;
  --badge-bg: #dfe7f3;
  --avatar-bg: #f1f5f9;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-strong: 0 8px 24px rgba(15, 23, 42, 0.06);
  --toggle-track-bg: #e3e8ef;
  --toggle-thumb-bg: #1a73e8;
  --toggle-icon-active: #ffffff;
  --toggle-icon-inactive: #64748b;
  --transition: all 260ms ease;
}

[data-theme="dark"] {
  --primary: #f8fafc;
  --secondary: #a3a9b3;
  --accent: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, 0.14);
  --bg: #202124;
  --bg-alpha: #202124;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e8eaed;
  --text-muted: #c2c7d0;
  --sidebar-bg: #17181b;
  --canvas-bg: #141518;
  --badge-bg: #2b2d31;
  --avatar-bg: #141518;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.22);
  --toggle-track-bg: #303134;
  --toggle-thumb-bg: #8ab4f8;
  --toggle-icon-active: #202124;
  --toggle-icon-inactive: #9aa0a6;
}

html {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: rgb(153 185 246 / 20%);
  color: var(--text);
  line-height: 1.6;
  padding: 40px 20px;
  transition: var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background: rgb(17 24 39 / 50%);
}

.cv-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-alpha);
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 1100px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Sidebar Styles */
aside {
  background-color: var(--sidebar-bg);
  padding: 40px;
  border-right: 1px solid var(--line);
  transition: var(--transition);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.78);
  box-shadow: none;
  margin-bottom: 25px;
  background-color: var(--avatar-bg);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.name {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.sidebar-section {
  margin-bottom: 35px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 5px;
}

.contact-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-item :is(i, svg) {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-right: 10px;
  flex: 0 0 18px;
  color: var(--primary);
}

.contact-item i {
  font-size: 18px;
  line-height: 18px;
}

.contact-item svg {
  stroke-width: 2;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-badge {
  font-size: 14px;
  padding: 3px 10px;
  background-color: rgb(235 241 253 / 50%);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}

[data-theme="dark"] .skill-badge {
  background-color: rgba(255, 255, 255, 0);
}

main {
  padding: 40px 50px;
}

.main-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 15px;
  letter-spacing: -0.01em;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.summary-text {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.experience-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 18px;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.45;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.job-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.job-date {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
}

.job-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.job-points {
  list-style: none;
  padding-left: 0;
}

.job-points li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.job-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .cv-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  aside {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 30px;
  }

  main {
    padding: 30px;
  }
}

@media (max-width: 580px) {
  body {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.skill-badge__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.skill-badge__icon i,
.skill-badge__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.skill-badge__icon i {
  font-size: 14px;
  line-height: 14px;
}

.skill-badge__icon svg {
  stroke-width: 2;
}
