/* ============================================
   RESUME TIMELINE STYLES
   LinkedIn-inspired professional timeline
   ============================================ */

/* Theme variables */
:root {
    --resume-text: #1d1d1f;
    --resume-bg: #fafafa;
    --resume-border: #e0e0e0;
    --resume-border-subtle: #f0f0f0;
    --resume-muted: #666666;
    --resume-muted-strong: #4a4a4a;
    --resume-card-bg: #ffffff;
    --resume-card-hover: #f5f5f5;
    --resume-accent: #0073b1;
    --resume-skill-bg: #f5f5f5;
    --resume-skill-accent: #e8f4f8;
    --resume-skill-accent-border: #b3d9e6;
}

html.dark {
    --resume-text: #e8e8ed;
    --resume-bg: #1c1c1e;
    --resume-border: #38383a;
    --resume-border-subtle: #2c2c2e;
    --resume-muted: #98989d;
    --resume-muted-strong: #aeaeb2;
    --resume-card-bg: #2c2c2e;
    --resume-card-hover: #38383a;
    --resume-accent: #0a84ff;
    --resume-skill-bg: #38383a;
    --resume-skill-accent: #1e3a5f;
    --resume-skill-accent-border: #0a84ff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--resume-text);
    background-color: var(--resume-bg);
    padding: 40px 20px;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Top bar with back link and theme toggle */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.theme-toggle {
    padding: 8px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--resume-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--resume-border);
}

.theme-toggle .theme-icon {
    display: block;
    line-height: 0;
}

.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }

html.dark .theme-toggle .theme-icon-sun { display: block; }
html.dark .theme-toggle .theme-icon-moon { display: none; }

html.dark .theme-toggle {
    color: var(--resume-muted);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0073b1;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Print Button */
.print-button {
    background-color: var(--resume-card-bg);
    color: var(--resume-muted);
    border: 1px solid var(--resume-border);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.print-button:hover {
    background-color: var(--resume-card-hover);
    color: var(--resume-text);
    border-color: var(--resume-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.print-button:active {
    transform: translateY(0);
}

.print-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex-shrink: 0;
}

/* Download Button */
.download-button {
    background-color: var(--resume-card-bg);
    color: var(--resume-muted);
    border: 1px solid var(--resume-border);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-button:hover {
    background-color: var(--resume-card-hover);
    color: var(--resume-text);
    border-color: var(--resume-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.download-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-buttons {
        gap: 8px;
        margin-top: 12px;
    }
    
    .print-button,
    .download-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .print-text,
    .download-text {
        display: none;
    }
    
    .print-icon,
    .download-icon {
        width: 14px;
        height: 14px;
    }
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--resume-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--resume-border);
}

.hero-name {
    font-size: 42px;
    font-weight: 700;
    color: var(--resume-text);
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--resume-muted);
    letter-spacing: 0.2px;
    margin-bottom: 20px;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--resume-border-subtle);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--resume-muted-strong);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--resume-accent);
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.linkedin-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230073b1'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.download-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex-shrink: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--resume-border);
}

.about-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--resume-accent);
    margin-bottom: 16px;
}

.about-subheading {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--resume-muted);
    margin-bottom: 48px;
    margin-top: 0;
}

.about-headline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.25;
    color: var(--resume-text);
    margin: 0 0 40px 0;
    transition: color 0.2s ease;
}

.about-headline-accent {
    font-style: normal;
    color: var(--resume-accent);
}

.about-body {
    font-size: 1.125rem;
    color: var(--resume-muted-strong);
    line-height: 1.625;
    font-weight: 400;
    transition: color 0.2s ease;
}

.about-body p {
    margin: 0 0 24px 0;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* Legacy class for print/selectors */
.about-text {
    font-size: 1.125rem;
    color: var(--resume-muted-strong);
    line-height: 1.625;
    margin: 0;
}

@media (min-width: 1024px) {
    .about-headline {
        font-size: 3rem;
    }
}

/* ============================================
   SKILLSET SECTION
   ============================================ */

.skillset-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--resume-border);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--resume-skill-bg);
    color: var(--resume-text);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--resume-border);
    transition: all 0.2s ease;
    list-style: none;
}

.skill-tag:hover {
    background-color: var(--resume-accent);
    color: #ffffff;
    border-color: var(--resume-accent);
    transform: translateY(-1px);
}

/* ============================================
   INDUSTRY KNOWLEDGE SECTION
   ============================================ */

.industry-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--resume-border);
}

.industries-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.industry-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--resume-skill-accent);
    color: var(--resume-accent);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--resume-skill-accent-border);
    transition: all 0.2s ease;
}

.industry-tag:hover {
    background-color: var(--resume-accent);
    color: #ffffff;
    border-color: var(--resume-accent);
    transform: translateY(-1px);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--resume-text);
    letter-spacing: -0.3px;
    margin-bottom: 0;
}

.resume-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--resume-border);
}

.resume-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--resume-text);
    letter-spacing: -0.5px;
}

/* ============================================
   TIMELINE LAYOUT
   ============================================ */

.timeline-container {
    position: relative;
}

.timeline-company {
    display: flex;
    margin-bottom: 48px;
    position: relative;
}

.timeline-company:last-child {
    margin-bottom: 0;
}

/* Left Column: Logo, Bullets & Timeline Line */
.timeline-left {
    flex-shrink: 0;
    width: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    align-self: flex-start;
}

.timeline-left:has(.timeline-bullets) {
    align-self: stretch;
}

.timeline-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background-color: var(--resume-card-bg);
    border: 1px solid var(--resume-border);
    padding: 6px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 3;
}

.timeline-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-bullets {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--resume-border);
    z-index: 1;
}

.timeline-bullet {
    position: absolute;
    left: -54px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--resume-accent);
    border: 2px solid var(--resume-card-bg);
    box-shadow: 0 0 0 2px var(--resume-accent);
    z-index: 2;
}

/* Right Column: Job Details */
.timeline-right {
    flex: 1;
    padding-left: 24px;
    padding-top: 0;
    position: relative;
}

/* Company Description (only for multi-role companies) */
.company-description-wrapper {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--resume-border-subtle);
}

.company-name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 16px;
}

.company-description-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--resume-accent);
    margin: 0;
    flex: 1;
}

.company-years {
    font-size: 14px;
    font-weight: 400;
    color: var(--resume-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.company-description {
    font-size: 15px;
    color: var(--resume-muted-strong);
    line-height: 1.7;
    margin: 0;
}

/* Company name for single-role companies */
.company-name-single {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 1px solid var(--resume-border-subtle);
}

.timeline-role {
    margin-bottom: 48px;
    position: relative;
    page-break-inside: avoid;
    break-inside: avoid;
}

.timeline-role:last-child {
    margin-bottom: 0;
}

/* Group roles from same company visually */
.timeline-role[data-company-index] + .timeline-role[data-company-index] {
    margin-top: -16px;
}

.timeline-role[data-company-index] + .timeline-role[data-company-index] .timeline-role-wrapper {
    padding-top: 0;
}

.role-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 16px;
}

.role-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--resume-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.role-company {
    font-size: 18px;
    font-weight: 500;
    color: var(--resume-accent);
    margin-bottom: 8px;
}

.role-dates {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--resume-muted);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.role-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--resume-muted);
    margin-bottom: 8px;
    font-style: normal;
}

.role-dates::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 2px;
}

.role-location::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 2px;
}

.role-description {
    font-size: 15px;
    color: var(--resume-muted-strong);
    line-height: 1.7;
    margin-top: 8px;
}

.role-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.role-bullets li {
    font-size: 15px;
    color: var(--resume-muted-strong);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.role-bullets li:last-child {
    margin-bottom: 0;
}

.role-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--resume-accent);
    font-weight: bold;
    font-size: 18px;
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .resume-container {
        padding: 32px 24px;
        border-radius: 0;
    }

    .hero-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .hero-name {
        font-size: 32px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-contact {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .contact-item {
        font-size: 14px;
        justify-content: center;
    }

    .about-section,
    .skillset-section,
    .industry-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .about-headline {
        font-size: 1.875rem;
    }
    .about-body,
    .about-text {
        font-size: 15px;
    }

    .skills-container,
    .industries-container {
        gap: 8px;
        margin-top: 16px;
    }

    .skill-tag,
    .industry-tag {
        font-size: 13px;
        padding: 6px 14px;
    }

    .resume-header {
        margin-bottom: 32px;
        padding-bottom: 16px;
    }

    .resume-header h1 {
        font-size: 28px;
    }

    .timeline-company {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .timeline-left {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .timeline-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        margin-right: 16px;
    }

    .timeline-bullets {
        display: none;
    }

    .timeline-line {
        display: none;
    }

    .timeline-right {
        padding-left: 0;
        padding-top: 0;
        width: 100%;
    }

    .timeline-role {
        margin-bottom: 28px;
    }

    .role-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .role-title {
        font-size: 18px;
    }

    .role-dates {
        font-size: 13px;
    }

    .role-company {
        font-size: 16px;
    }

    .role-location {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .company-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .company-years {
        font-size: 12px;
    }

    .role-description {
        font-size: 14px;
    }

    .role-bullets {
        margin: 10px 0 0 0;
    }

    .role-bullets li {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .resume-container {
        padding: 24px 16px;
    }

    .hero-name {
        font-size: 28px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-contact {
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .contact-item {
        font-size: 13px;
    }

    .section-title {
        font-size: 20px;
    }

    .about-headline {
        font-size: 1.5rem;
    }
    .about-body,
    .about-text {
        font-size: 14px;
    }

    .skill-tag,
    .industry-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .resume-header h1 {
        font-size: 24px;
    }

    .role-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .role-title {
        font-size: 16px;
    }

    .role-dates {
        font-size: 12px;
    }

    .role-company {
        font-size: 15px;
    }

    .role-location {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .company-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .company-years {
        font-size: 11px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.timeline-company:last-child .timeline-role:last-child::after {
    display: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Hide print button, download button and skip link */
    .print-button,
    .download-button,
    .skip-link {
        display: none !important;
    }
    
    /* Reset page styles for printing */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        background-color: #ffffff;
        padding: 0;
        margin: 0;
        font-size: 9pt;
        line-height: 1.3;
    }
    
    .resume-container {
        max-width: 100%;
        margin: 0;
        padding: 0.3in 0.5in;
        box-shadow: none;
        border-radius: 0;
        background-color: #ffffff;
    }
    
    /* Compact typography */
    .hero-name {
        font-size: 20pt !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }
    
    .hero-title {
        font-size: 10pt !important;
        margin-bottom: 4px !important;
        color: #333333 !important;
    }
    
    .section-title {
        font-size: 11pt !important;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    .role-title-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        margin-bottom: 1px !important;
        gap: 12px !important;
    }
    
    .role-title {
        font-size: 10pt !important;
        margin: 0 !important;
        color: #000000 !important;
        font-weight: 600 !important;
        flex: 1 !important;
    }
    
    .role-dates {
        color: #333333 !important;
        font-size: 8pt !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .role-company {
        font-size: 9pt !important;
        margin-bottom: 2px !important;
        color: #333333 !important;
    }
    
    .role-description,
    .about-text,
    .about-body,
    .about-body p,
    .company-description {
        font-size: 8.5pt !important;
        line-height: 1.35 !important;
        margin-top: 2px !important;
        margin-bottom: 3px !important;
        color: #000000 !important;
    }
    
    .role-location {
        color: #333333 !important;
        font-size: 8pt !important;
        margin-bottom: 3px !important;
    }
    
    /* Ensure all text is black for better printing */
    .hero-name,
    .hero-title,
    .section-title,
    .role-title,
    .role-company,
    .role-description,
    .about-text,
    .about-label,
    .about-subheading,
    .about-headline,
    .about-headline-accent,
    .about-body,
    .about-body p,
    .company-description-name,
    .company-description,
    .company-years {
        color: #000000 !important;
    }
    
    /* Hide decorative elements that don't print well */
    .timeline-bullets,
    .timeline-line,
    .timeline-bullet,
    .timeline-left {
        display: none !important;
    }
    
    .timeline-right {
        padding-left: 0 !important;
    }
    
    /* Simplify skills - make them inline text with separators */
    .skills-container,
    .industries-container {
        display: block !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }
    
    .skill-tag,
    .industry-tag {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        font-weight: normal !important;
    }
    
    .skill-tag:not(:last-child)::after,
    .industry-tag:not(:last-child)::after {
        content: " • ";
        color: #666666;
        margin: 0 3px;
    }
    
    /* Compact spacing for sections */
    .hero-section {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .about-section,
    .skillset-section,
    .industry-section {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .resume-header {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .resume-header h1 {
        font-size: 11pt !important;
        margin-bottom: 0 !important;
    }
    
    /* Compact timeline spacing */
    .timeline-company {
        margin-bottom: 8px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .timeline-role {
        margin-bottom: 6px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .timeline-role:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Compact bullet lists */
    .role-bullets {
        margin: 2px 0 0 0 !important;
        padding-left: 12px !important;
    }
    
    .role-bullets li {
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
        padding-left: 6px !important;
    }
    
    .role-bullets li:last-child {
        margin-bottom: 0 !important;
    }
    
    .role-bullets li::before {
        color: #000000 !important;
        font-size: 8.5pt !important;
        left: -6px !important;
    }
    
    /* Contact section adjustments */
    .hero-contact {
        border-top: 1px solid #e0e0e0 !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    .contact-item {
        color: #000000 !important;
        font-size: 8pt !important;
    }
    
    /* Remove icons that don't print well, keep text */
    .contact-icon,
    .linkedin-icon,
    .role-dates::before,
    .role-location::before {
        display: none !important;
    }
    
    /* Remove link URLs in print to save space */
    a[href^="http"]:after,
    a[href^="https"]:after,
    a[href^="mailto"]:after {
        content: "" !important;
    }
    
    /* Remove hover effects */
    .skill-tag:hover,
    .industry-tag:hover,
    .contact-item:hover {
        transform: none;
        background-color: inherit;
        color: inherit;
    }
    
    /* Page setup - minimal margins */
    @page {
        margin: 0.25in 0.5in;
        size: letter;
    }
    
    /* Smart page breaks */
    .hero-section {
        page-break-after: avoid;
    }
    
    .about-section,
    .skillset-section,
    .industry-section {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    /* Allow page breaks between companies but not within */
    .timeline-company {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Avoid orphaned headings */
    h1, h2, h3 {
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }
    
    /* Keep related content together */
    .timeline-role h2,
    .timeline-role h3 {
        page-break-after: avoid;
    }
    
    /* Optimize company descriptions */
    .company-description-wrapper,
    .company-name-single {
        margin-bottom: 4px !important;
        padding-bottom: 3px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .company-name-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        margin-bottom: 2px !important;
        gap: 12px !important;
    }
    
    .company-description-name {
        font-size: 12pt !important;
        margin: 0 !important;
        color: #000000 !important;
        font-weight: 600 !important;
        flex: 1 !important;
    }
    
    .company-years {
        font-size: 8pt !important;
        color: #333333 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .company-description {
        margin: 0 !important;
        font-size: 8.5pt !important;
    }
    
    /* Further reduce spacing between elements */
    .timeline-role h2 + h3 {
        margin-top: 0 !important;
    }
    
    .role-title + .role-company {
        margin-top: 0 !important;
    }
    
    /* Reduce about section line height */
    .about-text,
    .about-body p {
        line-height: 1.3 !important;
    }
    
    /* Make contact items more compact */
    .hero-contact a {
        margin: 0 !important;
    }
}

