/**
 * Image Parallax Widget Styles
 */

.image-parallax-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
}

.image-parallax-frame {
    position: relative;
    width: 100%;
    height: 400px; /* Default height, can be overridden via Elementor controls */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.image-parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* Enhanced movement visual effect */
    filter: brightness(1.05) contrast(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-parallax-frame {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .image-parallax-frame {
        height: 250px;
    }
}

/* Loading state */
.image-parallax-wrapper.loading .image-parallax-image {
    opacity: 0.7;
}

.image-parallax-wrapper.loaded .image-parallax-image {
    opacity: 1;
}

/* Hover effects (optional) */
.image-parallax-wrapper:hover .image-parallax-frame {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* Elementor editor specific styles */
.elementor-editor-active .image-parallax-wrapper {
    pointer-events: none;
}

.elementor-editor-active .image-parallax-image {
    transition: none;
}

/* Ensure proper stacking context */
.image-parallax-wrapper {
    z-index: 1;
}

.image-parallax-frame {
    z-index: 2;
}

.image-parallax-image {
    z-index: 3;
}

/* Smooth Scrolling Styles */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(51, 51, 51, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background: rgba(51, 51, 51, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
}

/* Smooth scroll for anchor links */
a[href^="#"] {
    transition: color 0.3s ease;
}

/* Enhanced parallax performance */
.image-parallax-wrapper {
    will-change: transform;
}

.image-parallax-image {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
} 