/* CSS Variables for a modern palette */
:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --dark-muted: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-on-dark: #cbd5e1;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-card);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.actions {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.btn-print {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

.resume-card {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .resume-card {
        flex-direction: row;
    }
}

.sidebar {
    width: 100%;
    background-color: var(--dark);
    color: var(--text-on-dark);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .sidebar {
        width: 320px;
    }
}

.sidebar-header-mobile {
    display: block;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .sidebar-header-mobile {
        display: none;
    }
}

.sidebar h2 {
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.contact-list {
    list-style: none;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.contact-link:hover {
    color: white;
}

.icon-box {
    background-color: var(--dark-muted);
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link:hover .icon-box {
    background-color: var(--primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background-color: var(--dark-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.biz-skills {
    font-size: 0.875rem;
    list-style-type: disc;
    padding-left: 1.25rem;
}

.biz-skills li::marker {
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 2rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 3rem;
    }
}

.main-header {
    display: none;
    margin-bottom: 3rem;
    padding-right: 8rem; /* Space for the floating button */
}

@media (min-width: 768px) {
    .main-header {
        display: block;
    }
}

.name-title h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.job-title {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.header-accent {
    margin-top: 1.5rem;
    height: 4px;
    width: 5rem;
    background-color: var(--primary);
    border-radius: 9999px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.exp-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.exp-dot {
    position: absolute;
    left: -4.5px;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.exp-item.current .exp-dot {
    background-color: var(--primary);
}

.exp-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .exp-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.date-badge {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    background-color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.role-location {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.exp-summary {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-bullets {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #334155;
    font-size: 0.95rem;
}

.exp-bullets li {
    margin-bottom: 0.5rem;
}

footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-on-dark);
    font-size: 0.75rem;
    opacity: 0.5;
}

@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .container { margin: 0; padding: 0; max-width: 100%; }
    .resume-card { box-shadow: none; border: none; flex-direction: row; }
    .sidebar { width: 250px; background: #f1f5f9; color: #1e293b; padding: 1.5rem; }
    .sidebar h2, .contact-link, .skill-badge { color: #1e293b; }
    .icon-box { background: #e2e8f0; }
    .main-content { padding: 1.5rem; }
    .date-badge { background: #f1f5f9; border: 1px solid #e2e8f0; }
}
