/* =========================================================================
   VINNISOFT — FX layer
   1) Cursor light-tracking glow (advanced, multi-hue, trailing).
   2) Richer multi-hue gradients layered over the base teal theme.
   Loaded after theme.css so it augments / overrides where needed.
   ========================================================================= */

:root {
    /* Extra accent hues to break the mono-teal palette */
    --vs-violet: #7b61ff;
    --vs-magenta: #d16bff;
    --vs-cyan: #1ac8e6;
    --vs-pink: #ff6ec7;
    --vs-cursor-color: rgba(21, 151, 214, 0.55);
}

/* ---------------------------------------------------------------------------
   1. CURSOR AMBIENT SPOTLIGHT
   A soft light that trails the pointer and lives BEHIND all page content
   (z-index:-1), so it gently illuminates the ambient background but never
   overlaps, tints or washes out text, buttons, forms, links or any other
   interactive element. No blend modes; pointer-events: none.
   --------------------------------------------------------------------------- */
.vs-cursor-spot {
    position: fixed;
    top: 0;
    left: 0;
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    z-index: -1;                 /* behind content — cannot affect UI elements */
    pointer-events: none;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.6s ease;
    background: radial-gradient(closest-side,
        var(--vs-cursor-color) 0%,
        color-mix(in srgb, var(--vs-cursor-color) 32%, transparent) 42%,
        transparent 72%);
    filter: blur(14px);
}

body.vs-cursor-active .vs-cursor-spot { opacity: 0.7; }

/* No custom cursor FX on touch / coarse pointers. */
@media (pointer: coarse) {
    .vs-cursor-spot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .vs-cursor-spot { transition: none; }
}

/* ---------------------------------------------------------------------------
   2. RICHER GRADIENTS
   --------------------------------------------------------------------------- */

/* 2a. Multi-hue ambient backdrop (adds violet / magenta / cyan glows). */
.vs-backdrop {
    background:
        radial-gradient(55% 50% at 12% 4%, rgba(11, 115, 168, 0.42) 0%, transparent 60%),
        radial-gradient(46% 46% at 88% 8%, rgba(123, 97, 255, 0.30) 0%, transparent 58%),
        radial-gradient(52% 55% at 86% 96%, rgba(209, 107, 255, 0.22) 0%, transparent 60%),
        radial-gradient(46% 50% at 8% 92%, rgba(26, 200, 230, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #0c0c0a 0%, #0b1116 55%, #0c0c0a 100%) !important;
}

/* 2b. Slow-drifting animated aurora blobs behind the content. */
.vs-aurora {
    position: fixed;
    inset: -25%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(32% 32% at 18% 28%, rgba(123, 97, 255, 0.22), transparent 60%),
        radial-gradient(28% 28% at 82% 18%, rgba(209, 107, 255, 0.18), transparent 60%),
        radial-gradient(38% 38% at 72% 82%, rgba(26, 200, 230, 0.16), transparent 60%),
        radial-gradient(30% 30% at 28% 84%, rgba(11, 115, 168, 0.20), transparent 60%);
    filter: blur(48px);
    animation: vs-aurora-drift 26s ease-in-out infinite alternate;
    /* Own layer: the blur is drawn once and the drift just moves it. */
    will-change: transform;
}
@keyframes vs-aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate3d(2.5%, -2%, 0) scale(1.1) rotate(4deg); }
    100% { transform: translate3d(-2.5%, 2%, 0) scale(1.05) rotate(-3deg); }
}

/* 2c. Animated multi-hue gradient text (hero title, headings, stats). */
.vs-grad,
.vs-h2 .vs-grad,
.vs-stat-num .vs-grad {
    background: linear-gradient(100deg,
        var(--vs-brand-300) 0%,
        var(--vs-violet) 42%,
        var(--vs-magenta) 72%,
        var(--vs-brand-300) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: vs-grad-pan 8s linear infinite;
}
@keyframes vs-grad-pan {
    to { background-position: 220% center; }
}

/* 2d. Gradient eyebrow pills. */
.vs-eyebrow {
    color: #fff !important;
    background: linear-gradient(120deg, rgba(21, 151, 214, 0.22), rgba(123, 97, 255, 0.22)) !important;
    border: 1px solid rgba(123, 97, 255, 0.38) !important;
}
.vs-eyebrow .fa {
    background: linear-gradient(120deg, var(--vs-brand-300), var(--vs-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2e. Colourful capability icons (rotate hue per card). */
.vs-cap-icon {
    background: linear-gradient(135deg, var(--vs-brand-400), var(--vs-violet)) !important;
    box-shadow: 0 14px 34px rgba(123, 97, 255, 0.34) !important;
}
.vs-cap-card:nth-child(3n+2) .vs-cap-icon {
    background: linear-gradient(135deg, var(--vs-violet), var(--vs-magenta)) !important;
    box-shadow: 0 14px 34px rgba(209, 107, 255, 0.32) !important;
}
.vs-cap-card:nth-child(3n) .vs-cap-icon {
    background: linear-gradient(135deg, var(--vs-cyan), var(--vs-brand)) !important;
    box-shadow: 0 14px 34px rgba(26, 200, 230, 0.30) !important;
}

/* Vary the capability card hover glow hue to match its icon. */
.vs-cap-card::before {
    background: radial-gradient(120% 90% at 0% 0%, rgba(21, 151, 214, 0.24), transparent 55%);
}
.vs-cap-card:nth-child(3n+2)::before {
    background: radial-gradient(120% 90% at 0% 0%, rgba(123, 97, 255, 0.24), transparent 55%);
}
.vs-cap-card:nth-child(3n)::before {
    background: radial-gradient(120% 90% at 100% 0%, rgba(26, 200, 230, 0.22), transparent 55%);
}
.vs-cap-card:hover {
    border-color: rgba(123, 97, 255, 0.45) !important;
}

/* 2f. Richer primary button (teal -> violet). */
.vs-btn-primary {
    background: linear-gradient(135deg, var(--vs-brand-400) 0%, var(--vs-brand-600) 55%, var(--vs-violet) 130%) !important;
}

/* 2g. Gradient light line above the footer. */
.vs-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--vs-brand-300), var(--vs-violet), var(--vs-magenta), transparent);
    opacity: 0.7;
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .vs-grad,
    .vs-h2 .vs-grad,
    .vs-stat-num .vs-grad { animation: none; }
    .vs-aurora { animation: none; }
}

/* ---------------------------------------------------------------------------
   3. FILTER PILLS — premium restyle + 2-random rotation transitions
   --------------------------------------------------------------------------- */
.showcase-filter {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.82);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease, transform 0.2s ease, opacity 0.35s ease;
}
.showcase-filter:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(123, 97, 255, 0.40);
    color: #fff;
    transform: translateY(-1px);
}
.showcase-filter.is-active {
    background: linear-gradient(120deg, var(--vs-brand-400), var(--vs-violet));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(123, 97, 255, 0.35);
}

