/* Glass Slider Frontend Styles - Enhanced v4.0 */
.glass-slider-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.glass-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.glass-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-img) center/cover no-repeat;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    will-change: opacity, transform;
}

.glass-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

/* Ken Burns Effect - Dynamic Intensity */
.glass-slide.ken-burns.active {
    animation: kenBurnsDynamic 12s ease-out forwards;
}

@keyframes kenBurnsDynamic {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(var(--kb-intensity, 1.2));
    }
}

/* Parallax Background Layer removed to prevent image duplication */

.glass-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 1000px;
    width: 95%;
    color: white;
    box-shadow: none;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-content:hover {
    transform: translateY(-5px) translateZ(0);
}

.slide-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-desc {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-glass:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.animate-layer {
    opacity: 0;
    animation-duration: var(--layer-duration, 0.8s);
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.glass-slide.active .animate-layer.fadeInUp,
.animate-layer.fadeInUp.active {
    animation-name: gsFadeInUp;
}

.glass-slide.active .animate-layer.fadeInDown,
.animate-layer.fadeInDown.active {
    animation-name: gsFadeInDown;
}

.glass-slide.active .animate-layer.fadeInLeft,
.animate-layer.fadeInLeft.active {
    animation-name: gsFadeInLeft;
}

.glass-slide.active .animate-layer.fadeInRight,
.animate-layer.fadeInRight.active {
    animation-name: gsFadeInRight;
}

.glass-slide.active .animate-layer.zoomIn,
.animate-layer.zoomIn.active {
    animation-name: gsZoomIn;
}

.glass-slide.active .animate-layer.bounceIn,
.animate-layer.bounceIn.active {
    animation-name: gsBounceIn;
}

.glass-slide.active .animate-layer.slideInUp,
.animate-layer.slideInUp.active {
    animation-name: gsSlideInUp;
}

.glass-slide.active .animate-layer.slideInDown,
.animate-layer.slideInDown.active {
    animation-name: gsSlideInDown;
}

.glass-slide.active .animate-layer.slideInLeft,
.animate-layer.slideInLeft.active {
    animation-name: gsSlideInLeft;
}

.glass-slide.active .animate-layer.slideInRight,
.animate-layer.slideInRight.active {
    animation-name: gsSlideInRight;
}

.glass-slide.active .animate-layer.zoomOut,
.animate-layer.zoomOut.active {
    animation-name: gsZoomOut;
}

.glass-slide.active .animate-layer.rotateIn,
.animate-layer.rotateIn.active {
    animation-name: gsRotateIn;
}

.glass-slide.active .animate-layer.flipInY,
.animate-layer.flipInY.active {
    animation-name: gsFlipInY;
}

.glass-slide.active .animate-layer.pulse,
.animate-layer.pulse.active {
    animation-name: gsPulse;
}

.glass-slide.active .animate-layer.swing,
.animate-layer.swing.active {
    animation-name: gsSwing;
}

.glass-slide.active .animate-layer.skewInLeft,
.animate-layer.skewInLeft.active {
    animation-name: gsSkewInLeft;
}

.glass-slide.active .animate-layer.skewInRight,
.animate-layer.skewInRight.active {
    animation-name: gsSkewInRight;
}

.glass-slide.active .animate-layer.scaleIn,
.animate-layer.scaleIn.active {
    animation-name: gsScaleIn;
}

.glass-slide.active .animate-layer.blurIn,
.animate-layer.blurIn.active {
    animation-name: gsBlurIn;
}

@keyframes gsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gsFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gsFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gsFadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gsZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gsBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gsSlideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gsSlideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gsSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gsSlideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gsZoomOut {
    from {
        opacity: 0;
        transform: scale(1.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gsRotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes gsFlipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
        animation-timing-function: ease-in;
    }

    40% {
        transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
        animation-timing-function: ease-in;
    }

    60% {
        transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
        opacity: 1;
    }

    80% {
        transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    }

    to {
        transform: perspective(400px);
        opacity: 1;
    }
}

@keyframes gsPulse {
    from {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }

    to {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes gsSwing {
    20% {
        transform: rotate3d(0, 0, 1, 15deg);
    }

    40% {
        transform: rotate3d(0, 0, 1, -10deg);
    }

    60% {
        transform: rotate3d(0, 0, 1, 5deg);
    }

    80% {
        transform: rotate3d(0, 0, 1, -5deg);
    }

    to {
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes gsSkewInLeft {
    from {
        opacity: 0;
        transform: skewX(30deg) translateX(-100px);
    }

    to {
        opacity: 1;
        transform: skewX(0) translateX(0);
    }
}

@keyframes gsSkewInRight {
    from {
        opacity: 0;
        transform: skewX(-30deg) translateX(100px);
    }

    to {
        opacity: 1;
        transform: skewX(0) translateX(0);
    }
}

@keyframes gsScaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gsBlurIn {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Layer Content Styling */
.layer-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
}

.layer-image {
    max-width: 200px;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    color: black;
}

.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 10px;
}

/* Autoplay Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 11;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0.5) 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slider-progress-bar.animating {
    transition: width linear;
}

@media (max-width: 768px) {
    .glass-slider-wrapper {
        height: 500px;
    }

    .slider-controls {
        display: none;
    }

    .glass-content {
        padding: 2rem;
    }

    .slide-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .slider-indicators {
        bottom: 2rem;
        gap: 0.75rem;
    }
}