/* Real product gallery. The original Arabic screenshots are never translated or cropped. */
#portfolio,#demo{scroll-margin-top:110px}
.work-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:30px}
.work-heading .section-head{margin:0;max-width:680px}
.work-count{flex-shrink:0;color:var(--brand);font-weight:800;font-size:14px;padding:10px 16px;background:#e6f3f0;border-radius:8px}
.systems-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.system-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 28px #0f172a06;transition:transform .2s,box-shadow .2s}
.system-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px #0f172a12}
.system-card-image{display:block;width:100%;padding:20px 20px 0;background:linear-gradient(130deg,#eaf0f7,#f4f8fc);border:0;cursor:pointer;overflow:hidden}
.system-card-image img{display:block;width:100%;aspect-ratio:1.95;object-fit:contain;object-position:top;border:1px solid #d2dce8;border-radius:6px 6px 0 0;background:#fff;box-shadow:0 5px 18px #142e4c18;transition:transform .3s}
.system-card-image:hover img{transform:translateY(-4px)}
.system-card-copy{padding:25px 26px 26px}
.system-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-bottom:10px}
.system-tag{font-weight:800;color:var(--brand);letter-spacing:.04em}
.system-card h3{font-size:22px;line-height:1.5;margin-bottom:10px}
.system-card p{font-size:15px;color:var(--muted);line-height:1.85;margin-bottom:20px}
.system-card-link{display:inline-flex;align-items:center;gap:10px;border:0;background:none;cursor:pointer;color:var(--blue);font-weight:800;text-align:start;padding:0}
.system-card-link svg{width:18px;height:18px;flex-shrink:0}
html[dir="rtl"] .system-card-link svg{transform:scaleX(-1)}
#demo{width:min(1360px,94%);padding-top:20px}
.gallery-shell{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 24px 64px #132e4d0b}
.gallery-top{padding:32px 34px 24px;background:linear-gradient(120deg,#f7fafc,#eff6f8);border-bottom:1px solid var(--line)}
.gallery-kicker{display:flex;gap:8px;align-items:center;color:var(--brand);font-size:12px;font-weight:800;letter-spacing:.05em;margin-bottom:15px}
.gallery-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--brand)}
.system-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.system-switcher button,.part-switcher button{border:1px solid var(--line);background:#fff;color:var(--muted);padding:9px 15px;border-radius:7px;cursor:pointer;font-weight:700;font-size:14px;transition:background .15s,border-color .15s}
.system-switcher button[aria-pressed="true"]{background:#123b55;color:white;border-color:#123b55}
.gallery-system-header{display:flex;gap:20px;justify-content:space-between;align-items:flex-end}
.gallery-system-header h2{font-size:clamp(24px,2.7vw,34px);line-height:1.5;max-width:880px;margin-bottom:7px}
.gallery-system-header p{color:var(--muted);font-size:15px;max-width:850px}
.gallery-system-number{font-size:52px;font-weight:800;line-height:1;color:#d1e0e8;direction:ltr;font-family:Inter,Arial,sans-serif}
.part-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.part-switcher:empty{display:none}
.part-switcher button[aria-pressed="true"]{border-color:#0f766e;background:#e6f3ef;color:#095b55}
.gallery-content{display:grid;grid-template-columns:minmax(0,1fr) 335px;direction:ltr;align-items:stretch}
.gallery-visual{min-width:0;padding:28px;background:#f0f4f8;direction:inherit}
.screen-view{display:flex;align-items:center;justify-content:center;min-height:350px;aspect-ratio:1.95;border:1px solid #d6e0e9;border-radius:8px;background:#e5ebf2;overflow:hidden;position:relative}
.screen-image-button{border:0;padding:0;display:block;width:100%;cursor:zoom-in;background:none;line-height:0}
.screen-image-button img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain}
.screen-image-button img[hidden]{display:none}
.screen-image-button:focus-visible{outline:4px solid #2563eb;outline-offset:-4px}
.screen-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:#eef3f8;color:#66758b;font-size:14px}
.screen-loading[hidden]{display:none}
.screen-error{padding:35px;text-align:center;color:var(--muted);line-height:1.8}
.screen-error[hidden]{display:none}
.screen-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;direction:ltr}
.screen-caption{font-size:13px;color:var(--muted);direction:inherit}
.screen-enlarge{display:inline-flex;gap:7px;align-items:center;border:0;background:none;color:var(--blue);cursor:pointer;padding:5px;font-size:13px;font-weight:700}
.screen-enlarge svg{width:17px;height:17px}
.screen-aside{padding:30px 28px;display:flex;flex-direction:column;border-left:1px solid var(--line);direction:rtl}
html[dir="ltr"] .screen-aside{direction:ltr}
.screen-eyebrow{font-size:12px;letter-spacing:.04em;color:var(--brand);font-weight:800;margin-bottom:10px}
.screen-aside h3{font-size:24px;line-height:1.45;margin-bottom:14px}
.screen-description{font-size:15px;color:var(--muted);line-height:1.95;margin-bottom:20px}
.screen-features{list-style:none;display:grid;gap:13px;margin:0 0 26px;padding:0}
.screen-features li{position:relative;padding-inline-start:23px;font-size:14px;line-height:1.75;color:#304458}
.screen-features li::before{content:"✓";position:absolute;inset-inline-start:0;top:1px;font-weight:800;color:var(--brand)}
.screen-project-link{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}
.screen-project-link a{font-size:13px;font-weight:800;color:var(--blue);display:inline-block}
.screen-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 16px;direction:rtl}
html[dir="ltr"] .screen-navigation{direction:ltr}
.gallery-nav-button{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;min-height:42px;border:1px solid #ccd8e4;border-radius:6px;background:#fff;color:#183c58;cursor:pointer;font-size:13px;font-weight:700}
.gallery-nav-button:disabled{opacity:.4;cursor:default}
.gallery-nav-button svg{width:16px;height:16px}
html[dir="rtl"] .gallery-nav-button svg{transform:scaleX(-1)}
.screen-position{font-family:Inter,Arial,sans-serif;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;direction:ltr}
.thumbnail-label{font-size:12px;font-weight:800;color:var(--muted);margin-bottom:10px;direction:rtl}
html[dir="ltr"] .thumbnail-label{direction:ltr}
.screen-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 12px;scrollbar-width:thin;scrollbar-color:#a6b9cb transparent;direction:rtl;overscroll-behavior-inline:contain}
html[dir="ltr"] .screen-thumbnails{direction:ltr}
.screen-thumbnail{display:flex;flex-direction:column;flex:0 0 132px;border:2px solid transparent;padding:4px;border-radius:7px;background:#fff;cursor:pointer;color:#637489;text-align:start}
.screen-thumbnail[aria-current="true"]{border-color:var(--blue);color:#174c95;background:#f4f8ff}
.screen-thumbnail img{width:100%;aspect-ratio:1.95;object-fit:contain;background:#edf2f7;border-radius:3px}
.screen-thumbnail span{display:block;padding:7px 3px 3px;font-size:11px;line-height:1.5;font-weight:700}
.gallery-footnote{border-top:1px solid var(--line);padding:14px 28px;font-size:12px;color:var(--muted);background:#fff;line-height:1.9}
.gallery-dialog{border:1px solid #38546b;border-radius:12px;background:#101e2c;color:white;width:min(96vw,1700px);max-width:none;max-height:96vh;padding:0;margin:auto;overflow:hidden}
.gallery-dialog::backdrop{background:#07111be8;backdrop-filter:blur(6px)}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-bottom:1px solid #33475b}
.lightbox-title{min-width:0;font-size:14px;line-height:1.5}
.lightbox-actions{display:flex;gap:8px;flex-shrink:0}
.lightbox-actions button{border:1px solid #4a5e72;border-radius:6px;color:#fff;background:#1d3348;padding:7px 12px;cursor:pointer;font-size:13px;min-height:40px}
.lightbox-image-area{overflow:auto;text-align:center;max-height:calc(96vh - 147px);background:#091522}
.lightbox-image-area img{display:block;max-width:100%;max-height:calc(96vh - 147px);width:auto;height:auto;margin:auto;object-fit:contain}
.lightbox-image-area.is-zoomed img{max-width:none;max-height:none;cursor:zoom-out}
.lightbox-footer{display:flex;align-items:center;justify-content:center;gap:24px;padding:10px 16px}
.lightbox-footer .gallery-nav-button{background:#1d3348;border-color:#4a5e72;color:#fff}
.lightbox-footer .screen-position{color:#d6e0e9}
body.gallery-modal-open{overflow:hidden}
.hero .product-window{animation:none}
.hero-real-screen{display:block;width:100%;border:0;cursor:pointer;line-height:0;background:#e7eff7}
.hero-real-screen img{display:block;width:100%;height:auto;object-fit:contain}
.hero-screen-foot{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;background:#fff;font-size:12px;color:var(--muted)}
.hero-screen-foot b{color:var(--brand)}
button:focus-visible,a:focus-visible{outline:3px solid #2563eb;outline-offset:4px}
@media(min-width:1500px){.gallery-content{grid-template-columns:minmax(0,1fr) 360px}.screen-view{min-height:410px}}
@media(max-width:1050px){.gallery-content{grid-template-columns:minmax(0,1fr) 300px}.gallery-visual{padding:20px}.screen-aside{padding:24px}.screen-view{min-height:260px}.screen-aside h3{font-size:21px}.screen-description{font-size:14px}}
@media(max-width:800px){.gallery-content{grid-template-columns:1fr}.screen-aside{border-top:1px solid var(--line);border-left:0;padding:26px}.screen-view{min-height:0}.gallery-top{padding:25px}.gallery-system-number{display:none}.screen-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.screen-project-link{margin-top:0}.work-heading{align-items:flex-start;flex-direction:column;gap:15px}.gallery-system-header h2{font-size:26px}}
@media(max-width:600px){.systems-grid{grid-template-columns:1fr;gap:20px}.system-card-copy{padding:20px}.system-card h3{font-size:21px}.system-card-image{padding:14px 14px 0}.system-card-link{min-height:42px}.gallery-top{padding:22px 18px}.system-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.system-switcher button{font-size:12px;padding:9px 8px;min-height:42px}.gallery-system-header h2{font-size:23px}.gallery-system-header p{font-size:14px}.part-switcher button{font-size:12px;flex:1;padding:8px 5px}.gallery-visual{padding:14px}.screen-view{aspect-ratio:auto;min-height:150px}.screen-aside{padding:23px 20px}.screen-features{grid-template-columns:1fr}.screen-aside h3{font-size:22px}.screen-description{font-size:15px}.screen-thumbnail{flex-basis:112px}.gallery-footnote{padding:14px 20px}.screen-tools{align-items:flex-start;gap:6px}.screen-caption{font-size:11px}.screen-enlarge{font-size:11px;white-space:nowrap}.gallery-nav-button{font-size:12px;padding:8px 10px}.gallery-dialog{width:98vw;max-height:98dvh}.lightbox-toolbar{padding:10px;gap:8px;flex-wrap:wrap}.lightbox-title{flex:1 1 200px;font-size:12px}.lightbox-actions{margin-inline-start:auto}.lightbox-actions button{font-size:11px;padding:6px 10px}.hero-screen-foot{font-size:11px}.work-count{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}
