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

:root {
  --primary: #2563eb;
  --dark: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #e2e8f0;
  color: var(--text);
  line-height: 1.6;
  padding: 40px 16px;
}

.cv {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  min-height: 1100px;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--dark);
  color: var(--white);
  padding: 40px 28px;
}

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
}

.name {
  font-size: 24px;
  text-align: center;
}

.title {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 30px;
}

.sidebar h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93c5fd;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

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

.contact-list li {
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

.skills li {
  margin-bottom: 14px;
  font-size: 14px;
}

.bar {
  height: 6px;
  background: #334155;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* Main content */
.content {
  flex: 1;
  padding: 40px 36px;
}

.content section {
  margin-bottom: 32px;
}

.content h2 {
  font-size: 18px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

.content > section > p {
  font-size: 15px;
}

.item {
  margin-bottom: 20px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.item h3 {
  font-size: 16px;
  color: var(--dark);
}

.date {
  font-size: 13px;
  color: var(--muted);
  background: var(--light);
  padding: 2px 10px;
  border-radius: 12px;
}

.company {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin: 2px 0 6px;
}

.item ul {
  padding-left: 20px;
  font-size: 14px;
}

.item ul li {
  margin-bottom: 4px;
}

.item > p:not(.company) {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 720px) {
  .cv {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
  }

  .content {
    padding: 28px 22px;
  }
}

@media print {
  body {
    background: none;
    padding: 0;
  }

  .cv {
    box-shadow: none;
    border-radius: 0;
  }
}
