/* css - Updated `new.css` */

/* Root variables with sensible fallbacks */
:root {
    --primary-color: #2563eb;
    --primary-contrast: #ffffff;

    --bg-color: #f7fafc;
    --paper-bg: #ffffff;

    --sidebar-bg-color: #1f2937;
    --sidebar-text-color: #f8fafc;
    --sidebar-header-color: #93c5fd;

    --main-header-color: #0f172a;
    --secondary-text-color: #4b5563;

    --muted-border: rgba(0, 0, 0, 0.08);

    --border-radius: 8px;
    --page-padding: 40px;
    --gutter: 30px;

    /* A4 sizes preserved for print, but layout uses min() for responsiveness */
    --page-width: 210mm;
    --page-height: 297mm;
}

/* Basic reset and typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--main-header-color);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
    font-size: 16px;
}

/* Print button */
.print-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--primary-contrast);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.18s ease-in-out;
}

.print-button:hover,
.print-button:focus {
    opacity: 0.95;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.print-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 40%, #fff);
    outline-offset: 2px;
}

/* Main container: A4-aware but responsive */
.resume-container {
    display: flex;
    gap: var(--gutter);
    width: min(var(--page-width), calc(100% - 40px));
    max-width: var(--page-width);
    min-height: var(--page-height);
    margin: 20px auto;
    background-color: var(--paper-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Sidebar (left column) */
.sidebar {
    width: 35%;
    min-width: 240px;
    background-color: var(--sidebar-bg-color);
    color: var(--sidebar-text-color);
    padding: var(--page-padding);
    box-sizing: border-box;
}

.sidebar h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sidebar-header-color);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sidebar h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sidebar-header-color);
    margin: 28px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255,255,255,0.12);
    padding-bottom: 6px;
}

.sidebar p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--sidebar-text-color);
}

/* Contact info, icons, links */
.contact-info .item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.contact-info .item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: var(--sidebar-text-color);
    flex-shrink: 0;
}

.contact-info .item a {
    color: var(--sidebar-text-color);
    text-decoration: none;
    word-break: break-all;
}

.contact-info .item a:hover,
.contact-info .item a:focus {
    text-decoration: underline;
}

/* Education & skills */
.education-entry,
.skills-entry {
    margin-bottom: 14px;
}

.education-entry h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sidebar-header-color);
    margin: 0 0 4px 0;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.skills-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.skills-list li::before {
    content: "•";
    color: var(--sidebar-header-color);
    margin-right: 8px;
    font-size: 1.1rem;
    line-height: 1;
}

/* Main content (right column) */
.main-content {
    width: 65%;
    padding: var(--page-padding);
    box-sizing: border-box;
    overflow: auto;
}

.main-content .section {
    margin-bottom: 30px;
}

.main-content .section:last-child {
    margin-bottom: 0;
}

.main-content p {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    color: var(--secondary-text-color);
}

.main-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-header-color);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid color-mix(in srgb, var(--main-header-color) 20%, transparent);
    padding-bottom: 6px;
}

/* Job entries */
.job-entry {
    margin-bottom: 18px;
}

.job-entry h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.job-entry .company-info {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    font-style: italic;
    margin-bottom: 8px;
}

.job-entry ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.job-entry li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 22px;
}

.job-entry li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--main-header-color);
    font-weight: 700;
    font-size: 18px;
}

/* Borders and dividers */
hr {
    border: none;
    border-top: 1px solid var(--muted-border);
    margin: 16px 0;
}

/* Accessibility: focus states for links and interactive elements */
a:focus-visible,
button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 40%, #fff);
    outline-offset: 2px;
}

/* Responsive: stack columns on narrow screens */
@media (max-width: 900px) {
    .resume-container {
        flex-direction: column;
        width: calc(100% - 20px);
        min-height: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        gap: 0;
    }

    .sidebar,
    .main-content {
        width: 100%;
        padding: 20px;
    }

    .sidebar {
        order: 1;
    }

    .main-content {
        order: 2;
    }
}

/* Print-friendly adjustments */
@media print {
    html, body {
        background: var(--paper-bg);
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-button {
        display: none !important;
    }

    .resume-container {
        width: 100%;
        max-width: none;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        border: none;
        min-height: var(--page-height);
    }

    .sidebar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background-color: var(--sidebar-bg-color);
        color: var(--sidebar-text-color);
    }

    /* Keep things compact for print */
    .sidebar,
    .main-content {
        padding: 18px;
    }

    /* Avoid breaking important blocks across pages where possible */
    .job-entry,
    .education-entry,
    .skills-entry {
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #000;
    }
/* css - update in `new.css` */
:root {
    --primary-color: #2563eb;
    --primary-contrast: #ffffff;

    --bg-color: #e6f7ff; /* new page background (light cyan) */
    --paper-bg: #ffffff; /* container/paper background */

    --sidebar-bg-color: #1f2937;
    --sidebar-text-color: #1361a8;
    --sidebar-header-color: #93c5fd;

    --main-header-color: #0f172a;
    --secondary-text-color: #4b5563;

    --muted-border: rgba(0, 0, 0, 0.08);

    --border-radius: 8px;
    --page-padding: 40px;
    --gutter: 30px;

    --page-width: 210mm;
    --page-height: 297mm;
}


}