/**
 * Zaki Hero Widget — Styles
 * Namespaced with .zaki- prefix to avoid conflicts with the theme.
 */

/* ─── Hero Shell ────────────────────────────────────────── */
.zaki-hero-shell {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 32px 0 80px;
    isolation: isolate;
    background: #f0f4ff;
}

/* Mesh blobs */
.zaki-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    z-index: -2;
    pointer-events: none;
    animation: zakiBlobDrift 12s ease-in-out infinite alternate;
}

.zaki-blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, transparent 55%),
        radial-gradient(circle at 70% 70%, #a78bfa, transparent 55%);
    animation-delay: 0s;
}

.zaki-blob-2 {
    width: 560px;
    height: 560px;
    bottom: -240px;
    right: -200px;
    background: radial-gradient(circle at 35% 40%, #93c5fd, transparent 55%),
        radial-gradient(circle at 70% 70%, #4f46e5, transparent 58%);
    animation-delay: -6s;
}

.zaki-blob-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 65%);
    animation-delay: -3s;
}

@keyframes zakiBlobDrift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.12) translate(20px, -20px);
    }
}

/* Grid */
.zaki-grid-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.40;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 40% 30%, black 0 40%, transparent 72%);
}

/* Particles canvas */
.zaki-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ─── Layout ─────────────────────────────────────────────── */
.zaki-hero-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top row */
.zaki-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.zaki-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.20);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    transition: box-shadow .22s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1);
}

.zaki-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.20);
}

.zaki-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #1d4ed8;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.zaki-dot::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1d4ed8;
    animation: zakiPulseDot 2.2s ease-in-out infinite;
}

@keyframes zakiPulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.45);
        opacity: 0.7;
    }
}

.zaki-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #0f172a;
}

.zaki-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7c3aed, #2563eb);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* ─── Main Grid ──────────────────────────────────────────── */
.zaki-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.zaki-hero-left {
    max-width: 680px;
}

/* Rating */
.zaki-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #475569;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 999px;
    padding: 8px 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.zaki-stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 1.05rem;
    direction: ltr;
}

.zaki-rating strong {
    color: #0b1220;
    font-weight: 900;
}

/* Headline */
.zaki-hero-shell h1 {
    font-size: clamp(2.1rem, 3.2vw + 0.9rem, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #0f172a;
}

.zaki-accent {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9, #7c3aed);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: zakiGradientShift 5s linear infinite;
}

@keyframes zakiGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.zaki-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: #4f46e5;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
    animation: zakiBlink 1s step-end infinite;
}

@keyframes zakiBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.zaki-sub {
    color: #475569;
    font-size: 1.07rem;
    max-width: 46rem;
    margin-bottom: 22px;
    line-height: 1.8;
}

/* CTA Row */
.zaki-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.zaki-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s cubic-bezier(.4, 0, .2, 1);
    user-select: none;
}

.zaki-btn-primary {
    color: white;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.38);
}

.zaki-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.50);
}

.zaki-btn-primary:active {
    transform: translateY(0);
}

.zaki-btn-secondary {
    color: #111827;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.zaki-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.zaki-btn-arrow {
    font-size: 1.1rem;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.zaki-btn-primary:hover .zaki-btn-arrow {
    transform: translateX(-4px);
}

/* Stats row */
.zaki-stats-row {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.zaki-stat {
    display: flex;
    flex-direction: column;
}

.zaki-stat-num {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zaki-stat-lbl {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 2px;
}

/* Trust chips */
.zaki-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: #334155;
    font-size: 0.93rem;
}

.zaki-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s cubic-bezier(.4, 0, .2, 1), border-color .22s cubic-bezier(.4, 0, .2, 1);
    cursor: default;
}

.zaki-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.12);
}

.zaki-chip b {
    font-weight: 900;
    color: #0b1220;
}

/* ─── Media Card ─────────────────────────────────────────── */
.zaki-media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(14px);
}

/* Animated gradient border */
.zaki-media::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: conic-gradient(from var(--zaki-angle, 0deg),
            #2563eb, #7c3aed, #4f46e5, #60a5fa, #2563eb);
    z-index: -1;
    animation: zakiBorderSpin 5s linear infinite;
}

@property --zaki-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes zakiBorderSpin {
    to {
        --zaki-angle: 360deg;
    }
}

.zaki-photo {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom right, rgba(2, 6, 23, 0.50), rgba(2, 6, 23, 0.12)),
        url("https://images.pexels.com/photos/3845129/pexels-photo-3845129.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 8s ease;
}

.zaki-media:hover .zaki-photo {
    transform: scale(1.07);
}

/* Badge */
.zaki-badge {
    position: absolute;
    top: -20px;
    left: -12px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 2;
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.zaki-badge::before,
.zaki-badge::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.40);
    animation: zakiPulseRing 2.8s ease-out infinite;
}

.zaki-badge::after {
    inset: -22px;
    animation-delay: 1.4s;
    border-color: rgba(37, 99, 235, 0.20);
}

@keyframes zakiPulseRing {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.zaki-badge-inner {
    text-align: center;
    transform: translateY(-2px);
    direction: ltr;
    position: relative;
    z-index: 1;
}

.zaki-badge-num {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.zaki-badge-lbl {
    margin-top: 6px;
    font-size: 0.88rem;
    opacity: 0.95;
    line-height: 1.3;
}

/* Seal */
.zaki-seal {
    position: absolute;
    left: 16px;
    bottom: 14px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    z-index: 2;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.zaki-seal:hover {
    transform: scale(1.06) rotate(10deg);
}

.zaki-seal-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(219, 234, 254, 0.80);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0f2fe;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.61rem;
    text-align: center;
    gap: 3px;
    direction: ltr;
}

.zaki-seal-icon {
    font-size: 1.45rem;
    line-height: 1;
}

/* Mini card */
.zaki-mini-card {
    position: absolute;
    right: 16px;
    bottom: 14px;
    max-width: 290px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.45);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.20);
    z-index: 2;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s cubic-bezier(.4, 0, .2, 1);
}

.zaki-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.28);
}

.zaki-mini-kicker {
    font-weight: 900;
    font-size: 0.98rem;
    color: #0b1220;
    margin-bottom: 5px;
}

.zaki-mini-txt {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
}

/* Floating feature tags */
.zaki-tag-float {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.zaki-ftag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    font-size: 0.80rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    animation: zakiFloatTag 3.5s ease-in-out infinite alternate;
}

.zaki-ftag:nth-child(2) {
    animation-delay: -1.2s;
}

.zaki-ftag:nth-child(3) {
    animation-delay: -2.4s;
}

@keyframes zakiFloatTag {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-6px);
    }
}

/* ─── Reveal Animations ──────────────────────────────────── */
.zaki-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

.zaki-reveal.is-on {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Elementor Editor — show all content immediately ──── */
.elementor-editor-active .zaki-reveal,
.elementor-editor-preview .zaki-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .zaki-reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .zaki-btn {
        transition: none;
    }

    .zaki-photo {
        transform: none;
    }

    .zaki-blob {
        animation: none;
    }

    .zaki-dot::after {
        animation: none;
    }

    .zaki-badge::before,
    .zaki-badge::after {
        animation: none;
    }

    .zaki-cursor {
        animation: none;
    }

    .zaki-accent {
        animation: none;
    }

    .zaki-ftag {
        animation: none;
    }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
    .zaki-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .zaki-hero-right {
        order: -1;
    }

    .zaki-media {
        min-height: 320px;
    }

    .zaki-badge {
        width: 162px;
        height: 162px;
        top: -14px;
        left: 8px;
    }

    .zaki-badge-num {
        font-size: 2.0rem;
    }

    .zaki-tag-float {
        display: none;
    }
}

@media (max-width: 640px) {
    .zaki-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .zaki-hero-shell {
        padding-top: 20px;
    }

    .zaki-media {
        border-radius: 22px;
    }

    .zaki-mini-card {
        max-width: 250px;
        font-size: 0.85rem;
    }

    .zaki-stats-row {
        gap: 18px;
    }

    .zaki-cta-row {
        gap: 10px;
    }

    .zaki-btn {
        padding: 13px 18px;
        font-size: 0.95rem;
    }
}