/* ===== Resume page (uses the colour variables from style.css) ===== */

.resume-page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

/* Title and download button, stays visible under the nav bar while scrolling */
.resume-toolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 842px;
  margin: var(--nav-height) auto 0;
  padding: 20px 24px 16px;
  background: linear-gradient(to bottom, var(--bg) 80%, transparent);
}

.resume-toolbar h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(77, 163, 255, 0.35);
}

/* Stack of A4 sheets */
.resume-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 8px 24px 64px;
}

.a4-page {
  position: relative;
  width: 100%;
  max-width: 794px;          /* A4 width at 96 dpi */
  aspect-ratio: 210 / 297;   /* A4 proportions */
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.a4-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Clickable links (email, LinkedIn etc.) placed over the page */
.pdf-link {
  position: absolute;
  display: block;
}

.pdf-link:hover {
  background: rgba(77, 163, 255, 0.15);
}

.resume-status {
  padding: 48px 0;
  color: var(--text-muted);
  text-align: center;
}

.resume-status a {
  color: var(--accent);
}

@media (max-width: 700px) {
  .resume-toolbar {
    padding: 14px 16px 12px;
  }

  .resume-toolbar h1 {
    font-size: 1.3rem;
  }

  .download-btn {
    padding: 9px 16px;
  }

  .resume-pages {
    gap: 16px;
    padding: 4px 12px 48px;
  }
}

/* Printing the page prints just the resume */
@media print {
  .navbar,
  .resume-toolbar,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .resume-pages {
    padding: 0;
    gap: 0;
  }

  .a4-page {
    box-shadow: none;
    break-after: page;
  }
}
