/* style.css - Modern Professional CV Design System */

:root {
    --primary-color: #1e293b;
    --primary-light: #334155;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg-canvas: #f1f5f9;
    --bg-card: #ffffff;
    --bg-pill: #f8fafc;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-canvas);
    line-height: 1.6;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
}

.cv-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    border: 1px solid var(--border-color);
}

/* Header Section */
.cv-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 36px;
}

.candidate-name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.candidate-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.contact-pill:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.contact-pill .icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Section Typography & Layout */
.cv-section {
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
}

/* Profile Summary */
.profile-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    background-color: var(--bg-pill);
    padding: 20px 24px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Professional Experience Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 3px var(--bg-card);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.job-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.date-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.company-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
    margin-bottom: 10px;
}

.company-name {
    color: var(--primary-light);
    font-weight: 600;
}

.company-dot {
    margin: 0 4px;
}

.badge-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.725rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

.task-list {
    list-style-type: none;
    padding-left: 0;
}

.task-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.55;
}

.task-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Education Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card-item {
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition-fast);
}

.card-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.degree-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.institution-name {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.institution-name .loc {
    color: var(--text-light);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.skill-group {
    background-color: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition-fast);
}

.skill-group:hover {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.skill-badge-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.skill-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Languages Horizontal Pills */
.horizontal-pills {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-pill);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

.pill-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.pill-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Certificates */
.cert-card {
    background-color: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.cert-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Footer */
.cv-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.825rem;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .cv-container {
        padding: 24px 18px;
    }

    .candidate-name {
        font-size: 1.75rem;
    }

    .candidate-title {
        font-size: 0.95rem;
    }

    .contact-pill {
        width: 100%;
        justify-content: center;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .grid-cards, .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Optimization */
@media print {
    body {
        background-color: #ffffff;
        padding: 0;
        color: #000000;
    }

    .cv-container {
        max-width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .cv-section {
        margin-bottom: 24px;
        page-break-inside: avoid;
    }

    .timeline-item, .card-item, .skill-group {
        page-break-inside: avoid;
    }

    .contact-pill, .date-badge, .skill-group, .card-item, .pill-item, .profile-summary {
        background-color: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cv-footer {
        display: none;
    }
}
