:root {
    --showcase-bg: #FFFFFF;
    --showcase-text-main: #0F172A;
    --showcase-text-secondary: #64748B;
    --showcase-primary: #059669;
    --showcase-gradient-start: #34D399;
    --showcase-gradient-end: #059669;
    --showcase-border: #E2E8F0;
    --showcase-card-bg: #F8FAFC;
    --showcase-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.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;
}

.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(5, 150, 105, 0.3);
}

/* --- Model Cards Grid (Slider Logic) --- */
.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);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    /* FIX: Set a clean, light gray BG for the placeholder */
    background: #EAF0F6; 
    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;
    /* Initial state for lazy loading */
    opacity: 0; 
}

.card-image.loaded {
    opacity: 1;
}

.model-card:hover .card-image {
    transform: scale(1.05);
}

/* FIX: Fallback Icon Styling */
.image-fallback-icon {
    position: absolute;
    color: #9CA3AF; /* Subtle Gray */
    font-size: 4rem; /* Large icon */
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 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;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.overlay-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.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;
    transition: background 0.2s;
}

.btn-card-action:hover {
    background: var(--showcase-text-main);
    color: #fff;
}

.card-text-content {
    padding: 25px;
    min-height: 150px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--showcase-text-main);
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--showcase-text-secondary);
    line-height: 1.5;
}

/* --- Responsive Adjustments --- */
@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;
    }
    .model-cards-grid {
        grid-template-columns: repeat(6, 90vw); /* 90vw width for mobile cards */
        grid-auto-flow: column;
        gap: 20px;
    }
}