/* Resume CSS - A4 Print Optimized */

/* Color Theme Variables */
:root {
    /* Default Professional Theme */
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --background-color: #fffff.status-completed {
    background: #e8f5e8;
    color: var(--accent-color);
}

.status-in-progress {
    background: #fef9e7;
    color: var(--warning-color);
}

.status-planning {
    background: #e3f2fd;
    color: var(--primary-color);
}r-color: #e9ecef;
    --section-bg: #f8f9fa;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
}

/* Alternative Color Themes */
[data-theme="modern"] {
    --primary-color: #6366f1;
    --secondary-color: #1f2937;
    --accent-color: #10b981;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --border-color: #e5e7eb;
    --section-bg: #f9fafb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

[data-theme="corporate"] {
    --primary-color: #1e40af;
    --secondary-color: #1e293b;
    --accent-color: #059669;
    --text-color: #1e293b;
    --light-text: #64748b;
    --background-color: #ffffff;
    --border-color: #e2e8f0;
    --section-bg: #f8fafc;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
}

[data-theme="creative"] {
    --primary-color: #8b5cf6;
    --secondary-color: #374151;
    --accent-color: #f59e0b;
    --text-color: #374151;
    --light-text: #9ca3af;
    --background-color: #ffffff;
    --border-color: #d1d5db;
    --section-bg: #f3f4f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

[data-theme="minimal"] {
    --primary-color: #000000;
    --secondary-color: #000000;
    --accent-color: #666666;
    --text-color: #000000;
    --light-text: #666666;
    --background-color: #ffffff;
    --border-color: #e0e0e0;
    --section-bg: #fafafa;
    --success-color: #000000;
    --warning-color: #666666;
    --error-color: #000000;
}

[data-theme="original"] {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --background-color: #ffffff;
    --border-color: #e9ecef;
    --section-bg: #f8f9fa;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --education-color: #9b59b6;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    color: var(--text-color);
    background: var(--background-color);
    font-size: 10px;
}

/* Download Button */
.download-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.download-button button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.download-button button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.download-button button i {
    font-size: 11px;
}

/* Back Button */
.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button button {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.back-button button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-button button i {
    font-size: 11px;
}

/* Theme Selector */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 12px;
}

.theme-selector label {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 8px;
}

.theme-selector select {
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
}

/* Hide controls when printing */
@media print {
    .theme-selector,
    .download-button,
    .back-button {
        display: none;
    }
}

/* A4 Paper Size (210mm x 297mm) */
.resume-container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: white;
    padding: 12mm;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Print Styles */
@media print {
    body {
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .resume-container {
        width: 100%;
        min-height: 100vh;
        box-shadow: none;
        margin: 0;
        padding: 8mm;
        page-break-inside: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .project-item,
    .education-item,
    .pr-item {
        page-break-inside: avoid;
    }
    
    @page {
        size: A4;
        margin: 0;
    }
}

/* Header Styles */
.resume-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.personal-info {
    flex: 1;
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

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

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

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

.contact-item i {
    width: 12px;
    color: var(--primary-color);
    font-size: 10px;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Section Styles */
.section {
    margin-bottom: 14px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Section */
.summary-text {
    font-size: 11px;
    line-height: 1.6;
    text-align: justify;
    color: var(--light-text);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--section-bg);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    font-size: 10px;
}

.skill-name {
    font-weight: 500;
    color: var(--secondary-color);
}

.skill-level {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 9px;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.project-item {
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 8px;
    background: #fdfdfd;
}

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

.project-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.project-status {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-completed {
    background: #d5f4e6;
    color: #27ae60;
}

.status-in-progress {
    background: #fef9e7;
    color: #f39c12;
}

.status-planning {
    background: #e3f2fd;
    color: #3498db;
}

.project-description {
    font-size: 10px;
    color: var(--light-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 500;
}

/* Open Source Section */
.opensource-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    background: var(--section-bg);
    padding: 8px;
    border-radius: 6px;
    border-top: 3px solid var(--primary-color);
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 9px;
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
}

.featured-prs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pr-item {
    background: var(--section-bg);
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.pr-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.pr-repo {
    font-size: 9px;
    color: var(--primary-color);
    font-weight: 500;
}

.pr-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.pr-stat {
    font-size: 8px;
    color: var(--light-text);
}

/* Education Section */
.education-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.education-item {
    background: var(--section-bg);
    padding: 6px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

/* Special styling for original theme education items */
[data-theme="original"] .education-item {
    border-left: 3px solid var(--education-color);
}

[data-theme="original"] .education-instructor {
    color: var(--education-color);
}

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

.education-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-color);
}

.education-date {
    font-size: 9px;
    color: var(--light-text);
    font-weight: 500;
}

.education-instructor {
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 3px;
}

.education-description {
    font-size: 9px;
    color: var(--light-text);
    line-height: 1.4;
}

/* Journey Section */
.journey-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 25px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.journey-item {
    position: relative;
    text-align: center;
    background: var(--section-bg);
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 2;
}

.journey-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    z-index: 3;
}

.journey-year {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.journey-milestone {
    font-size: 10px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.journey-description {
    font-size: 9px;
    color: var(--light-text);
    line-height: 1.4;
}

/* Responsive Design for Screen Preview */
@media screen and (max-width: 768px) {
    .resume-container {
        width: 100%;
        margin: 20px;
        padding: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .opensource-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-small {
    margin-bottom: 8px;
}

.mb-medium {
    margin-bottom: 12px;
}

.font-bold {
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--light-text);
}

/* References Section */
.references-section {
    margin-top: 14px;
}

.references-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.reference-item {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-size: 9px;
}

.reference-name {
    font-weight: bold;
    font-size: 10px;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.reference-title {
    font-size: 9px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.reference-company {
    font-size: 9px;
    color: var(--light-text);
    margin-bottom: 4px;
}

.reference-contact {
    font-size: 8px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.reference-relationship {
    font-size: 8px;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 3px;
}

.reference-description {
    font-size: 8px;
    color: var(--light-text);
    line-height: 1.2;
}
