/* Ibrahim Abdelwahab — portfolio site
   Design language: dark music-platform look (mhrgnat-inspired cues only). */

@font-face{font-family:'Cairo';font-style:normal;font-weight:200 1000;font-display:swap;src:url(fonts/cairo-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Cairo';font-style:normal;font-weight:200 1000;font-display:swap;src:url(fonts/cairo-latin.woff2) format('woff2')}

@font-face{font-family:'Rubik';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/rubik-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/rubik-latin.woff2) format('woff2')}
:root{
  --bg:#0e0d20;
  --bg-2:#141230;
  --surface:#1a1838;
  --surface-2:#221f48;
  --line:#2e2a52;
  --text:#f2f3fa;
  --muted:#9aa0bb;
  --accent:#7c3aed;
  --accent-dark:#5b21b6;
  --blue:#22d3ee;
  --radius:16px;
  --radius-pill:999px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Rubik','Cairo',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
button{font:inherit;cursor:pointer;color:inherit;background:none;border:0}
.file-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- layout: right sidebar + content ---------- */
.site-layout{display:flex;min-height:100vh;direction:ltr}
.side-nav{
  order:2;flex:none;width:240px;
  position:sticky;top:0;height:100vh;overflow-y:auto;
  background:var(--bg-2);
  border-left:1px solid var(--line);
  padding:28px 20px;
  display:flex;flex-direction:column;gap:26px;
}
.side-brand{
  font-size:1.15rem;font-weight:800;color:var(--accent);
  letter-spacing:.2px;line-height:1.35;
}
.side-links{display:flex;flex-direction:column;gap:8px}
.side-links a{
  padding:11px 16px;border-radius:var(--radius-pill);
  color:var(--muted);font-weight:600;font-size:.95rem;
  transition:background .15s,color .15s;
}
.side-links a:hover{color:var(--text);background:var(--surface)}
.side-links a[aria-current="page"]{
  background:var(--accent);color:#fff;
  box-shadow:0 6px 18px rgba(124,58,237,.35);
}
.file-ground{flex:1;min-width:0;display:flex;justify-content:center}
.file-card{width:100%;max-width:1060px;padding:44px 40px 64px}

/* ---------- headers & text ---------- */
.file-header{margin-bottom:30px}
.file-title{
  font-size:2rem;font-weight:800;color:var(--text);
  display:inline-block;position:relative;padding-bottom:10px;margin-bottom:14px;
}
.file-title::after{
  content:"";position:absolute;bottom:0;right:0;left:auto;
  width:64px;height:4px;border-radius:4px;background:var(--accent);
}
[dir="ltr"] .file-title::after{right:auto;left:0}
.file-intro{color:var(--muted);font-size:1rem;max-width:640px}
.file-group{margin-bottom:38px}
.file-group-heading{
  font-size:1.3rem;font-weight:800;margin-bottom:16px;
  display:inline-block;position:relative;padding-bottom:8px;
}
.file-group-heading::after{content:"";position:absolute;bottom:0;right:0;width:48px;height:3px;border-radius:3px;background:var(--accent)}
[dir="ltr"] .file-group-heading::after{right:auto;left:0}
.file-p,.file-text{color:var(--muted);margin-bottom:14px;max-width:680px}
.file-strong{color:var(--text);font-weight:700}
.file-caption{color:var(--muted);font-size:.85rem;margin-top:8px}

/* ---------- buttons ---------- */
.file-button{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--accent);color:#fff;font-weight:700;font-size:.95rem;
  padding:12px 26px;border-radius:var(--radius-pill);
  box-shadow:0 6px 18px rgba(124,58,237,.3);
  transition:background .15s,transform .15s;
}
.file-button:hover{background:var(--accent-dark);transform:translateY(-1px)}
.file-button.is-pill{border-radius:var(--radius-pill)}
.file-button.is-compact{padding:8px 18px;font-size:.85rem}
.file-button-slot{margin-top:10px}
.file-button-face{display:inline-flex;align-items:center;gap:8px}
.file-button-label{font-weight:700}

/* ---------- hero (home) ---------- */
.hero{
  position:relative;border-radius:24px;overflow:hidden;
  background:linear-gradient(135deg,#1a1030 0%,#0d0d1c 60%,#160a12 100%);
  border:1px solid var(--line);
  padding:64px 48px;margin-bottom:40px;
}
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(600px 300px at 85% 20%,rgba(124,58,237,.18),transparent 70%);
}
.hero-eyebrow{
  display:inline-block;color:var(--accent);font-weight:700;font-size:.9rem;
  letter-spacing:.5px;margin-bottom:14px;
}
.hero .file-title{font-size:2.6rem;margin-bottom:18px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.pf-hero-note{color:var(--muted);margin-top:18px;font-size:.92rem}
.pf-hero-contact{margin-top:8px;font-size:.92rem;color:var(--muted)}
.pf-hero-contact a{color:var(--blue)}

/* ---------- music player card ---------- */
.pf-music{
  display:flex;align-items:center;gap:16px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:16px 20px;margin-bottom:36px;
}
.pf-music-btn{
  flex:none;width:46px;height:46px;border-radius:50%;
  background:var(--accent);color:#fff;font-size:1rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(124,58,237,.35);
}
.pf-music-title{font-weight:700;font-size:.95rem}
.pf-music-sub{color:var(--muted);font-size:.82rem}
.pf-music-text{min-width:0}

/* ---------- gallery grid (prompts / books) ---------- */
.gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));
  gap:20px;
}
.gallery-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .18s,border-color .18s,box-shadow .18s;
}
.gallery-card:hover{
  transform:translateY(-4px);border-color:var(--accent);
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}
.gallery-card img{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  border-bottom:1px solid var(--line);
}
/* cards whose image was removed: dark art block with red glow title */
.gallery-card:not(:has(img))::before{
  content:"";display:block;aspect-ratio:1/1;
  background:
    radial-gradient(280px 160px at 50% 42%,rgba(124,58,237,.4),transparent 70%),
    linear-gradient(160deg,#1b1030,#0c0c18);
  border-bottom:1px solid var(--line);
}
.gallery-card figcaption{padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.gallery-title{font-weight:800;font-size:1rem;line-height:1.45}
.gallery-prompt{
  color:var(--muted);font-size:.82rem;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  flex:1;
}
.gallery-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:4px;
}
.gallery-price{font-weight:800;color:var(--accent);font-size:1rem}
.gallery-buy{
  background:var(--accent);color:#fff;font-weight:700;font-size:.85rem;
  padding:8px 18px;border-radius:var(--radius-pill);
  transition:background .15s;
}
a.gallery-buy:hover{background:var(--accent-dark)}

/* ---------- rows, strips, photos (books / about) ---------- */
.file-rows{display:flex;flex-direction:column;gap:14px}
.file-row{
  display:flex;gap:16px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:18px 20px;
}
.file-row-main{flex:1;min-width:0}
.file-row-detail{color:var(--muted);font-size:.9rem;margin-top:6px}
.file-row-body{flex:1;min-width:0}
.file-facts{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.file-fact{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-pill);padding:8px 18px;
  color:var(--muted);font-size:.88rem;font-weight:600;
}
.file-fact.is-known{color:var(--accent);border-color:var(--accent)}
.file-strip{position:relative;margin:20px 0}
.file-strip-arrows{display:flex;gap:8px;justify-content:flex-end;margin-bottom:10px}
.file-strip-arrow{
  width:38px;height:38px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--line);
  color:var(--text);font-size:1rem;
}
.file-strip-arrow:disabled{opacity:.35;cursor:default}
.file-photos{display:flex;gap:14px;overflow-x:auto;scroll-behavior:smooth;padding-bottom:8px}
.file-photos::-webkit-scrollbar{height:6px}
.file-photos::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.file-figure{flex:none}
.file-figure img{border-radius:var(--radius);border:1px solid var(--line)}
.file-photo-zoom{cursor:zoom-in}
.file-bleed{margin:24px 0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.file-bleed img{width:100%}

/* ---------- video cards (home) ---------- */
.pf-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.pf-video-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  transition:transform .18s,border-color .18s;
}
.pf-video-card:hover{transform:translateY(-4px);border-color:var(--accent)}
.pf-video-card video{width:100%;aspect-ratio:9/16;object-fit:cover}
.pf-video-card figcaption{padding:12px 14px;font-weight:700;font-size:.92rem}
.pf-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.pf-links a{
  color:var(--blue);font-weight:600;font-size:.92rem;
  padding:8px 18px;border:1px solid var(--line);border-radius:var(--radius-pill);
  background:var(--surface);
}

/* ---------- checkout ---------- */
.checkout-box{
  background:var(--surface);border:1px solid var(--line);
  border-radius:24px;padding:44px 38px;max-width:560px;margin:0 auto;
  text-align:center;
}
.checkout-box .file-button{margin-top:20px}

/* ---------- footer ---------- */
.file-closing{
  margin-top:44px;padding-top:22px;border-top:1px solid var(--line);
  color:var(--muted);font-size:.9rem;
}
.file-closing a{color:var(--accent)!important;font-weight:600}

/* ---------- small screens ---------- */
@media(max-width:860px){
  .site-layout{flex-direction:column}
  .side-nav{
    order:0;width:100%;height:auto;position:static;
    flex-direction:row;align-items:center;gap:14px;
    padding:14px 18px;border-left:0;border-bottom:1px solid var(--line);
  }
  .side-links{flex-direction:row;flex-wrap:wrap;gap:6px}
  .side-links a{padding:8px 14px;font-size:.85rem}
  .file-card{padding:28px 18px 48px}
  .hero{padding:40px 24px}
  .hero .file-title{font-size:1.9rem}
}

.hero .hero-eyebrow{display:block;width:100%;margin:0 0 14px;line-height:1.5}
.hero .file-header,.file-header.hero{flex-wrap:wrap}

.wa-float{position:fixed;inset-inline-end:16px;bottom:16px;z-index:50;background:#25d366;color:#07210f;font-weight:700;text-decoration:none;padding:12px 18px;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.45);font-size:.95rem}
.wa-float:hover{filter:brightness(1.08)}
.pf-hero-contact a, .file-button[data-variant="primary"]{color:#fff!important}
.file-button[data-variant="primary"] *{color:#fff!important}
@media (max-width:900px){.wa-float{display:none}}

@media(max-width:820px){.side-nav{position:relative!important;width:auto!important;height:auto!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px!important;overflow:visible!important;z-index:20}.side-brand{flex:none;font-size:.95rem;line-height:1.2;max-width:200px}.side-brand img{width:34px!important;height:34px!important}.nav-toggle{display:inline-flex!important;align-items:center;gap:8px;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:600;font-size:.85rem;padding:9px 14px;border-radius:999px;cursor:pointer}.nav-toggle i{display:block;width:16px;height:2px;background:currentColor;box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor}.side-links{display:none!important;position:absolute;top:100%;left:0;right:0;flex-direction:column!important;gap:4px!important;padding:10px 12px 14px!important;background:var(--bg-2);border-bottom:1px solid var(--line);box-shadow:0 14px 30px rgba(0,0,0,.5);max-height:80vh;overflow-y:auto}.side-nav.open .side-links{display:flex!important}.side-links a{white-space:normal;padding:12px 14px!important;font-size:.95rem!important;border-radius:12px!important}}
.nav-toggle{display:none}
.hero-eyebrow{display:block}
/* top ticker */
#site-ticker{direction:ltr;position:relative;display:flex;align-items:center;overflow:hidden;height:40px;margin:0 0 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:.84rem;line-height:1}
#site-ticker .tk-live{flex:none;padding:0 12px;height:100%;display:flex;align-items:center;gap:6px;background:#5b21b6;color:#fff;font-weight:700;white-space:nowrap}
#site-ticker .tk-live:before{content:"";width:7px;height:7px;border-radius:50%;background:#22d3ee}
#site-ticker .tk-view{flex:1;min-width:0;overflow:hidden;height:100%}
#site-ticker .tk-track{display:inline-flex;align-items:center;height:100%;white-space:nowrap;will-change:transform;animation:tk-run var(--tk-d,120s) linear infinite}
#site-ticker:hover .tk-track,#site-ticker:focus-within .tk-track,#site-ticker.tk-hold .tk-track{animation-play-state:paused}
#site-ticker .tk-i{display:inline-flex;align-items:center;gap:8px;padding:0 22px;color:var(--text);unicode-bidi:plaintext;text-decoration:none}
#site-ticker .tk-i b{color:#22d3ee;font-weight:700}
#site-ticker .tk-i small{color:var(--muted);font-size:.72rem}
#site-ticker a.tk-i:hover{text-decoration:underline}
#site-ticker .tk-i:after{content:"\2022";color:#7c3aed;margin-inline-start:22px}
@keyframes tk-run{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#site-ticker .tk-view{overflow-x:auto}#site-ticker .tk-track{animation:none}}

.tk-credit{font-size:.7rem;color:var(--muted);margin:-8px 4px 12px;text-align:center}.tk-credit a{color:inherit;text-decoration:underline}

.tk-credit.tk-foot{font-size:.74rem;line-height:1.7;opacity:.92;margin:28px 12px 84px;text-align:center}
