/* Split Screen Layout CSS */
:root {
    --primary-color: #afdbea;
    --secondary-color: #053F5C;
    --text-color: #ffffff;
    --accent-color: #afdbea;
    --background-light: #edf7fb;
    --background-dark: #ffffff;
    --text-dark: #053F5C;
    --sidebar-width: 320px;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Cairo', 'Tajawal', sans-serif;
    background: #edf7fb;
    overflow-x: hidden;
    height: 100vh;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.dot-pattern {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(6, 8px);
    grid-gap: 8px;
}

.dot-pattern .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.shape-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.shape-2 {
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.shape-3 {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30%;
    transform: rotate(45deg);
}

.main-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    margin: 10vh auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: var(--background-dark);
    left: 0;
    right: 0;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: #E2F3F7;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-y: auto;
    padding: 40px 60px;
    position: relative;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 5px;
    text-align: center;
    color: #053F5C;
}

.profile-title {
    font-size: 14px;
    color: #053F5C;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0.8;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background-color: #053F5C;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.download-cv {
    margin-top: 30px;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.download-btn {
    background-color: transparent;
    color: #053F5C;
    border: 2px solid #053F5C;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    display: block;
    letter-spacing: 0.5px;
    text-align: center;
    width: 80%;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 5px rgba(5, 63, 92, 0.1);
}

.download-btn:hover {
    background-color: #053F5C;
    color: #ffffff;
    border-color: #053F5C;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(5, 63, 92, 0.3);
}

.copyright {
    font-size: 12px;
    color: #053F5C;
    opacity: 0.7;
    margin-top: auto;
    text-align: center;
}

.developer-link {
    text-align: center;
    margin-top: 15px;
}

.developer-logo {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: all var(--transition-speed);
}

.developer-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.content-header {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.header-image-container {
    margin-bottom: 20px;
    text-align: center;
}

.header-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
}

.content-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.content-name {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 1px;
    color: #053F5C;
}

.content-title {
    font-size: 18px;
    color: #053F5C;
    margin: 0;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: 500;
}

.navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #E2F3F7;
    border-radius: 20px;
    padding: 20px 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-item {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #053F5C;
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 18px;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    background-color: #053F5C;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(5, 63, 92, 0.3);
}

.nav-item .tooltip {
    position: absolute;
    right: 50px;
    background-color: #053F5C;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(5, 63, 92, 0.2);
}

.nav-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

body[dir="rtl"] .nav-item .tooltip {
    right: auto;
    left: 50px;
}

.pagination {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 30px;
    padding: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.pagination-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 18px;
}

.pagination-item:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Language Switcher */
.language-switcher-container {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
}

.language-switcher {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

.language-switcher a {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-switcher a:hover, 
.language-switcher a.active {
    opacity: 1;
    border-color: #053F5C;
    transform: scale(1.1);
}

.language-switcher a[data-lang="ar"] {
    background-image: url('https://flagcdn.com/w40/eg.png');
}

.language-switcher a[data-lang="en"] {
    background-image: url('https://flagcdn.com/w40/gb.png');
}

.language-switcher a[data-lang="fr"] {
    background-image: url('https://flagcdn.com/w40/fr.png');
}

/* Responsive */
@media (max-width: 992px) {
    .main-container {
        width: 95%;
        height: 85vh;
    }
    
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 85vh;
    }
    
    .sidebar {
        width: 100%;
        padding: 30px 20px;
    }
    
    .navigation {
        position: fixed;
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        padding: 10px;
    }
    
    .pagination {
        display: none;
    }
    
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
}

/* RTL Support */
body[dir="rtl"] .sidebar {
    order: 2;
}

body[dir="rtl"] .content {
    order: 1;
}

body[dir="rtl"] .navigation {
    right: auto;
    left: 20px;
}

body[dir="rtl"] .pagination {
    right: auto;
    left: 20px;
}

body[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Content sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: block;
}

/* CV language options */
.cv-buttons-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.cv-language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    width: 80%;
}

.cv-language-btn {
    background-color: transparent;
    color: #053F5C;
    border: 2px solid #053F5C;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-speed);
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    width: 80%;
}

.cv-language-btn:hover {
    background-color: #053F5C;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 63, 92, 0.3);
}

.cv-download-btn {
    background-color: transparent;
    color: #053F5C;
    border: 2px solid #053F5C;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-speed);
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    width: 80%;
}

.cv-download-btn:hover {
    background-color: #053F5C;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 63, 92, 0.3);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #053F5C;
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(5, 63, 92, 0.3);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        justify-content: center;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
        transition: transform var(--transition-speed);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-top: 70px;
    }
    
    body[dir="rtl"] .mobile-menu-btn {
        right: auto;
        left: 20px;
    }
    
    body[dir="rtl"] .sidebar {
        transform: translateX(100%);
        left: auto;
        right: 0;
    }
    
    body[dir="rtl"] .sidebar.active {
        transform: translateX(0);
    }
}
