/* Copy of the Adobe Portfolio "Marta" layout used on qatarnehabdallah68.myportfolio.com.
   The original title font is FreightNeo Pro (Adobe Fonts only); Alegreya Sans is the closest free match. */
:root{
  --bg:#120000;
  --white:#fff;
  --title:#eee;
  --muted:#888;
  --body:#c0c6cc;
  --pill:#f0f0f0;
  --pill-ink:#222;
  --accent:#00e5ff;
  --sans:"Alegreya Sans","FreightNeo Pro","Gill Sans",sans-serif;
  --serif:"Times New Roman",Times,serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}
body{background:var(--bg);color:var(--white);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}

/* ---------- Home (split screen, image right) ---------- */
.splash{display:flex;min-height:100vh}
.splash .left{width:50%;padding:50px 20px 60px;display:flex;justify-content:center}
.splash .inner{width:100%;max-width:550px;text-align:center}
.splash .right{width:50%;position:sticky;top:0;height:100vh;background:#222 center/cover no-repeat}
.splash h1{font-family:var(--sans);font-weight:700;font-size:60px;line-height:50px;padding-bottom:5px;color:#fff;text-transform:uppercase}
.splash .bio{font-family:var(--serif);font-size:20px;line-height:25px;color:var(--body);margin-top:12px}
.splash .bio p{margin-bottom:16px}
.btn-row{padding:20px 0;text-align:center}
.pill{display:inline-block;height:40px;line-height:40px;padding:0 25px;border-radius:100px;background:var(--pill);color:var(--pill-ink);font-family:var(--sans);font-weight:700;font-size:16px;transition:opacity .2s}
.pill:hover{opacity:.8}
.social{display:flex;justify-content:center;gap:15px;padding:20px 0 15px}
.social a{width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.1);display:grid;place-items:center;transition:background .2s}
.social a:hover{background:#000}
.social svg{width:18px;height:18px;fill:#fff}

/* ---------- Inner pages ---------- */
.site-header{position:fixed;inset:0 0 auto 0;height:60px;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:0 3%;z-index:30}
.site-header.scrolled{box-shadow:0 2px 12px rgba(0,0,0,.5)}
.brand{font-size:18px;line-height:24px;color:#fff;font-weight:700;letter-spacing:.02em}
.menu-btn{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#fff;font:700 15px var(--sans);padding:8px 16px;border-radius:100px;cursor:pointer}
.menu-btn:hover{background:rgba(255,255,255,.15)}
.menu-btn i,.menu-btn i::before,.menu-btn i::after{display:block;width:16px;height:2px;background:#fff;border-radius:2px;position:relative;transition:transform .25s,opacity .25s}
.menu-btn i::before,.menu-btn i::after{content:"";position:absolute;left:0}
.menu-btn i::before{top:-5px}.menu-btn i::after{top:5px}
.menu-btn[aria-expanded="true"] i{background:transparent}
.menu-btn[aria-expanded="true"] i::before{transform:translateY(5px) rotate(45deg)}
.menu-btn[aria-expanded="true"] i::after{transform:translateY(-5px) rotate(-45deg)}
.menu{position:absolute;top:60px;right:3%;width:min(340px,94vw);background:#1c0808;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:8px;display:none;flex-direction:column;box-shadow:0 20px 40px rgba(0,0,0,.5)}
.menu.open{display:flex}
.menu a{padding:12px 14px;border-radius:10px;font-size:16px;color:#ddd}
.menu a:hover{background:rgba(255,255,255,.07);color:#fff}
.menu a.active{background:#f0f0f0;color:#111;font-weight:700}

.page{padding-top:60px}
.page-header{max-width:760px;margin:0 auto;padding:70px 20px 40px;text-align:center}
.page-header h1{font-weight:700;font-size:32px;line-height:1.3;color:var(--title);padding-bottom:16px}
.page-header p{font-size:17px;line-height:1.5;color:#9a9a9a;white-space:pre-line}

.block{max-width:1200px;margin:0 auto;padding:10px 24px 50px}
.block-title{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;color:#fff;margin-bottom:18px}
.block-title::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.12)}
.block-title span{font-size:13px;font-weight:700;color:#111;background:#f0f0f0;border-radius:100px;padding:2px 10px}

.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tile{display:block;aspect-ratio:4/5;overflow:hidden;border-radius:10px;background:#1f0a0a;cursor:zoom-in}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.tile:hover img{transform:scale(1.04)}

.video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.vcard{aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000}
.vcard video{width:100%;height:100%;object-fit:contain;background:#000}

.link-list{display:flex;flex-direction:column;gap:12px;align-items:stretch;max-width:760px}
.link-pill{display:flex;align-items:center;gap:12px;height:auto;line-height:1.35;padding:12px 20px;text-align:left;border-radius:14px;background:#f0f0f0}
.link-pill svg{flex:none;width:22px;height:22px;fill:#e00}

.text-mod{max-width:1000px;margin:0 auto;font-size:17px;line-height:1.55;color:#fff}
.text-mod div{margin-bottom:8px}
.text-mod span[style*="font-size:20px"]{display:inline-block;margin-top:18px;font-size:22px!important;font-weight:700}

.pager{max-width:1200px;margin:0 auto;padding:30px 24px 90px;display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid rgba(255,255,255,.1)}
.pager a{display:flex;flex-direction:column;gap:4px;padding:16px 20px;border:1px solid rgba(255,255,255,.12);border-radius:14px;font-size:17px;font-weight:700;color:#fff;transition:background .2s}
.pager a:hover{background:rgba(255,255,255,.06)}
.pager small{font-size:13px;font-weight:400;color:#999}
.pager .next{text-align:right}

.back-to-top{position:fixed;right:30px;bottom:30px;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .3s,background .2s;z-index:20}
.back-to-top.show{opacity:1;pointer-events:auto}
.back-to-top:hover{background:rgba(255,255,255,.22)}
.back-to-top svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:2}

@media (max-width:1024px){
  .photo-grid{grid-template-columns:repeat(3,1fr)}
  .video-grid{grid-template-columns:repeat(3,1fr)}
}

/* ---------- Lightbox ---------- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.94);display:none;align-items:center;justify-content:center;z-index:50}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:90vh;object-fit:contain}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:40px;cursor:pointer;padding:16px;opacity:.7;font-family:var(--sans)}
.lightbox button:hover{opacity:1}
.lb-close{top:10px;right:16px}
.lb-prev{left:10px;top:50%;transform:translateY(-50%)}
.lb-next{right:10px;top:50%;transform:translateY(-50%)}

/* ---------- Mobile ---------- */
@media (max-width:768px){
  .splash{flex-direction:column-reverse}
  .splash .left,.splash .right{width:100%}
  .splash .right{position:relative;height:75vh}
  .splash .left{padding:40px 16px 50px}
  .splash h1{font-size:44px;line-height:42px}
  .splash .bio{font-size:18px;line-height:24px}
  .pill{height:auto;line-height:1.3;padding:11px 22px;max-width:100%;white-space:normal}
  .btn-row{padding:10px 0}
  .site-header{padding:0 16px}
  .brand{font-size:16px}
  .menu{right:16px;left:16px;width:auto}
  .page-header{padding:44px 16px 28px}
  .page-header h1{font-size:26px}
  .page-header p{font-size:16px}
  .block{padding:6px 16px 40px}
  .photo-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .video-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .tile,.vcard{border-radius:8px}
  .pager{grid-template-columns:1fr;padding:24px 16px 90px}
  .pager .next{text-align:left}
  .back-to-top{right:16px;bottom:16px;width:48px;height:48px}
}
