  body {
            margin: 0;
            padding: 0;
            background-color: #525659;
            display: flex;
            justify-content: center;
            padding: 20px;
            font-family: 'Poppins', sans-serif;
            font-family: 'Roboto', sans-serif;
            font-family: 'Poppins', sans-serif;
            font-size: 13px;
            line-height: 1.6;
        }

        .cv-page {
            background: white;
            width: min(800px, 100%);
            min-height: 1100px;
            padding: 40px;
            box-sizing: border-box;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .header {
            text-align: start;
            border-bottom: 2px solid #2c3e50;
            padding-bottom: 20px;
            display: flex;
            justify-content: space-between;
            gap: 20px;
            box-sizing: border-box;
        }

        .header > div:first-child {
            min-width: 0;
            flex: 1;
        }

        #qrcode {
            flex: 0 0 auto;
        }

        .header h1 {
            margin: 0;
            color: #2c3e50;
            text-transform: uppercase;
        }

        .contact-info {
            margin-top: 10px;
            font-size: 14px;
            color: #7f8c8d;
        }

        .section {
            margin-top: 25px;
        }

        .section-title {
            font-size: 18px;
            color: #2980b9;
            border-bottom: 1px solid #bdc3c7;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
            padding: 0;
        }

        .skill-item {
            background: #f1f1f1;
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 13px;
            border: 1px solid #ccc;
        }


        .languages-list span {
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 13px;
            border: 1px solid #ccc;
        }

        .download-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 5px;
        }


        h2 {
            font-size: 1rem;
            margin: 0;

        }

        p {
            margin: 3px 0;
            word-spacing: 2px;
            overflow-wrap: anywhere;
        }

        .section-content {
            max-width: 100%;
            box-sizing: border-box;
            overflow-wrap: anywhere;
        }


        @media print {

    @page {
        size: A4;
        margin: 8mm;
    }

    html,
    body {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        display: block !important;
        overflow: visible !important;
    }

    .download-controls {
        display: none !important;
    }

    .cv-page {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .header {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .main-section,
    .section-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .section,
    .section-content,
    .section-title,
    p,
    li,
    h2 {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    h2 {
        flex-wrap: wrap !important;
        gap: 4px 12px !important;
    }

    .section {
        break-inside: auto;
        page-break-inside: auto;
    }

    .section-title {
        break-after: avoid;
        page-break-after: avoid;
    }

    .experience-item,
    .experience-card,
    .skills-list,
    .languages-list {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    a {
        overflow-wrap: anywhere !important;
    }
}
