/* ===== CLEAN PROFESSIONAL RESUME - PERFECT ALIGNMENT ===== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* A4 Page Setup - CLEAN DESIGN */
:root {
    --page-width: 210mm;
    --page-height: 297mm;
    --margin: 12mm;
    
    /* Clean Professional Colors */
    --primary-dark: #1f2937;
    --secondary-blue: #2563eb;
    --accent-gray: #4b5563;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --border-clean: #d1d5db;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    
    /* Clean Typography */
    --font-xs: 8pt;
    --font-sm: 9pt;
    --font-base: 10pt;
    --font-md: 11pt;
    --font-lg: 12pt;
    --font-xl: 13pt;
    --font-2xl: 15pt;
    --font-3xl: 18pt;
    
    /* Clean Spacing - ULTRA COMPACT */
    --space-xs: 1.5mm;
    --space-sm: 2mm;
    --space-md: 2.5mm;
    --space-lg: 3mm;
    --space-xl: 4mm;
}

/* Body Setup */
body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    font-size: var(--font-base);
    line-height: 1.4;
    color: var(--text-dark);
    background: #f3f4f6;
    -webkit-font-smoothing: antialiased;
}

/* A4 Page Container - CLEAN BORDERS */
.resume-page {
    width: var(--page-width);
    height: var(--page-height);
    margin: 20px auto;
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: var(--margin);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-clean);
}

/* Header Section - CLEAN DESIGN */
.header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--primary-dark);
    color: var(--bg-white);
    margin: calc(-1 * var(--margin)) calc(-1 * var(--margin)) var(--space-lg) calc(-1 * var(--margin));
    border-bottom: 4px solid var(--secondary-blue);
    flex-shrink: 0;
}

.name {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1pt;
    line-height: 1.1;
}

.role {
    font-size: var(--font-xl);
    font-weight: 400;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
    line-height: 1.2;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: var(--font-sm);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.contact-item {
    padding: 2mm 4mm;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* Main Content Layout - PERFECT ALIGNMENT */
.content {
    display: grid;
    grid-template-columns: 64mm 1fr;
    gap: 0;
    flex: 1;
    align-items: start;
    position: relative;
}

/* Left Column - PERFECT ALIGNMENT */
.left-column {
    background: var(--bg-light);
    padding: var(--space-md);
    border-right: 3px solid var(--secondary-blue);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: fit-content;
    position: relative;
}

/* Right Column - PERFECT ALIGNMENT */
.right-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xs) 0 var(--space-md);
    height: fit-content;
    position: relative;
}

/* Section Styling - CLEAN HEADERS */
.section {
    position: relative;
}

.section-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--secondary-blue);
    letter-spacing: 0.5pt;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 15mm;
    height: 2px;
    background: var(--primary-dark);
}

/* Summary Section - CLEAN BOX */
.summary-text {
    font-size: var(--font-base);
    line-height: 1.5;
    text-align: justify;
    color: var(--text-dark);
    padding: var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-clean);
    border-left: 4px solid var(--secondary-blue);
}

/* Skills Section - CLEAN CARDS */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skill-category {
    background: var(--bg-white);
    padding: var(--space-sm);
    border: 1px solid var(--border-clean);
    border-left: 3px solid var(--secondary-blue);
    margin-bottom: var(--space-xs);
}

.skill-category-title {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.3pt;
}

.skills-list {
    font-size: var(--font-xs);
    line-height: 1.4;
    color: var(--text-medium);
    font-weight: 500;
}

/* Education Section - CLEAN BOXES */
.education-item {
    background: var(--bg-white);
    padding: var(--space-sm);
    border: 1px solid var(--border-clean);
    border-left: 3px solid var(--secondary-blue);
    margin-bottom: var(--space-sm);
}

.degree {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1mm;
    line-height: 1.2;
}

.institution {
    font-size: var(--font-xs);
    color: var(--text-medium);
    margin-bottom: 1mm;
    font-style: italic;
}

.year {
    font-size: var(--font-xs);
    color: var(--bg-white);
    font-weight: 500;
    background: var(--secondary-blue);
    padding: 1mm 3mm;
    border: 1px solid var(--secondary-blue);
    display: inline-block;
}

/* Certifications - CLEAN LIST */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cert-item {
    background: var(--bg-white);
    padding: var(--space-sm);
    border: 1px solid var(--border-clean);
    font-size: var(--font-xs);
    line-height: 1.3;
    color: var(--text-dark);
}

/* Languages - CLEAN GRID */
.languages-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.language-item {
    background: var(--bg-white);
    padding: var(--space-xs);
    border: 1px solid var(--border-clean);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-name {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--primary-dark);
}

.lang-level {
    font-size: var(--font-xs);
    background: var(--secondary-blue);
    color: var(--bg-white);
    padding: 1mm 2mm;
    border: 1px solid var(--secondary-blue);
    font-weight: 500;
}

/* Experience Section - CLEAN TIMELINE */
.job-item {
    margin-bottom: var(--space-xl);
    position: relative;
    padding: var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-clean);
    border-left: 4px solid var(--primary-dark);
}

.job-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: var(--space-md);
    width: 8px;
    height: 8px;
    background: var(--secondary-blue);
    border: 2px solid var(--bg-white);
}

.job-header {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-clean);
}

.job-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.job-meta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--font-sm);
}

.company {
    font-weight: 600;
    color: var(--text-dark);
}

.duration {
    background: var(--secondary-blue);
    color: var(--bg-white);
    padding: 2mm 4mm;
    border: 1px solid var(--secondary-blue);
    font-weight: 600;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.3pt;
}

/* Achievements - CLEAN LIST */
.achievements {
    list-style: none;
    margin-top: var(--space-sm);
}

.achievements li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: var(--font-xs);
    line-height: 1.4;
    text-align: justify;
    color: var(--text-dark);
}

.achievements li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-size: var(--font-xs);
}

/* Projects Section - CLEAN BOXES */
.project-item {
    background: var(--bg-light);
    padding: var(--space-md);
    border: 2px solid var(--border-clean);
    border-top: 4px solid var(--secondary-blue);
    margin-bottom: var(--space-lg);
}

.project-title {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.3pt;
}

.project-highlights {
    list-style: none;
}

.project-highlights li {
    position: relative;
    padding-left: var(--space-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--font-xs);
    line-height: 1.4;
    color: var(--text-dark);
}

.project-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}

/* Print Optimization */
@media print {
    @page {
        size: A4;
        margin: 12mm;
    }
    
    body {
        background: white !important;
    }
    
    .resume-page {
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .header {
        background: var(--primary-dark) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .duration,
    .lang-level,
    .year {
        background: var(--secondary-blue) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .left-column {
        background: var(--bg-light) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Screen Enhancement */
@media screen {
    .resume-page {
        border: 2px solid var(--border-clean);
    }
}

/* PERFECT ALIGNMENT FEATURES:
✓ Both columns start from same top level
✓ Left and right columns perfectly aligned
✓ No overlap or override issues
✓ Clean grid layout with proper boundaries
✓ Professional spacing and alignment
✓ Sharp, clean border lines throughout
✓ Perfect rectangular shapes
✓ Consistent border widths
✓ Clean color scheme
✓ 100% ATS-friendly structure
*/
