@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonHover {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

body {
    font-family: Cairo, Arial, sans-serif;
    background: linear-gradient(to right, #f0f8ff, #e0e7ff);
    /* خلفية متدرجة */
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    animation: fadeIn 1s ease-out;
}

h1 {
    color: #0056b3;
    /* لون أزرق للعنوان */
    margin-top: 50px;
    font-size: 3em;
    text-shadow: 2px 2px #cce7ff;
    animation: fadeIn 1s ease-out;
}

p {
    animation: fadeIn 1.5s ease-out;
}

.buttons {
    margin-top: 50px;
    animation: fadeIn 2s ease-out;
}

.buttons a {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    /* لون أزرق للأزرار */
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 1.2em;
    position: relative;
    padding-left: 50px;
    /* مساحة للأيقونة */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.buttons a::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: cover;
}

.buttons a.articles::before {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/news.png');
    /* أيقونة مقالات */
}

.buttons a.tips::before {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/idea.png');
    /* أيقونة نصائح */
}



.buttons a.guides::before {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/book.png');
    /* أيقونة شروحات */
}

.buttons a.qna::before {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/question-mark.png');
    /* أيقونة سؤال جواب */
}

.buttons a.apps::before {
    background-image: url('images/icons/appicon.png');
    /* أيقونة التطبيقات */
}

.buttons a.fun::before {
    background-image: url('https://img.icons8.com/?size=48&id=U2l6PLAlApUs&format=png');
    /* أيقونة  استراحة فيكساتك  */
}

.buttons a.back::before {
    background-image: url('https://img.icons8.com/?size=40&id=41651&format=png');
    /* أيقونة العودة إلى فيكساتك  */
}

.buttons a:hover {
    background-color: #0056b3;
    animation: buttonHover 0.6s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.buttons a:active {
    transform: scale(0.95);
}

footer {
    margin-top: 50px;
    color: #555;
    font-size: 0.9em;
    animation: fadeIn 2.5s ease-out;
}

.tech-background {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(white 1px, transparent 1px), linear-gradient(to right, white 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

/* تأثير الكتابة */
.typing-effect {
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    position: relative;
    font-size: 24px;
    /* حجم النص */
}

.typing-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* تحديد موقع المؤشر على اليسار */
    width: 10px;
    /* عرض المؤشر */
    height: 24px;
    /* ارتفاع المؤشر، يتطابق مع حجم النص */
    background-color: black;
    /* لون المؤشر */
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
