/* Horizontal Scrolling Solutions Section */
.solutions {
    width: 100%;
    overflow: hidden; /* Recommended */
    position: relative;
    background-color: #07172D;
}

#solutions {
    background-color: #07172D;
}

.solutions-scroll-container {
    padding-bottom: 0px;
}

.viewer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 700px;
    overflow: hidden;
  }

spline-viewer {
    width: 100%;            /* fill available width */
    height: 700px;           /* height adjusts to content, or set aspect */
    min-height: 300px;
    
}

.section-title-products {
    text-align: center;
}

.section-title-products h2 {
    font-size: clamp(45px, 2.5vw + 1px, 70px);
    font-weight:500;
    color:rgb(255, 255, 255);
    text-align: center;
    letter-spacing: -0.8px;
}

.solutions-scroll {
    display: flex;
    padding: 30px 20px;
    gap: 35px;
    transition: all 0.3s;
    cursor: grab;
    user-select: none;         /* disables text selection */
    -webkit-user-select: none; /* for Safari */
}

.solution-card-scroll {
    flex: 0 0 670px;
    height: 870px;
    background-color: white;
    border: 1px solid rgba(0, 211, 203, 0.2);
    border-radius: 30px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    cursor: grab;
    user-select: none;  
}

.agentic-card {
    background-color: #ffffff;
    border:3px solid #e68463;
}
.agentic-card h3 {
    color: #e68463;
}

.custom-llm-card {
    background-color: #ffffff;
    border:3px solid #a97e43;
}
.custom-llm-card h3 {
    color: #a97e43;
}

.behavioral-card {
    background-color: #ffffff;
    border:3px solid #10998b;
}
.behavioral-card h3 {
    color: #10998b;
}

.ai-research-card {
    background-color: #ffffff;
    border:3px solid #9c8c76;
}
.ai-research-card h3 {
    color: #9c8c76;
}

.neural-card {
    background-color: #ffffff;
    border:3px solid #7b9260;
}
.neural-card h3 {
    color: #7b9260;
}

.personas-card {
    background-color: #ffffff;
    border:3px solid #6c93bd;
}
.personas-card h3 {
    color: #6c93bd;
}

.solution-card-scroll::before {
    display: none;
}

.solution-card-scroll:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Solutions (Inner Card) title, copy, and link styles */
.inner-card-scroll {
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution-card-content-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.solution-icon-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: grab;
    user-select: none;  
}

.solution-icon-scroll img {
    height: 400px;
    width: auto;
    cursor: grab;
    user-select: none;  
}

.solution-title-scroll {
    margin-bottom: 15px;
    color: #000000;
    font-size: 30px;
    font-weight: 500;
}

.solution-description-scroll {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.learn-more-scroll {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background-color: #306fdb;
    color: #ffffff;
    border: 2px solid #306fdb;
    text-align: center;
}

.learn-more-scroll:hover {
    background-color: #447fe4;
    border: 2px solid #447fe4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 218, 255, 0.2);
}

.solution-card-scroll .learn-more-scroll:hover::after {
    margin-left: 10px;
}

/* Animation for active solution cards */
.solution-card-scroll.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 140, 167, 0) 50%,
        rgba(18, 142, 177, 0.15) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    animation: scanline 8s linear infinite;
}

.solution-card-scroll.active {
    animation: flicker 5s infinite;
    position: relative;
    overflow: hidden;
}

/* Large screens (1920px and larger) */
@media (min-width: 1920px) {
    .solution-card-scroll {
        flex: 0 0 550px;
        height: 750px;
    }
    
    .solution-icon-scroll img {
        height: 450px;
    }
    
    .solution-title-scroll {
        font-size: 28px;
        font-weight: 600;
        text-align: center;
        letter-spacing: -0.8px;
        line-height: 32px;
        margin-bottom: 15px;
        color: #000000;
    }
    
    .solution-description-scroll {
        font-size: 18px;
        font-weight: 300;
        text-align: center;
        flex-grow: 1;
        margin-bottom: 25px;
        color: #000000;
    }
    
    .learn-more-scroll {
        font-size: 16px;
        padding: 12px 24px;
        width: 170px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large screens (1500px to 1919px) */
@media (min-width: 1500px) and (max-width: 1919px) {
    .solutions-scroll {
        padding-left: 0px;
        gap: 38px;
    }

    .solution-card-scroll {
        flex: 0 0 500px;
        height: auto;
    }

    .solution-icon-scroll img {
        height: 280px;
    }

    .solution-title-scroll {
        font-size: 28px;
        font-weight: 600;
        text-align: center;
        letter-spacing: -0.8px;
        line-height: 32px;
        margin-bottom: 15px;
        color: #000000;
    }
    
    .solution-description-scroll {
        font-size: 18px;
        font-weight: 300;
        text-align: center;
        flex-grow: 1;
        margin-bottom: 25px;
        color: #000000;
    }
    
    .learn-more-scroll {
        padding: 12px 24px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Medium screens (990px to 1499px) */
@media (min-width: 801px) and (max-width: 1499px) {
    .solutions-scroll {
        padding-left: 0px;
        gap: 30px;
    }
    
    .solution-card-scroll {
        flex: 0 0 450px;
        height: auto;
        text-align: center;
    }

    .solution-icon-scroll img {
        height: auto;
        width: clamp(100px, 40vw + 10px, 250px);
        max-width: 100%;
        display: block;
    }
    
    .solution-title-scroll {
        margin-bottom: 15px;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -1.8;
        line-height: 30px;
    }
    
    .solution-description-scroll {
        margin-bottom: 20px;
        font-size: 16px;
    }
    
    .learn-more-scroll {
        padding: 12px 24px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Medium screens (768px to 989px) */
@media (min-width: 768px) and (max-width: 800px) {
    .solutions-scroll {
        padding-left: 0px;
        gap: 25px;
    }
    
    .solution-card-scroll {
        flex: 0 0 400px;
        height: auto;
        text-align: center;
    }

    .solution-icon-scroll img {
        height: auto;
        width: clamp(150px, 40vw + 20px, 200px);
        max-width: 100%;
        display: block;
    }

    .solution-title-scroll {
        margin-bottom: 15px;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -1.8;
        line-height: 30px;
    }
    
    .solution-description-scroll {
        margin-bottom: 20px;
        font-size: 16px;
    }
    
    .learn-more-scroll {
        padding: 12px 24px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 500px) and (max-width: 676px) {
    .viewer-wrapper {
        height: 600px;
    }

    spline-viewer {
        height: 700px;
    }
    .solutions-scroll-container {
        padding-bottom: 50px;
    }
    
    .section-title {
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 500px) {
    .viewer-wrapper {
        height: 600px;
    }

    spline-viewer {
        height: 700px;
    }
    .solutions-scroll-container {
        padding-bottom: 50px;
    }
    
    .section-title {
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 375px) {
    .section-title {
        text-align: center;
        margin-top: 80px;
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 35px;
        font-weight:500;
        color:rgb(59, 59, 59);
        text-align: center;
        letter-spacing: -0.8px;
    }

    .viewer-wrapper {
        height: 500px;
    }

    spline-viewer {
        height: 600px;
    }
    .solutions-scroll-container {
        padding-bottom: 10px;
    }
    
    .section-title {
        text-align: center;
        margin-top: 10px;
        margin-bottom: 30px;
    }
}