/* ===== CV Styles ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-alt);
    font-size: 14px;
}

.cv-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Header */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    gap: 2rem;
}

.name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.contact span {
    white-space: nowrap;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* Sections */
.cv-section {
    padding: 1.75rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.summary {
    color: var(--text-light);
    line-height: 1.7;
}

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

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

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.company {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.date {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    background: var(--bg-alt);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.achievements {
    list-style: none;
    padding-left: 1.25rem;
}

.achievements li {
    position: relative;
    margin-bottom: 0.4rem;
    color: var(--text);
    line-height: 1.6;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: -1.25rem;
    color: var(--primary);
    font-weight: bold;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.skill-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tags span {
    background: var(--bg-alt);
    color: var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.skill-tags span:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Projects */
.projects {
    display: grid;
    gap: 1rem;
}

.project-card {
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Education */
.education h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.school {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education p:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Languages */
.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.lang {
    background: var(--bg-alt);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Print */
@media print {
    body { background: white; }
    .cv-container { box-shadow: none; max-width: none; margin: 0; }
    .cv-header { background: var(--primary) !important; -webkit-print-color-adjust: exact; }
    .skill-tags span { border: 1px solid var(--border) !important; }
}

/* Responsive */
@media (max-width: 600px) {
    .cv-header { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
    .contact { justify-content: center; }
    .cv-section { padding: 1.5rem; }
    .exp-header { flex-direction: column; align-items: flex-start; }
    .skills-grid { grid-template-columns: 1fr; }
}