/**
 * Bento Grid Component - Complete Redesign 2026
 * 
 * A fresh, creative bento grid with unique card designs,
 * creative layouts, and modern aesthetics.
 * 
 * @version 4.0.0
 * @date 2026-02-24
 */

/* ============================================
   BENTO GRID - Creative Layout
   ============================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: var(--space-6);
    padding: var(--space-6);
}

/* ============================================
   BENTO ITEM BASE
   ============================================ */

.bento-item {
    position: relative;
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   UNIQUE CARD DESIGNS
   ============================================ */

/* MISSION - Split Card with Diagonal */
.bento-mission {
    grid-column: 1 / span 8;
    grid-row: 1 / span 3;
    background: 
        linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(225deg, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
    border: none;
    position: relative;
}

.bento-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    clip-path: polygon(0 0, 100% 0, 100% 0, 85% 100%, 100% 0, 100% 0);
    border-radius: inherit;
}

.bento-mission::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.2), transparent);
    pointer-events: none;
}

/* VISION - Circle Card */
.bento-vision {
    grid-column: 9 / span 4;
    grid-row: 1 / span 3;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bento-vision::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    animation: rotate-border 20s linear infinite;
}

@keyframes rotate-border {
    to { transform: rotate(360deg); }
}

/* LEADERSHIP - Diamond Card */
.bento-leadership {
    grid-column: 1 / span 4;
    grid-row: 4 / span 2;
    background: rgba(6, 182, 212, 0.05);
    clip-path: polygon(15% 0, 0, 100% 15%, 100% 100% 0);
    transform: rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-leadership:hover {
    transform: rotate(0deg) scale(1.02);
}

/* COMMUNITY - Hexagon Card */
.bento-community {
    grid-column: 5 / span 4;
    grid-row: 4 / span 2;
    background: rgba(34, 197, 94, 0.08);
    clip-path: polygon(25% 0, 0, 75% 0, 100% 50%, 100% 50% 0, 75% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* IMPACT - Wave Card */
.bento-impact {
    grid-column: 9 / span 4;
    grid-row: 4 / span 2;
    background: linear-gradient(90deg, rgba(10, 14, 26, 0.9), rgba(245, 158, 11, 0.1));
    position: relative;
    overflow: hidden;
}

.bento-impact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        transparent 20px
    );
    animation: wave-move 8s linear infinite;
}

@keyframes wave-move {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(50px); }
}

/* VALUES - Pill Card */
.bento-values {
    grid-column: 1 / span 3;
    grid-row: 4 / span 2;
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* GROWTH - Arrow Card */
.bento-growth {
    grid-column: 4 / span 3;
    grid-row: 4 / span 2;
    background: rgba(10, 14, 26, 0.85);
    position: relative;
    clip-path: polygon(0 0, 0, 100%, 100% 0, 0);
}

.bento-growth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), transparent);
    clip-path: polygon(0 0, 0, 100%, 100% 0, 0);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bento-growth:hover::before {
    transform: translateX(0);
}

/* ============================================
   BENTO ICONS - Creative Styles
   ============================================ */

.bento-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    font-size: 1.75rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Icon Glow Effect */
.bento-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

/* Icon Variants */
.bento-icon-mission {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.bento-icon-vision {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    border-radius: 50%;
}

.bento-icon-leadership {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #0a0e1a;
    transform: rotate(45deg);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.bento-icon-community {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.bento-icon-impact {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.bento-icon-values {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.5);
    border-radius: 50%;
}

.bento-icon-growth {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

/* Hover Effects */
.bento-item:hover .bento-icon {
    transform: scale(1.1);
}

.bento-item:hover .bento-icon::before {
    opacity: 0.8;
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ============================================
   BENTO TYPOGRAPHY
   ============================================ */

.bento-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.bento-mission .bento-title {
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, #ffffff, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-vision .bento-title,
.bento-values .bento-title {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.bento-description {
    color: #94a3b8;
    font-size: var(--text-base);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.bento-mission .bento-description {
    font-size: var(--text-lg);
    max-width: 400px;
}

/* ============================================
   STATS DISPLAY
   ============================================ */

.bento-stats {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.bento-stat {
    flex: 1;
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.bento-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.bento-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.bento-stat:hover .bento-stat-value {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-stat-label {
    font-size: var(--text-xs);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   LOGO & DECORATIONS
   ============================================ */

.bento-logo {
    max-width: 80px;
    height: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
    margin-top: auto;
}

.bento-item:hover .bento-logo {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}

/* Floating particles decoration */
.bento-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bento-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    animation: float-particle 10s infinite;
}

@keyframes float-particle {
    0%, 100% { 
        transform: translateY(100%) translateX(0); 
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100%) translateX(20px); 
        opacity: 0;
    }
}

/* ============================================
   CTA BUTTON
   ============================================ */

.bento-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: var(--space-6);
    position: relative;
    z-index: 2;
}

.bento-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
}

.bento-cta i {
    transition: transform 0.3s ease;
}

.bento-cta:hover i {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .bento-mission {
        grid-column: 1 / span 5;
    }
    
    .bento-vision {
        grid-column: 6 / span 3;
    }
    
    .bento-leadership,
    .bento-community {
        grid-column: span 4;
    }
    
    .bento-impact {
        grid-column: 6 / span 3;
    }
    
    .bento-values,
    .bento-growth {
        grid-column: span 4;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .bento-mission {
        grid-column: 1 / span 4;
        grid-row: 1 / span 2;
    }
    
    .bento-vision {
        grid-column: 5 / span 2;
        grid-row: 1 / span 2;
    }
    
    .bento-leadership,
    .bento-community {
        grid-column: span 3;
    }
    
    .bento-impact {
        grid-column: 1 / span 4;
        grid-row: 3 / span 2;
    }
    
    .bento-values,
    .bento-growth {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .bento-mission,
    .bento-vision,
    .bento-leadership,
    .bento-community,
    .bento-impact,
    .bento-values,
    .bento-growth {
        grid-column: span 1;
        grid-row: span 1;
        clip-path: none;
        border-radius: var(--radius-2xl);
    }
    
    .bento-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .bento-title {
        font-size: var(--text-xl);
    }
    
    .bento-mission .bento-title {
        font-size: var(--text-2xl);
    }
    
    .bento-stats {
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .bento-item,
    .bento-icon,
    .bento-cta,
    .bento-stat,
    .bento-logo {
        transition: none;
    }
    
    .bento-vision::before,
    .bento-icon::before,
    .bento-particle {
        animation: none;
    }
    
    .bento-impact::before {
        animation: none;
    }
}