:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #eeeeee;
    color: var(--dark-color);
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2, [dir="rtl"] .me-3 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2, [dir="rtl"] .ms-3 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 1.25rem;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
    background: none;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Header */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-lg);
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
    color: white;
}

/* Section Headings */
.section-heading {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-heading i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

[dir="rtl"] .section-heading i {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Job Entry Cards */
.job-card, .education-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover, .education-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.job-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.duration-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Skills */
.skill-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0.25rem;
    display: inline-block;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
}

.skill-badge i {
    margin-right: 0.5rem;
}

[dir="rtl"] .skill-badge i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lang-switcher {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    [dir="rtl"] .lang-switcher {
        right: auto;
        left: 0.75rem;
    }
    
    .profile-header {
        padding: 2rem 0;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .lang-switcher {
        display: none;
    }
    
    .job-card, .education-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}