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

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --text: #333;
    --light-bg: #f8f9fa;
    --border: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light-bg);
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 40px 50px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.action-bar {
    position: sticky;
    top: 0;
    background: var(--primary);
    padding: 15px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.header {
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.name {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.title {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.contact-info a, .contact-info span {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.contact-info a:hover {
    color: var(--secondary);
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.skill {
    background: var(--light-bg);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--secondary);
    font-size: 14px;
}

.job {
    margin-bottom: 25px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 5px;
}

.company {
    color: var(--secondary);
    font-weight: 500;
    font-size: 15px;
}

.date {
    color: #666;
    font-size: 14px;
    font-style: italic;
    white-space: nowrap;
}

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

.achievements li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.achievements li:before {
    content: "▸";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.simple-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.simple-list li:before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#qr-code {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .name {
        font-size: 32px;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .date {
        margin-top: 5px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-bar {
        padding: 10px;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
        margin: 5px;
        display: inline-block;
    }
}

@media print {
    body {
        background: white;
    }
    
    .no-print {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .job {
        page-break-inside: avoid;
    }
    
    a {
        color: var(--text);
        text-decoration: none;
    }
    
    .name {
        font-size: 36px;
    }
}
