/**
 * ECOHUB - Enhanced Professional Services Slider
 * Premium UI/UX with smooth animations and modern design
 */

/* ==========================================
   HERO SLIDER CONTAINER ENHANCEMENTS
========================================== */

.hero_slider--thumbs {
    position: relative;
    padding: 30px 0;
    overflow: hidden;
}

.hero_slider--thumbs::before,
.hero_slider--thumbs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero_slider--thumbs::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.6), transparent);
}

.hero_slider--thumbs::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 31, 63, 0.6), transparent);
}

/* ==========================================
   SERVICE SLIDE CARDS - PROFESSIONAL DESIGN
========================================== */

.thumb.swiper-slide {
    position: relative;
    opacity: 0.6;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: grayscale(30%) brightness(0.9);
}

.thumb.swiper-slide:hover {
    opacity: 0.85;
    transform: scale(0.92);
    filter: grayscale(0%) brightness(1);
}

.thumb.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: grayscale(0%) brightness(1) !important;
    z-index: 5;
}

/* ==========================================
   MEDIA CONTAINER - IMAGE STYLING
========================================== */

.thumb .media {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb:hover .media {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.thumb.swiper-slide-active .media {
    box-shadow: 
        0 25px 80px rgba(13, 165, 116, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(13, 165, 116, 0.4);
}

/* Image Styling */
.thumb .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb:hover .media img {
    transform: scale(1.08);
}

.thumb.swiper-slide-active .media img {
    transform: scale(1.05);
}

/* Image Overlay */
.thumb .media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 31, 63, 0.1) 0%,
        rgba(0, 31, 63, 0.4) 50%,
        rgba(0, 31, 63, 0.8) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.thumb:hover .media::before {
    background: linear-gradient(
        180deg,
        rgba(0, 31, 63, 0.05) 0%,
        rgba(0, 31, 63, 0.3) 50%,
        rgba(0, 31, 63, 0.75) 100%
    );
}

.thumb.swiper-slide-active .media::before {
    background: linear-gradient(
        180deg,
        rgba(13, 165, 116, 0.05) 0%,
        rgba(0, 31, 63, 0.3) 50%,
        rgba(0, 31, 63, 0.7) 100%
    );
}

/* Active Indicator Border */
.thumb .media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 16px;
    transition: border-color 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.thumb.swiper-slide-active .media::after {
    border-color: rgba(13, 165, 116, 0.7);
    animation: pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(13, 165, 116, 0.7);
        box-shadow: 0 0 0 0 rgba(13, 165, 116, 0.5);
    }
    50% {
        border-color: rgba(13, 165, 116, 0.9);
        box-shadow: 0 0 0 8px rgba(13, 165, 116, 0);
    }
}

/* ==========================================
   TITLE STYLING - PREMIUM TYPOGRAPHY
========================================== */

.thumb .title {
    position: relative;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
    padding: 0 12px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumb:hover .title {
    color: #0DA574;
    transform: translateY(-2px);
    text-shadow: 
        0 2px 12px rgba(13, 165, 116, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.thumb.swiper-slide-active .title {
    color: #0DA574;
    font-size: 17px;
    font-weight: 700;
    text-shadow: 
        0 2px 16px rgba(13, 165, 116, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Title underline effect */
.thumb .title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0DA574, transparent);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb.swiper-slide-active .title::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==========================================
   ACTIVE SERVICE NUMBER BADGE
========================================== */

.thumb .media .service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(13, 165, 116, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    z-index: 3;
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 16px rgba(13, 165, 116, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumb.swiper-slide-active .media .service-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Add badge numbers dynamically via JS or keep static */
.thumb:nth-child(1) .service-badge::before { content: '01'; }
.thumb:nth-child(2) .service-badge::before { content: '02'; }
.thumb:nth-child(3) .service-badge::before { content: '03'; }
.thumb:nth-child(4) .service-badge::before { content: '04'; }
.thumb:nth-child(5) .service-badge::before { content: '05'; }
.thumb:nth-child(6) .service-badge::before { content: '06'; }
.thumb:nth-child(7) .service-badge::before { content: '07'; }

/* ==========================================
   HOVER GLOW EFFECT
========================================== */

.thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 165, 116, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.thumb:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.thumb.swiper-slide-active::before {
    width: 320px;
    height: 320px;
    opacity: 0.5;
}

/* ==========================================
   LOADING SKELETON (OPTIONAL)
========================================== */

.thumb.loading .media {
    background: linear-gradient(
        90deg,
        rgba(0, 31, 63, 0.8) 0%,
        rgba(0, 61, 122, 0.8) 50%,
        rgba(0, 31, 63, 0.8) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 1200px) {
    .thumb .media {
        height: 240px;
    }
    
    .thumb .title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .hero_slider--thumbs::before,
    .hero_slider--thumbs::after {
        width: 60px;
    }
    
    .thumb .media {
        height: 200px;
        border-radius: 12px;
    }
    
    .thumb .title {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .thumb .media .service-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .thumb .media {
        height: 180px;
    }
    
    .thumb .title {
        font-size: 13px;
    }
}

/* ==========================================
   ACCESSIBILITY ENHANCEMENTS
========================================== */

/* Make slides clickable links */
.thumb {
    display: block;
    text-decoration: none;
    color: inherit;
}

.thumb:focus-visible {
    outline: 3px solid #0DA574;
    outline-offset: 4px;
    border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .thumb,
    .thumb .media,
    .thumb .media img,
    .thumb .title {
        transition: none;
        animation: none;
    }
}

/* ==========================================
   PRINT STYLES
========================================== */

@media print {
    .hero_slider--thumbs::before,
    .hero_slider--thumbs::after {
        display: none;
    }
    
    .thumb .media .service-badge {
        display: none;
    }
}
