body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

.cv-header {
    background-color: #004080;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.cv-header h1 {
    margin-bottom: 0.3125rem;
    font-size: 2.8rem;
    font-weight: bold;
}

.cv-header p {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.profile-picture {
    width: 11.25rem;
    height: 11.25rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 0.3125rem solid white;
    box-shadow: 0 0 0.9375rem rgba(0,0,0,0.2);
    margin-bottom: 0.9375rem;
    background-color: transparent;
}

.section-title {
    color: #004080;
    border-bottom: 0.125rem solid #004080;
    padding-bottom: 0.625rem;
    margin-top: 1.875rem;
    margin-bottom: 1.25rem;
    font-weight: bold;
}

.card {
    margin-bottom: 1.25rem;
    border: 0.0625rem solid #e0e0e0;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.05);
}

.card-header {
    background-color: #004080;
    color: white;
    font-weight: bold;
}

.job-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.company-name {
    font-style: italic;
    color: white;
}

.date-range {
    font-size: 0.9rem;
    color: white;
}

.highlights-list li, .certifications-list li, .list-group-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.highlights-list li:hover, .highlights-list li:active,
.certifications-list li:hover, .certifications-list li:active,
.list-group-item:hover, .list-group-item:active {
    background-color: #fff3cd;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 1.875rem 0;
    text-align: center;
}

.social-icons a {
    color: white;
    margin: 0 0.625rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover, .social-icons a:active {
    color: #007bff;
}

.download-button {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    background-color: #004080;
    border: none;
}

.download-button:hover, .download-button:active {
    transform: scale(1.1);
    background-color: #003366;
}

.download-button:focus {
    outline: 0.125rem solid #fff;
    outline-offset: 0.125rem;
}

.download-button i {
    color: white;
}

.language-button {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.4rem; /* Slightly smaller for better balance */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #004080;
    border: none;
    color: white;
    text-decoration: none;
}

.language-button:hover, .language-button:active {
    transform: scale(1.1);
    background-color: #003366;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.3);
}

.language-button:focus {
    outline: 0.125rem solid #fff;
    outline-offset: 0.125rem;
}

.language-button i {
    color: white;
    line-height: 1;
}

p, ul, li {
    text-align: left;
}

@media (max-width: 768px) {
    .cv-header h1 {
        font-size: 2.2rem;
    }
    .cv-header p {
        font-size: 1.1rem;
    }
    .profile-picture {
        width: 9.375rem;
        height: 9.375rem;
    }
    .download-button {
        bottom: 0.625rem;
        right: 0.625rem;
        width: 3.125rem;
        height: 3.125rem;
        font-size: 1.2rem;
    }
    .language-button {
        top: 0.625rem;
        right: 0.625rem;
        width: 3.125rem;
        height: 3.125rem;
        font-size: 1.1rem;
    }
    .container {
        padding-left: 0.9375rem;
        padding-right: 0.9375rem;
    }
    .highlights-list li, .certifications-list li, .list-group-item {
        padding: 0.375rem;
    }
}

@media print {
    .download-button, .language-button, .footer {
        display: none;
    }
    body {
        background-color: white;
        color: black;
    }
    .cv-header {
        background-color: transparent;
        color: black;
    }
    .section-title {
        border-bottom-color: black;
        color: black;
    }
    .card {
        box-shadow: none;
        border: none;
    }
    .card-header {
        background-color: transparent;
        color: black;
    }
    .job-title, .company-name, .date-range {
        color: black;
    }
}