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

:root {
  --primary-color: #0f172a; /* Deep Slate / Charcoal */
  --secondary-color: #475569; /* Slate Gray */
  --text-main: #334155; /* Slate 700 */
  --text-light: #64748b; /* Slate 500 */
  --bg-color: #f8fafc;
  --paper-bg: #ffffff;
  --border-color: #e2e8f0;
  --pill-bg: #f1f5f9;
  --pill-text: #334155;
  --page-w: 800px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume-sheet {
  background: var(--paper-bg);
  width: 100%;
  max-width: var(--page-w);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 60px 70px;
  border-radius: 2px;
}

/* Header Section */
header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4px;
  letter-spacing: -1px;
}

header .job-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--text-main);
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.contact-info i {
  font-size: 16px;
  color: var(--primary-color);
}

/* Sections */
section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--secondary-color);
}

/* Summary */
.summary p {
  font-size: 15px;
  color: var(--text-main);
  text-align: justify;
}

/* Experience */
.experience-item {
  margin-bottom: 15px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.experience-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.experience-company {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary-color);
}

.experience-date {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

.experience-details {
  list-style-type: none;
  padding-left: 5px;
}

.experience-details li {
  font-size: 14px;
  margin-bottom: 4px;
  position: relative;
  padding-left: 20px;
}

.experience-details li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 16px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.skill-category {
  margin-bottom: 10px;
}

.skill-category-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background-color: var(--pill-bg);
  color: var(--pill-text);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Print optimizations */
@media print {
  body {
    background-color: white;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .resume-sheet {
    box-shadow: none;
    border-top: none;
    padding: 0;
  }
  .download-bar {
    display: none;
  }

  /* Prevent titles from being stranded at the bottom of the page */
  .section-title {
    page-break-after: avoid;
    break-after: avoid;
  }
  .experience-header {
    page-break-after: avoid;
    break-after: avoid;
  }
}

/* Download Bar */
.download-bar {
  text-align: center;
  margin-top: 30px;
}

.download-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.download-btn:hover {
  background-color: var(--secondary-color);
}

/* ========== MOBILE RESPONSIVE ========== */
/* Tablet and below - 768px */
@media screen and (max-width: 768px) {
  body {
    padding: 20px 15px;
  }

  .resume-sheet {
    padding: 35px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }

  header h1 {
    font-size: 32px;
    margin-bottom: 2px;
  }

  header .job-title {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }

  .contact-info {
    gap: 8px 15px;
    font-size: 12px;
  }

  .contact-info i {
    font-size: 14px;
  }

  .section-title {
    font-size: 17px;
    margin-bottom: 8px;
    padding-bottom: 3px;
  }

  .summary p {
    font-size: 14px;
    text-align: left;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
  }

  .experience-title {
    font-size: 15px;
  }

  .experience-company {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .experience-date {
    font-size: 13px;
    margin-top: 2px;
  }

  .experience-details li {
    font-size: 13px;
    margin-bottom: 3px;
    padding-left: 18px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-category-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .pill {
    font-size: 12px;
    padding: 3px 8px;
  }

  section {
    margin-bottom: 15px;
  }

  .download-bar {
    margin-top: 20px;
  }

  .download-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Mobile - 480px and below */
@media screen and (max-width: 480px) {
  body {
    padding: 15px 12px;
  }

  .resume-sheet {
    padding: 25px 18px;
  }

  header {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  header h1 {
    font-size: 26px;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
  }

  header .job-title {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .contact-info {
    gap: 6px 12px;
    font-size: 11px;
    flex-direction: column;
    align-items: center;
  }

  .contact-info span,
  .contact-info a {
    white-space: nowrap;
  }

  .contact-info i {
    font-size: 13px;
  }

  .section-title {
    font-size: 15px;
    margin-bottom: 7px;
    padding-bottom: 3px;
    gap: 6px;
  }

  .section-title i {
    font-size: 18px;
  }

  .summary p {
    font-size: 13px;
    line-height: 1.4;
  }

  .experience-item {
    margin-bottom: 12px;
  }

  .experience-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .experience-company {
    font-size: 13px;
  }

  .experience-date {
    font-size: 12px;
  }

  .experience-details li {
    font-size: 12px;
    margin-bottom: 3px;
    padding-left: 16px;
    line-height: 1.4;
  }

  .experience-details li::before {
    font-size: 14px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-category {
    margin-bottom: 8px;
  }

  .skill-category-title {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .pills {
    gap: 6px;
  }

  .pill {
    font-size: 11px;
    padding: 2px 7px;
  }

  section {
    margin-bottom: 12px;
  }

  .download-bar {
    margin-top: 15px;
  }

  .download-btn {
    padding: 8px 14px;
    font-size: 13px;
    gap: 6px;
  }
}
