/* ===========================================================
   Two-Column Resume Template
   Customize colors, fonts, and spacing via the variables below.
   =========================================================== */

:root {
  /* Colors — change these to re-theme the whole resume */
  --color-primary: #0d47a1;        /* Name, section headers, borders */
  --color-primary-light: #3b82f6;  /* Icons, links */
  --color-accent: #29b6f6;         /* Skill category labels, language dots */
  --color-title: #42a5f5;          /* Job title under name */
  --color-text: #333333;           /* Body text */
  --color-muted: #666666;          /* Secondary/meta text */
  --color-subtitle: #1565c0;       /* Company/institution names */
  --color-border: #bbdefb;         /* CGPA box border */
  --color-border-light: #cccccc;   /* Dashed dividers */
  --color-pill-bg: #f0f4f8;        /* Skill pill background */
  --color-pill-border: #b0bec5;    /* Skill pill bottom border */
  --color-dot-empty-border: #cbd5e1;

  --font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background-color: #f5f5f5;
  color: var(--color-text);
  font-size: 11px;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
}

@page {
  size: A4;
  margin: 0;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.header-left {
  flex: 1;
}

.name {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-title);
  margin-top: 2px;
  margin-bottom: 10px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10.5px;
  color: #444;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
}

.profile-photo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 20px;
  border: 2px solid #e0e0e0;
}

/* MAIN CONTAINER */
.container {
  display: flex;
  gap: 25px;
  flex: 1;
}

.left-col {
  flex: 1.35;
}

.right-col {
  flex: 1;
}

/* SECTION HEADERS */
.section-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 3px;
  margin-top: 15px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.left-col .section-header:first-child,
.right-col .section-header:first-child {
  margin-top: 0;
}

/* SUMMARY */
.summary-text {
  font-size: 10.5px;
  color: #444;
  text-align: justify;
  line-height: 1.45;
}

/* EXPERIENCE & EDUCATION & PROJECTS */
.item-block {
  margin-bottom: 12px;
}

.item-title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.item-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-subtitle);
}

.item-meta {
  font-size: 10px;
  color: var(--color-muted);
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
}

.item-link {
  font-size: 10px;
  color: #555;
  margin-bottom: 4px;
  word-break: break-all;
}

.bullet-list {
  list-style-type: disc;
  margin-left: 14px;
  color: #333;
}

.bullet-list li {
  margin-bottom: 3px;
  font-size: 10.2px;
  line-height: 1.35;
}

/* EDUCATION CGPA BOX */
.edu-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cgpa-box {
  border: 1px solid var(--color-border);
  background-color: #e3f2fd;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}

.cgpa-title {
  font-size: 8px;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.cgpa-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
}

/* SKILLS CATEGORIES */
.skill-group {
  margin-bottom: 10px;
}

.skill-cat-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  background-color: var(--color-pill-bg);
  border-bottom: 2px solid var(--color-pill-border);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
}

.dashed-divider {
  border-bottom: 1px dashed var(--color-border-light);
  margin: 8px 0;
}

/* LANGUAGES */
.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lang-name {
  font-weight: 700;
  font-size: 11px;
}

.lang-sub {
  font-size: 9.5px;
  color: var(--color-muted);
}

.dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.dot.empty {
  background-color: transparent;
  border: 1.5px solid var(--color-dot-empty-border);
}

/* FOOTER (optional watermark / page footer) */
.footer {
  margin-top: auto;
  font-size: 8px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

@media print {
  body {
    background: none;
  }
  .page {
    box-shadow: none;
    padding: 25px 30px;
  }
}
