/* ============================================
   WCPS Caption Layouts Styles
   ============================================ */

// Breakpoints (matching main wcps-styles.scss)
$breakpoint-xs: 480px;
$breakpoint-sm: 576px;
$breakpoint-md: 768px;
$breakpoint-lg: 992px;
$breakpoint-xl: 1200px;

/* ============================================
   Caption Layout Base Styles
   ============================================ */
.wcps-container {

    // Base caption layout styles
    &[class*="wcps-layout-blinds-"],
    &[class*="wcps-layout-blocks-"],
    &[class*="wcps-layout-book-"],
    &[class*="wcps-layout-border-"],
    &[class*="wcps-layout-bounce-"],
    &[class*="wcps-layout-circle-"],
    &[class*="wcps-layout-cube-"],
    &[class*="wcps-layout-swiper-"],
    &[class*="wcps-layout-liquid-"],
    &[class*="wcps-layout-neon-"],
    &[class*="wcps-layout-origami-"],
    &[class*="wcps-layout-particle-"],
    &[class*="wcps-layout-hologram"],
    &[class*="wcps-layout-glass-"],
    &[class*="wcps-layout-magnetic-"],
    &[class*="wcps-layout-quantum-"],
    &[class*="wcps-layout-fire-"],
    &[class*="wcps-layout-matrix-"] {
        background: var(--wcps-container-background, #ffffff3b);
        padding: var(--wcps-container-padding, 25px);
        margin: var(--wcps-container-margin, 0px);
        width: var(--wcps-grid-width, 100%);

        // Grid layout for caption items
        .wcps-caption-container {
            display: grid;
            grid-template-columns: repeat(var(--wcps-columns, 4), minmax(0, 1fr));
            gap: var(--wcps-grid-gap, 20px);
            width: var(--wcps-grid-width, 100%);

            background: var(--wcps-container-background, #ffffff3b);
            padding: var(--wcps-container-padding, 25px);
            margin: var(--wcps-container-margin, 0px);

            @media (max-width: $breakpoint-xl) {
                grid-template-columns: repeat(3, 1fr);
            }

            @media (max-width: $breakpoint-lg) {
                grid-template-columns: repeat(2, 1fr);
            }

            @media (max-width: $breakpoint-md) {
                grid-template-columns: repeat(2, 1fr);
                gap: calc(var(--wcps-grid-gap, 20px) * 0.75);
            }

            @media (max-width: $breakpoint-sm) {
                grid-template-columns: 1fr;
                gap: calc(var(--wcps-grid-gap, 20px) * 0.5);
            }
        }

        .wcps-caption-item {
            display: flex;
            flex-direction: column;
            height: 100%;
            border: var(--wcps-border-width, 1px) var(--wcps-border-style, solid) var(--wcps-border-color, #eee);
            border-radius: var(--wcps-border-radius, 8px);
            transition: all var(--wcps-hover-transition, 0.3s) ease;
        }

        .wcps-product {
            position: relative;
            overflow: hidden;
            border-radius: calc(var(--wcps-border-radius, 8) * 1px);
            background: var(--wcps-product-background, #fff);
            border: var(--wcps-border-width, 0px) var(--wcps-border-style, solid) var(--wcps-border-color, #eeeeee);
            height: var(--wcps-product-width, 100%);
            display: flex;
            flex-direction: column;
            transition: all var(--wcps-hover-transition, 0.3s) ease;

            // Dynamic box shadow based on variable
            &.wcps-shadow-none {
                box-shadow: none;
            }

            &.wcps-shadow-light,
            &:not([class*="wcps-shadow-"]) {
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            &.wcps-shadow-medium {
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            }

            &.wcps-shadow-heavy {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
            }

            .wcps-product-image {
                position: relative;
                overflow: hidden;
                aspect-ratio: var(--wcps-image-aspect-ratio, 1/1);
                border-radius: calc(var(--wcps-image-border-radius, 0) * 1px);
                width: var(--wcps-product-image-width, 100%);
                height: var(--wcps-product-image-height, auto);
                flex-shrink: 0;

                img {
                    transition: transform var(--wcps-hover-transition, 0.3s) ease;
                    width: 100%;
                    height: 250px;
                    object-fit: cover;
                    border-radius: calc(var(--wcps-image-border-radius, 0) * 1px);

                    @media (max-width: $breakpoint-md) {
                        height: 200px;
                    }

                    @media (max-width: $breakpoint-sm) {
                        height: 180px;
                    }
                }

                // Product badges
                .wcps-product-badge {
                    font-size: var(--wcps-product-badge-font-size, 14px);
                    font-weight: var(--wcps-product-badge-font-weight, 600);
                    text-transform: var(--wcps-product-badge-text-transform, capitalize); // Need to create- uppercase, capitalize, lowercase
                    text-align: center;
                    word-break: break-all;
                    letter-spacing: 0.4px;
                    line-height: 1.2;
                    list-style: none;
                    -ms-flex-align: center;
                    justify-content: center;
                    border-radius: var(--wcps-product-badge-border-radius, 20px);
                    padding: var(--wcps-product-badge-padding, 5px);
                    margin-bottom: 10px;
                    z-index: var(--wcps-product-badge-z-index, 2);
                    background: var(--wcps-product-badge-background, rgb(54, 182, 217));
                    color: var(--wcps-product-badge-font-color, #fff);
                    position: absolute;
                    right: 5px;
                    top: 5px;
                }


                // Caption overlay container
                .wcps-caption-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    padding: 20px;
                    opacity: 0;
                    visibility: hidden;
                    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                    z-index: 2;

                    @media (max-width: $breakpoint-md) {
                        padding: 15px;
                    }

                    @media (max-width: $breakpoint-sm) {
                        padding: 10px;
                    }

                    .wcps-caption-content {
                        position: relative;
                        z-index: 3;
                        text-align: center;
                        color: #ffffff;
                        width: 100%;

                        .wcps-caption-title {
                            font-size: calc(var(--wcps-title-size, 18) * 1px);
                            font-weight: var(--wcps-title-weight, 600);
                            margin-bottom: 10px;
                            line-height: 1.3;
                            color: #ffffff;

                            @media (max-width: $breakpoint-md) {
                                font-size: calc(var(--wcps-title-size, 16) * 1px);
                            }

                            @media (max-width: $breakpoint-sm) {
                                font-size: calc(var(--wcps-title-size, 14) * 1px);
                                margin-bottom: 8px;
                            }
                        }

                        .wcps-caption-description {
                            font-size: calc(var(--wcps-desc-size, 14) * 1px);
                            line-height: 1.4;
                            opacity: 0.9;
                            margin-bottom: 15px;
                            color: #ffffff;

                            @media (max-width: $breakpoint-md) {
                                font-size: calc(var(--wcps-desc-size, 12) * 1px);
                            }

                            @media (max-width: $breakpoint-sm) {
                                font-size: calc(var(--wcps-desc-size, 11) * 1px);
                                margin-bottom: 10px;
                            }
                        }

                        .wcps-caption-price {
                            font-weight: var(--wcps-price-font-weight, 700);
                            font-size: calc(var(--wcps-price-font-size, 16) * 1px);
                            color: #ffffff;
                            margin-bottom: 15px;

                            del {
                                opacity: 0.6;
                                margin-right: 8px;
                                font-weight: 400;
                            }

                            ins {
                                text-decoration: none;
                            }

                            @media (max-width: $breakpoint-sm) {
                                font-size: calc(var(--wcps-price-font-size, 14) * 1px);
                                margin-bottom: 10px;
                            }
                        }

                        .wcps-caption-actions {
                            display: flex;
                            gap: 10px;
                            justify-content: center;
                            flex-wrap: wrap;

                            @media (max-width: $breakpoint-sm) {
                                gap: 8px;
                            }

                            .wcps-caption-btn {
                                padding: 8px 16px;
                                background: rgba(255, 255, 255, 0.2);
                                border: 1px solid rgba(255, 255, 255, 0.3);
                                border-radius: var(--wcps-button-border-radius, 4px);
                                color: #ffffff;
                                text-decoration: none;
                                font-size: calc(var(--wcps-button-font-size, 12) * 1px);
                                font-weight: 500;
                                transition: all 0.3s ease;
                                backdrop-filter: blur(10px);
                                display: inline-flex;
                                align-items: center;
                                gap: 6px;

                                @media (max-width: $breakpoint-md) {
                                    padding: 6px 12px;
                                    font-size: calc(var(--wcps-button-font-size, 11) * 1px);
                                }

                                @media (max-width: $breakpoint-sm) {
                                    padding: 5px 10px;
                                    font-size: calc(var(--wcps-button-font-size, 10) * 1px);
                                    gap: 4px;
                                }

                                &:hover {
                                    background: rgba(255, 255, 255, 0.3);
                                    border-color: rgba(255, 255, 255, 0.5);
                                    transform: translateY(-2px);
                                }

                                i {
                                    font-size: 1em;
                                }
                            }
                        }
                    }
                }
            }

            // Product content section (below image)
            .wcps-product-content {
                padding: var(--wcps-product-content-padding, 15px);
                margin: var(--wcps-product-content-margin, 0px);
                display: flex;
                flex-direction: var(--wcps-product-content-direction, column);
                text-align: var(--wcps-text-align, left);
                background: var(--wcps-product-content-background, #ffffff);
                flex-grow: 1;

                .wcps-product-title {
                    margin: 0 0 8px;
                    font-size: calc(var(--wcps-title-size, 16) * 1px);
                    font-weight: var(--wcps-title-weight, 600);
                    line-height: 1.3;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;

                    a {
                        color: var(--wcps-product-title, #0170B9);
                        text-decoration: none;
                        font-size: calc(var(--wcps-title-size, 16) * 1px);
                        font-weight: var(--wcps-title-weight, 600);
                        transition: color var(--wcps-hover-transition, 0.3s) ease;

                        &:hover {
                            color: var(--wcps-product-title-hover-color, #0170B9);
                        }
                    }
                }

                .wcps-product-price {
                    font-weight: var(--wcps-price-font-weight, 700);
                    font-size: calc(var(--wcps-price-font-size, 18) * 1px);
                    color: var(--wcps-price-font-color, #0170B9);
                    margin-bottom: 8px;

                    del {
                        opacity: 0.6;
                        margin-right: 8px;
                        color: var(--wcps-price-delete-font-color, #333333);
                        font-weight: 400;
                    }

                    ins {
                        text-decoration: none;
                        color: var(--wcps-price-font-color, #0170B9);
                    }
                }

                .wcps-product-rating {
                    margin-bottom: 8px;

                    .star-rating {
                        color: var(--wcps-star-color, #ffc107);
                        font-size: calc(var(--wcps-star-size, 14) * 1px);

                        &::before {
                            color: var(--wcps-star-color, #ffc107);
                            font-size: var(--wcps-star-size, 10px);

                        }
                    }
                }
            }
        }
    }
}

/* ============================================
   Caption Layout 1: Blinds Vertical
   ============================================ */
.wcps-container.wcps-layout-blinds-vertical {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: translateX(0);

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            // Clean slide-in effect from left
            transform: translateX(-100%);
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);

            .wcps-caption-content {
                transform: translateY(20px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
            }
        }
    }
}

/* ============================================
   Caption Layout 2: Blocks Zoom Top Left
   ============================================ */
.wcps-container.wcps-layout-blocks-zoom-top-left {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.1) rotate(2deg);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: scale(1);

                    .wcps-caption-content {
                        transform: scale(1) rotate(0deg);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            // Clean zoom effect from top-left
            transform: scale(0);
            transform-origin: top left;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);

            .wcps-caption-content {
                transform: scale(0.8) rotate(-10deg);
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
            }
        }
    }
}

/* ============================================
   Caption Layout 3: Book Open Horizontal
   ============================================ */
.wcps-container.wcps-layout-book-open-horizontal {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before,
                    &::after {
                        transform: rotateY(0deg);
                    }

                    .wcps-caption-content {
                        transform: translateX(0) scale(1);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            perspective: 1000px;

            // Left page of book
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 50%;
                height: 100%;
                background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));
                transform: rotateY(-90deg);
                transform-origin: right center;
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1;
            }

            // Right page of book
            &::after {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                width: 50%;
                height: 100%;
                background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));
                transform: rotateY(90deg);
                transform-origin: left center;
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
                z-index: 1;
            }

            .wcps-caption-content {
                transform: translateX(-30px) scale(0.8);
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
            }
        }
    }
}

/* ============================================
   Caption Layout 4: Border Reveal Top Left
   ============================================ */
.wcps-container.wcps-layout-border-reveal-top-left {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.08);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        transform: scale(1);
                    }

                    .wcps-caption-content {
                        transform: translate(0, 0);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {

            // Border reveal effect
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));
                border: 3px solid rgba(255, 255, 255, 0.3);
                transform: scale(0);
                transform-origin: top left;
                transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1;
            }

            .wcps-caption-content {
                transform: translate(-20px, -20px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
            }
        }
    }
}

/* ============================================
   Caption Layout 5: Bounce Out Right
   ============================================ */
.wcps-container.wcps-layout-bounce-out-right {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05) translateX(-10px);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: translateX(0);

                    .wcps-caption-content {
                        animation: bounceInRight 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            transform: translateX(100%);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

            .wcps-caption-content {
                opacity: 0;
                transform: translateX(50px);
            }
        }
    }
}

/* ============================================
   Caption Layout 6: Circle Top Left
   ============================================ */
.wcps-container.wcps-layout-circle-top-left {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.1);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    clip-path: circle(150% at top left);

                    .wcps-caption-content {
                        transform: scale(1) rotate(0deg);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {

            // Circular reveal effect
            clip-path: circle(0% at top left);
            transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);

            .wcps-caption-content {
                transform: scale(0.7) rotate(-15deg);
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
            }
        }
    }
}

/* ============================================
   Caption Layout 7: Cube Left
   ============================================ */
.wcps-container.wcps-layout-cube-left {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05) rotateY(-5deg);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: rotateY(0deg);

                    .wcps-caption-content {
                        transform: translateZ(0) rotateY(0deg);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image {
            perspective: 1000px;

            .wcps-caption-overlay {
                transform: rotateY(-90deg);
                transform-origin: left center;
                transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));

                .wcps-caption-content {
                    transform: translateZ(-50px) rotateY(15deg);
                    opacity: 0;
                    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
                }
            }
        }
    }
}

/* ============================================
   Caption Layout 8: Swiper Slide
   ============================================ */
.wcps-container.wcps-layout-swiper-slide {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05) translateX(-5px);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: translateX(0);

                    &::before {
                        transform: translateX(0);
                    }

                    .wcps-caption-content {
                        transform: translateX(0);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            transform: translateX(-100%);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));

            // Sliding effect overlay
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
                transform: translateX(-100%);
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
                z-index: 1;
            }

            .wcps-caption-content {
                transform: translateX(-30px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
            }
        }
    }
}

/* ============================================
   Caption Layout 9: Liquid Morph
   ============================================ */
.wcps-container.wcps-layout-liquid-morph {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    clip-path: circle(70% at 50% 50%);

                    .wcps-caption-content {
                        transform: scale(1) rotate(0deg);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(30, 144, 255, 0.9));
            clip-path: circle(0% at 50% 50%);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

            .wcps-caption-content {
                transform: scale(0.5) rotate(180deg);
                opacity: 0;
                transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s;
            }
        }
    }
}

/* ============================================
   Caption Layout 10: Neon Glow
   ============================================ */
.wcps-container.wcps-layout-neon-glow {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        opacity: 1;
                        animation: neonPulse 2s ease-in-out infinite;
                    }

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));

            // Neon border effect
            &::before {
                content: '';
                position: absolute;
                top: -2px;
                left: -2px;
                right: -2px;
                bottom: -2px;
                background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
                border-radius: inherit;
                z-index: -1;
                opacity: 0;
                transition: opacity 0.5s ease;
            }

            .wcps-caption-content {
                transform: translateY(30px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
            }
        }
    }
}

/* ============================================
   Caption Layout 11: Origami Fold
   ============================================ */
.wcps-container.wcps-layout-origami-fold {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.08) rotateX(5deg);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        transform: rotateX(0deg);
                    }

                    &::after {
                        transform: rotateX(0deg);
                    }

                    .wcps-caption-content {
                        transform: translateY(0) rotateX(0deg);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image {
            perspective: 1200px;

            .wcps-caption-overlay {
                background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
                transform-style: preserve-3d;

                // Simplified fold effect using pseudo-elements
                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    height: 50%;
                    background: inherit;
                    transform: rotateX(-90deg);
                    transform-origin: bottom center;
                    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
                    z-index: 1;
                }

                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    height: 50%;
                    background: inherit;
                    transform: rotateX(-90deg);
                    transform-origin: top center;
                    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
                    z-index: 1;
                }

                .wcps-caption-content {
                    transform: translateY(20px) rotateX(-20deg);
                    opacity: 0;
                    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
                    z-index: 2;
                }
            }
        }
    }
}

/* ============================================
   Caption Layout 12: Particle Burst
   ============================================ */
.wcps-container.wcps-layout-particle-burst {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.1);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: particleBurst 0.8s cubic-bezier(0.4, 0, 0.2, 1);
                    }

                    &::after {
                        animation: particleSparkle 1.2s cubic-bezier(0.4, 0, 0.2, 1);
                    }

                    .wcps-caption-content {
                        transform: scale(1);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: radial-gradient(circle at center, rgba(76, 175, 80, 0.9), rgba(139, 195, 74, 0.9));
            overflow: hidden;

            // Central burst effect
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 10px;
                height: 10px;
                background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
                border-radius: 50%;
                transform: translate(-50%, -50%) scale(0);
                box-shadow:
                    0 0 0 10px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(255, 255, 255, 0.05),
                    0 0 0 30px rgba(255, 255, 255, 0.02);
                z-index: 1;
            }

            // Sparkle effect using box-shadow
            &::after {
                content: '';
                position: absolute;
                top: 20%;
                left: 20%;
                width: 3px;
                height: 3px;
                background: rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                opacity: 0;
                box-shadow:
                    30px 10px 0 rgba(255, 255, 255, 0.8),
                    -20px 40px 0 rgba(255, 255, 255, 0.7),
                    50px -10px 0 rgba(255, 255, 255, 0.9),
                    -30px -20px 0 rgba(255, 255, 255, 0.6),
                    60px 30px 0 rgba(255, 255, 255, 0.8);
                z-index: 1;
            }

            .wcps-caption-content {
                transform: scale(0.8);
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
                z-index: 2;
            }
        }
    }
}

/* ============================================
   Caption Layout 13: Hologram Effect
   ============================================ */
.wcps-container.wcps-layout-hologram {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                    filter: hue-rotate(30deg);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: hologramScan 2s linear infinite;
                    }

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                        animation: hologramFlicker 1.5s ease-in-out infinite;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: linear-gradient(135deg,
                    rgba(0, 255, 255, 0.15),
                    rgba(255, 0, 255, 0.15),
                    rgba(255, 255, 0, 0.15));
            backdrop-filter: blur(2px);
            border: 1px solid rgba(0, 255, 255, 0.3);

            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 2px;
                background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
                z-index: 1;
            }

            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: repeating-linear-gradient(0deg,
                        transparent,
                        transparent 2px,
                        rgba(0, 255, 255, 0.03) 2px,
                        rgba(0, 255, 255, 0.03) 4px);
                z-index: 1;
                pointer-events: none;
            }

            .wcps-caption-content {
                transform: translateY(20px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
                z-index: 2;
            }
        }
    }
}



/* ============================================
   Animation Keyframes
   ============================================ */
@keyframes blindsReveal {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes blocksZoom {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes contentSlideIn {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes contentZoomIn {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes bounceInRight {
    0% {
        transform: translateX(100px) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateX(-10px) scale(1.05);
        opacity: 0.8;
    }

    80% {
        transform: translateX(5px) scale(0.98);
        opacity: 0.9;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes bookOpen {
    0% {
        transform: rotateY(-90deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

@keyframes circularReveal {
    0% {
        clip-path: circle(0% at top left);
    }

    100% {
        clip-path: circle(150% at top left);
    }
}

@keyframes cubeRotate {
    0% {
        transform: rotateY(-90deg) translateZ(-50px);
    }

    100% {
        transform: rotateY(0deg) translateZ(0px);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes borderGrow {
    0% {
        transform: scale(0);
        border-width: 0;
    }

    50% {
        border-width: 3px;
    }

    100% {
        transform: scale(1);
        border-width: 3px;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   Responsive Adjustments for Caption Layouts
   ============================================ */
@media (max-width: $breakpoint-md) {
    .wcps-container[class*="wcps-layout-"] {
        .wcps-caption-overlay {
            .wcps-caption-content {
                padding: 15px;

                .wcps-caption-actions {
                    flex-direction: column;
                    gap: 8px;

                    .wcps-caption-btn {
                        width: 100%;
                        justify-content: center;
                    }
                }
            }
        }
    }
}

@media (max-width: $breakpoint-sm) {
    .wcps-container[class*="wcps-layout-"] {
        .wcps-caption-overlay {
            .wcps-caption-content {
                padding: 10px;

                .wcps-caption-title {
                    margin-bottom: 6px;
                }

                .wcps-caption-description {
                    margin-bottom: 8px;
                    line-height: 1.3;
                }

                .wcps-caption-price {
                    margin-bottom: 8px;
                }
            }
        }
    }
}


/* ============================================
   Additional Animation Keyframes for New Layouts
   ============================================ */
@keyframes neonPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes particleBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0);
    }
}

@keyframes particleSparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes hologramScan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes hologramGlitch {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    91%,
    99% {
        opacity: 0.7;
    }

    92%,
    98% {
        opacity: 0.3;
    }

    93%,
    97% {
        opacity: 0.8;
    }
}

@keyframes hologramFlicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

@keyframes liquidMorph {
    0% {
        border-radius: 50%;
        transform: rotate(0deg);
    }

    25% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(90deg);
    }

    50% {
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
        transform: rotate(180deg);
    }

    75% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(270deg);
    }

    100% {
        border-radius: 50%;
        transform: rotate(360deg);
    }
}

/* ============================================
   Enhanced Responsive Design for New Layouts
   ============================================ */
@media (max-width: $breakpoint-md) {
    .wcps-container.wcps-layout-origami-fold {
        .wcps-product-image {
            perspective: 800px;
        }
    }

    .wcps-container.wcps-layout-hologram {
        .wcps-caption-overlay .wcps-caption-content {

            .wcps-caption-title,
            .wcps-caption-price,
            .wcps-caption-btn {
                font-size: 0.9em;
            }
        }
    }
}

@media (max-width: $breakpoint-sm) {
    .wcps-container.wcps-layout-particle-burst {
        .wcps-caption-overlay::after {
            box-shadow:
                20px 5px 0 rgba(255, 255, 255, 0.8),
                -15px 25px 0 rgba(255, 255, 255, 0.7),
                35px -5px 0 rgba(255, 255, 255, 0.9),
                -20px -15px 0 rgba(255, 255, 255, 0.6);
        }
    }

    .wcps-container.wcps-layout-neon-glow {
        .wcps-caption-overlay {
            box-shadow:
                inset 0 0 30px rgba(0, 255, 255, 0.2),
                inset 0 0 60px rgba(255, 0, 255, 0.1),
                0 0 30px rgba(0, 255, 255, 0.3);
        }
    }
}

/* =
===========================================
   Caption Layout 14: Glass Shatter
   ============================================ */
.wcps-container.wcps-layout-glass-shatter {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.1);
                    filter: brightness(0.8);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: glassShatter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    }

                    &::after {
                        animation: glassReflection 1s ease-out 0.3s;
                    }

                    .wcps-caption-content {
                        transform: translateY(0) scale(1);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.1),
                    rgba(200, 230, 255, 0.2),
                    rgba(255, 255, 255, 0.1));
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);

            // Shattered glass effect
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background:
                    conic-gradient(from 0deg at 30% 20%, transparent 0deg, rgba(255, 255, 255, 0.3) 60deg, transparent 120deg),
                    conic-gradient(from 45deg at 70% 30%, transparent 0deg, rgba(255, 255, 255, 0.2) 90deg, transparent 180deg),
                    conic-gradient(from 90deg at 20% 70%, transparent 0deg, rgba(255, 255, 255, 0.4) 45deg, transparent 135deg),
                    conic-gradient(from 180deg at 80% 80%, transparent 0deg, rgba(255, 255, 255, 0.3) 75deg, transparent 150deg);
                opacity: 0;
                transform: scale(0) rotate(0deg);
                z-index: 1;
            }

            // Glass reflection
            &::after {
                content: '';
                position: absolute;
                top: -50%;
                left: -50%;
                width: 200%;
                height: 200%;
                background: linear-gradient(45deg,
                        transparent 30%,
                        rgba(255, 255, 255, 0.6) 50%,
                        transparent 70%);
                transform: translateX(-100%) rotate(45deg);
                opacity: 0;
                z-index: 2;
            }

            .wcps-caption-content {
                transform: translateY(30px) scale(0.8);
                opacity: 0;
                transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
                z-index: 3;
            }
        }
    }
}

/* ============================================
   Caption Layout 15: Magnetic Pull
   ============================================ */
.wcps-container.wcps-layout-magnetic-pull {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05) rotateZ(2deg);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;
                    transform: scale(1);

                    &::before {
                        animation: magneticField 1.5s ease-in-out infinite;
                    }

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                        animation: magneticFloat 2s ease-in-out infinite;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: radial-gradient(circle at center,
                    rgba(138, 43, 226, 0.8),
                    rgba(75, 0, 130, 0.9));
            transform: scale(0);
            transform-origin: center;
            transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

            // Magnetic field lines
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 80%;
                height: 80%;
                border: 2px solid rgba(255, 255, 255, 0.3);
                border-radius: 50%;
                transform: translate(-50%, -50%);
                box-shadow:
                    0 0 0 10px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(255, 255, 255, 0.05),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
                z-index: 1;
            }

            .wcps-caption-content {
                transform: translateY(50px);
                opacity: 0;
                transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s;
                z-index: 2;
            }
        }
    }
}

/* ============================================
   Caption Layout 16: Quantum Tunnel
   ============================================ */
.wcps-container.wcps-layout-quantum-tunnel {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.1);
                    filter: hue-rotate(45deg) saturate(1.2);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: quantumTunnel 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    }

                    &::after {
                        animation: quantumParticles 2s linear infinite;
                    }

                    .wcps-caption-content {
                        transform: translateZ(0) scale(1);
                        opacity: 1;
                    }
                }
            }
        }

        .wcps-product-image {
            perspective: 1000px;

            .wcps-caption-overlay {
                background: linear-gradient(45deg,
                        rgba(0, 255, 127, 0.8),
                        rgba(0, 191, 255, 0.8),
                        rgba(138, 43, 226, 0.8));
                transform-style: preserve-3d;

                // Tunnel effect
                &::before {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 20px;
                    height: 20px;
                    background: radial-gradient(circle,
                            rgba(255, 255, 255, 0.9) 0%,
                            rgba(255, 255, 255, 0.3) 30%,
                            transparent 70%);
                    border-radius: 50%;
                    transform: translate(-50%, -50%) scale(0);
                    box-shadow:
                        0 0 0 20px rgba(255, 255, 255, 0.1),
                        0 0 0 40px rgba(255, 255, 255, 0.05),
                        0 0 0 60px rgba(255, 255, 255, 0.02);
                    z-index: 1;
                }

                // Quantum particles
                &::after {
                    content: '';
                    position: absolute;
                    top: 20%;
                    left: 20%;
                    width: 3px;
                    height: 3px;
                    background: rgba(255, 255, 255, 0.9);
                    border-radius: 50%;
                    box-shadow:
                        40px 20px 0 rgba(0, 255, 127, 0.8),
                        -20px 50px 0 rgba(0, 191, 255, 0.8),
                        60px -10px 0 rgba(138, 43, 226, 0.8),
                        -40px -30px 0 rgba(255, 255, 255, 0.7),
                        80px 40px 0 rgba(0, 255, 127, 0.6);
                    opacity: 0;
                    z-index: 1;
                }

                .wcps-caption-content {
                    transform: translateZ(-100px) scale(0.5);
                    opacity: 0;
                    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s;
                    z-index: 2;
                }
            }
        }
    }
}

/* ============================================
   Caption Layout 17: Fire Ignition
   ============================================ */
.wcps-container.wcps-layout-fire-ignition {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.08);
                    filter: brightness(1.1) contrast(1.1);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: fireIgnition 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    }

                    &::after {
                        animation: fireFlicker 1.5s ease-in-out infinite;
                    }

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                        animation: fireGlow 2s ease-in-out infinite;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: radial-gradient(ellipse at bottom,
                    rgba(255, 69, 0, 0.9) 0%,
                    rgba(255, 140, 0, 0.8) 30%,
                    rgba(255, 215, 0, 0.7) 60%,
                    rgba(220, 20, 60, 0.8) 100%);

            // Fire base
            &::before {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 60%;
                height: 20%;
                background: linear-gradient(to top,
                        rgba(255, 69, 0, 0.9),
                        rgba(255, 140, 0, 0.7),
                        transparent);
                border-radius: 50% 50% 0 0;
                transform: translateX(-50%) scaleY(0);
                transform-origin: bottom;
                z-index: 1;
            }

            // Fire flames
            &::after {
                content: '';
                position: absolute;
                bottom: 15%;
                left: 50%;
                width: 40%;
                height: 60%;
                background: radial-gradient(ellipse at bottom,
                        rgba(255, 215, 0, 0.8) 0%,
                        rgba(255, 140, 0, 0.6) 40%,
                        rgba(255, 69, 0, 0.4) 70%,
                        transparent 100%);
                border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
                transform: translateX(-50%) scale(0);
                opacity: 0;
                z-index: 2;
            }

            .wcps-caption-content {
                transform: translateY(40px);
                opacity: 0;
                transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s;
                z-index: 3;
                color: #fff;
                text-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
            }
        }
    }
}

/* ============================================
   Caption Layout 18: Matrix Rain
   ============================================ */
.wcps-container.wcps-layout-matrix-rain {
    .wcps-product {
        &:hover {
            .wcps-product-image {
                img {
                    transform: scale(1.05);
                    filter: brightness(0.7) contrast(1.2);
                }

                .wcps-caption-overlay {
                    opacity: 1;
                    visibility: visible;

                    &::before {
                        animation: matrixRain 2s linear infinite;
                    }

                    &::after {
                        animation: matrixGlitch 3s linear infinite;
                    }

                    .wcps-caption-content {
                        transform: translateY(0);
                        opacity: 1;
                        animation: matrixFlicker 1.5s ease-in-out infinite;
                    }
                }
            }
        }

        .wcps-product-image .wcps-caption-overlay {
            background: var(--wcps-caption-hover-bg, linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(108, 117, 125, 0.9)));
            font-family: 'Courier New', monospace;

            // Matrix rain effect
            &::before {
                content: '01001001 01101110 01110100 01100101 01110010 01100001 01100011 01110100 01101001 01110110 01100101';
                position: absolute;
                top: -100%;
                left: 0;
                right: 0;
                height: 200%;
                color: #00ff00;
                font-size: 8px;
                line-height: 1.2;
                word-wrap: break-word;
                overflow: hidden;
                opacity: 0.7;
                z-index: 1;
            }

            // Matrix grid overlay
            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background:
                    linear-gradient(90deg, transparent 98%, rgba(0, 255, 0, 0.1) 100%),
                    linear-gradient(0deg, transparent 98%, rgba(0, 255, 0, 0.1) 100%);
                background-size: 20px 20px;
                opacity: 0.3;
                z-index: 1;
            }

            .wcps-caption-content {
                transform: translateY(30px);
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s;
                color: #00ff00;
                text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
                font-family: 'Courier New', monospace;
                z-index: 2;
            }
        }
    }
}

/* ============================================
   Animation Keyframes for New Creative Layouts
   ============================================ */
@keyframes glassShatter {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        opacity: 0.8;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes glassReflection {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes magneticField {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes magneticFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes quantumTunnel {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

@keyframes quantumParticles {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(720deg);
    }
}

@keyframes fireIgnition {
    0% {
        transform: translateX(-50%) scaleY(0);
        opacity: 0;
    }

    30% {
        transform: translateX(-50%) scaleY(0.5);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
    }
}

@keyframes fireFlicker {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translateX(-48%) scale(1.05);
        opacity: 1;
    }

    50% {
        transform: translateX(-52%) scale(0.95);
        opacity: 0.9;
    }

    75% {
        transform: translateX(-50%) scale(1.02);
        opacity: 0.95;
    }
}

@keyframes fireGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 140, 0, 1), 0 0 30px rgba(255, 69, 0, 0.8);
    }
}

@keyframes matrixRain {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes matrixGlitch {

    0%,
    90%,
    100% {
        opacity: 0.3;
    }

    91%,
    99% {
        opacity: 0.1;
    }

    92%,
    98% {
        opacity: 0.5;
    }
}

@keyframes matrixFlicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    }
}