/* Base reset — clears default browser margin/padding and makes box-sizing consistent across everything */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body — sets the font, base text size, and the light gray background behind the page card */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #2d2d2d;
    background: #e5e5e5;
    line-height: 1.4;
}

/* Page container — the white card that holds everything. Max-width keeps it from getting too wide on large screens */
.page {
    max-width: 880px;
    margin: 16px auto;
    background: #fff;
    padding: 22px 28px 28px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.13);
}

/* Print bar — the row that holds the "Save as PDF" button, sits above the header */
.print-bar {
    text-align: right;
    margin-bottom: 7px;
}

/* Save as PDF button — transparent by default, fills purple on hover */
.print-btn {
    background: transparent;
    color: #7B2DB8;
    border: 1px solid #7B2DB8;
    padding: 4px 12px;
    font-family: Arial, sans-serif;
    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;
}

/* Resume header — wraps the name, subtitle, and contact row at the top of the page */
.resume-header {
    margin-bottom: 12px;
}

/* Name — the big bold heading at the very top */
.resume-header h1 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

/* Subtitle — the role/title line under the name, shown in purple */
.resume-header .subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7B2DB8;
    margin-bottom: 5px;
}

/* Contact row — the horizontal list of email, LinkedIn, GitHub, portfolio, and 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;
}

/* Two-column layout — left column is 57% (experience/skills/etc), right is the remaining space (projects) */
.columns {
    display: grid;
    grid-template-columns: 57% 1fr;
    gap: 0 20px;
}

/* Section wrapper — every block (summary, experience, education, etc.) uses this for consistent bottom spacing */
.section {
    margin-bottom: 13px;
}

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

/* Summary text — the paragraph in the summary section */
.summary-text {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.5;
}

/* Meta line — the small date and location row that appears under job titles, project names, etc. */
.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;
}

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

/* Education row — puts the degree/school info on the left and the GPA box on the 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 — the small bordered box that shows the GPA number, sits to the right of the school name */
.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 bullet points — the extra details under the school/degree (focus area, clubs, capstone) */
.edu-bullets {
    padding-left: 14px;
    margin-top: 4px;
}

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

/* Experience entries — each job is wrapped in .exp-entry, separated by a dotted border */
.exp-entry {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ccc;
}

/* Remove the bottom border and spacing on the last job so it doesn't double up with section 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: 3px;
    line-height: 1.45;
}

/* Highlight utility — wraps a word or phrase in a yellow background, not currently used but kept for reference */
.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;
}

.skill-tag {
    border: 1px solid #bbb;
    padding: 2px 8px;
    font-size: 0.76rem;
    color: #333;
    border-radius: 2px;
    line-height: 1.4;
}

/* Certifications grid — two columns so the four cert items sit in a 2x2 grid */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.cert-item {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Project and personal project entries — same spacing and dotted divider style shared between both sections */
.project-entry,
.personal-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #ccc;
}

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

/* Project name is dark, personal project name is purple — only difference between the two */
.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;
}

/* Description text under each project — same style shared between work and personal projects */
.project-desc,
.personal-desc {
    font-size: 0.79rem;
    color: #333;
    margin-top: 3px;
    line-height: 1.45;
}

/* 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 styles — hides the save button and removes the page shadow/margin when printing or saving as PDF */
@media print {
    body {
        background: #fff;
    }

    .page {
        margin: 0;
        box-shadow: none;
        padding: 18px 22px 24px;
    }

    .print-bar {
        display: none;
    }
}
