/* ========================================
   MAGNETIC CTA
   البنية الأساسية والخلفية السينمائية
======================================== */

.vp-magnetic-cta {
    --ai-section-padding: 180px;
    padding-inline: 24px;
    text-align: center;
}

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

.vp-magnetic-cta__glow.glow-one {
    top: -220px;
    left: -160px;
    background: #00d0ff;
    animation: vpMagneticGlowA 12s ease-in-out infinite alternate;
}

.vp-magnetic-cta__glow.glow-two {
    right: -180px;
    bottom: -240px;
    background: #b892ff;
    animation: vpMagneticGlowB 14s ease-in-out infinite alternate;
}

.vp-magnetic-cta__inner {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
}

.vp-magnetic-cta__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    padding: 10px 18px;
    border: 1px solid rgba(184, 146, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #b892ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.vp-magnetic-cta__kicker {
    margin-bottom: 26px;
    border: 1px solid rgba(184, 146, 255, 0.22);
    letter-spacing: 0.22em;
}

.vp-magnetic-cta__title {
    font-size: clamp(52px, 8vw, 108px);
    letter-spacing: -0.07em;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.08),
        0 0 60px rgba(0, 208, 255, 0.10),
        0 0 100px rgba(184, 146, 255, 0.10);
}

.vp-magnetic-cta__text {
    max-width: 760px;
    margin: 30px auto 0;
}

.vp-magnetic-cta__text,
.vp-magnetic-cta__note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.vp-magnetic-cta__action {
    margin-top: 54px;
}

.vp-magnetic-cta__note {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
    letter-spacing: 0.04em;
}

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

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

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

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

/* ========================================
   MAGNETIC BUTTON SYSTEM
   الزر المغناطيسي السينمائي
======================================== */


.vp-magnetic-cta__button {
    min-height: 72px;
    padding: 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
        linear-gradient(135deg, #8f5cff, #5f8bff 55%, #00d0ff);
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -0.01em;
    box-shadow:
        0 24px 80px rgba(0, 208, 255, 0.20),
        0 0 120px rgba(184, 146, 255, 0.18);
    transition:
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.vp-magnetic-cta__button span {
    position: relative;
    z-index: 3;
}

.vp-magnetic-cta__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translateX(-120%);
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.30),
            transparent);
    transition: transform 0.75s cubic-bezier(.19, 1, .22, 1);
}

.vp-magnetic-cta__button::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(135deg,
            rgba(184, 146, 255, 0.95),
            rgba(0, 208, 255, 0.72));
    filter: blur(22px);
    opacity: 0.48;
    transition:
        opacity 0.35s ease,
        filter 0.35s ease;
}

.vp-magnetic-cta__button:hover {
    filter: brightness(1.08);
    box-shadow:
        0 34px 110px rgba(0, 208, 255, 0.30),
        0 0 150px rgba(184, 146, 255, 0.24);
}

.vp-magnetic-cta__button:hover::before {
    transform: translateX(120%);
}

.vp-magnetic-cta__button:hover::after {
    opacity: 0.9;
    filter: blur(30px);
}

/* ========================================
   CTA MOUSE LIGHT
   ضوء سينمائي يتبع الماوس داخل الخاتمة
======================================== */

.vp-magnetic-cta__mouse-light {
    position: absolute;
    left: var(--cta-mouse-x, 50%);
    top: var(--cta-mouse-y, 50%);
    z-index: 1;
    width: 620px;
    height: 620px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.10),
            rgba(0, 208, 255, 0.13) 28%,
            rgba(184, 146, 255, 0.10) 44%,
            transparent 72%);
    filter: blur(26px);
    opacity: 0;
    transition:
        opacity 0.35s ease,
        left 0.10s ease-out,
        top 0.10s ease-out;
}

.vp-magnetic-cta:hover .vp-magnetic-cta__mouse-light {
    opacity: 1;
}

/* ========================================
   CTA ENERGY RINGS
   حلقات طاقة خلف الزر والخاتمة
======================================== */

.vp-magnetic-cta__action {
    position: relative;
}

.vp-magnetic-cta__action::before,
.vp-magnetic-cta__action::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vp-magnetic-cta__action::before {
    width: 360px;
    height: 360px;
    border: 1px solid rgba(0, 208, 255, 0.18);
    box-shadow: 0 0 70px rgba(0, 208, 255, 0.10);
    animation: vpCtaRingRotate 18s linear infinite;
}

.vp-magnetic-cta__action::after {
    width: 520px;
    height: 520px;
    border: 1px dashed rgba(184, 146, 255, 0.16);
    box-shadow: 0 0 90px rgba(184, 146, 255, 0.08);
    animation: vpCtaRingRotate 28s linear infinite reverse;
}

@keyframes vpCtaRingRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   CTA REVEAL MOTION
   دخول سينمائي لعناصر الخاتمة
======================================== */

.vp-magnetic-cta__kicker,
.vp-magnetic-cta__title,
.vp-magnetic-cta__text,
.vp-magnetic-cta__action,
.vp-magnetic-cta__note {
    opacity: 0;
    transform: translateY(42px) scale(0.97);
    filter: blur(14px);
    transition:
        opacity 1s var(--ai-ease),
        transform 1.1s var(--ai-ease),
        filter 1.1s var(--ai-ease);
}

.vp-magnetic-cta.is-ready .vp-magnetic-cta__kicker {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.1s;
}

.vp-magnetic-cta.is-ready .vp-magnetic-cta__title {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.22s;
}

.vp-magnetic-cta.is-ready .vp-magnetic-cta__text {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.36s;
}

.vp-magnetic-cta.is-ready .vp-magnetic-cta__action {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.52s;
}

.vp-magnetic-cta.is-ready .vp-magnetic-cta__note {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.68s;
}

/* ========================================
   CTA TITLE ENERGY LINE
   خط طاقة ناعم تحت العنوان
======================================== */

.vp-magnetic-cta__title {
    position: relative;
}

.vp-magnetic-cta__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 180px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(184, 146, 255, 0.95),
            rgba(0, 208, 255, 0.85),
            transparent);
    box-shadow:
        0 0 18px rgba(0, 208, 255, 0.55),
        0 0 38px rgba(184, 146, 255, 0.35);
    animation: vpCtaTitleLine 3.8s ease-in-out infinite;
}

@keyframes vpCtaTitleLine {

    0%,
    100% {
        width: 140px;
        opacity: 0.45;
    }

    50% {
        width: 260px;
        opacity: 1;
    }
}

/* ========================================
   CTA BACKGROUND PULSE
   نبض خفيف داخل الخلفية السينمائية
======================================== */

.vp-magnetic-cta::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center,
            rgba(0, 208, 255, 0.10),
            rgba(184, 146, 255, 0.08) 34%,
            transparent 68%);
    filter: blur(80px);
    animation: vpCtaPulse 8s ease-in-out infinite;
}

@keyframes vpCtaPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.38;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.62;
    }
}

/* ========================================
   CTA FLOATING ENERGY
   جزيئات طاقة خفيفة بالخلفية
======================================== */

.vp-magnetic-cta__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.vp-magnetic-cta__particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 16px rgba(0, 208, 255, 0.7),
        0 0 30px rgba(184, 146, 255, 0.28);
    opacity: 0.14;
    animation: vpCtaParticleFloat linear infinite;
}

.vp-magnetic-cta__particle:nth-child(1) {
    top: 14%;
    left: 18%;
    animation-duration: 16s;
}

.vp-magnetic-cta__particle:nth-child(2) {
    top: 24%;
    right: 16%;
    animation-duration: 22s;
}

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

.vp-magnetic-cta__particle:nth-child(4) {
    bottom: 14%;
    right: 26%;
    animation-duration: 24s;
}

.vp-magnetic-cta__particle:nth-child(5) {
    top: 48%;
    left: 50%;
    animation-duration: 20s;
}

@keyframes vpCtaParticleFloat {

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

    to {
        transform:
            translate3d(0, -90px, 0) scale(1.35);
    }
}

/* ========================================
   CTA ENERGY ORBIT
   مدار طاقة صغير حول الزر
======================================== */

.vp-magnetic-cta__button-orbit {
    position: absolute;
    inset: -18px;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    animation: vpCtaButtonOrbitRotate 8s linear infinite;
}

.vp-magnetic-cta__button-orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: #00d0ff;
    box-shadow:
        0 0 18px rgba(0, 208, 255, 1),
        0 0 36px rgba(184, 146, 255, 0.55);
}

@keyframes vpCtaButtonOrbitRotate {
    from {
        transform: rotate(0deg);
    }

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

/* ========================================
   CTA RESPONSIVE
   ضبط الخاتمة على التابلت والموبايل
======================================== */

@media (max-width: 900px) {
    .vp-magnetic-cta {
        padding: 140px 22px;
    }

    .vp-magnetic-cta__title {
        font-size: clamp(46px, 10vw, 78px);
        letter-spacing: -0.055em;
    }

    .vp-magnetic-cta__text {
        max-width: 680px;
        font-size: 17px;
    }

    .vp-magnetic-cta__button {
        min-height: 66px;
        padding: 0 34px;
    }

    .vp-magnetic-cta__action::before {
        width: 300px;
        height: 300px;
    }

    .vp-magnetic-cta__action::after {
        width: 420px;
        height: 420px;
    }
}

@media (max-width: 560px) {
    .vp-magnetic-cta {
        padding: 110px 16px;
    }

    .vp-magnetic-cta__kicker {
        font-size: 10px;
        letter-spacing: 0.16em;
        margin-bottom: 22px;
    }

    .vp-magnetic-cta__title {
        font-size: clamp(38px, 13vw, 58px);
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .vp-magnetic-cta__title::after {
        bottom: -18px;
        width: 120px;
    }

    .vp-magnetic-cta__text {
        margin-top: 40px;
        font-size: 16px;
        line-height: 1.75;
    }

    .vp-magnetic-cta__button {
        width: 100%;
        max-width: 340px;
        min-height: 60px;
        padding: 0 24px;
        font-size: 15px;
    }

    .vp-magnetic-cta__note {
        font-size: 13px;
    }

    .vp-magnetic-cta__mouse-light {
        display: none;
    }

    .vp-magnetic-cta__particles {
        opacity: 0.45;
    }

    .vp-magnetic-cta__action::before,
    .vp-magnetic-cta__action::after {
        opacity: 0.45;
    }
}