:root {
    --showcase-bg: #FFFFFF;
    --showcase-text-main: #0F172A;
    --showcase-text-secondary: #64748B;
    --showcase-primary: #ea580c; /* Updated to Orange */
    --showcase-gradient-start: #fb923c; /* Updated to Light Orange */
    --showcase-gradient-end: #ea580c;
    --showcase-border: #E2E8F0;
    --showcase-card-bg: #F8FAFC;
    --showcase-shadow-hover: 0 15px 30px rgba(234, 88, 12, 0.12);
}

.ai-model-showcase-section {
    padding: 80px 0;
    background-color: var(--showcase-bg);
    color: var(--showcase-text-main);
}

.section-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.title-primary {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--showcase-text-main);
    margin: 0;
}

.gradient-text-ai {
    background: linear-gradient(90deg, var(--showcase-primary) 0%, var(--showcase-gradient-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: var(--showcase-card-bg);
    border: 1px solid var(--showcase-border);
    color: var(--showcase-text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--showcase-primary);
    color: #fff;
    border-color: var(--showcase-primary);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
}

/* --- Model Cards Grid --- */
.model-cards-grid {
    display: grid;
    grid-auto-flow: column; 
    grid-auto-columns: minmax(300px, 1fr); 
    gap: 30px;
    overflow-x: scroll; 
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.model-cards-grid::-webkit-scrollbar {
    display: none;
}

.model-card {
    background: var(--showcase-card-bg);
    border: 1px solid var(--showcase-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.03);
    scroll-snap-align: start; 
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--showcase-shadow-hover);
    border-color: var(--showcase-gradient-start);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f1f5f9; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0; 
}

.card-image.loaded {
    opacity: 1;
}

.model-card:hover .card-image {
    transform: scale(1.05);
}

.image-fallback-icon {
    position: absolute;
    color: #cbd5e1; 
    font-size: 4rem;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    color: #fff;
}

.overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.btn-card-action {
    display: inline-block;
    background: var(--showcase-primary);
    color: #fff;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-card-action:hover {
    background: #fff;
    color: var(--showcase-primary);
}

.card-text-content {
    padding: 25px;
    min-height: 150px;
}

.card-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--showcase-primary); /* Changed to orange */
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.card-description {
    font-size: 0.9rem;
    color: var(--showcase-text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .section-top-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .title-primary {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .carousel-nav-buttons {
        align-self: flex-start;
        margin-top: -10px;
    }
}