/* استيراد خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* إعدادات عامة وخلفية متدرجة */
body {
    font-family: 'Cairo', sans-serif;
    /* خلفية متدرجة بألوان هادئة وعصرية */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #1c1f16;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* تصميم البطاقة الزجاجية */
.card {
    background: rgba(255, 255, 255, 0.85); /* لون أبيض شفاف */
    backdrop-filter: blur(12px); /* تأثير الزجاج */
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 24px; /* حواف دائرية أكثر */
    border: 1px solid rgba(255, 255, 255, 0.6); /* إطار زجاجي خفيف */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* ظل عميق وناعم */
    text-align: center;
    /* حركة ناعمة عند التمرير */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* حركة الظهور عند فتح الصفحة */
    animation: fadeIn 1s ease-out;
}

/* حركة البطاقة عند تمرير الماوس */
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* تنسيق الصورة الشخصية مع إطار متوهج */
.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #8ec5fc, 0 8px 20px rgba(0,0,0,0.1); /* إطار مزدوج وتوهج */
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.card:hover .profile-img {
    transform: scale(1.08) rotate(3deg); /* تكبير ودوران خفيف */
}

/* تنسيق العناوين */
h1 { 
    color: #1a1a2e; 
    font-size: 1.8rem; 
    margin: 10px 0 5px 0; 
    font-weight: 700;
}

h2 { 
    font-size: 1rem; 
    color: #667; 
    font-weight: 600; 
    margin-bottom: 20px; 
    letter-spacing: 0.5px;
}

.bio { 
    line-height: 1.8; 
    color: #445; 
    margin-bottom: 25px; 
    font-size: 0.95rem;
}

/* تنسيق المهارات (على شكل كبسولات) */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.skills span {
    background: linear-gradient(120deg, #f0f4ff 0%, #e2e8f0 100%);
    color: #334;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* تنسيق أزرار التواصل */
.contact-links { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
}

.btn { 
    text-decoration: none; 
    padding: 12px 24px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* زر الواتساب */
.whatsapp { 
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); 
    color: white; 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* زر لينكد إن */
.linkedin { 
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%); 
    color: white; 
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

/* حركة الأزرار عند تمرير الماوس */
.btn:hover { 
    transform: translateY(-3px); 
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* تعريف حركة الظهور */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}