body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #4caf50;
    color: #fff;
    padding: 20px 10px;
}

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

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin-top: 5px;
    margin-bottom: 0;
}

.language-switcher {
    display: inline-flex;
    gap: 8px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.download-btn {
    border: 1px solid #fff;
    background: #fff;
    color: #2a7d2d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #edf8ee;
}

.download-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lang-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.lang-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lang-btn.active {
    background-color: #fff;
    color: #2a7d2d;
    font-weight: 700;
}

main {
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 30px;
}

section h2 {
    color: #4caf50;
    font-size: 1.8em;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
}

.experience-list {
    display: grid;
    gap: 16px;
}

.experience-card {
    background: #fff;
    border: 1px solid #dde6dd;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(20, 40, 20, 0.06);
}

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

.experience-company {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.25rem;
    color: #1f6a2f;
}

.experience-company i {
    color: #4caf50;
}

.experience-role {
    margin: 6px 0 0;
    font-weight: 700;
}

.experience-period {
    margin: 0;
    color: #5b5b5b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.experience-meta {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.experience-label {
    font-weight: 700;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.stack-tag {
    display: inline-block;
    background-color: #edf8ee;
    color: #24672f;
    border: 1px solid #cde7d1;
    border-radius: 999px;
    font-size: 0.85rem;
    padding: 4px 10px;
}

.experience-meta ul {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.55;
}

.photo {
    text-align: center;
    margin-bottom: 20px;
}

.photo img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #4caf50;
}

.contact-section {
    margin-bottom: 0;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.contact-icons li {
    display: inline-flex;
}

.contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #dde6dd;
    background: #fff;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 1.45rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-icons a:hover {
    color: #2f8f39;
    background-color: #edf8ee;
    border-color: #bcdcbc;
    transform: translateY(-1px);
}

.contact-icons a:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.contact-label {
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .language-switcher {
        margin-top: 6px;
    }

    .header-actions {
        flex-direction: column;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-period {
        white-space: normal;
    }

    .contact-icons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact-icons li {
        width: 100%;
    }

    .contact-icons a {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 14px;
        font-size: 1.2rem;
        box-sizing: border-box;
    }

    .contact-label {
        display: inline;
    }
}

@media print {
    @page {
        margin: 14mm 12mm;
    }

    * {
        box-shadow: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body {
        background: #fff;
        color: #222;
        font-size: 10pt;
    }

    header {
        padding: 18px 10px 14px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .container {
        max-width: none;
    }

    main {
        padding: 12px 0 0;
    }

    .header-actions,
    footer {
        display: none;
    }

    .photo {
        margin-bottom: 12px;
    }

    .photo img {
        width: 100px;
        height: 100px;
    }

    section {
        margin-bottom: 12px;
    }

    section h2 {
        break-after: avoid;
        font-size: 1.15rem;
        margin: 0 0 8px;
    }

    .experience-list {
        display: block;
    }

    .experience-card {
        border-color: #cfd8cf;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 8px;
    }

    .experience-company {
        font-size: 1rem;
    }

    .experience-role {
        margin-top: 3px;
    }

    .experience-period {
        white-space: normal;
        font-size: 0.9rem;
    }

    .experience-meta {
        margin-top: 6px;
        gap: 4px;
    }

    .experience-meta ul {
        line-height: 1.25;
        margin-top: 3px;
    }

    .stack-tags {
        gap: 3px;
        margin-top: 3px;
    }

    .stack-tag {
        font-size: 0.75rem;
        padding: 1px 6px;
    }

    .contact-icons {
        display: block;
        margin-top: 6px;
    }

    .contact-icons li {
        display: block;
        margin-bottom: 4px;
    }

    .contact-icons a {
        display: inline;
        width: auto;
        height: auto;
        border: 0;
        background: transparent;
        color: #222;
        font-size: 10pt;
        text-decoration: none;
    }

    .contact-icons i {
        display: none;
    }

    .contact-label {
        display: inline;
    }

    .contact-icons a::after {
        content: ": " attr(data-print-url);
    }
}
