/* CSS Design System for James B. Mesa's Resume
   Features: Glassmorphic interactive web view & High-fidelity single-page print rules */

:root {
  /* Color Palette - B&W Minimalist */
  --primary-color: #1a202c;      /* Charcoal */
  --primary-dark: #1a202c;       /* Charcoal */
  --text-main: #1a202c;          /* Deep Charcoal */
  --text-muted: #2d3748;         /* Dark Cool Grey */
  --text-light: #718096;         /* Light Grey */
  --bg-web: #0f172a;             /* Dark Slate Slate for Web View */
  --bg-sheet: #ffffff;           /* Clean White Paper */
  --border-color: #1a202c;       /* Dark border */
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and Global Web Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-web);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Web Interaction Elements (Hidden on Print) */
.web-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 820px;
  justify-content: flex-end;
}

.btn-print, .btn-back {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-print {
  background: linear-gradient(135deg, var(--primary-color), #3182ce);
  color: white;
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.5);
  background: linear-gradient(135deg, #3182ce, #4299e1);
}

.btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

/* Resume Paper Sheet Layout */
.resume-container {
  width: 100%;
  max-width: 820px;
  background-color: var(--bg-sheet);
  padding: 45px 50px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Header styling */
.resume-header {
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.candidate-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.candidate-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-size: 12.5px;
  color: var(--text-muted);
}

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

.contact-item i {
  color: var(--primary-color);
}

.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.contact-item a:hover {
  border-bottom: 1px solid var(--text-muted);
}

/* General Section Layout */
.resume-section {
  margin-bottom: 24px;
}

.resume-section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.summary-text {
  font-size: 12.5px;
  color: var(--text-main);
  text-align: justify;
}

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

.skills-category {
  font-size: 12px;
}

.skills-category h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.skills-category p {
  color: var(--text-main);
  line-height: 1.35;
}

/* Experience / Education / Projects Listings */
.experience-item, .project-item, .education-item {
  margin-bottom: 16px;
}

.experience-item:last-child, .project-item:last-child, .education-item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.item-role, .degree-name, .project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}

.project-name {
  color: var(--primary-dark);
}

.item-date, .degree-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--primary-color);
  white-space: nowrap;
}

.item-subheader {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-top: 1px;
}

.item-company, .school-name {
  font-weight: 600;
}

.item-bullets {
  list-style-type: square;
  margin-left: 16px;
  font-size: 12px;
  color: var(--text-main);
}

.item-bullets li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.item-bullets li:last-child {
  margin-bottom: 0;
}

/* PRINT MEDIA STYLES - Designed for perfect single-page layout */
@media print {
  body {
    background-color: transparent;
    padding: 0;
    margin: 0;
    color: #000000;
  }

  .no-print, .web-actions {
    display: none !important;
  }

  .resume-container {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background-color: transparent;
  }

  /* Force standard system fonts during printing for maximum compatibility and ATS parser output */
  body, .resume-container, .candidate-name, .section-title, .item-role, .degree-name {
    font-family: Arial, Helvetica, sans-serif !important;
  }

  .candidate-name {
    font-size: 26px !important;
    color: #1a202c !important;
  }

  .candidate-title {
    font-size: 14px !important;
    color: #1a202c !important;
  }

  .section-title {
    font-size: 13px !important;
    border-bottom: 1.5px solid #1a202c !important;
    color: #1a202c !important;
    margin-bottom: 10px !important;
  }

  .summary-text, .skills-category p, .item-bullets li, .contact-info, .item-subheader {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .item-role, .degree-name, .project-name {
    font-size: 12px !important;
  }

  .item-date, .degree-date {
    font-size: 11px !important;
    color: #1a365d !important;
  }

  .resume-section {
    margin-bottom: 20px !important;
  }

  .experience-item, .education-item {
    margin-bottom: 14px !important;
  }

  /* Prevent page breaks inside sections and list items */
  .resume-section, .experience-item, .project-item, .education-item {
    page-break-inside: avoid;
  }
}

/* Page Margins Set via Browser Page Setup */
@page {
  size: letter;
  margin: 0.65in 0.55in;
}
