
/* =================================
   الإعدادات العامة
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: #faf6f8;
    color: #514653;
    line-height: 1.9;
}


/* =================================
   الحاوية الرئيسية
================================= */

.container {
    width: 90%;
    max-width: 850px;
    margin: 45px auto;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(181, 143, 165, 0.13);
}


/* =================================
   القسم الشخصي
================================= */

.profile-card {
    text-align: center;
    padding: 48px 20px 38px;
    background: linear-gradient(
        135deg,
        #f8e8ee,
        #eee9f8,
        #e6f3f0
    );
    border-bottom: 1px solid #f0e5ed;
}

.profile-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbaec4, #b9acd9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 800;
    border: 5px solid #ffffff;
    box-shadow: 0 6px 18px rgba(174, 137, 169, 0.2);
}

.profile-card h1 {
    font-size: 30px;
    font-weight: 800;
    color: #75566e;
}

.profile-card h2 {
    font-size: 19px;
    color: #96758f;
    font-weight: 600;
    margin-top: 5px;
}

.english-title {
    font-size: 14px;
    direction: ltr;
    color: #8d8299;
    margin-top: 2px;
}

.address {
    margin-top: 12px;
    color: #8b7c88;
    font-size: 14px;
}


/* =================================
   الأقسام العامة
================================= */

.section {
    padding: 29px 38px;
    border-bottom: 1px solid #f3edf1;
}

.section h3 {
    font-size: 20px;
    font-weight: 800;
    color: #96718f;
    margin-bottom: 17px;
    position: relative;
    padding-right: 13px;
}

.section h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 9px;
    width: 4px;
    height: 20px;
    background: #d6a9c5;
    border-radius: 5px;
}

.section p {
    font-size: 15px;
    color: #746b76;
}


/* =================================
   النبذة التعريفية
================================= */

.about {
    background: #ffffff;
}

.about p {
    line-height: 2.1;
}


/* =================================
   المهارات
================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.skill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fdf2f6;
    border: 1px solid #f3dfe9;
    border-radius: 13px;
    transition: 0.3s ease;
}

.skill:nth-child(2) {
    background: #f3effb;
    border-color: #e7def5;
}

.skill:nth-child(3) {
    background: #eef8f5;
    border-color: #dcefe8;
}

.skill:nth-child(4) {
    background: #f0f5fc;
    border-color: #dfe9f6;
}

.skill:hover {
    transform: translateY(-3px);
}

.skill-icon {
    color: #c28bab;
    font-size: 20px;
}

.skill p {
    font-size: 14px;
    font-weight: 600;
    color: #655768;
}


/* =================================
   المشاريع والإنجازات
================================= */

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 19px;
    background: #f4f0fa;
    border-radius: 14px;
    border: 1px solid #e9e0f3;
}

.project-icon {
    font-size: 28px;
}

.project-card h4 {
    color: #856d9b;
    font-size: 16px;
    margin-bottom: 4px;
}

.project-card p {
    font-size: 14px;
}


/* =================================
   التعليم والمؤهلات العلمية
================================= */

.education-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 5px;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.education-dot {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    background: #c9a8d8;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f3edf8;
}

.education-item:nth-child(2) .education-dot {
    background: #e0adc2;
    box-shadow: 0 0 0 4px #faeff4;
}

.education-item:nth-child(3) .education-dot {
    background: #9dcdbd;
    box-shadow: 0 0 0 4px #edf7f3;
}

.education-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #655768;
}


/* =================================
   التواصل
================================= */

.contact-section {
    text-align: center;
    background: #fbf6fa;
}

.contact-section h3 {
    text-align: right;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #a9d7c6, #8ec5b4);
    color: #365d50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(142, 197, 180, 0.2);
    transition: 0.3s ease;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #8ec5b4, #78b6a2);
    transform: translateY(-3px);
}

.whatsapp-button span {
    font-size: 20px;
}


/* =================================
   التذييل
================================= */

footer {
    text-align: center;
    padding: 22px;
    background: #f5eef5;
    color: #97899a;
    font-size: 12px;
}


/* =================================
   الشاشات الصغيرة
================================= */

@media (max-width: 600px) {

    .container {
        width: 94%;
        margin: 18px auto;
        border-radius: 17px;
    }

    .profile-card {
        padding: 35px 15px 27px;
    }

    .profile-card h1 {
        font-size: 25px;
    }

    .section {
        padding: 23px 20px;
    }

    .section h3 {
        font-size: 18px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill {
        padding: 12px;
    }

    .whatsapp-button {
        width: 100%;
    }
}


/* =================================
   الطباعة وحفظ PDF
================================= */

@media print {

    body {
        background: white;
    }

    .container {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .whatsapp-button {
        background: #a9d7c6 !important;
        color: #365d50 !important;
    }

    .section,
    .profile-card {
        break-inside: avoid;
    }
}


/* =================================
   تأثير ظهور الأقسام
================================= */

.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =================================
   إعدادات تقليل الحركة
================================= */

@media (prefers-reduced-motion: reduce) {

    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
