/* ============================================
   DIBASH SARKAR - ATS-APPROVED RESUME 2026
   World-Class Executive Resume Styles
   ============================================ */

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #e5e7eb;
  color: #1f2937;
  padding: 20px;
  line-height: 1.6;
}

/* Resume Container - A4 Size */
.resume {
  width: 268mm;
  min-height: 294mm;
  margin: auto;
  background: #fff;
  padding: 30px 35px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header {
  border-bottom: 2px solid #d1d5db;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-text {
  flex: 1;
}

.name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

.role {
  font-size: 15px;
  font-weight: 500;
  color: #2563eb;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  margin-top: 10px;
  color: #4b5563;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: #2563eb;
}

.contact-item i {
  color: #2563eb;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

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

.profile-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #d1d5db;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 28px;
  margin-top: 20px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  margin-bottom: 18px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #9ca3af;
  padding-bottom: 5px;
  margin-bottom: 10px;
  color: #374151;
  letter-spacing: 1px;
}

/* ============================================
   SUMMARY
   ============================================ */
.summary {
  font-size: 12px;
  line-height: 1.7;
  color: #374151;
  text-align: justify;
}

/* ============================================
   EXPERIENCE SECTION - TIMELINE
   ============================================ */
.experience-section {
  position: relative;
}

.job {
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
  page-break-inside: avoid;
}

.job:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 50%;
  z-index: 1;
}

.job:after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 2px;
  height: calc(100% + 6px);
  background: #d1d5db;
}

.job:last-child:after {
  display: none;
}

.job-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.company {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin: 2px 0 4px;
}

.meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
  font-style: italic;
}

.job ul {
  padding-left: 16px;
  margin-top: 5px;
}

.job li {
  font-size: 11.5px;
  line-height: 1.6;
  margin-bottom: 3px;
  color: #374151;
}

.job li::marker {
  color: #2563eb;
}

/* ============================================
   EDUCATION
   ============================================ */
.edu {
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
  page-break-inside: avoid;
}

.edu:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 16px;
}

.edu h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.edu p {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
}

/* ============================================
   SIDEBAR SECTIONS - WITH BULLET POINTS
   ============================================ */
.side-block {
  margin-bottom: 16px;
}

.side-item {
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
  page-break-inside: avoid;
}

.side-item:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 14px;
}

.side-item h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #1f2937;
}

.side-item p {
  font-size: 11px;
  line-height: 1.5;
  color: #4b5563;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
  font-size: 11px;
  line-height: 1.7;
  color: #374151;
}

.skills strong {
  color: #1f2937;
  font-weight: 600;
}

.side-list .side-item {
  font-size: 11px;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.side-list .side-item:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 14px;
}

/* ============================================
   PROJECTS - WITH BULLET POINTS
   ============================================ */
.project {
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
  page-break-inside: avoid;
}

.project:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 14px;
}

.project h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #1f2937;
}

.project p {
  font-size: 11px;
  line-height: 1.5;
  color: #4b5563;
}

/* ============================================
   PRINT BUTTON
   ============================================ */
.print-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.print-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.4);
}

/* ============================================
   WORD DOWNLOAD BUTTON
   ============================================ */
.word-btn {
  position: fixed;
  bottom: 20px;
  right: 180px;
  background: #2b579a;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(43, 87, 154, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.word-btn:hover {
  background: #1e3f6f;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(43, 87, 154, 0.4);
}

.button-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.button-group .print-btn {
  position: static;
}

.button-group .word-btn {
  position: static;
}

/* ============================================
   PRINT STYLES - ATS OPTIMIZED
   ============================================ */
@media print {
  body {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
    transform: scale(0.70) !important;
    transform-origin: top left !important;
    width: 130% !important; /* Compensate for 78% scale (100/78 = 128.21%) */
  }

  .resume {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 22px !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
  }

  .print-btn,
  .word-btn,
  .button-group {
    display: none !important;
  }

  @page {
    size: A4;
    margin: 6mm;
  }

  /* Force text visibility for print - apply to all elements */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color: #000 !important;
  }

  /* Ensure all text elements are visible */
  div, p, li, h1, h2, h3, h4, h5, h6, span, a, ul, ol {
    color: #000 !important;
  }

  /* Keep specific colors */
  .role, .company {
    color: #2563eb !important;
  }

  .name {
    color: #111827 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
  }

  .section-title {
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .job-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
  }

  .contact-item {
    color: #4b5563 !important;
  }

  .contact-item i {
    color: #2563eb !important;
  }

  /* Ensure borders print */
  .header {
    border-bottom: 2px solid #000 !important;
  }

  .section-title {
    border-bottom: 2px solid #000 !important;
  }

  /* Page break handling */
  .job, .edu, .side-item, .project {
    page-break-inside: avoid !important;
  }

  /* Remove transitions and shadows for print */
  * {
    transition: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
}

/* ============================================
   RESPONSIVE (for screen preview)
   ============================================ */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  .resume {
    width: 100%;
    padding: 16px;
  }

  .main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact {
    justify-content: center;
  }

  .name {
    font-size: 28px;
  }

  .role {
    font-size: 16px;
  }
}
