
/* ============================================================
   ANIMATED IMAGE SLIDER SECTION
   ============================================================ */

.slider-section {
    background: var(--bg-primary);
    padding: 4.5rem 0;
}

.slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(8, 182, 173, 0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(21, 40, 63, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    top: 0;
    left: 0;
}

.slider-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slider-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slider-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f8feff 0%, #eef9fb 100%);
}

.slider-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(21, 40, 63, 0) 42%, rgba(21, 40, 63, 0.74) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 2;
}

.slider-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 2rem 2rem 4.25rem;
    animation: slideInUp 0.8s ease-out;
}

.slider-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #f8fbff;
    letter-spacing: 0;
    line-height: 1.2;
}

.slider-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.75;
}

.slider-item.empty-slide .slider-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.92) 100%);
}

.slider-item.empty-slide .slider-title {
    color: #15283f;
}

.slider-item.empty-slide .slider-description {
    color: #40566f;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 182, 173, 0.72);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-nav:hover {
    background: var(--bs-accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--bs-accent);
    width: 32px;
    border-radius: 999px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider-item,
    .slider-text {
        animation: none;
        transition: none;
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-text {
        padding: 1.5rem;
    }
    
    .slider-title {
        font-size: 1.8rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 280px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
    
    .slider-text {
        padding: 1rem;
    }
    
    .slider-title {
        font-size: 1.4rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
    }
}

/* Dark Mode Slider Support */
[data-theme="dark"] .slider-wrapper {
    background: rgba(8, 182, 173, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .slider-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 15, 27, 0.75) 100%);
}
