/* =============================================
   RESUME.CSS
   ============================================= */

.resume-header-bar {
  max-width: 1100px; margin: 0 auto;
  padding: 48px max(8%, 24px) 0;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 20px;
}
.resume-header-bar h1 { font-size: 36px; font-weight: 800; }
body.dark .resume-header-bar h1 { color: #f1f5f9; }
.resume-subtitle { font-size: 15px; opacity: 0.6; margin-top: 4px; }
body.dark .resume-subtitle { color: #94a3b8; opacity: 1; }

.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #2563eb; color: #fff;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer; flex-shrink: 0;
}
.download-btn:hover { background: #1d4ed8; transform: translateY(-2px); }
.download-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.resume-container {
  max-width: 1100px; margin: 0 auto;
  padding: 32px max(8%, 24px) 80px;
}

/* ---- RESUME CARD ---- */
.resume-card {
  border: 1px solid var(--color-border);
  border-radius: 20px; overflow: hidden;
  background: #fff;
}
body.dark .resume-card { border-color: #2d3f5a; background: #1a2744; }

/* TOP HEADER */
.resume-top {
  background: #0f172a; color: #f8fafc;
  padding: 48px 52px;
}
body.dark .resume-top { background: #020617; }
.resume-top h2 {
  font-size: 34px; font-weight: 800; letter-spacing: 0.5px;
}
.resume-top .role {
  color: #60a5fa; font-size: 14px;
  font-weight: 700; margin: 8px 0 22px;
  letter-spacing: 3px;
}
.resume-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.resume-contacts a {
  font-size: 13px; opacity: 0.75;
  display: flex; align-items: center; gap: 6px;
  transition: opacity 0.2s, color 0.2s;
  color: #f8fafc;
}
.resume-contacts a:hover { opacity: 1; color: #60a5fa; }

/* BODY */
.resume-body {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 0;
}

.resume-left {
  padding: 40px 36px 40px 52px;
  border-right: 1px solid var(--color-border);
}
body.dark .resume-left { border-color: #2d3f5a; }

.resume-right { padding: 40px 52px 40px 40px; }

/* Sections */
.r-section { margin-bottom: 32px; }
.r-section:last-child { margin-bottom: 0; }

.r-section-title {
  font-size: 10px; letter-spacing: 3px;
  font-weight: 800; color: #2563eb;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid #2563eb;
  text-transform: uppercase;
}

/* Summary */
.summary-text { font-size: 13px; opacity: 0.8; line-height: 1.85; }
body.dark .summary-text { color: #94a3b8; opacity: 1; }

/* Skills */
.skill-group { margin-bottom: 14px; }
.skill-group-name {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; opacity: 0.55;
  margin-bottom: 7px; text-transform: uppercase;
}
body.dark .skill-group-name { color: #64748b; opacity: 1; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px; padding: 4px 11px;
  border-radius: 20px; background: #eff6ff;
  color: #1d4ed8; font-weight: 600;
}
body.dark .pill { background: #1e3a5f; color: #93c5fd; }

/* Education */
.edu-item h4 { font-size: 14px; font-weight: 800; }
body.dark .edu-item h4 { color: #f1f5f9; }
.edu-item p { font-size: 13px; opacity: 0.7; margin-top: 4px; }
body.dark .edu-item p { color: #94a3b8; opacity: 1; }
.edu-year { font-size: 12px; color: #2563eb; font-weight: 600; margin-top: 4px; }

/* Projects */
.proj-item { margin-bottom: 16px; }
.proj-item h4 { font-size: 13px; font-weight: 800; }
body.dark .proj-item h4 { color: #f1f5f9; }
.proj-item p { font-size: 12px; opacity: 0.7; margin-top: 4px; line-height: 1.6; }
body.dark .proj-item p { color: #94a3b8; opacity: 1; }
.proj-tech { font-size: 11px; color: #2563eb; font-weight: 600; margin-top: 5px; }

/* Experience */
.r-exp { margin-bottom: 28px; }
.r-exp:last-child { margin-bottom: 0; }

.r-exp-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 4px;
  flex-wrap: wrap; gap: 8px;
}
.r-exp-title { font-size: 15px; font-weight: 800; }
body.dark .r-exp-title { color: #f1f5f9; }
.r-exp-date {
  font-size: 11px; opacity: 0.55;
  background: #f1f5f9; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
body.dark .r-exp-date { background: #2d3f5a; opacity: 1; color: #94a3b8; }
.r-exp-company { font-size: 12px; color: #2563eb; font-weight: 600; margin-bottom: 14px; }

.r-sub {
  font-size: 10px; letter-spacing: 2px;
  font-weight: 800; opacity: 0.45;
  margin: 14px 0 8px; text-transform: uppercase;
}
body.dark .r-sub { color: #64748b; opacity: 1; }

.r-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.r-bullets li {
  font-size: 13px; line-height: 1.65;
  padding-left: 18px; position: relative;
  color: #374151;
}
body.dark .r-bullets li { color: #94a3b8; }
.r-bullets li::before {
  content: "→"; position: absolute; left: 0;
  color: #2563eb; font-size: 12px; font-weight: 700;
}

/* Key Impact */
.impact-nums {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.impact-num-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: 12px;
  background: #eff6ff; text-align: center;
}
body.dark .impact-num-item { background: #1e3a5f; }
.impact-big {
  font-size: 22px; font-weight: 800; color: #2563eb;
  line-height: 1;
}
body.dark .impact-big { color: #60a5fa; }
.impact-desc { font-size: 11px; opacity: 0.65; line-height: 1.4; }
body.dark .impact-desc { color: #94a3b8; opacity: 1; }

/* =============================================
   RESPONSIVE — RESUME
   ============================================= */
@media (max-width: 900px) {
  .resume-body { grid-template-columns: 1fr; }
  .resume-left { border-right: none; border-bottom: 1px solid var(--color-border); padding: 36px 36px; }
  body.dark .resume-left { border-color: #2d3f5a; }
  .resume-right { padding: 36px 36px; }
  .impact-nums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .resume-top { padding: 32px 28px; }
  .resume-left, .resume-right { padding: 28px 24px; }
  .impact-nums { grid-template-columns: repeat(2, 1fr); }
  .resume-header-bar { padding: 32px 5% 0; }
  .resume-container { padding: 24px 5% 60px; }
}