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

body {
    font-family: 'Merriweather', serif;
    line-height: 1.5;
    color: #58595B;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    min-height: 100vh;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    width: 295px;
    background-color: #0A3B53;
    color: #FFFFFF;
    padding: 24px 16px;
    flex-shrink: 0;
}

.profile-section {
    text-align: center;
    margin-bottom: 24px;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    background-color: white;
    object-fit: contain;
}

.profile-name {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.9;
    margin-bottom: 16px;
}

.download-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0d73a7;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-resume-btn:hover {
    background-color: #FFFFFF;
    color: #0d73a7;
    border-color: #0d73a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-resume-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-section {
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 14px;
    color: #FFFFFF;
    word-break: break-word;
}

.linkedin-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.linkedin-link:hover {
    color: #0d73a7;
    border-bottom-color: #0d73a7;
    text-shadow: 0 0 8px rgba(13, 115, 167, 0.3);
}

.email-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.email-text {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.copy-email-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-email-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

.copy-email-btn:hover .copy-icon {
    fill: #0d73a7;
}

.copy-email-btn.copied {
    background-color: #4CAF50;
    opacity: 1;
}

.copy-email-btn.copied .copy-icon {
    fill: #FFFFFF;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-bullet {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
}

.skill-item span:last-child {
    font-size: 14px;
    color: #FFFFFF;
}

/* Language Chart */
.language-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-size: 14px;
    color: #FFFFFF;
}

.language-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #F0F5F6;
}

.dot.active {
    background-color: #0d73a7;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 0;
    background-color: #FFFFFF;
}

.main-header {
    border-bottom: 1px solid #C0C0C0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.header-actions .download-resume-btn {
    background-color: #0d73a7;
    color: #FFFFFF;
    border-color: #0d73a7;
}

.header-actions .download-resume-btn:hover {
    background-color: #FFFFFF;
    color: #0d73a7;
    border-color: #0d73a7;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #0d73a7;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.language-btn:hover {
    background-color: #FFFFFF;
    color: #0d73a7;
    border-color: #0d73a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #C0C0C0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: #231F20;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
    color: #0d73a7;
}

.language-option.active {
    background-color: #0d73a7;
    color: #FFFFFF;
}

.language-option.active:hover {
    background-color: #0A3B53;
    color: #FFFFFF;
}

.main-name {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #231F20;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #58595B;
    text-transform: uppercase;
}

.content-section {
    margin-bottom: 24px;
}

.content-section .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #231F20;
    text-transform: uppercase;
    border-bottom: 2px solid #C0C0C0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.body-text {
    color: #58595B;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Job Entries */
.job-entry {
    margin-bottom: 20px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.company-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #231F20;
}

.job-dates {
    font-size: 14px;
    color: #58595B;
}

.job-title {
    font-size: 14px;
    font-weight: bold;
    color: #58595B;
    margin-bottom: 12px;
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    color: #58595B;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.job-responsibilities li::before {
    content: "•";
    color: #58595B;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Education Entry */
.education-entry {
    margin-bottom: 20px;
}

.education-entry .company-name {
    margin-bottom: 8px;
}

.education-entry .job-dates {
    margin-bottom: 8px;
}

.education-entry .job-title {
    margin-bottom: 12px;
}

/* Project Entries */
.project-entry {
    margin-bottom: 20px;
}

.project-entry .company-name {
    margin-bottom: 12px;
}

/* Certifications List */
.certifications-list {
    list-style: none;
    padding-left: 0;
}

.certifications-list li {
    color: #58595B;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.certifications-list li::before {
    content: "•";
    color: #58595B;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Company link styling */
.company-link {
    color: #231F20;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.company-link:hover {
    color: #0d73a7;
    border-bottom-color: #0d73a7;
}

/* External link indicator */
.company-link.external::after {
    content: "\00A0\2197"; /* non-breaking space + north east arrow */
    font-size: 0.9em;
    color: #58595B;
    vertical-align: baseline;
}

.company-link.external:hover::after {
    color: #0d73a7;
}

/* External link internal */
.company-link.internal::after {
    content: "\00A0#"; /* non-breaking space + sharp sign */
    font-size: 0.9em;
    color: #58595B;
    vertical-align: baseline;
}

.company-link.internal:hover::after {
    color: #0d73a7;
}

/* Company description under company-name */
.company-description {
    margin: 6px 0 10px;
    color: #58595B;
    font-size: 13px;
    line-height: 1.45;
}

/* Slightly dim on mobile for compactness */
@media (max-width: 768px) {
    .company-description {
        font-size: 12.5px;
        opacity: 0.95;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
    }
    
    .sidebar {
        width: 100%;
        order: 1;
    }
    
    .main-content {
        order: 2;
        padding: 20px;
    }
    
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .sidebar {
        padding: 20px 16px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .main-name {
        font-size: 24px;
        text-align: center;
    }
    
    .profile-name {
        font-size: 20px;
    }
}

/* Footer */
.footer {
    background-color: #0A3B53;
    color: #FFFFFF;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.9;
    margin: 0;
}

/* Mobile back-to-top button */
@media (max-width: 768px) {
    .back-to-top {
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #0A3B53;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        border: none;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: #0d73a7;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}
