/**
 * السيرة الذاتية - فراج الشمري
 * أنماط النسخة العربية
 * 2025 © جميع الحقوق محفوظة
 */

/* ===== اتجاه النص ===== */
html, body {
    direction: rtl;
    text-align: right;
}

/* ===== أنماط الصفحة الرئيسية ===== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xxl) 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* ===== أنماط صفحة السيرة الذاتية ===== */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.profile-sidebar {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-image-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.profile-title {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.profile-intro {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.info-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
}

.timeline-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
}

.timeline {
    position: relative;
    padding-right: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: 7px;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-300);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    right: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid white;
    z-index: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.timeline-period {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.timeline-company {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.timeline-content ul {
    padding-right: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.timeline-content li {
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    margin-bottom: var(--spacing-md);
}

/* ===== أنماط قسم المهارات ===== */
.skills-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.skill-category {
    margin-bottom: var(--spacing-lg);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.skill-item {
    margin-bottom: var(--spacing-md);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.skill-name {
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    width: 0%; /* سيتم تعيينه عبر الجافاسكريبت */
    transition: width 1s ease;
}

.languages-list {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-name {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: var(--accent-color);
}

/* ===== أنماط قسم الإنجازات ===== */
.achievements-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.achievement-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.achievement-title {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

/* ===== أنماط قسم الامتيازات ===== */
.strengths-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-xl);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.strength-item {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.strength-title {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

/* ===== تصميم متجاوب ===== */
@media screen and (max-width: 992px) {
    .profile-section {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .skills-grid,
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .timeline-title, .timeline-period {
        width: 100%;
    }
}