/* CV Web Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

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

.header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.name {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.title {
    font-size: 1.1em;
    color: #666;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.contact-info a {
    color: #666;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.summary-text {
    text-align: justify;
    line-height: 1.7;
    color: #555;
}

.job {
    margin-bottom: 20px;
}

.job-title {
    font-weight: bold;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 3px;
}

.company-info {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.company-name {
    text-decoration: underline;
}

.job-description {
    margin-left: 0;
    margin-top: 8px;
}

.job-description ul {
    margin-left: 20px;
}

.job-description li {
    margin-bottom: 4px;
    color: #555;
    line-height: 1.4;
}

.tech-stack {
    margin-top: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.85em;
    background: #f8f8f8;
    padding: 6px;
    border-radius: 3px;
}

.education-item {
    margin-bottom: 15px;
}

.education-title {
    font-weight: bold;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 3px;
}

.education-degree {
    color: #666;
    margin-bottom: 3px;
}

.education-date {
    color: #666;
    font-size: 0.9em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.skill-category {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 5px;
}

.skill-category h4 {
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.skill-list {
    color: #666;
    font-size: 0.85em;
    line-height: 1.3;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.language-name {
    font-weight: bold;
    color: #333;
}

.language-level {
    color: #666;
    font-size: 0.9em;
}

.reference-item {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 5px;
}

.reference-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.reference-title {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.reference-contact {
    color: #666;
    font-size: 0.8em;
}

.download-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.download-btn {
    display: inline-block;
    background: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}

.download-btn:hover {
    background: #555;
}

@media print {
    body {
        background: white !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    .cv-container {
        box-shadow: none !important;
        padding: 20px !important;
        max-width: none !important;
        margin: 0 !important;
    }
    .section {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    .job {
        page-break-inside: avoid;
    }
    .download-section {
        display: none !important;
    }
}

@page {
    margin: 0.5in;
    size: A4;
}

@media (max-width: 768px) {
    .cv-container {
        padding: 20px;
    }

    .name {
        font-size: 2em;
    }

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