@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #000;
  --text-main: #222;
  --text-muted: #666;
  --line-color: #000;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #d1d5db;
  /* Grey background for screen preview */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
}

.a4-container {
  background-color: #fff;
  width: 210mm;
  height: 297mm;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Left line decoration spanning down */
.left-decoration {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.left-decoration .thick-bar {
  width: 12px;
  height: 80px;
  background-color: #000;
}

.left-decoration .thin-line {
  width: 1px;
  flex-grow: 1;
  background-color: #000;
  opacity: 0.2;
}

/* Watermark text rotated 90deg on the left bottom side */
.watermark {
  position: absolute;
  left: -65px;
  bottom: 150px;
  transform: rotate(-90deg);
  font-size: 10px;
  color: #666;
  letter-spacing: 1px;
}

.content-wrapper {
  padding: 55px 45px 45px 80px;
  /* Left padding ensures content clears the left line */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.header-left {
  flex: 1;
}

.name-first {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1.1;
  color: #000;
}

.name-last {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.1;
  color: #000;
  margin-bottom: 12px;
}

.title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #333;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 250px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #000;
}

.contact-icon {
  width: 18px;
  margin-right: 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-text-wrap {
  flex-grow: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  padding-bottom: 3px;
  padding-top: 1px;
  font-weight: 500;
  height: 100%;
}

/* Main Content Area */
.main-content {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  flex-grow: 1;
}

.left-column {
  display: flex;
  flex-direction: column;
}

.right-column {
  display: flex;
  flex-direction: column;
}

/* Titles */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #000;
  display: flex;
  align-items: center;
}

.section-title.with-line::after {
  content: "";
  height: 1px;
  background-color: #000;
  flex-grow: 1;
  margin-left: 15px;
}

/* Summary */
.summary-text {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-muted);
  border-left: 2px solid #ccc;
  padding-left: 15px;
  margin-bottom: 30px;
  text-align: justify;
}

/* Jobs */
.job {
  margin-bottom: 20px;
}

.job-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 3px;
}

.job-meta {
  font-size: 10.5px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}

.job-meta span.date {
  color: #777;
}

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

.job-desc li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: justify;
}

.job-desc li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #555;
  font-size: 12px;
  line-height: 15px;
}

/* Projects */
.projects .section-title {
  margin-top: 10px;
}

.project-item {
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.project-item strong {
  color: #000;
  font-weight: 600;
}

.project-item .link {
  color: #999;
}

/* Right Column details */
.photo-container {
  width: 100%;
  margin-bottom: 30px;
}

.photo-container img {
  width: 180px;
  height: 180px;
  border-radius: 100%;
  /* Makes an interesting semi-organic shape */
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.education-item {
  margin-bottom: 25px;
}

.edu-degree {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.edu-uni {
  font-size: 10px;
  color: #555;
  margin-top: 4px;
}

.edu-date {
  font-size: 10px;
  color: #999;
  font-style: italic;
  margin-top: 2px;
}

.skills-section {
  margin-top: 0;
}

.skills-group {
  margin-bottom: 12px;
}

.skills-group h4 {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.7;
}

.skills-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #555;
  font-size: 12px;
  line-height: 15px;
}

/* Print optimizations */
@media print {
  @page {
    size: A4;
    margin: 0 !important;
  }

  body {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    display: block;
  }

  .a4-container {
    width: 210mm;
    height: 297mm;
    box-shadow: none;
    margin: 0;
    padding: 0;
    page-break-after: always;
  }

  /* Ensure backgrounds render when printing (Chrome option, but CSS can force it) */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}