/* ========================================
   AI SHOWCASE RESULTS
   أساس البلوك + الخلفية + رأس القسم
   Base section + background + section header
======================================== */

.vp-ai-showcase {
    --ai-section-padding: 140px;
    padding-inline: 24px;
}


.vp-ai-showcase__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vp-ai-showcase__glow {
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 999px;
    filter: blur(150px);
    opacity: 0.18;
    animation: vpShowcaseGlowFloat 12s ease-in-out infinite alternate;
}

.vp-ai-showcase__glow.glow-one {
    top: -150px;
    left: -130px;
    background: #7b61ff;
}

.vp-ai-showcase__glow.glow-two {
    right: -150px;
    bottom: -170px;
    background: #00d0ff;
    animation-delay: 2s;
}

.vp-ai-showcase__inner {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
}

.vp-ai-showcase__head {
    max-width: 820px;
    margin: 0 auto 54px;
    text-align: center;
}


.vp-ai-showcase__kicker {
    margin-bottom: 22px;
    border: 1px solid rgba(184, 146, 255, 0.22);
}


.vp-ai-showcase__text {
    max-width: 720px;
    margin: 26px auto 0;
}

@keyframes vpShowcaseGlowFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

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

/* ========================================
   SHOWCASE STATS
   أرقام النتائج والمؤشرات
======================================== */

.vp-ai-showcase__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 860px;
    margin: 0 auto 82px;
}

.vp-ai-showcase__stat {
    position: relative;
    overflow: hidden;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(8, 15, 30, 0.72);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.vp-ai-showcase__stat::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(120deg,
            transparent,
            rgba(0, 208, 255, 0.14),
            rgba(184, 146, 255, 0.12),
            transparent);
    opacity: 0;
    transform: translateX(-40%);
    transition:
        opacity 0.45s ease,
        transform 0.85s cubic-bezier(.19, 1, .22, 1);
}

.vp-ai-showcase__stat:hover::before {
    opacity: 1;
    transform: translateX(40%);
}

.vp-ai-showcase__stat strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.055em;
    text-shadow:
        0 0 28px rgba(0, 208, 255, 0.16),
        0 0 42px rgba(184, 146, 255, 0.12);
}

.vp-ai-showcase__stat span {
    position: relative;
    z-index: 2;
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   CINEMATIC SHOWCASE GALLERY
   معرض الصور السينمائي وطبقات الواجهات
======================================== */

.vp-ai-showcase__gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        "main side-a"
        "main side-b";
    gap: 26px;
    min-height: 720px;
}

.vp-ai-showcase__gallery::before {
    content: "";
    position: absolute;
    inset: 8%;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    background:
        radial-gradient(circle,
            rgba(0, 208, 255, 0.16),
            rgba(184, 146, 255, 0.10) 36%,
            transparent 70%);
    filter: blur(70px);
    opacity: 0.85;
}


.vp-ai-showcase__card {
    z-index: 2;
    border-radius: 34px;
}

.vp-ai-showcase__card.card-one {
    grid-area: main;
    min-height: 720px;
}

.vp-ai-showcase__card.card-two {
    grid-area: side-a;
}

.vp-ai-showcase__card.card-three {
    grid-area: side-b;
}

.vp-ai-showcase__card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 208, 255, 0.38);
    box-shadow:
        0 44px 130px rgba(0, 0, 0, 0.52),
        0 0 80px rgba(0, 208, 255, 0.16),
        0 0 120px rgba(184, 146, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.vp-ai-showcase__media {
    position: relative;
    overflow: hidden;
    height: 70%;
    min-height: 280px;
    background:
        radial-gradient(circle at 30% 20%, rgba(184, 146, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.vp-ai-showcase__card.card-one .vp-ai-showcase__media {
    min-height: 520px;
}

.vp-ai-showcase__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.42)),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 70%);
    opacity: 0.75;
}

.vp-ai-showcase__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transform: scale(1.035);
    filter:
        saturate(1.12) contrast(1.06);
    transition:
        transform 0.9s cubic-bezier(.19, 1, .22, 1),
        filter 0.55s ease;
}

.vp-ai-showcase__card:hover .vp-ai-showcase__media img {
    transform: scale(1.095);
    filter:
        saturate(1.22) contrast(1.1) brightness(1.04);
}

.vp-ai-showcase__content {
    position: relative;
    z-index: 3;
    padding: 28px;
}

.vp-ai-showcase__card.card-one .vp-ai-showcase__content {
    padding: 34px;
}

.vp-ai-showcase__content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.vp-ai-showcase__content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 16px;
    line-height: 1.75;
}

.vp-ai-showcase__card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -45%;
    width: 180px;
    height: 320%;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            rgba(0, 208, 255, 0.20),
            rgba(184, 146, 255, 0.14),
            transparent);
    transform: rotate(18deg) translateX(-260%);
    transition: transform 1.1s cubic-bezier(.19, 1, .22, 1);
}

.vp-ai-showcase__card:hover::after {
    transform: rotate(18deg) translateX(360%);
}

/* ========================================
   DYNAMIC IMAGE GLOW
   توهج حي حول واجهات العرض
======================================== */

.vp-ai-showcase__media {
    isolation: isolate;
}

.vp-ai-showcase__media::after {
    content: "";
    position: absolute;
    inset: 12%;
    z-index: 0;
    pointer-events: none;
    border-radius: 32px;
    background:
        radial-gradient(circle,
            rgba(0, 208, 255, 0.24),
            rgba(184, 146, 255, 0.14) 42%,
            transparent 72%);
    filter: blur(38px);
    opacity: 0.55;
    transform: scale(0.88);
    transition:
        opacity 0.55s ease,
        transform 0.75s cubic-bezier(.19, 1, .22, 1);
}

.vp-ai-showcase__card:hover .vp-ai-showcase__media::after {
    opacity: 1;
    transform: scale(1.06);
}

/* ========================================
   FLOATING UI BADGES
   شرائح واجهة عائمة فوق صور العرض
======================================== */

.vp-ai-showcase__badge {
    position: absolute;
    z-index: 4;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(0, 208, 255, 0.28);
    border-radius: 999px;
    background: rgba(5, 8, 18, 0.62);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.26),
        0 0 28px rgba(0, 208, 255, 0.12);
}

.vp-ai-showcase__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #00d0ff;
    box-shadow:
        0 0 12px rgba(0, 208, 255, 1),
        0 0 28px rgba(184, 146, 255, 0.45);
    animation: vpShowcaseBadgePulse 1.6s ease-in-out infinite;
}

@keyframes vpShowcaseBadgePulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* ========================================
   FLOATING MINI UI
   طبقات واجهة صغيرة تطفو فوق الصور
======================================== */

.vp-ai-showcase__mini-ui {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    width: 170px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(5, 8, 18, 0.58);
    backdrop-filter: blur(18px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(0, 208, 255, 0.10);
    animation: vpShowcaseMiniFloat 4.8s ease-in-out infinite;
}

.vp-ai-showcase__mini-ui span {
    display: block;
    height: 7px;
    margin-bottom: 9px;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            rgba(184, 146, 255, 0.95),
            rgba(0, 208, 255, 0.65));
}

.vp-ai-showcase__mini-ui span:nth-child(1) {
    width: 72%;
}

.vp-ai-showcase__mini-ui span:nth-child(2) {
    width: 100%;
    opacity: 0.62;
}

.vp-ai-showcase__mini-ui span:nth-child(3) {
    width: 46%;
    margin-bottom: 0;
    opacity: 0.86;
}

@keyframes vpShowcaseMiniFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   SHOWCASE DEPTH MOTION
   تهيئة حركة العمق للمعرض
======================================== */

.vp-ai-showcase__gallery,
.vp-ai-showcase__card {
    will-change: transform;
}

/* ========================================
   SHOWCASE REVEAL MOTION
   حركة دخول سينمائية للعنوان والأرقام والمعرض
======================================== */

.vp-ai-showcase__kicker,
.vp-ai-showcase__title,
.vp-ai-showcase__text,
.vp-ai-showcase__stat,
.vp-ai-showcase__card {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
    transition:
        opacity 0.95s ease,
        transform 1s cubic-bezier(.19, 1, .22, 1),
        filter 0.95s ease;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__kicker,
.vp-ai-showcase.is-ready .vp-ai-showcase__title,
.vp-ai-showcase.is-ready .vp-ai-showcase__text,
.vp-ai-showcase.is-ready .vp-ai-showcase__stat,
.vp-ai-showcase.is-ready .vp-ai-showcase__card {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.vp-ai-showcase.is-ready .vp-ai-showcase__kicker {
    transition-delay: 0.08s;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__title {
    transition-delay: 0.18s;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__text {
    transition-delay: 0.30s;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__stat:nth-child(1) {
    transition-delay: 0.42s;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__stat:nth-child(2) {
    transition-delay: 0.52s;
}

.vp-ai-showcase.is-ready .vp-ai-showcase__stat:nth-child(3) {
    transition-delay: 0.62s;
}

.vp-ai-showcase.is-ready .card-one {
    transition-delay: 0.76s;
}

.vp-ai-showcase.is-ready .card-two {
    transition-delay: 0.90s;
}

.vp-ai-showcase.is-ready .card-three {
    transition-delay: 1.04s;
}

/* ========================================
   SCROLL DEPTH CINEMA
   حركة عمق الصور أثناء السكرول
======================================== */

.vp-ai-showcase__media img {
    will-change: transform;
}

/* ========================================
   AI CURSOR LIGHT
   إضاءة ذكية تتبع الماوس داخل المعرض
======================================== */

.vp-ai-showcase__cursor-light {
    position: absolute;
    left: var(--showcase-light-x, 50%);
    top: var(--showcase-light-y, 50%);
    z-index: 1;
    width: 520px;
    height: 520px;
    pointer-events: none;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.10),
            rgba(0, 208, 255, 0.12) 26%,
            rgba(184, 146, 255, 0.10) 42%,
            transparent 72%);
    filter: blur(26px);
    opacity: 0;
    transition:
        opacity 0.35s ease,
        left 0.08s linear,
        top 0.08s linear;
}

.vp-ai-showcase__gallery:hover .vp-ai-showcase__cursor-light {
    opacity: 1;
}

/* ========================================
   GLASS REFLECTIONS
   انعكاسات زجاجية حية فوق الكروت
======================================== */

.vp-ai-showcase__card {
    isolation: isolate;
}

.vp-ai-showcase__card-reflection {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}

.vp-ai-showcase__card-reflection::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 180px;
    height: 320%;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.03),
            transparent);
    transform:
        rotate(18deg) translateX(var(--reflection-shift, -260%));
    transition: transform 0.18s linear;
    opacity: 0.85;
}

/* ========================================
   ACTIVE SHOWCASE FOCUS
   تركيز بصري على الكرت النشط
======================================== */

.vp-ai-showcase__gallery:hover .vp-ai-showcase__card {
    opacity: 0.52;
    transform: scale(0.985);
    filter: saturate(0.72);
}

.vp-ai-showcase__gallery .vp-ai-showcase__card:hover {
    opacity: 1;
    transform: scale(1.02);
    filter: saturate(1.06);
    z-index: 10;
}

/* ========================================
   RESPONSIVE CINEMATIC LAYOUT
   ضبط المعرض على التابلت والموبايل
======================================== */

@media (max-width: 1100px) {

    .vp-ai-showcase {
        padding: 120px 22px;
    }

    .vp-ai-showcase__gallery {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side-a"
            "side-b";
        min-height: auto;
    }

    .vp-ai-showcase__card.card-one {
        min-height: auto;
    }

    .vp-ai-showcase__card.card-one .vp-ai-showcase__media {
        min-height: 440px;
    }

    .vp-ai-showcase__stats {
        max-width: 100%;
    }
}

@media (max-width: 820px) {

    .vp-ai-showcase {
        padding: 100px 18px;
    }

    .vp-ai-showcase__stats {
        grid-template-columns: 1fr;
    }

    .vp-ai-showcase__stat {
        padding: 24px;
    }

    .vp-ai-showcase__gallery {
        gap: 22px;
    }

    .vp-ai-showcase__media {
        min-height: 300px;
    }

    .vp-ai-showcase__card.card-one .vp-ai-showcase__media {
        min-height: 340px;
    }

    .vp-ai-showcase__mini-ui {
        width: 150px;
        padding: 12px;
    }

    .vp-ai-showcase__badge {
        top: 16px;
        left: 16px;
    }
}

@media (max-width: 560px) {

    .vp-ai-showcase {
        padding: 90px 16px;
    }

    .vp-ai-showcase__head {
        margin-bottom: 42px;
    }

    .vp-ai-showcase__title {
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: -0.05em;
    }

    .vp-ai-showcase__text {
        font-size: 16px;
        line-height: 1.75;
    }

    .vp-ai-showcase__card {
        border-radius: 26px;
    }

    .vp-ai-showcase__content {
        padding: 22px;
    }

    .vp-ai-showcase__content h3 {
        font-size: 28px;
    }

    .vp-ai-showcase__content p {
        font-size: 15px;
    }

    .vp-ai-showcase__badge {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .vp-ai-showcase__mini-ui {
        right: 14px;
        bottom: 14px;
        width: 132px;
        border-radius: 16px;
    }

    .vp-ai-showcase__cursor-light {
        display: none;
    }
}

/* ========================================
   AMBIENT AI PARTICLES
   جزيئات ضوء خفيفة داخل الخلفية
======================================== */

.vp-ai-showcase__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vp-ai-showcase__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 14px rgba(0, 208, 255, 0.65),
        0 0 24px rgba(184, 146, 255, 0.22);
    opacity: 0.18;
    animation: vpParticleFloat linear infinite;
}

.vp-ai-showcase__particle:nth-child(1) {
    top: 12%;
    left: 18%;
    animation-duration: 18s;
}

.vp-ai-showcase__particle:nth-child(2) {
    top: 26%;
    right: 12%;
    animation-duration: 24s;
}

.vp-ai-showcase__particle:nth-child(3) {
    bottom: 18%;
    left: 28%;
    animation-duration: 20s;
}

.vp-ai-showcase__particle:nth-child(4) {
    bottom: 12%;
    right: 24%;
    animation-duration: 26s;
}

@keyframes vpParticleFloat {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -80px, 0);
    }
}

