/* إعادة تعيين الهوامش والحشو */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تنسيق عام للصفحة */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0074D9, #1A1A1A, #0074D9);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* تأثير التدرج اللوني */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* تنسيق الرأس */
header {
    margin-bottom: 30px;
}

header .profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 2rem;
    margin: 15px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    color: #eee;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* تنسيق الروابط */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

/* تنسيق زر العودة */
#back-button {
    grid-column: 1 / -1; /* يمتد على جميع الأعمدة */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 100%; /* يمتد على العرض بالكامل */
}

#back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* تنسيق الأزرار */
.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.link-button i {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* تنسيق التذييل */
footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
