/* ==========================================================================
   RESUME FLUID STYLESHEET - XAVIER HARRIS
   Optimized for: Fluid Screen Responsiveness & Exact Physical Print/PDF Export
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Palette */
  --primary-teal: #0d9488;
  --primary-teal-dark: #0f766e;
  --primary-teal-light: #ccfbf1;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #0a0e17;
  --bg-paper: #ffffff;
  --border-light: #e2e8f0;
  --border-accent: #0f766e;
  --chip-bg: #f1f5f9;
  --chip-border: #cbd5e1;
}

@page {
  size: letter;
  margin: 0.45in 0.5in;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.45;
  font-size: 10.5pt;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

/* Floating Web Control Bar */
.resume-nav-bar {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: rgba(16, 24, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.resume-nav-bar a,
.resume-nav-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #38bdf8;
}

.btn-print {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-print:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
}

/* Printable / Screen Paper Container */
.paper-container {
  width: 100%;
  max-width: 860px;
  background: var(--bg-paper);
  padding: clamp(24px, 5vw, 44px);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header */
.header {
  text-align: center;
  border-bottom: 2.5px solid var(--primary-teal-dark);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.name {
  font-size: clamp(22pt, 4vw, 26pt);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-teal-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  font-size: 9pt;
  color: var(--text-muted);
}

.contact-bar a {
  color: var(--primary-teal-dark);
  text-decoration: none;
  font-weight: 500;
}

.contact-bar a:hover {
  text-decoration: underline;
}

.bullet {
  color: var(--primary-teal);
  font-weight: bold;
}

/* Section Titles */
.section-title {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-teal-dark);
  border-bottom: 1.5px solid var(--primary-teal-dark);
  padding-bottom: 3px;
  margin-top: 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Summary */
.summary {
  font-size: 9.5pt;
  color: #334155;
  text-align: justify;
  line-height: 1.5;
}

/* Technical Skills Layout */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 9pt;
  line-height: 1.4;
}

.skill-category {
  font-weight: 700;
  color: var(--text-dark);
  min-width: 170px;
}

.skill-items {
  color: var(--text-muted);
  flex: 1;
}

/* Experience & Project Items */
.resume-item {
  margin-top: 8px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-weight: 700;
  font-size: 10pt;
  color: var(--text-dark);
}

.item-title {
  color: var(--text-dark);
}

.item-location, .item-date {
  font-weight: 600;
  font-size: 9pt;
  color: var(--text-muted);
}

.item-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-style: italic;
  font-size: 9pt;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.item-role {
  color: var(--primary-teal-dark);
  font-weight: 600;
}

.tech-stack {
  font-weight: 500;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8pt;
  color: #047857;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.project-link {
  font-size: 8.5pt;
  color: var(--primary-teal-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.project-link:hover {
  text-decoration: underline;
}

/* Fluid Lists */
ul.resume-bullets {
  margin: 3px 0 6px 18px;
  padding: 0;
  list-style-type: disc;
}

ul.resume-bullets li {
  margin-bottom: 3.5px;
  font-size: 9.2pt;
  color: #334155;
  line-height: 1.42;
}

ul.resume-bullets li strong {
  color: var(--text-dark);
}

/* ==========================================================================
   PRINT SPECIFICATION
   ========================================================================== */
@media print {
  body {
    background-color: transparent !important;
    padding: 0 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume-nav-bar {
    display: none !important;
  }

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

  .name {
    color: #0f766e !important;
  }

  .section-title {
    color: #0f766e !important;
    border-bottom: 1.5px solid #0f766e !important;
  }

  .resume-item {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
