/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
    .bento-card-1 { grid-column: span 8; }
    .bento-card-2 { grid-column: span 4; grid-row: span 2; }
    .bento-card-3 { grid-column: span 8; }
}

/* Bento Cards */
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.bento-card-1 { background: var(--bg-color); }
.bento-card-2 { background: #111; color: white; }
.dark-mode .bento-card-2 { background: #1a1a1a; }
.bento-card-3 { background: #fff7ed; border-color: #fed7aa; }
.dark-mode .bento-card-3 { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.3); }

.bento-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 0.1;
    color: var(--color-1);
    transition: all 0.5s;
}

body.rtl .bento-icon {
    right: auto;
    left: 0;
}

.bento-card:hover .bento-icon {
    opacity: 1;
    transform: scale(1.1) rotate(12deg);
    color: #ff9201;
}

.bento-glow-dark {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(249,115,22,0.3), transparent);
    filter: blur(80px);
    border-radius: 9999px;
    pointer-events: none;
}

.bento-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}

.dark-mode .bento-gradient {
    background: linear-gradient(to bottom right, rgba(249,115,22,0.2), transparent);
}

.bento-content {
    position: relative;
    z-index: 10;
}

.bento-header {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.bento-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.75rem, 3vw, 2rem);
    height: clamp(1.75rem, 3vw, 2rem);
    border-radius: 9999px;
    background: #fed7aa;
    color: #ea580c;
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    font-weight: bold;
}

.bento-card-2 .bento-number { background: rgba(255,255,255,0.1); color: white; }
.bento-card-3 .bento-number { background: #fed7aa; color: #c2410c; }
.dark-mode .bento-card-3 .bento-number { background: rgba(249, 115, 22, 0.3); color: #ff9201; }

.label {
    font-size: clamp(0.6rem, 1vw, 0.625rem);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.bento-card-2 .label { color: rgba(255,255,255,0.4); }
.bento-card-3 .label { color: rgba(194,65,12,0.5); }
.dark-mode .bento-card-3 .label { color: rgba(249, 115, 22, 0.7); }

.bento-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-color);
    transition: color 0.3s;
}

.bento-title,
.bento-title * {
    direction: ltr !important;
    text-align: left !important;
}

.bento-card-1:hover .bento-title { color: #ff9201; }
.bento-card-2 .bento-title { color: white; }
.bento-card-3 .bento-title { color: #111; }
.dark-mode .bento-card-3 .bento-title { color: var(--text-color); }

.bento-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    max-width: 32rem;
}

.bento-card-3 .bento-text { color: #374151; }
.dark-mode .bento-card-3 .bento-text { color: var(--text-light); }

.bento-quote {
    color: rgba(255,255,255,0.8);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-style: italic;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.bento-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.bento-list-item {
    display: flex;
    align-items: start;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.bento-list-item svg { flex-shrink: 0; margin-top: 0.25rem; }
.bento-list-item span { font-size: clamp(0.85rem, 1.5vw, 0.875rem); font-weight: 500; color: rgba(255,255,255,0.9); }

.bento-dots {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw, 0.5rem);
}

.dot {
    width: clamp(0.65rem, 1.2vw, 0.75rem);
    height: clamp(0.65rem, 1.2vw, 0.75rem);
    border-radius: 9999px;
    box-shadow: 0 0 0 2px var(--bg-color);
}

.dot-1 { background: #f97316; }
.dot-2 { background: #fbbf24; }
.dot-3 { background: #4ade80; }

@media (max-width: 480px) {
    .bento-card { padding: 1.25rem; }
    .bento-icon svg { width: 50px; height: 50px; }
}

@media (min-width: 1920px) {
    .bento-card { padding: 3rem; }
    .bento-title { font-size: 3.5rem; }
}

@media (min-width: 3840px) {
    .bento-card { padding: 4rem; }
    .bento-title { font-size: 5rem; }
}

@media (min-width: 5120px) {
    .bento-card { padding: 5rem; }
    .bento-title { font-size: 6rem; }
}
