/* Portfolio: hero showcase, project case studies, screenshot gallery, and readability adjustments. */

/* ---------- Readability ---------- */
:root{--muted:#b3b7cc;--line:#ffffff1c}
.eyebrow{font-size:12px}
.nav{font-size:14px;color:#c9cce0}
.section-heading>p{font-size:15px;max-width:380px}
.trust p{font-size:13.5px}
.service p,.reason p,.questions p{font-size:15px;line-height:1.75}
.step p,.product p{font-size:14px}
.tags span,.pill,.product .modules{font-size:12px}
.section-note{font-size:13.5px}
.channels{font-size:14px}
.footer-top p,.footer-links{font-size:13.5px}
.footer-bottom{font-size:12.5px}
.hero-note{font-size:13px!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--cyan);outline-offset:4px;border-radius:4px}

/* ---------- Buttons ---------- */
.btn-ghost{background:transparent;color:var(--text);border:1px solid #ffffff38;box-shadow:none}
.btn-ghost:hover{background:#ffffff0d;border-color:var(--violet);filter:none}
.hero-actions .btn .wa{width:18px;height:18px}

/* ---------- Hero ---------- */
.hero h1{font-size:clamp(38px,4.1vw,58px);max-width:640px;letter-spacing:-.04em}
:lang(ar) .hero h1{font-size:clamp(36px,3.8vw,54px)}
.hero-copy>p{max-width:500px}
.showcase{margin:0;position:relative}
.showcase-stage{position:relative;aspect-ratio:1.12}
.showcase-stage .frame{position:absolute}
.sc-dash{top:0;inset-inline-end:0;width:70%}
.sc-dash img{opacity:.5;filter:saturate(.8)}
.sc-site{top:20%;inset-inline-start:0;width:86%;z-index:1}
.sc-phone{bottom:0;inset-inline-end:3%;width:27%;z-index:2}
.showcase figcaption{margin-top:18px;font-size:12px;color:var(--muted);text-align:center}
@media(hover:hover) and (pointer:fine){
.showcase .frame{transition:transform .5s var(--ease-out)}
.showcase:hover .sc-site{transform:translateY(-6px)}
.showcase:hover .sc-phone{transform:translateY(-12px)}
}

/* ---------- Device frames ---------- */
.frame{display:block;overflow:hidden;background:var(--surface);box-shadow:0 30px 70px -20px #000d,0 0 0 1px #ffffff14}
.frame img{display:block;width:100%;height:auto}
.frame.browser{border-radius:10px}
.frame-bar{display:flex;align-items:center;gap:12px;height:28px;padding-inline:12px;background:#131629;border-bottom:1px solid #ffffff12}
.frame-bar .dots{display:flex;gap:5px}
.frame-bar .dots i{width:7px;height:7px;border-radius:50%;background:#ffffff2e}
.frame-url{flex:0 1 46%;margin-inline:auto;padding:2px 10px;border-radius:5px;background:#05060d;font-size:11px;color:#c9cce0;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frame.phone{border-radius:24px;border:5px solid #1b1e33;box-shadow:0 30px 60px -18px #000e,0 0 0 1px #ffffff1f}

/* ---------- Project media (project pages) ---------- */
.project-media{position:relative;min-width:0}
.project-media .shot{display:block;border-radius:10px}
.project-media.phones{display:flex;justify-content:center;gap:22px;padding-block:10px 40px}
.project-media.phones .shot{width:min(44%,260px);border-radius:24px}
.project-media.phones .offset{transform:translateY(40px)}
.project-media.media-dashboard{margin-inline-end:4%}
.project-media.media-dashboard .corner{position:absolute;width:19%;bottom:-6%;inset-inline-end:-4%;border-radius:24px}
.frame.mini{border-width:4px;border-radius:20px}
.status{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#dfe2f0;border:1px solid #ffffff2e;border-radius:99px;padding:4px 11px}
.status:before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:#9ba0b8}
.status.is-live:before{background:#34d399;box-shadow:0 0 0 3px #34d39926}
.project-note{margin-top:20px;font-size:14px;color:var(--muted);padding:12px 14px;border-radius:8px;background:#ffffff08;border:1px dashed #ffffff2e}
@media(hover:hover) and (pointer:fine){
.project-media .shot{transition:transform .45s var(--ease-out)}
.project-media .shot:hover{transform:translateY(-4px)}
.project-media.phones .offset:hover{transform:translateY(36px)}
}

/* ---------- Gallery ---------- */
.lightbox{width:min(1200px,calc(100% - 32px));max-height:calc(100% - 32px);padding:0;border:1px solid #ffffff22;border-radius:14px;background:#070816f5;color:var(--text);overflow:hidden}
.lightbox::backdrop{background:#000c;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lightbox[open]{display:flex;flex-direction:column;animation:rise .25s var(--ease-out)}
.lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 12px 12px 20px;border-bottom:1px solid #ffffff14}
:dir(rtl) .lightbox-top{padding:12px 20px 12px 12px}
.lightbox-caption{font-size:14px;color:#d6d9ea}
.lightbox-close,.lightbox-nav button{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;border:1px solid #ffffff26;background:#ffffff0a;color:var(--text);font-size:24px;line-height:1}
.lightbox-close:hover,.lightbox-nav button:hover{border-color:var(--violet)}
.lightbox-figure{flex:1;min-height:0;margin:0;padding:16px;display:grid;place-items:center;overflow:auto}
.lightbox-figure img{display:block;max-width:100%;max-height:calc(100vh - 200px);width:auto;height:auto;border-radius:8px}
.lightbox-nav{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 12px 14px}
.lightbox-prev .arrow{transform:scaleX(-1)}
:dir(rtl) .lightbox-prev .arrow{transform:none}
:dir(rtl) .lightbox-next .arrow{transform:scaleX(-1)}
.lightbox-count{font-size:13px;color:var(--muted);min-width:48px;text-align:center}

/* ---------- Responsive ---------- */
@media(max-width:760px){
.hero h1{font-size:clamp(34px,9.6vw,46px)}
:lang(ar) .hero h1{font-size:clamp(32px,9vw,42px)}
.hero-actions .btn{flex:1 1 220px}
.showcase{margin-top:8px}
.showcase-stage{aspect-ratio:1.05}
.sc-dash{width:74%}
.sc-site{top:16%;width:90%}
.sc-phone{width:31%;inset-inline-end:0}
.frame-bar{height:22px;gap:8px;padding-inline:8px}
.frame-bar .dots i{width:5px;height:5px}
.frame-url{font-size:9.5px}
.frame.phone{border-width:3px;border-radius:16px}
.project-media.phones{gap:14px;padding-bottom:30px}
.project-media.phones .offset{transform:translateY(28px)}
.project-media.media-dashboard{margin-inline-end:6%}
.project-media.media-dashboard .corner{width:24%;inset-inline-end:-6%}
.lightbox{width:100%;max-height:100%;height:100%;border-radius:0;border:0}
.lightbox-figure{padding:10px}
.lightbox-figure img{max-height:calc(100vh - 150px)}
}

/* ---------- 3D icons ---------- */
.service-top{margin-bottom:22px}
.service-icon{width:64px;height:64px;filter:drop-shadow(0 10px 22px #2552ff38)}
.reason{grid-template-columns:52px 1fr;gap:16px;align-items:start}
.reason-icon{width:48px;height:48px;filter:drop-shadow(0 8px 18px #2552ff30)}
@media(hover:hover) and (pointer:fine){
.service-icon{transition:transform .35s var(--ease-out)}
.service:hover .service-icon{transform:translateY(-3px) scale(1.04)}
}
@media(max-width:760px){.service-icon{width:56px;height:56px}.reason{grid-template-columns:44px 1fr;gap:14px}.reason-icon{width:42px;height:42px}}

/* ---------- AI agents service: full-width card in the services grid ---------- */
.service-wide{grid-column:1/-1;background:linear-gradient(120deg,#2552ff14,#8b5cf60f 45%,var(--bg) 75%)}
.service-wide p{max-width:620px}
.service-link{margin-top:20px;font-size:14px;color:#cfd2e3}
.service-link a{color:var(--text);text-decoration:underline;text-decoration-color:var(--violet);text-underline-offset:3px}
