@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    /* تم تغيير height إلى min-height للسماح بالتمرير عند كثرة الروابط */
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f7fa, #fce4ec);
    font-family: "Tajawal", sans-serif;
    display: flex;
    justify-content: center;
    /* التوسيط يبدأ من الأعلى لضمان عدم اختفاء الشعار */
    align-items: flex-start; 
    padding: 40px 20px;
}

.links-card {
    background-color: rgb(255, 255, 255);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* لضمان بقاء الكارت منسقاً مهما زاد المحتوى */
    height: auto;
}

.avatar {
    /* تصغير الحجم قليلاً ليناسب عدد الروابط الكبيرة */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.08);
}

.links-card h1 {
    margin-bottom: 10px;
    font-size: 26px;
    color: #222;
    line-height: 1.2;
}

.bio {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    font-weight: bold;
}

.tagline {
    font-style: italic;
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.5;
}

.links {
    width: 100%;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0f7fa;
    color: #00796b;
    padding: 15px;
    margin: 12px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.links a:hover {
    background-color: #b2ebf2;
    color: #004d40;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,121,107,0.1);
    border: 1px solid #00796b;
}

.links a i {
    margin-right: 12px;
    font-size: 20px;
}

footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

/* تحسين العرض على الشاشات الصغيرة جداً */
@media (max-width: 400px) {
    .links-card {
        padding: 20px 15px;
    }
    .links-card h1 {
        font-size: 22px;
    }
}

footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.designer {
    margin-top: 8px;
    font-size: 11px; 
}

.designer a {
    color: #00796b; 
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.designer a:hover {
    color: #004d40;
    text-decoration: underline; 
}