
.pdf-render-mode {
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 10mm 8mm !important;
    box-sizing: border-box !important;
    background: white !important;
    font-size: 9pt !important;
    line-height: 1.2 !important;
    border: 4px solid #2c3e50 !important;
    box-shadow: none !important; 
    overflow: hidden !important;
    color: #333 !important;
    transform: none !important; 
}

.pdf-render-body {
    transform: none !important; 
    -webkit-text-size-adjust: 100% !important; 
    touch-action: auto !important; 
    overflow-x: hidden !important; 
}

/* Existing styles below (no changes needed for existing ones) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff88;
    --primary-orange: #ff6b35;
    --primary-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --bg-primary: #000000;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-primary: rgba(255, 255, 255, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 15px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    animation: fadeInUp 1s ease-out forwards;
}

.preview-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 15px;
    width: 210mm;
    min-height: 297mm;
    animation: fadeInUp 1s ease-out forwards;
}

.form-panel:hover, .preview-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-green);
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.form-section {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--primary-green);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-green);
}

.input-group {
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row .input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

.dynamic-section {
    border: 1px dashed var(--border-primary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.add-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--primary-green);
    color: var(--text-primary);
    margin-top: 8px;
}

.add-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    background: var(--primary-orange);
    color: var(--text-primary);
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.remove-btn {
    background: var(--primary-red);
    color: var(--text-primary);
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #e63e4e;
}

.cv-container {
    width: 210mm;
    min-height: 297mm;
    padding: 10mm 8mm;
    box-sizing: border-box;
    background: white;
    font-size: 9pt;
    line-height: 1.2;
    border: 4px solid #2c3e50;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #333;
}

.header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 6px;
}

.name {
    font-size: 20pt;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 8pt;
    flex-wrap: wrap;
    color: #555;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-item a {
    color: #0066cc;
    text-decoration: underline;
}

.contact-icon {
    width: 14pt;
    height: 14pt;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #808080;
    padding: 1pt;
    filter: grayscale(80%);
}

.contact-icon img {
    width: 9pt;
    height: 9pt;
    fill: white;
}

.section {
    margin-bottom: 8mm;
}

.section-title {
    font-size: 11pt;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.section-content {
    font-size: 9pt;
    text-align: justify;
    line-height: 1.2;
    color: #333;
}

.job-item, .education-item {
    margin-bottom: 5mm;
}

.job-title {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 9.5pt;
    color: #2c3e50;
}

.job-details {
    font-style: italic;
    margin-bottom: 3px;
    font-size: 9pt;
    color: #666;
}

.bullet-points {
    margin-left: 15px;
    margin-bottom: 4px;
}

.bullet-points li {
    margin-bottom: 2px;
    list-style-type: disc;
    font-size: 9pt;
    line-height: 1.2;
}

.education-item {
    margin-bottom: 4mm;
}

.university {
    font-weight: 700;
    font-size: 9.5pt;
    color: #2c3e50;
}

.degree {
    font-style: italic;
    font-size: 9pt;
    margin-bottom: 2px;
    color: #666;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.skills-column {
    flex: 1;
}

.skills-column h4 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 9pt;
    color: #2c3e50;
}

.skills-list {
    margin-left: 15px;
}

.skills-list li {
    margin-bottom: 2px;
    list-style-type: disc;
    font-size: 9pt;
    line-height: 1.2;
}

.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 9pt;
    color: #333;
}

.languages-container span:not(:last-child)::after {
    content: ' • ';
    margin-left: 12px;
    color: #888;
}

.languages-container span:last-child::after {
    content: '';
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        width: 100%;
        max-width: 210mm;
        min-height: 297mm;
    }
    
    .cv-container {
        width: 100%;
        max-width: 210mm;
        min-height: 297mm;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }
    
    .preview-panel {
        width: 100%;
        max-width: 210mm;
        min-height: 297mm;
    }
    
    .cv-container {
        width: 100%;
        max-width: 210mm;
        min-height: 297mm;
    }
    
    .input-row {
        flex-direction: column;
    }
}

@media print {
    /* Existing print styles - ensure these are robust */
    .cv-container {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 10mm 8mm;
        transform: none;
        border: 4px solid #2c3e50;
        box-shadow: none;
        font-size: 9pt;
        line-height: 1.2;
    }
    body {
        margin: 0;
        padding: 0;
        background: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .form-panel, .particles, .nav-btn, .download-btn {
        display: none;
    }
    .preview-panel {
        position: relative;
        top: auto;
        width: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: none;
        background: none;
        backdrop-filter: none;
        padding: 0;
    }
}

.lang-level {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.lang-level:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.lang-level option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 5px;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.developer-cv-btn {
    background: var(--primary-green);
}

.submit-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.button-group .submit-btn {
    flex: 1;
    max-width: 200px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .button-group .submit-btn {
        max-width: 100%;
    }
}