/* ==========================================================================
   Ayush Sharma - Original PDF Replica Stylesheet
   Matches Ayush_Sharma_Backend_Ai.pdf typography, layout, and spacing
   ========================================================================== */

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

body {
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  color: #000000;
  background-color: #e5e7eb;
  font-size: 10pt;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px 0 40px;
}

/* Floating Action Bar */
.print-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.1s ease;
}

.print-btn:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
}

.download-btn {
  background: #0b5394;
}

.download-btn:hover {
  background: #083c6c;
}

/* Resume Document Sheet - True A4 Dimensions (210mm x 297mm) */
.resume {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #ffffff;
  padding: 12mm 16mm;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 215mm) {
  .resume {
    width: 100%;
    min-height: auto;
    padding: 24px 18px;
  }
}

/* Links */
a {
  color: #000000;
  text-decoration: underline;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 10px;
}

.name {
  font-size: 19pt;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-info,
.contact-links {
  font-size: 10pt;
  line-height: 1.38;
}

/* Sections */
.section {
  margin-top: 10px;
  margin-bottom: 4px;
}

.section-title {
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1.2px solid #000000;
  padding-bottom: 1px;
  margin-bottom: 6px;
}

/* Profile */
.profile-text {
  font-size: 9.8pt;
  line-height: 1.36;
  text-align: justify;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.timeline {
  font-size: 9.8pt;
  text-align: right;
  white-space: nowrap;
  margin-left: 12px;
}

/* Education */
.education-block {
  margin-bottom: 4px;
}

.university-name {
  font-weight: bold;
  font-style: italic;
  font-size: 10pt;
  margin-bottom: 2px;
}

.school-row {
  font-size: 9.8pt;
  margin-top: 4px;
}

/* Lists */
.bullet-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 3px;
  line-height: 1.36;
  font-size: 9.8pt;
}

.skills-list li {
  margin-bottom: 2px;
}

/* Projects */
.project-entry {
  margin-bottom: 8px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10pt;
  margin-bottom: 1px;
}

.project-name {
  font-size: 10pt;
}

.tech-stack {
  font-size: 9.8pt;
  margin-bottom: 3px;
}

/* Certifications */
.cert-list > li {
  margin-bottom: 2px;
}

.numbered-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.numbered-list li {
  margin-bottom: 1.5px;
  line-height: 1.34;
}

/* ==========================================================================
   Print Calibration
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 15mm;
  }

  body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10pt !important;
  }

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

  .resume {
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .section {
    page-break-inside: auto;
  }

  .project-entry,
  .education-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
