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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.cv-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Styles */
.cv-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info h2 {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    width: 20px;
    color: #3498db;
    font-size: 1.1rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2ecc71;
}

/* Section Styles */
.cv-section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

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

.cv-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cv-section h3 i {
    color: #3498db;
    font-size: 1.5rem;
}

.section-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* Profile Section */
.specialties {
    margin-top: 25px;
}

.specialties h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.specialties li {
    margin-bottom: 8px;
    padding-left: 0;
}

/* Experience Section */
.job {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

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

.job-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.job-period {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 5px;
}

.job-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

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

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

.job-responsibilities li::before {
    content: "▶";
    color: #3498db;
    position: absolute;
    left: 0;
    top: 0;
}

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

.skill-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-top: 3px solid #3498db;
}

.skill-category h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-category strong {
    color: #2c3e50;
}

/* Education Section */
.education-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
}

.education-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.degree {
    font-weight: 600;
    color: #34495e;
}

.year {
    background: #2ecc71;
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Certifications Section */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-item h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
}

.cert-year {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.achievement-item {
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.achievement-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #9b59b6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.2);
}

.service-item i {
    font-size: 1.5rem;
    color: #9b59b6;
}

.service-item span {
    font-weight: 500;
    color: #2c3e50;
}

/* Footer */
.cv-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.download-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .cv-container {
        border-radius: 10px;
    }
    
    .cv-header {
        padding: 30px 20px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cv-section {
        padding: 30px 20px;
    }
    
    .cv-section h3 {
        font-size: 1.5rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-item {
        padding: 20px 15px;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .cv-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .cv-header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .download-buttons {
        display: none;
    }
    
    .job {
        break-inside: avoid;
    }
    
    .skill-category {
        break-inside: avoid;
    }
}
