/* Related Services Section - Creative Horizontal Design */

.related-services-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.related-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Header */
.related-services-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.related-services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.related-services-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.related-services-title .highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-services-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Horizontal Services Carousel */
.services-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-carousel {
    display: flex;
    gap: 24px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

/* Service Card */
.related-service-card {
    flex: 0 0 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.2;
    transform: scale(0.8) translateX(50px);
    pointer-events: none;
    filter: blur(2px);
}

.related-service-card.visible {
    opacity: 0.9;
    transform: scale(0.95) translateX(0);
    pointer-events: auto;
    filter: blur(0);
}

.related-service-card.active {
    opacity: 1;
    transform: scale(1.05) translateX(0);
    z-index: 2;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    filter: blur(0);
}

.related-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.related-service-card:hover::before {
    transform: scaleX(1);
}

.related-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* Service Icon */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.related-service-card:hover .service-icon-wrapper::before {
    transform: translateX(100%);
}

.service-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
    position: relative;
}

/* Service Content */
.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-content p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Service Action */
.service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.service-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #8b5cf6;
    transform: translateX(4px);
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Navigation Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #6366f1;
    transform: scale(1.3);
}

/* Call to Action */
.related-services-cta {
    text-align: center;
    margin-top: 50px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.cta-secondary {
    background: transparent;
    color: #94a3b8;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .related-service-card {
        flex: 0 0 280px;
        padding: 24px;
    }
    
    .related-services-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .related-services-section {
        padding: 40px 0;
    }
    
    .related-services-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .related-services-title {
        font-size: 1.8rem;
    }
    
    .related-services-description {
        font-size: 1rem;
    }
    
    .services-carousel-container {
        padding: 0 10px;
    }
    
    .related-service-card {
        flex: 0 0 260px;
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        margin-top: 30px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .related-services-section {
        padding: 30px 0;
    }
    
    .related-service-card {
        flex: 0 0 240px;
        padding: 18px;
    }
    
    .service-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .service-icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .related-services-title {
        font-size: 1.6rem;
    }
}

/* Animation Classes */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.related-service-card.animate-in {
    animation: slideInFromRight 0.6s ease forwards;
}

.related-service-card.animate-in:nth-child(1) { animation-delay: 0.1s; }
.related-service-card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.related-service-card.animate-in:nth-child(3) { animation-delay: 0.3s; }
.related-service-card.animate-in:nth-child(4) { animation-delay: 0.4s; }
.related-service-card.animate-in:nth-child(5) { animation-delay: 0.5s; }
