/* ==========================================================================
   Jason Dias Resume - Matching Site Aesthetic
   ========================================================================== */

:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-text: #ededed;
    --color-text-muted: #888888;
    --color-accent: #0b86c7;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Base */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a9ff0;
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Resume Container */
.resume {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.name-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.name-title .title {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
}

.contact-info a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-info a:hover {
    color: var(--color-accent);
}

/* Print Button */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-accent);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.print-btn:hover {
    background: var(--color-accent);
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Summary */
.summary p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Jobs */
.job {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.job:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-title-company h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.job-title-company .company {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.dates {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.job-summary {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.achievements li strong {
    color: var(--color-text);
}

/* Earlier Experience */
.job.earlier {
    background: var(--color-bg-secondary);
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.job.earlier .job-summary {
    font-style: normal;
    margin-bottom: 0;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--color-text);
}

.skill-category p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* Education */
.education h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.education p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Footer */
.resume-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.back-link {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .resume {
        padding: 2rem 1.25rem;
    }

    .resume-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .print-btn {
        align-self: flex-start;
    }

    .name-title h1 {
        font-size: 2rem;
    }

    .job-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    :root {
        --color-bg: #ffffff;
        --color-bg-secondary: #f5f5f5;
        --color-text: #111111;
        --color-text-muted: #444444;
        --color-accent: #0b86c7;
        --color-border: #dddddd;
    }

    body {
        background: white;
        color: black;
        font-size: 11pt;
        line-height: 1.4;
    }

    .resume {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .no-print {
        display: none !important;
    }

    .resume-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .name-title h1 {
        font-size: 24pt;
        color: #111;
    }

    .name-title .title {
        font-size: 14pt;
    }

    .contact-info {
        gap: 0.25rem 1rem;
    }

    .contact-info a {
        color: #444;
        font-size: 9pt;
    }

    .section {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 9pt;
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
        color: var(--color-accent);
    }

    .summary p {
        font-size: 10pt;
        line-height: 1.5;
    }

    .job {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        page-break-inside: avoid;
    }

    .job-title-company h3 {
        font-size: 11pt;
    }

    .job-title-company .company {
        font-size: 10pt;
    }

    .dates {
        font-size: 9pt;
    }

    .job-summary {
        font-size: 9pt;
        margin-bottom: 0.5rem;
    }

    .achievements li {
        font-size: 9pt;
        margin-bottom: 0.25rem;
        padding-left: 1rem;
    }

    .achievements li::before {
        width: 4px;
        height: 4px;
        top: 0.5em;
    }

    .job.earlier {
        padding: 0.75rem;
        background: #f9f9f9;
    }

    .skills-grid {
        gap: 0.75rem;
    }

    .skill-category h4 {
        font-size: 9pt;
    }

    .skill-category p {
        font-size: 9pt;
    }

    .skill-tags {
        gap: 0.25rem;
    }

    .skill-tag {
        font-size: 8pt;
        padding: 0.125rem 0.375rem;
        background: #f0f0f0;
        border-color: #ddd;
        color: #333;
    }

    .education h3 {
        font-size: 10pt;
    }

    .education p {
        font-size: 9pt;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    /* Ensure it fits on 1-2 pages */
    @page {
        margin: 0.5in;
        size: letter;
    }
}
