:root {
    --primary: #4ECDC4;
    --primary-dark: #3BA8A0;
    --text-primary: #263238;
    --text-secondary: #78909C;
    --background: #F5FFFE;
    --white: #FFFFFF;
    --border: #E0F2F1;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    padding: 20px;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 4px 30px var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

/* Header */
.cv-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
}

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

.profile-section {
    display: flex;
    gap: 24px;
    align-items: center;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-text h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
}

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

.contact-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 1;
}

.contact-link span {
    font-size: 16px;
}

/* Main Content */
.cv-main {
    padding: 40px;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

/* Sections */
.cv-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.5px;
}

.section-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Education */
.education-item {
    margin-bottom: 16px;
}

.education-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.education-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Experience */
.experience-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

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

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

.experience-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.experience-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

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

.experience-bullets li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.experience-bullets li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* Projects */
.project-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.project-tech {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

.project-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Additional Info */
.additional-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.additional-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Print Styles */
@media print {
    body {
        padding: 0;
        background: white;
    }
    
    .cv-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .cv-header {
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .contact-link {
        color: white !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .cv-header {
        padding: 24px;
    }
    
    .cv-main {
        padding: 24px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .header-text h1 {
        font-size: 28px;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .experience-date {
        font-size: 12px;
    }
}
