/**
 * Webinane Elementor Slider Styles
 * Modern, responsive slider with animations
 */

/* Container Styles */
.we-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.we-slider-swiper {
    width: 100%;
    height: 100%;
}

/* Slide Styles */
.we-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.we-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.we-slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
}

.we-slide:hover .we-slide-background {
    transform: scale(1.05);
}

.we-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Content Styles */
.we-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.we-slide-content-inner {
    max-width: 800px;
    width: 100%;
}

/* Typography */
.we-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.we-slide-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.we-slide-button-wrapper {
    margin-top: 40px;
}

.we-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.we-slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.we-slide-button:hover::before {
    left: 100%;
}

.we-slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.we-button-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.we-slide-button:hover .we-button-icon {
    transform: translateX(4px);
}

/* Navigation Styles */
.we-slider-next,
.we-slider-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.we-slider-next {
    right: 20px;
}

.we-slider-prev {
    left: 20px;
}

.we-slider-next:hover,
.we-slider-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.we-slider-next svg,
.we-slider-prev svg {
    color: #333;
    transition: color 0.3s ease;
}

.we-slider-next:hover svg,
.we-slider-prev:hover svg {
    color: #667eea;
}

/* Pagination Styles */
.we-slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.we-slider-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.we-slider-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .we-slide-title {
        font-size: 2.8rem;
    }
    
    .we-slide-description {
        font-size: 1.1rem;
    }
    
    .we-slide-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .we-slider-container {
        height: 400px;
        border-radius: 8px;
    }
    
    .we-slide-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .we-slide-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .we-slide-content {
        padding: 30px 20px;
    }
    
    .we-slide-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .we-slider-next,
    .we-slider-prev {
        width: 45px;
        height: 45px;
    }
    
    .we-slider-next {
        right: 15px;
    }
    
    .we-slider-prev {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .we-slider-container {
        height: 350px;
    }
    
    .we-slide-title {
        font-size: 1.8rem;
    }
    
    .we-slide-description {
        font-size: 0.9rem;
    }
    
    .we-slide-content {
        padding: 20px 15px;
    }
    
    .we-slide-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .we-slider-next,
    .we-slider-prev {
        width: 40px;
        height: 40px;
    }
    
    .we-slider-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Animation Enhancements */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Custom Swiper Overrides */
.we-slider-swiper .swiper-button-disabled {
    opacity: 0.3;
}

.we-slider-swiper .swiper-slide-active .we-slide-background {
    animation: kenBurns 12s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Enhanced Transition Effects */
.we-slider-swiper .swiper-slide {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom Effect Enhancement */
.we-slider-swiper[data-effect="zoom"] .swiper-slide {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Creative Effect Enhancement */
.we-slider-swiper[data-effect="creative"] .swiper-slide {
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cards Effect Enhancement */
.we-slider-swiper[data-effect="cards"] .swiper-slide {
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Panorama Effect Enhancement */
.we-slider-swiper[data-effect="panorama"] .swiper-slide {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Push Effect Enhancement */
.we-slider-swiper[data-effect="push"] .swiper-slide {
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Loading State */
.we-slider-container.loading {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .we-slider-next,
    .we-slider-prev {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .we-slider-next svg,
    .we-slider-prev svg {
        color: #fff;
    }
    
    .we-slider-next:hover svg,
    .we-slider-prev:hover svg {
        color: #667eea;
    }
}