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

/* Most type on this page is sized in rem, so it keys off this root size.
   Shrinking it scales every heading, bullet, and line-height together to fit one page. */
html {
    font-size: 13px;
}

/* Web-safe font stack for the resume: Arial/Helvetica parse cleanly in every ATS,
   so the downloadable PDF never risks font substitution or garbled text. */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #2d2d2d;
    background: #e5e5e5;
    line-height: 1.32;
}

/* White page card */
.page {
    max-width: 780px;
    margin: 16px auto;
    background: #fff;
    padding: 22px 30px 28px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.13);
}

/* Print bar — holds the Save as PDF button */
.print-bar {
    text-align: right;
    margin-bottom: 7px;
}

/* Save as PDF button */
.print-btn {
    background: transparent;
    color: #7B2DB8;
    border: 1px solid #7B2DB8;
    padding: 4px 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.print-btn:hover {
    background: #7B2DB8;
    color: #fff;
}

/* Header — name, subtitle, contact row */
.resume-header {
    margin-bottom: 7px;
}

/* Name */
.resume-header h1 {
    font-size: 1.85rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 1px;
    letter-spacing: -0.5px;
}

/* Subtitle — role line under the name */
.resume-header .subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: #7B2DB8;
    margin-bottom: 4px;
}

/* Contact row — email, LinkedIn, GitHub, portfolio, location */
.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    font-size: 0.79rem;
    color: #444;
    align-items: center;
}

.contact-line a {
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Links and their icons both turn purple on hover */
.contact-line a:hover,
.contact-line a:hover i {
    color: #7B2DB8;
}

.contact-line .loc {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-line i {
    font-size: 0.72rem;
    color: #666;
}

/* Section spacing */
.section {
    margin-bottom: 6px;
}

/* Section title — uppercase heading with the purple underline */
.section-title {
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1a1a1a;
    border-bottom: 2px solid #7B2DB8;
    padding-bottom: 2px;
    margin-bottom: 5px;
}

/* Summary paragraph */
.summary-text {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.3;
}

/* Meta line — date/location row under titles */
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    align-items: center;
    font-size: 0.74rem;
    color: #666;
    margin-top: 2px;
}

.meta-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Links inside a meta line (e.g. project URLs) stay muted rather than default browser blue */
.meta-line a {
    color: #666;
    text-decoration: none;
}

.meta-line a:hover {
    color: #7B2DB8;
}

.meta-line i {
    font-size: 0.67rem;
}

/* Education row — degree/school left, GPA box right */
.edu-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.edu-left {
    flex: 1;
}

.edu-degree {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
}

.edu-school {
    font-weight: 700;
    color: #7B2DB8;
    font-size: 0.84rem;
}

/* GPA box */
.gpa-box {
    border: 1px solid #bbb;
    padding: 4px 9px;
    text-align: center;
    font-size: 0.68rem;
    color: #777;
    flex-shrink: 0;
    line-height: 1.3;
}

.gpa-box .gpa-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1px;
}

/* Education bullets — focus, clubs, capstone */
.edu-bullets {
    padding-left: 14px;
    margin-top: 4px;
}

.edu-bullets li {
    font-size: 0.79rem;
    color: #444;
    margin-bottom: 2px;
}

/* Experience entries — one job each, dotted divider between */
.exp-entry {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dotted #ccc;
}

/* last job: drop the divider and extra spacing */
.exp-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Job title, company, and department label styles */
.exp-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
}

.exp-company {
    font-weight: 700;
    color: #7B2DB8;
    font-size: 0.83rem;
}

.exp-dept {
    font-style: italic;
    font-size: 0.76rem;
    color: #666;
    margin: 1px 0 3px;
}

/* Bullet list inside experience entries */
.exp-entry ul {
    padding-left: 14px;
    margin-top: 3px;
}

.exp-entry ul li {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.28;
}

/* Highlight utility */
.hl {
    background: #FFE08A;
    padding: 1px 0;
}

/* Industry skills — the row of small bordered tag boxes in the skills section */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Grouped skills — bold category label followed by a comma-separated,
   ATS-friendly plain-text list on the same line */
.skills-groups {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.skill-row {
    font-size: 0.79rem;
    color: #333;
    line-height: 1.35;
}

.skill-cat {
    font-weight: 700;
    color: #1a1a1a;
}

/* Certifications — simple stacked list, one item per line for clean ATS parsing */
.cert-list {
    list-style: none;
    padding-left: 0;
}

.cert-list li {
    font-size: 0.79rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 2px;
    margin-bottom: 2px;
    border-bottom: 1px dotted #ccc;
    line-height: 1.3;
}

.cert-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Project entries — dotted divider, shared with personal projects */
.project-entry,
.personal-entry {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ccc;
}

.project-entry:last-child,
.personal-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Project name (dark); personal-name is the purple variant */
.project-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.personal-name {
    font-weight: 700;
    color: #7B2DB8;
    font-size: 0.86rem;
}

/* Organization label under the project name (used for SRNL projects) */
.project-org {
    font-weight: 700;
    color: #7B2DB8;
    font-size: 0.81rem;
}

/* Project description text */
.project-desc,
.personal-desc {
    font-size: 0.79rem;
    color: #333;
    margin-top: 2px;
    line-height: 1.33;
}

/* Bullet list inside personal project entries (used for in-progress notes, etc.) */
.personal-entry ul {
    padding-left: 14px;
    margin-top: 3px;
}

.personal-entry ul li {
    font-size: 0.78rem;
    color: #444;
    margin-bottom: 2px;
}

/* Tech/tool tags that appear at the bottom of each project entry */
.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.proj-tag {
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 2px;
    background-color: transparent;
    color: #444;
    border: 1px solid #222;
}

/* Print / Save as PDF */
@media print {
    /* margin:0 leaves the browser no room for its date / title / URL header and footer,
       so they're dropped. Page margins are added back as padding on .page below. */
    @page {
        margin: 0;
    }

    body {
        background: #fff;
    }

    .page {
        margin: 0;
        max-width: none;
        box-shadow: none;
        padding: 0.25in 0.5in;
    }

    .print-bar {
        display: none;
    }

    /* ATS safety: the Font Awesome icons render from an icon font via CSS
       pseudo-elements (private-use Unicode). Left in, they can leak stray
       glyph characters into the PDF's text layer, which an applicant-tracking
       system then tries to parse. Hiding them in print keeps the on-screen
       web view decorated while guaranteeing the exported PDF contains only
       clean, real text (email, links, dates) for the parser. */
    .contact-line i,
    .meta-line i {
        display: none;
    }
}
