/* ==========================================================================
   AI MODELS SHOWCASE - IMAGE REVEAL LIST SECTION
   Clean transparent background, liquid-glass model card, and clickable links
   ========================================================================== */

.ai-models-section {
    position: relative;
    padding: 120px 0 140px;
    overflow: visible;
    background: transparent;
}

.ai-models-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.ai-models-header {
    text-align: center;
    margin-bottom: 56px;
}

.ai-models-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #6366f1;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.ai-models-badge svg {
    color: #6366f1;
}

.ai-models-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--text, #111111);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.ai-models-title span {
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-models-subtitle {
    font-size: 1.05rem;
    color: var(--text-light, #64748b);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   STAGE WRAPPER & IMAGE REVEAL LIST CONTAINER
   -------------------------------------------------------------------------- */
.ai-models-stage {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Floating Side Preview Image (Clean neutral card floating beside the box) */
.ai-models-side-preview {
    position: absolute;
    left: -168px;
    top: 0;
    width: 148px;
    height: 96px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) scale(0.92);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-models-side-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.ai-side-preview-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #0d0f16;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.35),
                0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.ai-side-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
    background: transparent;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

/* --------------------------------------------------------------------------
   MAIN LIST CARD CONTAINER (Liquid-glass obsidian surface)
   -------------------------------------------------------------------------- */
.ai-reveal-box {
    width: 100%;
    background: rgba(13, 17, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 16px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.22),
                0 8px 24px -4px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ai-models-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   LIST ITEM ROW (Clickable Anchor)
   -------------------------------------------------------------------------- */
.ai-reveal-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

/* Row Left Group */
.ai-row-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-row-num {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    min-width: 28px;
    transition: color 0.3s ease;
}

.ai-row-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-row-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.01em;
    margin: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Inline mini preview on mobile/tablet */
.ai-row-inline-thumb {
    display: none;
    width: 34px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    background: #0d0f16;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Row Right Group */
.ai-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-row-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    text-align: right;
}

.ai-row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Subdue non-hovered rows ONLY when list is hovered */
.ai-models-list:hover .ai-reveal-row:not(:hover) {
    opacity: 0.45;
}

/* --------------------------------------------------------------------------
   ROW-ONLY HOVER GRADIENTS (Activated on Hover / Focus / Active State)
   -------------------------------------------------------------------------- */

/* 1. Antigravity: Blue and Purple */
.ai-reveal-row[data-model="antigravity"]:hover,
.ai-reveal-row[data-model="antigravity"].is-active,
.ai-reveal-row[data-model="antigravity"]:focus-visible {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.32) 0%, rgba(168, 85, 247, 0.32) 100%) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* 2. ChatGPT: Black and Blue */
.ai-reveal-row[data-model="chatgpt"]:hover,
.ai-reveal-row[data-model="chatgpt"].is-active,
.ai-reveal-row[data-model="chatgpt"]:focus-visible {
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.92) 0%, rgba(14, 165, 233, 0.38) 100%) !important;
    border-color: rgba(14, 165, 233, 0.45) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* 3. Gemini: Green and Blue */
.ai-reveal-row[data-model="gemini"]:hover,
.ai-reveal-row[data-model="gemini"].is-active,
.ai-reveal-row[data-model="gemini"]:focus-visible {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(56, 189, 248, 0.32) 100%) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* 4. Claude: Orange and Grey */
.ai-reveal-row[data-model="claude"]:hover,
.ai-reveal-row[data-model="claude"].is-active,
.ai-reveal-row[data-model="claude"]:focus-visible {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.32) 0%, rgba(100, 116, 139, 0.38) 100%) !important;
    border-color: rgba(249, 115, 22, 0.45) !important;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Active / Hover Text Enhancements */
.ai-reveal-row:hover .ai-row-num,
.ai-reveal-row.is-active .ai-row-num {
    color: #ffffff;
}

.ai-reveal-row:hover .ai-row-title,
.ai-reveal-row.is-active .ai-row-title {
    color: #ffffff;
    transform: translateX(4px);
}

.ai-reveal-row:hover .ai-row-role,
.ai-reveal-row.is-active .ai-row-role {
    color: rgba(255, 255, 255, 0.95);
}

.ai-reveal-row:hover .ai-row-arrow,
.ai-reveal-row.is-active .ai-row-arrow {
    color: #ffffff;
    transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) {
    .ai-models-side-preview {
        left: -140px;
        width: 124px;
        height: 80px;
    }
}

@media (max-width: 1080px) {
    .ai-models-side-preview {
        left: -110px;
        width: 100px;
        height: 65px;
    }
}

@media (max-width: 860px) {
    .ai-models-side-preview {
        display: none;
    }

    .ai-row-inline-thumb {
        display: block;
    }

    .ai-models-section {
        padding: 90px 0;
    }

    .ai-reveal-row {
        padding: 16px 18px;
    }

    .ai-row-title {
        font-size: 1.15rem;
    }

    .ai-row-role {
        font-size: 0.85rem;
    }

    .ai-row-left {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .ai-reveal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ai-row-right {
        width: 100%;
        justify-content: space-between;
        padding-left: 40px;
    }

    .ai-row-role {
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ai-models-side-preview,
    .ai-reveal-row,
    .ai-row-title,
    .ai-row-arrow {
        transition: none !important;
        transform: none !important;
    }
}

