/* الخط العام */
body {
    font-family: 'Noto Kufi Arabic', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #c7d2ff, #d6b3ff, #e0c6ff, #c7d2ff);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    color: #1b1b1b;
}

/* حركة التدرج */
@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* القسم الرئيسي */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 20px;
    text-align: center;
}

/* الشعار */
.logo-container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.logo {
    width: 140px;
}

/* العنوان */
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.title-text h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.title-text span {
    display: block;
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin-top: 8px;
}

/* لمحة عن المنصة */
.overview {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.6;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 7.5s;
}

.buttons .btn {
    padding: 18px 50px;

    /* تدرج أزرق احترافي */
    background: linear-gradient(
        90deg,
        #1e3a8a,   /* أزرق غامق */
        #2563eb,   /* أزرق متوسط */
        #38bdf8    /* أزرق فاتح */
    );

    color: white;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;

    box-shadow:
        0 0 18px rgba(37,99,235,0.5),
        0 0 35px rgba(56,189,248,0.35);
}

.buttons .btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 30px rgba(106,90,205,0.8), 0 0 50px rgba(0,191,255,0.6);
}
.back-btn {
    background: linear-gradient(
        90deg,
        #1e3a8a,   /* أزرق غامق */
        #2563eb,   /* أزرق متوسط */
        #38bdf8    /* أزرق فاتح */
    );
    color: #fff;
    padding: 8px 16px;          /* الحجم الأصغر */
    border-radius: 10px;        /* الانحناءات نفسها */
    font-family: 'Noto Kufi Arabic', sans-serif;
    text-decoration: none;
    font-size: 14px;            /* أصغر خط */
    font-weight: 600;
    display: inline-block;
    transition: all 0.35s ease;
    box-shadow:
        0 0 12px rgba(37,99,235,0.5),
        0 0 25px rgba(56,189,248,0.35);
}

.back-btn:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow:
        0 0 25px rgba(37,99,235,0.8),
        0 0 45px rgba(56,189,248,0.6);
}


/* استجابة الشاشة الكبيرة */
@media (min-width: 800px) {
    .logo-title { flex-direction: row; align-items: center; gap: 30px; }
    .buttons { flex-direction: row; gap: 25px; justify-content: center; }
}
/* أيقونات البطاقات */
.card-icon {
    width: 80px;
    margin-bottom: 15px;
}

/* تصميم البطاقات */
.card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

/* ترتيب ظهور البطاقة لتأثير متدرج */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* يبقي البطاقات في المنتصف */
    gap: 25px; /* مسافة بين البطاقات */
    max-width: 1200px; /* يقلل من طول البطاقات على الحواف */
    margin: 0 auto; /* يبقي كل شيء في المنتصف */
    padding: 30px 20px;
}

.card:hover {
    transform: translateY(-5px);
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة الشاشة الكبيرة */
@media (min-width: 800px) {
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* زر موحد لجميع الأزرار في المنصة */
/* توحيد كل الأزرار */
.btn {
    background: linear-gradient(
        90deg,
        #1e3a8a,  /* أزرق غامق */
        #2563eb,  /* أزرق متوسط */
        #38bdf8   /* أزرق فاتح */
    );
    color: white;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 16px; /* ممكن تخلي 20px إذا تبغي نفس حجم أزرار .buttons */
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.35s ease;
    box-shadow:
        0 0 18px rgba(37,99,235,0.5),
        0 0 35px rgba(56,189,248,0.35);
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px rgba(37,99,235,0.8), 0 0 50px rgba(56,189,248,0.6);
}

/* حركة التدرج الديناميكي للخلفية */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Kufi Arabic', sans-serif;

    /* التدرج الأزرق الفاتح + الأبيض */
    background: linear-gradient(
        45deg,
        #ffffff,
        #eaf4ff,
        #d8ecff,
        #ffffff
    );

    background-size: 400% 400%;
    animation: gradientMove 25s ease infinite;
    overflow-x: hidden;
}

/* حركة التدرج */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* تأثير الظهور التدريجي للعناصر */
.hero-section > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.hero-section .logo-container {
    animation-delay: 0.5s;
}

.hero-section .title-text {
    animation-delay: 0.7s;
}

.hero-section .overview {
    animation-delay: 0.9s;
}

.hero-section .buttons {
    animation-delay: 1.1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الأزرار */
.buttons .btn {
    padding: 18px 50px;

    background: linear-gradient(
        135deg,
        #1e40af,   /* أزرق غامق */
        #2563eb,   /* أزرق أساسي */
        #38bdf8    /* أزرق فاتح */
    );

    color: white;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;

    transition: all 0.35s ease;

    box-shadow:
        0 8px 20px rgba(37,99,235,0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
}


.buttons .btn:hover {
    background: #4a57a0;
    transform: translateY(-3px);
}

/* ===== شعار مع تأثير Morph + Glow ===== */
.logo-container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    margin-bottom: 30px;
    animation: morphAppear 2s ease forwards;
    position: relative;
    overflow: hidden;
}
.logo-container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    margin-bottom: 30px;
    animation: morphAppear 2s ease forwards;
    position: relative;
    overflow: hidden;
}

/* الشعار نفسه */
.logo {
    width: 140px;
    display: block;
    position: relative;
    z-index: 1;
}

/* لمعة متحركة */
.logo-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

/* Morph effect للشعار عند الظهور */
@keyframes morphAppear {
    0% {
        transform: scale(0) rotateY(180deg) rotateX(180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotateY(10deg) rotateX(-10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotateY(0deg) rotateX(0deg);
    }
}

/* الشعار نفسه */
.logo {
    width: 140px;
    display: block;
    animation: logoGlow 2s ease-in-out 2s infinite alternate;
}

/* Morph effect: يظهر ويكبر ويتغير شكله */
@keyframes morphAppear {
    0% {
        transform: scale(0) rotateY(180deg) rotateX(180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotateY(10deg) rotateX(-10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotateY(0deg) rotateX(0deg);
    }
}

/* Glow effect بعد الاستقرار */
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 0px rgba(59,130,246,0));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(59,130,246,0.7));
    }
    100% {
        filter: drop-shadow(0 0 0px rgba(59,130,246,0));
    }
}


/* ===== نصوص مع تأثير كتابة وGlow ===== */
.title-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #1f2d3d;
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid rgba(0,0,0,0.7);
    white-space: nowrap;
    width: 0;
    animation: typewriter 2s steps(30) forwards 2.5s, glowText 2s ease-in-out infinite alternate 5s;
}

@keyframes typewriter { to { width: 100%; } }
@keyframes glowText {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff; }
    100% { text-shadow: 0 0 15px #fff, 0 0 25px #fff; }
}

.title-text span {
    display: block;
    font-size: 22px;
    font-weight: 400;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 5.5s;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== لمحة عامة ===== */
.overview {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 900px;
    background-color: rgba(255,255,255,0.85);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 6.5s;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 7.5s;
}

.buttons .btn {
    padding: 18px 50px;

    /* تدرج أزرق احترافي */
    background: linear-gradient(
        90deg,
        #1e3a8a,   /* أزرق غامق */
        #2563eb,   /* أزرق متوسط */
        #38bdf8    /* أزرق فاتح */
    );

    color: white;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;

    box-shadow:
        0 0 18px rgba(37,99,235,0.5),
        0 0 35px rgba(56,189,248,0.35);
}

.buttons .btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 30px rgba(106,90,205,0.8), 0 0 50px rgba(0,191,255,0.6);
}

/* ===== استجابة الشاشة ===== */
@media (min-width: 800px) {
    .logo-title {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    .buttons {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
}
