/* Image Sequence Scroll - Frontend Styles */

.iss-sequence-container {
    position: relative;
    width: 100%;
}

.iss-scroll-container {
    position: relative;
}

.iss-hero-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    z-index: 10;
}

.iss-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iss-hero-section > * {
    flex-shrink: 0;
}

/* Adjust height based on container if inside Elementor */
.elementor-widget-shortcode .iss-hero-wrapper,
.elementor-widget-shortcode .iss-hero-section {
    min-height: 100%;
    height: 100%;
}

/* If container has specific height, use it */
.iss-sequence-container[style*="height"] .iss-hero-wrapper,
.iss-sequence-container[style*="height"] .iss-hero-section {
    min-height: inherit;
    height: inherit;
}

/* Support for Elementor section/column heights */
.elementor-section .iss-hero-wrapper,
.elementor-section .iss-hero-section,
.elementor-column .iss-hero-wrapper,
.elementor-column .iss-hero-section {
    min-height: 100%;
    height: 100%;
}

.iss-scroll-spacer {
    height: 300vh; /* Creates scroll distance for sequence animation */
}

/* Adjust spacer height based on container */
.elementor-widget-shortcode .iss-scroll-spacer {
    height: 300%;
}

.iss-sequence-container[style*="height"] .iss-scroll-spacer {
    height: calc(var(--container-height, 300vh));
}

/* Calculate spacer based on container height for Elementor */
.elementor-section .iss-scroll-spacer,
.elementor-column .iss-scroll-spacer {
    height: 300%;
}

/* Adjust spacer height based on container */
.elementor-widget-shortcode .iss-scroll-spacer {
    height: 300%;
}

.iss-sequence-container[style*="height"] .iss-scroll-spacer {
    height: calc(var(--container-height, 300vh));
}

/* Calculate spacer based on container height for Elementor */
.elementor-section .iss-scroll-spacer,
.elementor-column .iss-scroll-spacer {
    height: 300%;
}

.iss-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.iss-image-sequence {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.1s ease-out;
    z-index: 2;
    will-change: opacity;
}

.iss-image-sequence.active {
    opacity: 1;
}

.iss-hero-text-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.iss-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    transition: opacity 0.8s ease;
    display: block !important;
    width: 100%;
    margin-bottom: 1.5rem;
    flex: 0 0 auto;
}

.iss-hero-heading {
    font-weight: 700;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.02em;
    display: block !important;
    width: 100%;
    line-height: 1.2;
}

.iss-hero-subheading-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    transition: opacity 0.8s ease;
    display: block !important;
    width: 100%;
    margin-top: 0;
    flex: 0 0 auto;
}

.iss-hero-subheading {
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100%;
    line-height: 1.4;
}

.iss-custom-element {
    position: absolute;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.iss-custom-element.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

.iss-custom-element[data-position="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.iss-custom-element[data-position="top"] {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.iss-custom-element[data-position="bottom"] {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.iss-custom-element[data-position="left"] {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.iss-custom-element[data-position="right"] {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.iss-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iss-button-default {
    color: #00d4ff;
    background: transparent;
    border: 2px solid #00d4ff;
}

.iss-button-neon {
    color: #00d4ff;
    background: transparent;
    border: 2px solid #00d4ff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 212, 255, 1);
    animation: issNeonPulse 2s ease-in-out infinite;
}

.iss-button-neon:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.4),
        0 0 90px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 212, 255, 1);
}

.iss-button-outline {
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
}

.iss-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.iss-button-solid {
    color: #ffffff;
    background: #00d4ff;
    border: 2px solid #00d4ff;
}

.iss-button-solid:hover {
    background: #00b8e6;
    border-color: #00b8e6;
}

@keyframes issNeonPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 212, 255, 0.4),
            inset 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(0, 212, 255, 0.7),
            0 0 50px rgba(0, 212, 255, 0.6),
            0 0 75px rgba(0, 212, 255, 0.5),
            inset 0 0 25px rgba(0, 212, 255, 0.3);
    }
}

