/* Resume Modal Styles - RTL Arabic */
#resumeModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: right;
    direction: rtl;
    font-family: 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif;
}

#resumeModal .modal-header {
    background: linear-gradient(135deg, #0f1b3d 0%, #1a365d 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 30px;
    border: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}

#resumeModal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-align: right;
    margin: 0;
    flex: 1;
}

#resumeModal .modal-header .btn-close {
    margin: -0.5rem -0.5rem -0.5rem auto;
    padding: 0.5rem;
    order: 2;
    filter: invert(1) grayscale(100%) brightness(200%);
}

#resumeModal .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    text-align: right;
    direction: rtl;
    line-height: 1.8;
}

#resumeModal .section-title {
    color: #482c5f;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0f1b3d;
    text-align: right;
}

#resumeModal .intro-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

#resumeModal .intro-text strong {
    color: #0f1b3d;
    font-weight: 700;
}

#resumeModal .highlight {
    color: #0f1b3d;
    font-weight: 600;
    background-color: rgba(15, 27, 61, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

#resumeModal .achievement-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-right: 4px solid #0f1b3d;
    border-left: none;
    border-radius: 8px 0 0 8px;
    text-align: right;
}

#resumeModal .achievement-item h5 {
    color: #292a2e;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

#resumeModal .list-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
    padding-right: 15px;
    position: relative;
}

#resumeModal .list-item:last-child {
    border-bottom: none;
}

#resumeModal .icon {
    color: #0f1b3d;
    margin-left: 10px;
    margin-right: 0;
}

#resumeModal .list-item::before {
    content: "•";
    color: #0f1b3d;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 10px;
    margin-right: -1em;
}

/* RTL specific list styling */
#resumeModal ul,
#resumeModal ol {
    padding-right: 20px;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
}

#resumeModal li {
    text-align: right;
    margin-bottom: 8px;
    padding-right: 5px;
}

/* Scrollbar styling for RTL */
#resumeModal .modal-body::-webkit-scrollbar {
    width: 8px;
    left: 0;
    right: auto;
}

#resumeModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin-left: 10px;
}

#resumeModal .modal-body::-webkit-scrollbar-thumb {
    background: #0f1b3d;
    border-radius: 10px;
}

/* Firefox scrollbar */
#resumeModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #0f1b3d #f1f1f1;
}

/* Stats and numbers styling for RTL */
#resumeModal .stat-number {
    background: linear-gradient(135deg, #0f1b3d 0%, #1a365d 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    margin-left: 10px;
    margin-right: 0;
    font-size: 1.1rem;
}

#resumeModal .stat-text {
    display: inline-block;
    font-size: 1rem;
    vertical-align: middle;
}

/* Timeline styling for RTL */
#resumeModal .timeline-item {
    border-right: 2px solid #0f1b3d;
    border-left: none;
    padding-right: 20px;
    padding-left: 0;
    margin-right: 10px;
    margin-left: 0;
    position: relative;
}

#resumeModal .timeline-item::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #0f1b3d;
    border-radius: 50%;
}

/* Footer buttons for RTL */
#resumeModal .modal-footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 20px 20px;
}

#resumeModal .modal-footer .btn {
    margin: 0 0 0 10px;
    padding: 10px 25px;
    font-weight: 600;
}

#resumeModal .btn-primary {
    background: linear-gradient(135deg, #0f1b3d 0%, #1a365d 100%);
    border: none;
}

#resumeModal .btn-secondary {
    background: #6c757d;
    border: none;
}

/* Responsive adjustments for RTL */
@media (max-width: 768px) {
    #resumeModal .modal-content {
        margin: 10px;
    }

    #resumeModal .modal-header,
    #resumeModal .modal-body {
        padding: 20px;
    }

    #resumeModal .modal-title {
        font-size: 1.5rem;
    }

    #resumeModal .intro-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    #resumeModal .section-title {
        font-size: 1.2rem;
    }

    #resumeModal .modal-footer {
        padding: 15px 20px;
    }

    #resumeModal .modal-footer .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for modal appearance from right side */
#resumeModal.modal.fade .modal-dialog {
    transform: translateX(25%);
}

#resumeModal.modal.show .modal-dialog {
    transform: translateX(0);
}

#resumeModal.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Content blocks with RTL styling */
#resumeModal .content-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#resumeModal .content-block h4 {
    color: #0f1b3d;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: right;
}
