:root {
    /* Light mode colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: white;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #7f8c8d;
    --accent-primary: #2c3e50;
    --accent-secondary: #3498db;
    --border-color: rgba(0,0,0,0.1);
    --shadow: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --accent-primary: #4a90e2;
    --accent-secondary: #5dade2;
    --border-color: rgba(255,255,255,0.1);
    --shadow: rgba(0,0,0,0.3);
}

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

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--shadow);
}

.github-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 5px;
}

.cv-container {
    max-width: 210mm;
    margin: 20px auto;
    background: var(--bg-secondary);
    box-shadow: 0 0 20px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: background 0.3s ease;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    border: 3px solid white;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-info {
    flex: 1;
}

.name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.title {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.content {
    padding: 40px;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.summary {
    text-align: justify;
    line-height: 1.7;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.experience-item, .education-item, .project-item {
    margin-bottom: 20px;
}

.job-title {
    font-weight: bold;
    color: var(--accent-primary);
    font-size: 16px;
    transition: color 0.3s ease;
}

.company {
    color: var(--accent-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.duration {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

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

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

.job-description li::before {
    content: "▸";
    color: var(--accent-secondary);
    position: absolute;
    left: 0;
    transition: color 0.3s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.skill-category {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skill-category h4 {
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.skill-list {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.languages {
    display: flex;
    gap: 30px;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.language-name {
    font-weight: bold;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.language-level {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Responsive Design */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

@media screen and (max-width: 768px) {
    .cv-container {
        margin: 10px;
        box-shadow: none;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 12px;
        font-size: 13px;
        text-align: left;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .languages {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .job-title {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .cv-container {
        margin: 5px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .name {
        font-size: 20px;
    }
    
    .title {
        font-size: 14px;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .section {
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .skill-category {
        padding: 12px;
    }
    
    .summary {
        font-size: 14px;
    }
}

@media print {
    body {
        background: white !important;
        color: #333 !important;
    }
    
    .cv-container {
        box-shadow: none;
        margin: 0;
        max-width: none;
        background: white !important;
    }
    
    .header {
        padding: 20px;
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    }
    
    .content {
        padding: 20px;
    }
    
    .theme-toggle {
        display: none !important;
    }
    
    .section-title {
        color: #2c3e50 !important;
        border-bottom-color: #3498db !important;
    }
    
    .job-title {
        color: #2c3e50 !important;
    }
    
    .company {
        color: #3498db !important;
    }
    
    .skill-category {
        background: #f8f9fa !important;
        border-left-color: #3498db !important;
    }
    
    .skill-category h4 {
        color: #2c3e50 !important;
    }
    
    .skill-list {
        color: #555 !important;
    }
} 