:root {
    --primary-bg:   #ffffff;
    --sidebar-bg:   #1e293b;
    --accent:       #0ea5e9;
    --accent-dark:  #0284c7;
    --text-main:    #1e293b;
    --text-body:    #475569;
    --text-muted:   #94a3b8;
    --text-sidebar: #cbd5e1;
    --border-color: #e2e8f0;
    --font-body:    'Readex Pro', sans-serif;
}

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

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

.resume-container {
    max-width: 1000px;
    margin: 32px auto;
    background: var(--primary-bg);
    display: flex;
    min-height: 1200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    padding: 44px 30px;
}

.profile-header {
    margin-bottom: 40px;
}

.profile-header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.profile-header h2 {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
}

.profile-header .role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent-dark);
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-header .location {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.sidebar-section ul { list-style: none; }

.sidebar-section ul li {
    font-size: 0.84rem;
    color: var(--text-sidebar);
    margin-bottom: 9px;
    line-height: 1.5;
}

.sidebar-section a {
    color: var(--accent);
    text-decoration: none;
}
.sidebar-section a:hover { text-decoration: underline; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    background: #0f172a;
    border: 1px solid #334155;
    color: #7dd3fc;
    padding: 4px 10px;
    border-radius: 2px;
}

.certifications li {
    line-height: 1.5;
    margin-bottom: 10px !important;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    padding: 50px 56px;
}

.main-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 40px;
}

.main-header h3 {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.summary-text {
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.8;
}

.main-header strong { color: var(--text-main); }

/* ── Experience ── */
.experience-section {
    margin-bottom: 40px;
}

.experience-section h3 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.experience-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 16px;
}

.experience-item { margin-bottom: 30px; }

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
}

.exp-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.exp-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.exp-bullets { margin-left: 18px; }

.exp-bullets li {
    font-size: 0.93rem;
    margin-bottom: 8px;
    color: var(--text-body);
    line-height: 1.65;
}

.exp-bullets li strong { color: var(--text-main); }

.exp-desc {
    font-size: 0.93rem;
    color: var(--text-body);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ── Education ── */
.education-section h3 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.education-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 16px;
}

.edu-item {
    font-size: 0.93rem;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    color: var(--text-body);
    background: #f8fafc;
}

.edu-item strong { color: var(--text-main); }

@media print {
    body { background: white; }
    .resume-container {
        margin: 0;
        box-shadow: none;
        max-width: none;
        width: 100%;
        border-radius: 0;
    }
    .sidebar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
