/* services-new.css - Integrated Image Overlay Design */

.services-section {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 80px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

.section-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-header hr {
    width: 100px;
    border: 3px solid #6f42c1;
    margin: 0 auto;
    border-radius: 50px;
}

.section-header p {
    font-size: 1.1rem;
    color: #636e72;
    margin-top: 20px;
    font-style: italic;
}

/* Slider Container */
.services-slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Individual Slide */
.slide-item {
    min-width: 100%;
    position: relative;
    height: 700px;
    flex-shrink: 0;
}

/* Integrated Wrapper - Image as Background */
.slide-integrated-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Image Container - Full Background */
.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

/* Dark Overlay for Content Readability */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 2;
}

/* Content Overlay - On Top of Image */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 40px;
}

/* Left Sidebar - Thumbnail Navigation */
.thumb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.thumb-card {
    width: 120px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.thumb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.thumb-card.active::before {
    background: rgba(111, 66, 193, 0.4);
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.thumb-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumb-card:hover .thumb-label,
.thumb-card.active .thumb-label {
    opacity: 1;
}

.thumb-card.active {
    border-color: #6f42c1;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(111, 66, 193, 0.6);
}

.thumb-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Right Panel - Content */
.content-panel {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    position: relative;
}

/* Slide Number Badge */
.slide-number {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

/* Title */
.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 35px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Dynamic Content Blocks */
.dynamic-content {
    display: none;
    opacity: 0;
    animation: fadeInContent 0.5s ease forwards;
}

.dynamic-content.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-inner {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-badge {
    display: inline-block;
    background: rgba(111, 66, 193, 0.9);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.content-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 35px rgba(111, 66, 193, 0.5);
    align-self: flex-start;
    backdrop-filter: blur(10px);
}

.slide-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 50px rgba(111, 66, 193, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.slide-cta svg {
    transition: transform 0.3s ease;
}

.slide-cta:hover svg {
    transform: translateX(5px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.slider-btn {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    color: #2d3436;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(111, 66, 193, 0.5);
    border-color: transparent;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
}

.dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.6);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-overlay {
        padding: 50px;
        gap: 30px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .thumb-card {
        width: 100px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    .content-overlay {
        flex-direction: column;
        padding: 40px;
        gap: 25px;
        justify-content: flex-end;
    }
    
    .thumb-sidebar {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .thumb-card {
        width: 90px;
        height: 110px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .content-panel {
        max-width: 100%;
    }
    
    .slide-item {
        height: 800px;
    }
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .content-overlay {
        padding: 30px 25px;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .content-description {
        font-size: 0.95rem;
    }
    
    .content-inner {
        padding: 25px;
    }
    
    .thumb-card {
        width: 75px;
        height: 95px;
    }
    
    .slider-btn {
        width: 55px;
        height: 55px;
    }
    
    .slide-cta {
        padding: 15px 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .slide-item {
        height: 700px;
    }
    
    .content-overlay {
        padding: 25px 20px;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .thumb-card {
        width: 65px;
        height: 85px;
    }
    
    .thumb-label {
        font-size: 0.65rem;
    }
    
    .slider-nav {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-panel > * {
    animation: slideInRight 0.8s ease forwards;
    opacity: 0;
}

.content-panel > *:nth-child(1) { animation-delay: 0.1s; }
.content-panel > *:nth-child(2) { animation-delay: 0.2s; }
.content-panel > *:nth-child(3) { animation-delay: 0.3s; }
.content-panel > *:nth-child(4) { animation-delay: 0.4s; }

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}