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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: #f0f4f8;
  color: #2d3748;
  display: flex;
  min-height: 100vh;
}

/* ── Layout ── */
.page {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

/* ── Sidebar ── */
.sidebar {
  width: 265px;
  min-width: 265px;
  background: #1b2b3e;
  color: #c8d6e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 1.6rem 2.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.photo-ring {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 3px solid #3a7bd5;
  overflow: hidden;
  background: #253548;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-ring svg {
  width: 60px;
  height: 60px;
  opacity: 0.35;
}

.sidebar-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.sidebar-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #3a7bd5;
  text-align: center;
  margin-bottom: 1.6rem;
}

.accent-bar {
  width: 36px;
  height: 2px;
  background: #3a7bd5;
  margin-bottom: 1.2rem;
}

.sidebar-label {
  width: 100%;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4a6278;
  margin-bottom: 0.85rem;
}

.download-cv a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #8aa3b8;
  text-decoration: none;
  margin-bottom: 1rem;
  transition:
    background 0.15s,
    color 0.15s;
}

.download-cv a:hover {
  background: rgba(58, 123, 213, 0.12);
  color: #c8d6e5;
}

/* Contact */
.contact-list {
  list-style: none;
  width: 100%;
  margin-bottom: 1.8rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.contact-list li .icon {
  flex-shrink: 0;
  width: 15px;
  margin-top: 0.05rem;
  color: #3a7bd5;
}

.contact-list a {
  color: #b0c4d8;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.18s;
}

.contact-list a:hover {
  color: #3a7bd5;
}

.contact-list .plain {
  color: #8aa3b8;
}

/* Sidebar nav */
.sidebar-nav {
  width: 100%;
  list-style: none;
}

.sidebar-nav li + li {
  margin-top: 0.15rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #8aa3b8;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.sidebar-nav a:hover {
  background: rgba(58, 123, 213, 0.12);
  color: #c8d6e5;
}

.sidebar-nav a .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a7bd5;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Main ── */
.main {
  flex: 1;
  padding: 3rem 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.section {
  margin-bottom: 2.6rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #3a7bd5;
  white-space: nowrap;
}

.section-heading .rule {
  flex: 1;
  height: 1px;
  background: #dde5ee;
}

/* ── About ── */
.about-text {
  font-size: 0.935rem;
  color: #4a5568;
  line-height: 1.75;
}

/* ── Experience ── */
.job + .job {
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px dashed #e4eaf2;
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.job-company {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2b3e;
}

.job-dates {
  font-size: 0.76rem;
  color: #7a90a4;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.65rem;
}

.job-role {
  font-size: 0.84rem;
  color: #3a7bd5;
  font-style: italic;
}

.job-location {
  font-size: 0.76rem;
  color: #9aacbb;
}

.job-location::before {
  content: "·";
  margin-right: 0.4rem;
}

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

.job ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.42rem;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.58;
}

.job ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3a7bd5;
  font-size: 0.65rem;
  top: 0.22rem;
}

/* ── Skills ── */
.skills-group {
  margin-bottom: 0.9rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6e80;
  margin-bottom: 0.45rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.78rem;
  color: #334a5e;
  background: #edf2f7;
  border: 1px solid #d5dfe9;
  border-radius: 4px;
  padding: 0.22rem 0.65rem;
}

/* ── Education ── */
.edu-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.edu-school {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2b3e;
}

.edu-date {
  font-size: 0.76rem;
  color: #7a90a4;
}

.edu-location {
  font-size: 0.78rem;
  color: #9aacbb;
  margin-top: 0.1rem;
}

.edu-degree {
  font-size: 0.875rem;
  color: #4a5568;
  margin-top: 0.3rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body {
    display: block;
  }

  .page {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .contact-list {
    text-align: center;
    width: auto;
  }

  .sidebar-nav li {
    display: inline-block;
  }

  .sidebar-nav a .nav-dot {
    display: none;
  }

  .main {
    padding: 2rem 1.5rem;
  }
}
