/* عربي: القسم الرئيسي للبلوك، يعطيه مساحة كبيرة وخلفية داكنة سينمائية */
/* English: Main block wrapper with large spacing and dark cinematic background */
.vp-cinematic-features {
    --ai-section-padding: 140px;
    padding-inline: 24px;
}

/* عربي: طبقة الخلفية التي تحتوي التوهجات والشبكة */
/* English: Background layer that holds glows and grid effects */
.vp-cinematic-features__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* عربي: التوهجات العامة داخل الخلفية */
/* English: General glowing orbs inside the background */
.vp-cinematic-features__bg .glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
}

/* عربي: توهج أزرق في الجهة اليسرى */
/* English: Blue glow on the left side */
.vp-cinematic-features__bg .glow-a {
    left: -120px;
    top: 120px;
    background: rgba(42, 132, 255, 0.55);
    animation: vpCinematicFloatA 9s ease-in-out infinite alternate;
}

/* عربي: توهج بنفسجي في الجهة اليمنى */
/* English: Purple glow on the right side */
.vp-cinematic-features__bg .glow-b {
    right: -130px;
    bottom: 80px;
    background: rgba(168, 85, 247, 0.45);
    animation: vpCinematicFloatB 11s ease-in-out infinite alternate;
}

/* عربي: الحاوية الداخلية حتى يبقى المحتوى مضبوط في المنتصف */
/* English: Inner container keeps content centered and controlled */
.vp-cinematic-features__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

/* عربي: رأس البلوك ويحتوي العنوان والوصف */
/* English: Block header containing kicker, title, and description */
.vp-cinematic-features__head {
    max-width: 760px;
    margin: 0 auto 72px;
    text-align: center;
}


.vp-cinematic-features__kicker {
    margin-bottom: 18px;
    border: 1px solid rgba(120, 190, 255, 0.35);
    background: rgba(80, 140, 255, 0.08);
    color: #9fd4ff;
}

/* عربي: عنوان البلوك الكبير */
/* English: Large cinematic block title */
.vp-cinematic-features__title {
    text-shadow: 0 0 40px rgba(80, 160, 255, 0.28);
}

.vp-cinematic-features__text {
    max-width: 670px;
    margin: 24px auto 0;
}

/* عربي: المسرح الرئيسي للكروت والنواة */
/* English: Main stage for cards and center core */
.vp-cinematic-features__stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    min-height: 560px;
    align-items: stretch;
}

/* عربي: كرت الميزة بتصميم زجاجي مستقبلي */
/* English: Futuristic glass feature card */

.vp-cinematic-features__card {
    min-height: 230px;
    padding: 34px;
    border-radius: 34px;
}

/* عربي: لمعان داخلي متحرك داخل الكرت */
/* English: Moving internal highlight inside each card */
.vp-cinematic-features__card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(120deg, transparent 0%, rgba(125, 211, 252, 0.18) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-35%);
    transition: opacity 0.45s ease, transform 0.75s ease;
}

/* عربي: تأثير عند المرور على الكرت */
/* English: Hover effect for the card */
.vp-cinematic-features__card:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow:
        0 36px 110px rgba(0, 0, 0, 0.48),
        0 0 55px rgba(80, 160, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* عربي: تشغيل اللمعة عند المرور */
/* English: Activate highlight on hover */
.vp-cinematic-features__card:hover::before {
    opacity: 1;
    transform: translateX(35%);
}

/* عربي: رقم الكرت */
/* English: Card number */
.vp-cinematic-features__number {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 36px;
    color: rgba(159, 212, 255, 0.55);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

/* عربي: عنوان الكرت */
/* English: Card title */
.vp-cinematic-features__card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* عربي: نص الكرت */
/* English: Card body text */
.vp-cinematic-features__card p {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0;
    color: rgba(226, 236, 255, 0.68);
    font-size: 16px;
    line-height: 1.8;
}

/* عربي: النواة المركزية داخل المسرح */
/* English: Center AI core inside the stage */
.vp-cinematic-features__core {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.38);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(125, 211, 252, 0.28), rgba(15, 23, 42, 0.8) 58%, rgba(2, 6, 23, 0.92));
    box-shadow:
        0 0 70px rgba(80, 160, 255, 0.26),
        inset 0 0 36px rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%);
}

/* عربي: الحلقة الدوارة حول النواة */
/* English: Rotating ring around the core */
.vp-cinematic-features__core::before {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: inherit;
    border: 1px dashed rgba(159, 212, 255, 0.32);
    animation: vpCinematicRotate 18s linear infinite;
}

/* عربي: نبضة ضوئية حول النواة */
/* English: Light pulse around the core */
.vp-cinematic-features__core::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: inherit;
    background: rgba(125, 211, 252, 0.12);
    filter: blur(18px);
    animation: vpCinematicPulse 2.8s ease-in-out infinite;
}

/* عربي: نص AI CORE داخل النواة */
/* English: AI CORE text inside the core */
.vp-cinematic-features__core strong {
    position: relative;
    z-index: 2;
    color: #dff6ff;
    font-size: 18px;
    letter-spacing: 0.18em;
}

/* عربي: زر أسفل البلوك */
/* English: Button below the block */
.vp-cinematic-features__action {
    margin-top: 64px;
    text-align: center;
}

/* عربي: تصميم الزر السينمائي */
/* English: Cinematic button design */
.vp-cinematic-features__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 60px rgba(56, 189, 248, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* عربي: حركة الزر عند المرور */
/* English: Button hover movement */
.vp-cinematic-features__btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(56, 189, 248, 0.28);
}

/* عربي: حركة التوهج الأزرق */
/* English: Blue glow floating animation */
@keyframes vpCinematicFloatA {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(60px, -40px, 0) scale(1.12);
    }
}

/* عربي: حركة التوهج البنفسجي */
/* English: Purple glow floating animation */
@keyframes vpCinematicFloatB {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-60px, 30px, 0) scale(1.1);
    }
}

/* عربي: دوران الحلقة حول النواة */
/* English: Core ring rotation */
@keyframes vpCinematicRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* عربي: نبض النواة */
/* English: Core breathing pulse */
@keyframes vpCinematicPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.92);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* عربي: تحسين العرض على الشاشات المتوسطة */
/* English: Better layout for medium screens */
@media (max-width: 900px) {
    .vp-cinematic-features {
        padding: 100px 18px;
    }

    .vp-cinematic-features__stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .vp-cinematic-features__core {
        position: relative;
        left: auto;
        top: auto;
        margin: 12px auto;
        transform: none;
        order: -1;
    }
}

/* عربي: تحسين العرض على الجوال */
/* English: Mobile layout refinement */
@media (max-width: 560px) {
    .vp-cinematic-features__title {
        font-size: 42px;
    }

    .vp-cinematic-features__card {
        min-height: auto;
        padding: 26px;
        border-radius: 26px;
    }

    .vp-cinematic-features__card h3 {
        font-size: 24px;
    }
}

/* عربي: خط ضوئي سينمائي يمر داخل الكرت عند المرور عليه */
/* English: Cinematic scanning light moving across the card on hover */
.vp-cinematic-features__card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 180px;
    height: 320%;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            rgba(125, 211, 252, 0.22),
            rgba(255, 255, 255, 0.08),
            transparent);
    transform: rotate(18deg) translateX(-260%);
    transition: transform 1.1s cubic-bezier(.19, 1, .22, 1);
    pointer-events: none;
}

/* عربي: تشغيل الضوء المتحرك عند المرور على الكرت */
/* English: Activate the moving scan light on card hover */
.vp-cinematic-features__card:hover::after {
    transform: rotate(18deg) translateX(320%);
}

/* عربي: طبقة توهج ناعمة حول الكرت */
/* English: Soft glowing layer around the card */
.vp-cinematic-features__card {
    isolation: isolate;
}

/* عربي: توهج خفيف حول حدود الكرت */
/* English: Subtle glow around the card borders */
.vp-cinematic-features__card::before {
    background:
        linear-gradient(135deg,
            rgba(125, 211, 252, 0.10),
            rgba(168, 85, 247, 0.06),
            transparent 60%);

    opacity: 0.6;
}

/* عربي: زيادة التوهج عند المرور */
/* English: Increase glow intensity on hover */
.vp-cinematic-features__card:hover {
    box-shadow:
        0 36px 110px rgba(0, 0, 0, 0.48),
        0 0 80px rgba(80, 160, 255, 0.22),
        0 0 120px rgba(168, 85, 247, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* عربي: عند المرور على البلوك تصبح النواة أقوى وكأنها تشغل النظام */
/* English: On block hover, the AI core becomes stronger as if powering the system */
.vp-cinematic-features:hover .vp-cinematic-features__core {
    box-shadow:
        0 0 90px rgba(80, 160, 255, 0.42),
        0 0 150px rgba(168, 85, 247, 0.20),
        inset 0 0 42px rgba(255, 255, 255, 0.12);
}

/* عربي: نبضة ضوء متتابعة للكروت عند المرور على البلوك */
/* English: Sequential light pulse for cards when hovering over the block */
.vp-cinematic-features:hover .vp-cinematic-features__card {
    animation: vpCardEnergyPulse 1.8s ease-in-out both;
}

/* عربي: تأخير النبضة للكرت الأول */
/* English: Pulse delay for card one */
.vp-cinematic-features:hover .card-one {
    animation-delay: 0s;
}

/* عربي: تأخير النبضة للكرت الثاني */
/* English: Pulse delay for card two */
.vp-cinematic-features:hover .card-two {
    animation-delay: 0.12s;
}

/* عربي: تأخير النبضة للكرت الثالث */
/* English: Pulse delay for card three */
.vp-cinematic-features:hover .card-three {
    animation-delay: 0.24s;
}

/* عربي: تأخير النبضة للكرت الرابع */
/* English: Pulse delay for card four */
.vp-cinematic-features:hover .card-four {
    animation-delay: 0.36s;
}

/* عربي: حركة نبضة الطاقة داخل الكرت */
/* English: Energy pulse animation inside the card */
@keyframes vpCardEnergyPulse {
    0% {
        border-color: rgba(150, 210, 255, 0.18);
    }

    45% {
        border-color: rgba(125, 211, 252, 0.65);
        box-shadow:
            0 36px 110px rgba(0, 0, 0, 0.48),
            0 0 70px rgba(80, 160, 255, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    100% {
        border-color: rgba(150, 210, 255, 0.18);
    }
}

/* عربي: حركة دخول ناعمة للكروت عند تحميل الصفحة بدون إخفائها */
/* English: Soft card entrance on page load without hiding them */
.vp-cinematic-features__card {
    animation: vpCardEntrance 1.2s cubic-bezier(.19, 1, .22, 1) both;
}

/* عربي: تأخير متتابع لكل كرت */
/* English: Staggered delay for every card */
.vp-cinematic-features .card-one {
    animation-delay: 0.1s;
}

.vp-cinematic-features .card-two {
    animation-delay: 0.22s;
}

.vp-cinematic-features .card-three {
    animation-delay: 0.34s;
}

.vp-cinematic-features .card-four {
    animation-delay: 0.46s;
}

/* عربي: حركة الدخول السينمائية */
/* English: Cinematic entrance motion */
@keyframes vpCardEntrance {
    from {
        opacity: 0.15;
        transform: translateY(70px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* عربي: حركة دخول رأس البلوك بالكامل */
/* English: Entrance animation for the block header */
.vp-cinematic-features__kicker,
.vp-cinematic-features__title,
.vp-cinematic-features__text,
.vp-cinematic-features__action {
    animation: vpHeaderEntrance 1s cubic-bezier(.19, 1, .22, 1) both;
}

/* عربي: تأخير دخول العنوان الصغير */
/* English: Kicker entrance delay */
.vp-cinematic-features__kicker {
    animation-delay: 0.05s;
}

/* عربي: تأخير دخول العنوان الرئيسي */
/* English: Main title entrance delay */
.vp-cinematic-features__title {
    animation-delay: 0.16s;
}

/* عربي: تأخير دخول النص */
/* English: Text entrance delay */
.vp-cinematic-features__text {
    animation-delay: 0.28s;
}

/* عربي: تأخير دخول الزر */
/* English: Button entrance delay */
.vp-cinematic-features__action {
    animation-delay: 0.65s;
}

/* عربي: حركة دخول ناعمة من الأعلى */
/* English: Soft entrance from above */
@keyframes vpHeaderEntrance {
    from {
        opacity: 0;
        transform: translateY(-28px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* عربي: تحسين فخامة الزر عند المرور */
/* English: Make the button hover feel more premium */
.vp-cinematic-features__btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 28px 90px rgba(56, 189, 248, 0.30),
        0 0 80px rgba(168, 85, 247, 0.16);
}

/* عربي: تجهيز الزر ليحتوي لمعان داخلي */
/* English: Prepare the button for an inner shine effect */
.vp-cinematic-features__btn {
    position: relative;
    overflow: hidden;
}

/* عربي: لمعة تمر داخل الزر عند المرور */
/* English: Shine sweep inside the button on hover */
.vp-cinematic-features__btn::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -50%;
    width: 90px;
    height: 260%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: rotate(18deg) translateX(-180%);
    transition: transform 0.9s cubic-bezier(.19, 1, .22, 1);
}

/* عربي: تشغيل لمعة الزر عند المرور */
/* English: Activate button shine on hover */
.vp-cinematic-features__btn:hover::before {
    transform: rotate(18deg) translateX(420%);
}

/* عربي: إبقاء نص الزر فوق اللمعة */
/* English: Keep button text above the shine */
.vp-cinematic-features__btn {
    z-index: 1;
}

/* =========================================================
   CINEMATIC FEATURES
   Mobile/tablet stable layout
========================================================= */

@media (max-width: 900px) {

    .vp-cinematic-features__stage {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px;
        min-height: auto;
    }

    .vp-cinematic-features__core {
        position: relative !important;
        inset: auto !important;

        order: -1 !important;
        flex: 0 0 auto !important;

        width: 190px;
        height: 190px;
        margin: 0 auto 34px !important;

        transform: none !important;
        animation: none !important;
    }

    .vp-cinematic-features__card {
        width: 100%;
        min-height: auto;
        transform: none !important;
    }

    .vp-cinematic-features:hover .vp-cinematic-features__card,
    .vp-cinematic-features__card:hover {
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 560px) {

    .vp-cinematic-features__core {
        width: 160px;
        height: 160px;
        margin-bottom: 30px !important;
    }

    .vp-cinematic-features__core::before {
        inset: -18px;
    }

    .vp-cinematic-features__core strong {
        font-size: 15px;
    }
}