/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 * 
 * Production Directory: http://ainspire.ai/css/services.css
 * Development Directory: http://localhost:8000/css/services.css
 * 
 * Used in Services Scroller located on home page 
 * /sections/services.php
 */ 

/* Scrollable Services Section */
.services-section {
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
    background: #000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(16, 18, 74, 1) 45%, rgba(0, 0, 0, 1) 100%);
}

.top_card_services {
    position: absolute;
    width: 100%;
    height: 100px;
    background: #000000ab;
    background: linear-gradient(135deg, rgb(2 20 35) 0%, rgb(1 15 30) 50%, rgb(3 25 62) 100%);
}
.section-title {
    text-align: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.services-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 20px;
    /* Removed these to show a scrollbar */
    /* scrollbar-width: none; */ 
    /* -ms-overflow-style: none; */
}

/* These new rules make the scrollbar visible and style it */
.services-scroll-wrapper::-webkit-scrollbar {
    height: 8px; /* Set the height of the scrollbar */
    background-color: #000; /* Set the track color to black */
}

.services-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #3b82f657; /* Blue thumb with transparency */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.services-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #3b82f6; /* A more solid blue on hover */
}

.service-card {
    position: relative;
    min-width: 380px;
    width: 280px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%; 
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0px) brightness(0.7);
}

.service-card:hover .card-background {
    transform: scale(1.15);
    transform-origin: top left; 
    filter: blur(3px) brightness(0.3);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    transition: opacity 0.6s ease;
}

.card-1 .gradient-overlay {
    background: radial-gradient(#ffffff00, #4693f929);
}

.card-2 .gradient-overlay {
    background: radial-gradient(#ffffff00, #41529d29);

}

.card-3 .gradient-overlay {
    background: radial-gradient(#ffffff00, #4575b929);

}

.card-4 .gradient-overlay {
    background: radial-gradient(#ffffff00, #4598b829);

}

.service-card:hover .gradient-overlay {
    opacity: 0.9;
}

.card-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 30px;
    height: 100%; 
    display: flex;
    flex-direction: column;
    filter: brightness(1.2);
    justify-content: space-between;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.6s ease;
}

.service-card:hover .card-content {
    backdrop-filter: blur(1px);
}

.card-label {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}

.card-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.6s ease;
}

.service-card:hover .card-title {
    transform: translateY(-5px);
}

.card-description {
    position:absolute;
    top: 150px;
    width: 300px;
    color: #fff;
    text-align:left;
    font-size: 18px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card:hover .card-description {
    opacity: 1;
    transform: translateX(0);
}

.expand-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #3b82f6;
    padding: 5px;
    border-radius: 20px;
    background: #3b82f64d;
    width: 160px;
    opacity: 1;
}

.service-card:hover .expand-button {
    opacity: 1;
    transform: translateX(-50%);
}

.expand-button:after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.expand-button:hover:after {
    transform: translateX(5px);
}

.shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 3;
}

.service-card:hover .shimmer-overlay {
    transform: translateX(100%);
}

/* Navigation Arrows */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 5;
}

.scroll-nav:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.scroll-nav.prev {
    left: 10px;
}

.scroll-nav.next {
    right: 10px;
}
 
 

.card-1 .gradient-overlay {
       /* background: radial-gradient(#ffffff00, #f9646429);*/
    /*background: linear-gradient(135deg, rgba(26, 13, 74, 0.9) 0%, rgba(45, 27, 105, 0.8) 50%, rgba(15, 76, 58, 0.9) 100%);*/
}

.card-2 .gradient-overlay {
    /*background: linear-gradient(135deg, rgba(74, 13, 74, 0.9) 0%, rgba(107, 45, 105, 0.8) 50%, rgba(61, 26, 91, 0.9) 100%);*/
}

.card-3 .gradient-overlay {
   /* background: linear-gradient(135deg, rgba(13, 26, 74, 0.9) 0%, rgba(45, 61, 105, 0.8) 50%, rgba(26, 15, 60, 0.9) 100%);*/
}

.research-card:hover .gradient-overlay {
    opacity: 0.9;
}

.expand-button:hover:after {
    transform: translateX(5px);
}

.shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 3;
}

.research-card:hover .shimmer-overlay {
    transform: translateX(100%);
}

/* Progress Dots */
.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

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

.indicator-dot.active,
.indicator-dot:hover {
    background: #3b82f6;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .service-card {
        min-width: 260px;
        width: 260px;
        height: 400px;
    }
    
    .services-scroll-wrapper {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .scroll-nav {
        display: none;
    }
    
    .card-title {
        font-size: 20px;
    }
}
/* Add this to your existing services.css file - append to the end */

/* Auto-scroll active state for web (same as hover effects) */
.service-card.auto-scroll-active .card-background {
    transform: scale(1.15);
    transform-origin: top left; 
    filter: blur(3px) brightness(0.3);
}

.service-card.auto-scroll-active .gradient-overlay {
    opacity: 0.9;
}

.service-card.auto-scroll-active .card-content {
    backdrop-filter: blur(1px);
}

.service-card.auto-scroll-active .card-title {
    transform: translateY(-5px);
}

.service-card.auto-scroll-active .card-description {
    opacity: 1;
    transform: translateX(0);
}

.service-card.auto-scroll-active .expand-button {
    opacity: 1;
    transform: translateX(-50%);
}

.service-card.auto-scroll-active .shimmer-overlay {
    transform: translateX(100%);
}

/* Mobile Active State (replaces hover on mobile) */
@media (max-width: 768px) {
    .service-card.mobile-active .card-background {
        transform: scale(1.15);
        filter: blur(3px) brightness(0.3);
    }
    
    .service-card.mobile-active .gradient-overlay {
        opacity: 0.9;
    }
    
    .service-card.mobile-active .card-content {
        backdrop-filter: blur(1px);
    }
    
    .service-card.mobile-active .card-title {
        transform: translateY(-5px);
    }
    
    .service-card.mobile-active .card-description {
        opacity: 1;
        transform: translateX(0);
    }
    
    .service-card.mobile-active .expand-button {
        opacity: 1;
        transform: translateX(-50%);
    }
    
    .service-card.mobile-active .shimmer-overlay {
        transform: translateX(100%);
    }
    
    /* Smooth transitions for mobile active state */
    .service-card .card-background,
    .service-card .gradient-overlay,
    .service-card .card-content,
    .service-card .card-title,
    .service-card .card-description,
    .service-card .expand-button,
    .service-card .shimmer-overlay {
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}