/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

::-moz-selection { /* Code for Firefox */
    color: #fff;
    background-color: #A3068A;
  }
  
  ::selection {
    color: #fff;
    background-color: #A3068A;
  }

  body {
    overflow-x: hidden;
  }


  /* ================================
   Scroll to Top Button
   ================================ */
.scroll-to-top {
    position: fixed;
    color: #fff;
    bottom: 64px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #D82EBD;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 46, 189, 0.4);
}

.scroll-to-top:hover {
    background: #c0289f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 46, 189, 0.5);
}

.scroll-to-top:active {
    transform: translateY(0);
}


/* ================================
   Animated Button Shortcode
   ================================ */
.animated-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 72px;
    background: linear-gradient(135deg, #B85886 0%, #E77AAF 50%, #B85886 100%);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(239, 156, 196, 0.4),
        0 0 0 0 rgba(239, 156, 196, 0.6);
    animation: 
        btnGradient 3s ease infinite,
        btnPulse 2s ease-in-out infinite,
        btnGlow 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.animated-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.animated-btn .btn-text {
    position: relative;
    z-index: 2;
}

.animated-btn .btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: btnShimmer 2.5s ease-in-out infinite;
}

/* Gradient movement animation */
@keyframes btnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle scale pulse */
@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Glowing shadow pulse 
@keyframes btnGlow {
    0%, 100% { 
        box-shadow: 
            0 4px 15px rgba(239, 156, 196, 0.4),
            0 0 20px rgba(239, 156, 196, 0.2);
    }
    50% { 
        box-shadow: 
            0 6px 25px rgba(239, 156, 196, 0.6),
            0 0 35px rgba(239, 156, 196, 0.4);
    }
}
    */

/* Shimmer sweep effect */
@keyframes btnShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

#cta-button {
    padding: 6px 12px !important;
    font-size: 1rem !important;
  }






/* ================================
   Image Comparison Slider
   ================================ */
   .image-compare-wrapper {
    margin: 0 auto;
    display: block;
    width: 100%;
}

.image-compare {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    touch-action: pan-y pinch-zoom; /* Allow vertical scroll, prevent horizontal swipe */
    height: 360px;
}

/* Prevent Elementor swipe conflicts */
.image-compare.is-dragging {
    touch-action: none;
}

.image-compare img {
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Right/After image - base layer, fills container */
.image-compare__right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-compare__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Left/Before image - overlay that clips */
.image-compare__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.image-compare__left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/* Labels */
.image-compare__label {
    position: absolute;
    bottom: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.image-compare__label--left {
    left: 16px;
}

.image-compare__label--right {
    right: 16px;
}

/* Handle - wider touch target */
.image-compare__handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 44px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    touch-action: none; /* Critical: prevents browser handling of touch */
}

.image-compare__handle:focus {
    outline: none;
}

.image-compare__handle:focus .image-compare__handle-circle {
    box-shadow: 0 0 0 4px rgba(216, 46, 189, 0.5);
}

.image-compare__handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-compare__handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.image-compare__handle-circle svg {
    width: 16px;
    height: 16px;
    color: #333;
    flex-shrink: 0;
}

.image-compare__handle-circle:hover,
.image-compare.is-dragging .image-compare__handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* Dynamic left image width calculation - matches container width for proper clipping */
.image-compare[data-initialized="true"] .image-compare__left img {
    width: var(--compare-width, 100%);
    min-width: var(--compare-width, 100%);
}



.faceworkout-nav--next {
    text-align: right;
}