/* css/bento-solutions.css - Redesigned for Fluidity and Responsiveness */

.platform-section {
    padding: 80px 0;
    overflow: hidden;
}

/* Container for Horizontal Scroll */
.bento-solutions-container {
    padding: 20px 0 40px;
    margin: 0;
    width: 100%;
}

.bento-solutions-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bento-solutions-track::-webkit-scrollbar {
    display: none;
}

/* Individual Bento Card - Responsive sizing */
.bento-card {
    flex: 0 0 calc(100vw - 40px);
    max-width: 1000px;
    height: 520px;
    scroll-snap-align: center;
    background: rgba(10, 25, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    display: grid;
    gap: 12px;
    padding: 12px;
    transition: all 0.5s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.bento-card:hover {
    border-color: rgba(0, 255, 157, 0.2);
    transform: translateY(-5px);
}

/* Shared Bento Cells */
.bento-cell {
    position: relative;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cell-visual {
    padding: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-white {
    background: #ffffff;
    color: #0c161d;
}

.cell-white .bento-title, 
.cell-white .bento-description,
.cell-white .windows-text {
    color: #0c161d;
}

.cell-vibrant {
    background: linear-gradient(135deg, var(--color-accent), #00a852);
    color: #fff;
}

.cell-vibrant .bento-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Content Styles */
.bento-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 255, 157, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: fit-content;
}

.bento-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.bento-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Features */
.bento-features {
    display: grid;
    gap: 8px;
}

.bento-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.bento-feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Windows Cell */
.bento-cell-windows {
    padding: 20px;
    text-align: center;
    align-items: center;
}

.windows-logo {
    height: 140px; /* Increased to maximize focus */
    width: auto;
    margin-bottom: 5px; /* Reduced margin for tighter centering */
}

.windows-text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Image Assets - FIX: FULL VISIBILITY */
.bento-image-context {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Default to center */
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-image-context {
    transform: scale(1.03);
}

/* Placeholder for Mockups */
.device-mockup-placeholder {
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
}

/* Layout Definitions */
.bento-layout-1 { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, 1fr); }
.bento-layout-1 > :nth-child(1) { grid-row: span 2; }

.bento-layout-2 { grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; }
.bento-layout-2 > :nth-child(1) { grid-column: span 2; }

.bento-layout-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bento-layout-3 > :nth-child(1) { grid-row: span 2; }

/* Desktop-specific adjustments (wide screens) */
@media (min-width: 1024px) {
    .bento-card {
        flex: 0 0 1000px;
        margin: 0 auto;
    }
    
    .bento-layout-1 { grid-template-columns: 2.2fr 1fr 1fr; grid-template-rows: 1.2fr 1fr 1fr; }
    .bento-layout-1 > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } /* Main Image */
    .bento-layout-1 > :nth-child(2) { grid-column: 2 / span 2; grid-row: 1; } /* Header */
    .bento-layout-1 > :nth-child(3) { grid-column: 2; grid-row: 2; } /* Feature 1 */
    .bento-layout-1 > :nth-child(4) { grid-column: 2; grid-row: 3; } /* Feature 2 */
    .bento-layout-1 > :nth-child(5) { grid-column: 1; grid-row: 3; } /* Windows 10 */
    .bento-layout-1 > :nth-child(6) { grid-column: 3; grid-row: 2 / span 2; } /* Hardware cell */
    
    /* Specific Image Positioning Overrides */
    .bento-layout-1 > :nth-child(1) .bento-image-context { object-position: left center; } 
    .bento-layout-1 > :nth-child(6) .bento-image-context { object-fit: contain; padding: 0; transform: scale(1.55); }

    .bento-layout-2 { grid-template-columns: 2.2fr 1fr 1fr; grid-template-rows: 1.2fr 1fr 1fr; }
    .bento-layout-2 > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } /* Visual Mockup */
    .bento-layout-2 > :nth-child(2) { grid-column: 2 / span 2; grid-row: 1; } /* Header */
    .bento-layout-2 > :nth-child(3) { grid-column: 2 / span 2; grid-row: 2; } /* Feature 1 */
    .bento-layout-2 > :nth-child(4) { grid-column: 2 / span 2; grid-row: 3; } /* Feature 2 */
    .bento-layout-2 > :nth-child(5) { grid-column: 1; grid-row: 3; } /* Windows 10 */

    /* Specific Image Positioning Overrides (consistent with Card 1) */
    .bento-layout-2 > :nth-child(1) .bento-image-context { object-position: center; } 
    .bento-layout-2 > :nth-child(5) .windows-logo { height: 120px; } /* Slightly smaller to fit layout 2 better */

    .bento-layout-3 { grid-template-columns: 1fr 1fr 2.2fr; grid-template-rows: 1.2fr 1fr 1fr; }
    .bento-layout-3 > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; } /* Header */
    .bento-layout-3 > :nth-child(2) { grid-column: 1 / span 2; grid-row: 2; } /* Feature 1 */
    .bento-layout-3 > :nth-child(3) { grid-column: 1 / span 2; grid-row: 3; } /* Feature 2 */
    .bento-layout-3 > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; } /* Visual Mockup (right side) */
    .bento-layout-3 > :nth-child(5) { grid-column: 3; grid-row: 3; } /* Security Highlight */

    /* Specific Image Positioning Overrides (consistent with Card 1) */
    .bento-layout-3 > :nth-child(4) .bento-image-context { object-fit: cover; padding: 0; } 
    .bento-layout-3 > :nth-child(5) i { font-size: 3rem; color: var(--color-accent); }
}

/* Indicators */
.bento-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    width: 24px;
    background: var(--color-accent);
}

/* MOBILE RE-DESIGN: NO MORE EXTREME LENGTH */
@media (max-width: 767px) {
    .platform-section { padding: 40px 0; }
    
    .bento-card {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .bento-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .bento-cell {
        padding: 20px;
        border-radius: 20px;
        min-height: 150px;
        height: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .bento-card.is-visible .bento-cell {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger effect for cells */
    .bento-card.is-visible .bento-cell:nth-child(1) { transition-delay: 0.1s; }
    .bento-card.is-visible .bento-cell:nth-child(2) { transition-delay: 0.2s; }
    .bento-card.is-visible .bento-cell:nth-child(3) { transition-delay: 0.3s; }
    .bento-card.is-visible .bento-cell:nth-child(4) { transition-delay: 0.4s; }
    .bento-card.is-visible .bento-cell:nth-child(5) { transition-delay: 0.5s; }
    .bento-card.is-visible .bento-cell:nth-child(6) { transition-delay: 0.6s; }

    .cell-visual {
        min-height: 200px;
        order: -1;
    }

    .bento-title {
        font-size: 1.4rem;
    }

    .bento-description {
        font-size: 0.85rem;
    }

    .bento-cell-windows {
        min-height: auto;
        padding: 15px;
    }
}

/* DESKTOP REVEAL ANIMATIONS */
@media (min-width: 768px) {
    .bento-card {
        opacity: 0;
        transform: scale(0.98) translateY(20px);
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    
    .bento-card.is-visible {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .bento-cell {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .bento-card.is-visible .bento-cell {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .bento-card.is-visible .bento-cell:nth-child(1) { transition-delay: 0.1s; }
    .bento-card.is-visible .bento-cell:nth-child(2) { transition-delay: 0.2s; }
    .bento-card.is-visible .bento-cell:nth-child(3) { transition-delay: 0.3s; }
    .bento-card.is-visible .bento-cell:nth-child(4) { transition-delay: 0.4s; }
    .bento-card.is-visible .bento-cell:nth-child(5) { transition-delay: 0.5s; }
    .bento-card.is-visible .bento-cell:nth-child(6) { transition-delay: 0.6s; }
}

/* WOW EFFECT: Glow pulse on reveal */
@keyframes bentoGlow {
    0% { box-shadow: 0 0 0 rgba(0, 255, 157, 0); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 157, 0.2); }
    100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
}

.bento-card.is-visible {
    animation: bentoGlow 1.5s ease-out forwards;
}
