:root {
  --bg-dark: #0f1720;
  --bg-soft: #171f2a;
  --panel: #121a22;
  --panel-alt: #1a2430;
  --gold: #d4af75;
  --gold-soft: #f3d7a1;
  --ivory: #f5efe6;
  --text: #f8f5f0;
  --muted: #c9c0b3;
  --line: rgba(212, 175, 117, 0.28);
  --shadow: rgba(0, 0, 0, 0.28);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(212, 175, 117, 0.16), transparent 35%),
    linear-gradient(135deg, #0b1117, #111922 40%, #0f1720);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 42px 18px;
}

.page {
  width: 100%;
  max-width: 1180px;
  background: linear-gradient(145deg, rgba(18, 26, 34, 0.96), rgba(17, 23, 30, 0.98));
  display: grid;
  grid-template-columns: 330px 1fr;
  box-shadow: 0 28px 60px var(--shadow);
  border: 1px solid rgba(212, 175, 117, 0.25);
  overflow: hidden;
  border-radius: 24px;
}

.sidebar {
  background: linear-gradient(180deg, #111922, #1a2430 58%, #111922);
  color: var(--text);
  padding: 32px 26px 28px;
  border-right: 1px solid var(--line);
}

.profile-box {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1a1a;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(212, 175, 117, 0.32);
}

.profile-box h1 {
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #fff;
}

.role {
  color: var(--gold-soft);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.sidebar h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  color: var(--gold-soft);
}

.info-list,
.skill-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #f3eadc;
  font-size: 0.97rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tags span {
  background: rgba(212, 175, 117, 0.08);
  border: 1px solid rgba(212, 175, 117, 0.25);
  color: var(--gold-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.skill-list li {
  margin-bottom: 18px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #f3eadc;
  font-size: 0.92rem;
}

.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 117, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(212, 175, 117, 0.5);
}

.content {
  padding: 42px 34px 30px;
  background: linear-gradient(180deg, rgba(18, 22, 27, 0.88), rgba(14, 18, 23, 0.98));
}

section {
  margin-bottom: 32px;
}

.summary h2,
.content h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.summary h2::after,
.content h2::after {
  content: "";
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 999px;
}

.summary p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-left: 2px solid rgba(212, 175, 117, 0.25);
  padding-left: 18px;
  position: relative;
}

.item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: -7px;
  top: 8px;
  box-shadow: 0 0 0 5px rgba(212, 175, 117, 0.14);
}

.date {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.details h3 {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 4px;
}

.details h4 {
  font-size: 0.97rem;
  color: var(--gold-soft);
  margin-bottom: 10px;
  font-weight: 600;
}

.details ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.details p {
  color: var(--muted);
  line-height: 1.8;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(212,175,117,0.04));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.project-card h3 {
  margin-bottom: 8px;
  color: #f3eadc;
}

.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .page {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 30px 22px;
  }

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

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sidebar {
    padding: 24px 18px;
  }

  .profile-box h1 {
    font-size: 1.65rem;
  }
}
