:root {
    --primary-color: #000;
    --secondary-color: #444;
    --text-color: #333;
    --border-color: #ddd;
    --link-color: #0056b3;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: #f0f2f5;
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
}

.resume-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.skill-category {
    margin-bottom: 0.2rem;
}

.experience-item {
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.item-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.item-subhead {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.bullet-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.bullet-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    text-align: justify;
}

p {
    font-size: 0.95rem;
    text-align: justify;
}

/* ACTIONS */
.actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
}

.btn-print, .btn-back {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-print {
    background-color: #000;
    color: #fff;
}

.btn-print:hover {
    background-color: #333;
}

.btn-back {
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid var(--border-color);
}

.btn-back:hover {
    background-color: #e0e4e8;
}

/* PRINT STYLES */
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 10pt; /* Standard print font size */
    }
    
    .resume-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
    }

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

    .name {
        font-size: 22pt;
        margin-bottom: 0.2rem;
    }

    .role {
        font-size: 11pt;
        margin-bottom: 0.5rem;
    }

    .contact-info, .links {
        font-size: 9pt;
        margin-bottom: 0.2rem;
    }

    .section {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 11pt;
        margin-bottom: 0.5rem;
        padding-bottom: 0.2rem;
    }

    .experience-item {
        margin-bottom: 0.6rem;
    }

    .item-header {
        margin-bottom: 0.1rem;
    }

    .item-title {
        font-size: 10.5pt;
    }

    .item-subhead {
        font-size: 9.5pt;
        margin-bottom: 0.1rem;
    }

    .bullet-list li, p {
        font-size: 9.5pt;
        margin-bottom: 0.1rem;
        line-height: 1.3;
    }

    .skills-grid {
        gap: 0.2rem;
    }

    .skill-category {
        margin-bottom: 0.1rem;
    }

    .no-print {
        display: none;
    }

    .resume-container {
        border-radius: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .item-header, .item-subhead {
        page-break-after: avoid;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .resume-container {
        padding: 1.2rem;
        margin: 0.5rem;
        box-shadow: none;
    }

    .name {
        font-size: 1.8rem;
    }

    .role {
        font-size: 1rem;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .contact-info span {
        display: block;
    }

    .item-header {
        flex-direction: column;
        gap: 0.2rem;
    }

    .item-date {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-print, .btn-back {
        width: 100%;
        text-align: center;
    }
}
