/* =========================
   Base / Reset
   ========================= */
:root {
    --blue-deep: #0E2A47;
    --blue-main: #1A3E8C;
    --blue-soft: #2E5CB8;
    --yellow-accent: #F4C430;
    --offwhite: #FAFAF8;
    --text-main: #2B2B2B;
    --text-muted: #5E5E5E;
    --border-soft: #E6E6E6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--offwhite);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   Layout
   ========================= */
.container {
    max-width: 920px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   Header
   ========================= */
.header {
    background: linear-gradient(
        135deg,
        var(--blue-deep),
        var(--blue-main)
    );
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header h1 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.header h3 {
    color: var(--yellow-accent);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.header .contact {
    text-align: right;
    font-size: 13px;
    color: #E9EEFF;
}

.header .contact p {
    margin: 3px 0;
}

.header a {
    color: var(--yellow-accent);
    text-decoration: none;
    font-weight: 500;
}

.header a:hover {
    text-decoration: underline;
}

/* =========================
   Sections
   ========================= */
.section {
    padding: 26px 40px 0 40px;
}

.section:last-of-type {
    padding-bottom: 40px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 14px;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: var(--yellow-accent);
    margin-top: 6px;
    border-radius: 2px;
}

/* =========================
   Text
   ========================= */
p {
    font-size: 14.5px;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

ul {
    padding-left: 18px;
    margin: 6px 0 0 0;
}

/* =========================
   Experience
   ========================= */
.job {
    margin-bottom: 22px;
}

.job-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--blue-main);
}

.job-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.job-desc ul li {
    padding-left: 6px;
}

/* =========================
   Skills
   ========================= */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skills-list div {
    background: linear-gradient(
        135deg,
        var(--blue-main),
        var(--blue-soft)
    );
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* =========================
   Credits
   ========================= */
.credits ul {
    columns: 2;
    column-gap: 40px;
}

.credits li {
    break-inside: avoid;
    margin-bottom: 8px;
}

/* =========================
   Education
   ========================= */
.education li {
    margin-bottom: 10px;
}

/* =========================
   PDF Button
   ========================= */
.pdf-button {
    text-align: center;
    margin: 32px 0 50px;
}

.pdf-button button {
    background: linear-gradient(
        135deg,
        var(--blue-main),
        var(--blue-soft)
    );
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 20px rgba(26, 62, 140, 0.35);
    transition: all 0.2s ease;
}

.pdf-button button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(26, 62, 140, 0.45);
}

/* =========================
   Print
   ========================= */
@media print {
    body {
        background: #ffffff;
    }

    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }

    .pdf-button {
        display: none;
    }

    .credits ul {
        columns: 1;
    }
}

h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--yellow-accent),
        var(--blue-soft)
    );
    margin-top: 8px;
    border-radius: 2px;
    opacity: 0.9;
}

/* HEADER LAYOUT */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* NAME */
.header .name,
.header h1 {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
}

/* TITLE */
.header .title,
.header h2 {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #f5f5f2; /* off-white */
  position: relative;
  padding: 0.5rem 0;
}

/* decorative horizontal lines */
.header .title::before,
.header .title::after,
.header h2::before,
.header h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: #f2c94c; /* yellow accent */
}

.header .title::before,
.header h2::before {
  left: -100px;
}

.header .title::after,
.header h2::after {
  right: -100px;
}

/* META INFO — FORCE VERTICAL STACK */
.header .meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #eaeae6;
}

/* In case meta items are spans/links */
.header .meta > *,
.header .meta span,
.header .meta a {
  display: block;
}

/* LINKS */
.header a {
  color: #7bb7ff; /* readable blue */
  text-decoration: none;
}

.header a:hover {
  color: #f2c94c;
}
/* META INFO — HORIZONTAL SINGLE LINE */
.header .meta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #eaeae6;
  flex-wrap: wrap; /* prevents overflow in PDF */
}

/* Force inline behavior even if HTML is messy */
.header .meta > *,
.header .meta span,
.header .meta a {
  display: inline;
  white-space: nowrap;
}

/* Optional separators */
.header .meta > *::after {
  content: "•";
  margin-left: 1.25rem;
  color: #f2c94c;
}

.header .meta > *:last-child::after {
  content: "";
  margin: 0;
}

/* Email + Linktree links — force white */
.header .meta a {
  color: #ffffff;
  text-decoration: none;
}

/* Optional: subtle hover without killing contrast */
.header .meta a:hover {
  color: #f2c94c;
}

/* Nuke browser defaults */
html, body {
  margin: 0;
  padding: 0;
}

/* Kill container top padding */
.container {
  padding-top: 0;
}

/* If header is inside another wrapper */
.header,
.header-wrapper,
.page-header {
  margin-top: 0;
  padding-top: 0;
}

.credits .credit-name {
    color: var(--blue-main);
    font-weight: 600;
}

