/* ==========================================================================
   portfolio.css - Modern Bento Grid & Sleek SaaS Portfolio Showcase
   Supports Dark & Light themes, Full Bilingual RTL (Hebrew) & LTR (English)
   ========================================================================== */

:root,
[data-theme="dark"] {
    --bg-primary: #060913;
    --bg-secondary: #0b1120;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(23, 34, 59, 0.88);
    --bg-glass: rgba(15, 23, 42, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-sky: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.16);
    --font-heading: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fredoka', 'Rubik', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(15, 23, 42, 0.09);
    --border-hover: rgba(2, 132, 199, 0.45);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-sky: #0284c7;
    --accent-indigo: #4f46e5;
    --accent-purple: #9333ea;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;
    --shadow-card: 0 18px 40px -15px rgba(15, 23, 42, 0.09);
    --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   AMBIENT BACKGROUND EFFECTS
   ========================================================================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.25;
}

[data-theme="light"] .ambient-orb {
    opacity: 0.14;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #38bdf8, #6366f1);
}

.orb-2 {
    top: 40%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #a855f7, #ec4899);
}

.orb-3 {
    bottom: -10%;
    right: 20%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #10b981, #06b6d4);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.55) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.55) 0%, transparent 75%);
}

/* ==========================================================================
   STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-game {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.18);
}

.btn-header-game:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(56, 189, 248, 0.3));
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.game-cta-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.icon-btn,
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover,
.lang-btn:hover {
    border-color: var(--accent-sky);
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 72px 0 64px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-sky);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 60%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -5px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-sky);
    transform: translateY(-2px);
}

.btn-game {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.14));
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    color: var(--text-primary);
    padding: 10px 22px;
    text-align: start;
    box-shadow: 0 10px 28px -8px rgba(16, 185, 129, 0.25);
}

.btn-game:hover {
    transform: translateY(-3px);
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(56, 189, 248, 0.24));
    box-shadow: 0 15px 35px -8px rgba(16, 185, 129, 0.4);
}

.cta-game-sprite {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cta-game-sprite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.cta-game-labels {
    display: flex;
    flex-direction: column;
}

.cta-game-main {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.cta-game-sub {
    font-size: 11.5px;
    color: var(--accent-emerald);
    font-weight: 600;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-sky);
    line-height: 1.1;
}

.metric-lbl {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 34px;
    background: var(--border-subtle);
}

/* Hero Visual Showcase Card */
.hero-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.showcase-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}

.window-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.hero-mini-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-bento-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.22s ease;
}

[data-theme="light"] .mini-bento-item {
    background: rgba(15, 23, 42, 0.02);
}

.mini-bento-item:hover {
    border-color: var(--accent-sky);
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.06);
}

.mini-bento-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.mini-emoji {
    font-size: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.mini-bento-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mini-bento-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.mini-flagship {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
    border-color: rgba(56, 189, 248, 0.3);
}

.mini-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-sky);
    margin-bottom: 2px;
}

.mini-arcade {
    grid-column: span 2;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    border-color: rgba(16, 185, 129, 0.35);
}

.mini-arcade-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-arcade-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-emerald);
    letter-spacing: 0.5px;
}

.mini-play-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px;
    background: #10b981;
    color: #fff;
    white-space: nowrap;
}

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
.section {
    padding: 68px 0;
}

.section-header {
    margin-bottom: 36px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.eyebrow-amber {
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.eyebrow-emerald {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
}

/* ==========================================================================
   2. FLAGSHIP PRODUCT SPOTLIGHT (BENTO HERO CARD)
   ========================================================================== */
.flagship-bento-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 30px;
    padding: 42px;
    box-shadow: var(--shadow-card), 0 0 50px rgba(56, 189, 248, 0.14);
    overflow: hidden;
}

[data-theme="light"] .flagship-bento-card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border-color: rgba(2, 132, 199, 0.35);
}

.flagship-glow {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
    pointer-events: none;
}

.flagship-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.badge-sky {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flagship-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.25;
}

.flagship-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.7;
}

.flagship-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.flagship-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.feat-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.flagship-preview-frame {
    background: rgba(9, 13, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .flagship-preview-frame {
    background: #0f172a;
    color: #f8fafc;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.preview-url {
    font-family: monospace;
    font-size: 12px;
    color: #94a3b8;
    margin-inline-start: 8px;
}

.preview-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.preview-icon-hero {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-icon-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.p-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.p-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #38bdf8;
}

.p-stat-lbl {
    font-size: 11px;
    color: #94a3b8;
}

.preview-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #cbd5e1;
}

.p-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.p-fill {
    height: 100%;
    border-radius: 99px;
}

/* ==========================================================================
   BENTO PROJECT CARDS & GRIDS
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.bento-platforms {
    grid-template-columns: repeat(2, 1fr);
}

.bento-games {
    grid-template-columns: repeat(3, 1fr);
}

.bento-culture {
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--accent-sky));
    opacity: 0.75;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 28px rgba(56, 189, 248, 0.14);
}

.project-card:hover::before {
    opacity: 1;
    height: 5px;
}

.project-card.card-featured-game {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.85));
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .project-card.card-featured-game {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), #ffffff);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.project-card:hover .card-icon-wrap {
    transform: scale(1.07) rotate(-3deg);
}

.card-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-emoji-badge {
    font-size: 28px;
}

.card-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.card-body {
    margin-bottom: 22px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-sky);
    margin-bottom: 12px;
    display: block;
}

.card-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.card-action-link:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.card-action-link.action-game {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ==========================================================================
   DIRECTORY FILTERING & SEARCH SECTION
   ========================================================================== */
.directory-section {
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .directory-section {
    background: rgba(241, 245, 249, 0.7);
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--accent-sky);
    color: var(--text-primary);
}

.filter-tab.active {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.filter-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.search-box {
    position: relative;
    min-width: 280px;
    flex: 1;
    max-width: 360px;
}

.search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    padding-inline-start: 42px;
    padding-inline-end: 16px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.directory-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: 24px;
}

.empty-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
}

.directory-empty p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* ==========================================================================
   ABOUT & CONTACT SECTION
   ========================================================================== */
.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-card,
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.about-header,
.contact-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.about-avatar,
.contact-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 8px;
}

.about-text,
.contact-sub {
    font-size: 15.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.75;
}

.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-coffee {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-sky);
}

.form-status {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
}

/* ==========================================================================
   FOOTER & FLOATING 2D GAME BADGE
   ========================================================================== */
.site-footer {
    padding: 36px 0 96px;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-sky);
}

/* Persistent Floating Game Mode Button */
.floating-game-badge {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 190;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1.5px solid #10b981;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.floating-game-badge:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.55);
}

.floating-sprite-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.floating-sprite-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.floating-badge-text {
    display: flex;
    flex-direction: column;
}

.floating-badge-label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
}

.floating-badge-sub {
    font-size: 11px;
    color: #34d399;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .flagship-bento-card,
    .about-contact-grid {
        grid-template-columns: 1fr;
    }

    .bento-games {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .hero-section {
        padding: 44px 0 40px;
    }

    .bento-platforms,
    .bento-games,
    .bento-culture {
        grid-template-columns: 1fr;
    }

    .project-card.card-featured-game {
        grid-column: span 1;
    }

    .hero-mini-bento {
        grid-template-columns: 1fr;
    }

    .mini-flagship,
    .mini-arcade {
        grid-column: span 1;
    }

    .flagship-bento-card {
        padding: 26px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 16px;
    }

    .floating-badge-sub {
        display: none;
    }

    .btn-header-game #header-game-text {
        display: none;
    }
}


/* ==========================================================================
   FAQ SECTION (AEO / GEO STRUCTURED ACCORDION)
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(56, 189, 248, 0.4);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.4;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-sky);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-sky);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   UPDATES & CHANGELOG SECTION (DevLog Feed & Likes)
   ========================================================================== */

.updates-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

.updates-filters-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.update-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.update-filter-btn img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
}

.update-filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.update-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-sky) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.updates-feed {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.update-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    box-shadow: var(--shadow-card);
}

.update-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), 0 0 25px rgba(56, 189, 248, 0.12);
}

/* LTR Direction Overrides for English / Non-Hebrew Updates */
.update-card.is-ltr,
.update-card[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
}

.update-card.is-ltr .update-title,
.update-card[dir="ltr"] .update-title {
    text-align: left !important;
    direction: ltr !important;
}

.update-card.is-ltr .update-body,
.update-card[dir="ltr"] .update-body {
    text-align: left !important;
    direction: ltr !important;
}

.update-card.is-ltr .update-card-header,
.update-card[dir="ltr"] .update-card-header {
    direction: ltr !important;
}

.update-card.is-ltr .update-projects-list,
.update-card[dir="ltr"] .update-projects-list {
    direction: ltr !important;
    justify-content: flex-start !important;
}

.update-card.is-ltr .update-project-pill .ext-arrow,
.update-card[dir="ltr"] .update-project-pill .ext-arrow {
    margin-right: 0 !important;
    margin-left: 3px !important;
}

.update-card.is-ltr .update-footer,
.update-card[dir="ltr"] .update-footer {
    direction: ltr !important;
}

.update-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.update-date-badge {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.update-author {
    font-size: 12px;
    color: var(--text-muted);
}

.update-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.update-projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.update-project-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.update-project-pill img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.update-project-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-sky);
    color: var(--accent-sky);
    transform: translateY(-1px);
}

.update-project-pill .ext-arrow {
    font-size: 11px;
    opacity: 0.7;
    margin-right: 2px;
}

[dir="ltr"] .update-project-pill .ext-arrow {
    margin-right: 0;
    margin-left: 2px;
}

.update-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.update-body p {
    margin-bottom: 10px;
}

.update-body p:last-child {
    margin-bottom: 0;
}

.update-body a {
    color: var(--accent-sky);
    text-decoration: underline;
    font-weight: 600;
}

.update-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.update-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.like-button:hover {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.45);
    color: var(--accent-rose);
    transform: scale(1.05);
}

.like-button:active {
    transform: scale(0.95);
}

.like-button.liked {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.like-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.like-button:hover .like-icon {
    transform: scale(1.15);
}

.share-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-post-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.updates-admin-cta {
    text-align: center;
    margin-top: 40px;
}

.updates-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px dashed var(--border-subtle);
    padding: 6px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.updates-admin-link:hover {
    color: var(--accent-sky);
    border-color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.05);
}

.updates-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
}


/* ==========================================================================
   UPDATES DEEP LINKING, SOCIAL SHARING & LOAD MORE
   ========================================================================== */

@keyframes updateTargetPulse {
    0% {
        box-shadow: 0 0 0 rgba(56, 189, 248, 0);
        border-color: var(--border-subtle);
    }
    30% {
        box-shadow: 0 0 35px rgba(56, 189, 248, 0.55), 0 0 10px rgba(99, 102, 241, 0.4);
        border-color: var(--accent-sky);
    }
    100% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
        border-color: var(--accent-sky);
    }
}

.update-card.highlight-target {
    animation: updateTargetPulse 1.2s ease-out forwards;
    border-color: var(--accent-sky) !important;
}

.update-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.share-btn-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.share-btn-pill:hover {
    transform: translateY(-2px) scale(1.08);
}

.share-btn-pill.whatsapp:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: #25D366;
    color: #25D366;
}

.share-btn-pill.linkedin:hover {
    background: rgba(10, 102, 194, 0.16);
    border-color: #0A66C2;
    color: #38bdf8;
}

.share-btn-pill.copy:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: var(--accent-sky);
    color: var(--accent-sky);
}

.updates-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    font-family: inherit;
}

.btn-load-more:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), 0 0 20px rgba(56, 189, 248, 0.15);
}

.btn-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-archive-link:hover {
    color: var(--accent-sky);
    border-color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.06);
    transform: translateY(-1px);
}
