/* ===================== 2050 THEME — Neon, Depth & Motion ===================== */
@property --hue { syntax:'<number>'; inherits:true; initial-value: 260; } /* افتراضي: بنفسجي كهربائي */
:root{
  --hue: 260;
  --hue2: calc((var(--hue) + 40));
  --bg: #f9fbff;
  --surface: rgba(255,255,255,.04);
  --glass: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.14);
  --ink: #e9ecff;
  --ink-muted: #b7bde6;
  --accent: hsl(var(--hue) 95% 58%);
  --accent-2: hsl(var(--hue2) 95% 62%);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

@keyframes hueShift {
  0%{--hue:260} 50%{--hue:190} 100%{--hue:260}
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; direction:rtl;
  font-family:'Cairo', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 80% -10%, hsla(var(--hue),90%,18%,.7), transparent 60%),
             radial-gradient(1000px 600px at 10% 110%, hsla(var(--hue2),90%,18%,.55), transparent 55%),
             var(--bg);
  overflow-x:hidden;
  animation: hueShift 16s ease-in-out infinite;
}

/* ===== Topbar ===== */
.topbar{
  position: fixed; inset-block-start: 0; inset-inline: 0;
  display:flex; justify-content:space-between; align-items:center;
  padding: 8px 14px; z-index: 1200;
  background: linear-gradient( to bottom, rgba(7,8,12,.6), rgba(7,8,12,.2) );
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__left,.topbar__right{display:flex; align-items:center; gap:10px; color:var(--ink-muted); font-weight:800}
.live-dot{ inline-size:8px; block-size:8px; border-radius:999px; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent), transparent 75%); }
.toggle-theme{
  appearance:none; border:1px solid var(--line); background:var(--glass); color:var(--ink);
  padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.toggle-theme:hover{ transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent), #fff 10%); }
.toggle-theme[aria-pressed="true"]{ background: color-mix(in oklab, var(--accent), #fff 84%); color: #0b0d13; }

/* ===== Header ===== */


.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-gem{
  inline-size:36px; block-size:36px; border-radius:12px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 30px color-mix(in oklab, var(--accent), transparent 60%), var(--shadow);
  animation: spin 8s linear infinite;
}
@keyframes spin { to{ transform: rotate(1turn) } }
.brand-name{ font-weight:900; color: var(--accent); letter-spacing:.2px; font-family:'Changa','Cairo',sans-serif; }
.nav-links{ margin-inline-start:auto; display:flex; gap:8px; flex-wrap:wrap }
.nav-links a{
  text-decoration:none; color: var(--ink); font-weight:800; padding:10px 12px; border-radius:12px;
  background: transparent; border:1px solid var(--line);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-links a:hover{ transform: translateY(-2px); background: color-mix(in oklab, var(--accent), #000 86%); border-color: color-mix(in oklab, var(--accent), #fff 10%); }
.cta{ background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; color:#0b0d13!important; }

/* ===== Sections ===== */
.section{
  max-width: 1100px; margin: 26px auto; padding: 56px 22px;
  background: linear-gradient( to bottom, rgba(255,255,255,.02), rgba(255,255,255,.01) );
  border:1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}

/* ===== Hero ===== */
.hero{ position: relative; overflow: clip; }
.hero-grid{ display:grid; grid-template-columns: 1.25fr 1fr; gap:26px; align-items:center; }
.eyebrow{ font-weight:900; font-size:12px; letter-spacing:.5px; color: var(--accent-2); margin-bottom:8px; text-transform:uppercase }
.headline{ font-size: clamp(28px, 5vw, 44px); margin:0 0 8px; font-weight:900; font-family:'Changa','Cairo',sans-serif; }
.headline .futuristic{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow: 0 6px 32px color-mix(in oklab, var(--accent), transparent 70%);
}
.sub{ color: var(--ink-muted); margin: 0 0 16px; font-weight:700; }

.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tags span{
  background: color-mix(in oklab, var(--accent), #000 80%);
  border:1px solid color-mix(in oklab, var(--accent), #fff 10%);
  color:#f7faff; padding:6px 12px; border-radius:999px; font-weight:800;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent), transparent 70%);
}

.actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:12px 16px; border-radius:14px; text-decoration:none; font-weight:900;
  border:1px solid var(--line); color:#0b0d13; background: #f8f9ff;
  transition: transform .18s ease, filter .18s ease;
  will-change: transform;
}
.btn:hover{ transform: translateY(-2px) scale(1.02); }
.btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border:0; color:#0b0d13;
  box-shadow: 0 12px 36px color-mix(in oklab, var(--accent), transparent 65%);
}
.btn-ghost{ color: var(--ink); background: transparent; border-color: var(--line); }

.hero-media{ display:grid; gap:14px; justify-items:center; }
.avatar-wrap{ position:relative; inline-size: 220px; block-size: 220px; transform-style: preserve-3d; }
.avatar{
  inline-size:100%; block-size:100%; object-fit:cover; border-radius:22px;
  border: 3px solid color-mix(in oklab, var(--accent), #fff 40%);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transform: translateZ(20px);
}
.halo{
  position:absolute; inset:-16px; border-radius:26px; pointer-events:none;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  filter: blur(24px) saturate(1.2); opacity:.55; animation: spin 14s linear infinite;
}
.quick-note.glass{
  width:100%; background: var(--glass); border:1px solid var(--line); border-radius:16px; padding:14px; backdrop-filter: blur(10px) saturate(140%);
}
.quick-note h3{ margin:0 0 6px; color: var(--accent-2); }

/* CTA orbit decoration */
.cta-orbit{ position:absolute; inset-inline-end: clamp(10px, 3vw, 26px); inset-block-end: clamp(10px, 3vw, 26px); inline-size: 160px; block-size: 160px; pointer-events:none; }
.cta-orbit span{
  position:absolute; inset:0; border-radius:50%; border:1px dashed color-mix(in oklab, var(--accent), #fff 30%);
  animation: orbit 12s linear infinite; opacity:.5;
}
.cta-orbit span:nth-child(2){ inset: 10px; animation-duration: 10s }
.cta-orbit span:nth-child(3){ inset: 20px; animation-duration: 8s }
.cta-orbit span:nth-child(4){ inset: 30px; animation-duration: 6s }
@keyframes orbit { to{ transform: rotate(1turn) } }

/* ===== About ===== */
.section-title{
  font-size: clamp(24px, 3.5vw, 30px); margin:0 0 10px; color: var(--accent);
  position:relative; display:inline-block; letter-spacing:.3px; font-weight:900;
}
.section-title::after{
  content:""; display:block; height:3px; width:60%; margin:8px auto 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent), transparent 55%);
}
.bio-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:start; }
.bio-text{ color: var(--ink); line-height: 2; }
.bio-icons{ list-style:none; margin:0; padding:0; display:flex; gap:12px; justify-content:center }
.bio-icons a{
  width:44px; height:44px; display:grid; place-items:center; border-radius:50%;
  border:1px solid var(--line); background: color-mix(in oklab, var(--accent), #000 86%); color:#f7faff;
  text-decoration:none; transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 24px color-mix(in oklab, var(--accent), transparent 70%);
}
.bio-icons a:hover{ transform: translateY(-3px) scale(1.06); }

/* ===== Achievements ===== */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:18px; margin-top:18px; }
.card{
  background: rgba(255,255,255,.02); border:1px solid var(--line); border-radius:16px; padding:14px; text-align:center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; will-change: transform;
  transform-style: preserve-3d;
}
.card:hover{ transform: translateY(-6px) rotate3d(.3, -.2, 0, 10deg); border-color: color-mix(in oklab, var(--accent), #fff 12%); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.card img{ width:100%; border-radius:10px; margin-bottom:10px; display:block; }
.card h3{ color: var(--accent-2); margin:8px 0; font-size:18px; font-weight:900; }
.card p{ color: var(--ink-muted); margin:0; }

/* ===== Footer & Bottom Nav ===== */
.site-footer{
  margin-top:18px; text-align:center; color:var(--ink-muted); font-weight:800; padding: 14px 20px 86px;
  background: transparent; border-top:1px solid var(--line);
}
.footer-links a{ color: var(--ink); margin:0 10px; text-decoration:none; }

.bottom-nav{
  position:fixed; inset-inline:0; inset-block-end:0; z-index:1000;
  display:flex; justify-content:space-around; gap:8px;
  padding:8px 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient( to top, rgba(7,8,12,.9), rgba(7,8,12,.6) );
  backdrop-filter: saturate(180%) blur(10px);
  border-top:1px solid var(--line); border-top-left-radius:22px; border-top-right-radius:22px;
  box-shadow: 0 -12px 28px rgba(0,0,0,.35);
}
.bottom-link{ display:flex; flex-direction:column; align-items:center; gap:5px; font-size:12px; text-decoration:none; color:var(--ink); }
.bottom-link i{ color:var(--accent); font-size:16px; }
.bottom-link:hover{ color:var(--accent); }

/* ===== Background Canvas style ===== */
#bg-2050{ position:fixed; inset:0; z-index:-3; pointer-events:none; display:block; }

/* ===== 3D Depth helper ===== */
.depth-3d{ transform-style: preserve-3d; perspective: 800px; }

/* ===== Reveal on scroll ===== */
@media (prefers-reduced-motion:no-preference){
  [data-reveal]{ opacity:0; transform: translateY(12px); filter: blur(6px); }
  [data-reveal].in{ opacity:1; transform: none; filter: none; transition: opacity .7s ease, transform .7s ease, filter .7s ease; transition-delay: var(--delay, 0s); }
}

/* ===== Mobile ===== */
@media (max-width: 920px){
  
  .bio-grid{ grid-template-columns: 1fr; }
  .site-footer{ padding-bottom: 98px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  body{ animation: none !important; }
  .brand-gem, .halo, .cta-orbit span{ animation: none !important; }
}


/* ===== Overrides: Light, Static Background ===== */
:root{
  --bg: #f9fbff;
  --surface: #ffffff;
  --glass: rgba(255,255,255,.75);
  --line: #e8ecf6;
  --ink: #12151d;
  --ink-muted: #5b647a;
}
body{
  background: #f9fbff; /* ثابت وفاتح */
  animation: none !important; /* لا يوجد تحوّل لوني عام */
}
.topbar{ background: #ffffffcc; border-bottom-color: var(--line); }

.section{ background: #ffffff; }
.bottom-nav{ background: #ffffffee; border-top-color: var(--line); }

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.nav{
  padding: 12px 6px;
  justify-content: space-around;
}

.section{
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card{
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(8px) saturate(140%);
}
.quick-note.glass, .bio-text{
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(10px) saturate(140%);
}


/* ===== Overrides: Fullscreen Glass Header + Glass Content ===== */

/* Make header occupy full screen with glass style like bottom bar */
.site-header{
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  left: 0; right: 0; top: 0;
  height: 100vh !important;
  z-index: 1100 !important;
  background: linear-gradient(to bottom, rgba(255,255,255,.86), rgba(255,255,255,.65)) !important;
  backdrop-filter: saturate(180%) blur(12px) !important;
  border-bottom: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.08) !important;
}

/* Center nav content vertically and increase sizing */
.nav{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 900px !important;
  padding: 24px !important;
  flex-direction: column !important;
  gap: 18px !important;
  }
.brand-gem{ inline-size: 56px !important; block-size: 56px !important; border-radius: 18px !important; }
.brand-name{ font-size: clamp(28px, 6vw, 56px) !important; }
.nav-links{ justify-content: center !important; gap: 12px !important; }
.nav-links a{
  background: rgba(255,255,255,.7) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.06) !important;
}
.nav-links a:hover{
  background: rgba(255,255,255,.9) !important;
  transform: translateY(-2px) !important;
}
.cta{ background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; color: #0b0d13 !important; border-color: transparent !important; }

/* Push page content below the fullscreen header */
body{ padding-top: 100vh !important; }

/* Glass containers for main content */
.section,
.quick-note.glass,
.card,
.bio-text,
.footer-links,
.tags span,
.btn {
  background: rgba(255,255,255,.65) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid var(--line) !important;
}

/* Ensure readability on glass */
.lead, .sub, .card p, .bio-text{ color: var(--ink) !important; }
.card h3, .section-title{ color: var(--ink) !important; }
.btn-primary{ background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; color: #0b0d13 !important; border-color: transparent !important; }

/* Keep bottom nav style consistent */
.bottom-nav{
  background: #ffffffee !important;
  backdrop-filter: saturate(180%) blur(10px) !important;
  border-top: 1px solid var(--line) !important;
}

/* Mobile adjustments */
@media (max-width: 920px){
  .brand-gem{ inline-size: 48px !important; block-size: 48px !important; }
  .brand-name{ font-size: clamp(26px, 7vw, 44px) !important; }
}


/* ===== Overrides: Top Fixed Header (Full Width) + Glass Sections ===== */
.site-header{
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 76px !important;
  z-index: 1200 !important;
  background: #ffffffcc !important;
  backdrop-filter: saturate(160%) blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.06) !important;
  display: flex !important; align-items: center !important;
}
.nav{
  max-width: 1100px !important; margin: 0 auto !important;
  padding: 10px 16px !important;
  display: flex !important; align-items: center !important; gap: 12px !important;
  flex-direction: row !important; text-align: initial !important;
  background: transparent !important; border: none !important; box-shadow: none !important;
}
.brand-gem{ inline-size: 36px !important; block-size: 36px !important; border-radius: 12px !important; }
.brand-name{ font-size: clamp(22px, 3.8vw, 34px) !important; font-weight: 900 !important; }
.nav-links{ margin-inline-start: auto !important; display: flex !important; gap: 8px !important; }
.nav-links a{
  background: rgba(255,255,255,.8) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  padding: 10px 12px !important; border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.05) !important;
}
.nav-links a:hover{ background: #fff !important; transform: translateY(-2px) !important; }

/* Push content below the fixed header */
body{ padding-top: 90px !important; } /* header height + spacing */

/* Ensure hero/sections are glassy */
.section{ background: rgba(255,255,255,.65) !important; }
.section.hero{ background: rgba(255,255,255,.65) !important; }


/* ===== Overrides: Hide brand name/icon, align nav items left, glassy white boxes ===== */

/* Hide brand name and gem icon in header */
.brand-gem,
.brand-name {
  display: none !important;
}

/* Align nav links to left */
.nav-links {
  margin-inline-start: 0 !important;
  justify-content: flex-start !important;
}

/* Style white boxes (nav links) as glass */
.nav-links a {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}


/* ===== Overrides: Brand on far right, nav links on far left, visible text in white boxes ===== */

/* Place brand on far right */
.nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}
.brand-gem,
.brand-name {
  display: inline-flex !important;
  margin-inline-start: auto !important; /* push to far right */
}

/* Align nav links to far left */
.nav-links {
  margin-inline-end: auto !important;
  margin-inline-start: 0 !important;
  justify-content: flex-start !important;
}

/* Style white boxes with visible black text */
.nav-links a {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid var(--line) !important;
  color: #000 !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #000 !important;
}


/* ===== Overrides: Brand far right, links far left ===== */
.nav {
  display: flex !important;
  flex-direction: row-reverse !important; /* reverse order so brand is on right */
  align-items: center !important;
  justify-content: space-between !important;
}
.brand-gem,
.brand-name {
  display: inline-flex !important;
  margin: 0 !important;
}
.nav-links {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
  order: -1 !important; /* appear first on the left in row-reverse */
  justify-content: flex-start !important;
}


/* ===== Overrides FIX: Brand far right, links far left ===== */
.site-header .nav {
  display: flex !important;
  flex-direction: row !important; /* normal row */
  align-items: center !important;
  justify-content: space-between !important;
}
/* links container on left */
.site-header .nav-links {
  display: flex !important;
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  order: 1 !important;
}
/* brand container on right */
.site-header .brand-gem,
.site-header .brand-name {
  display: inline-flex !important;
  order: 2 !important;
  margin-left: auto !important;
}


/* ===== FORCE FIX: Brand right, links left in header ===== */
.site-header .nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}
/* links container aligned left */
.site-header .nav-links {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin-right: auto !important;
}
/* brand aligned right */
.site-header .brand-gem,
.site-header .brand-name {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}


/* ===== Glassy Header & Bottom Bar + Black text chips ===== */
.site-header{
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-bottom: 1px solid var(--line) !important;
}

.bottom-nav{
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-top: 1px solid var(--line) !important;
}

/* Hero tags (chips) readable on glass */
.tags span{
  background: rgba(255,255,255,0.9) !important;
  color: #000 !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.06) !important;
  font-weight: 700 !important;
}


/* ===== Hero text full width + social icons under text ===== */
.hero-content{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}
.hero-content h1,
.hero-content p{
  width: 100% !important;
}
.hero-content .social-icons{
  margin-top: 20px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
}


/* ===== Hero fills container with text and socials under ===== */
.hero-content{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 400px !important; /* fallback */
}
.hero-content h1,
.hero-content p{
  flex: 0 0 auto !important;
  width: 100% !important;
}
.hero-content .social-icons{
  flex: 0 0 auto !important;
  margin-top: 24px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
}


/* نص ياخد العرض كله */

.hero-text{ width: 100% !important; }



.hero-social{
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}
.hero-social a{
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  text-decoration: none;
}
.hero-social a:hover{ transform: translateY(-2px); }


/* ===== About section full-width description + social icons ===== */
.about-text{
  width: 100% !important;
  }
.about-text p{
  max-width: 100% !important;
  margin-inline: auto !important;
}
.about-social{
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}
.about-social a{
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  text-decoration: none;
}
.about-social a:hover{ transform: translateY(-2px); }


/* ===== About: full-width description + icons under text ===== */
.bio-grid{
  grid-template-columns: 1fr !important;   /* صف واحد */
  gap: 14px !important;
}
.bio-text{
  width: 100% !important;                  /* النص ياخد عرض الكونتينر كله */
}
.bio-icons{
  justify-content: center !important;      /* الأيقونات تحت النص وفي المنتصف */
  margin-top: 12px !important;
}


/* ===== Restore Hero layout to original (two columns) ===== */
.hero-grid{ grid-template-columns: 1.25fr 1fr !important; text-align: initial !important; }
.hero-text .actions{ justify-content: flex-start !important; }


/* ===== Animations Pack ===== */

/* 1) Ink ripple */
.ripple-parent{ position: relative; overflow: hidden; }
.ripple {
  position: absolute; inset: 0;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  opacity: .25;
  background: var(--accent);
  pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple{
  to{ transform: translate(-50%,-50%) scale(14); opacity: 0; }
}

/* 2) Neon sweep over the name */
.headline .futuristic{ position: relative; }
.headline .futuristic::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.85) 50%, transparent 80%);
  mix-blend-mode: screen; filter: blur(2px);
  transform: translateX(-120%) skewX(-12deg);
  animation: neonSweep 7s ease-in-out infinite;
}
@keyframes neonSweep{
  0%, 65% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  70% { opacity: .7; }
  100%{ transform: translateX(120%) skewX(-12deg); opacity: 0; }
}

/* 4) Draw underline on section titles */
.section-title{ position: relative; overflow: visible; }
.section-title::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:-6px; height:3px; width:0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent), transparent 55%);
  transition: width .7s ease;
}
.section-title.drawn::after{ width:60%; }

/* 5) Orbiting ink speckles around avatar */
.avatar-wrap{ --orbit-size: 280px; }
.ink-orbit{
  position:absolute; inset:0; pointer-events:none;
}
.ink-orbit .dot{
  position:absolute; inline-size:6px; block-size:6px; border-radius:50%;
  background: var(--accent);
  filter: blur(.3px);
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  animation: orbitDot 12s linear infinite;
  opacity: .8;
}
@keyframes orbitDot{
  from { transform: rotate(0deg) translateX(calc(var(--r, 80px))) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(calc(var(--r, 80px))) rotate(-360deg); }
}

/* 6) Quick quote under hero */
.quick-quote{
  margin-top: 12px;
  color: var(--ink-muted);
  font-weight: 700;
  min-height: 1.4em;
  opacity: .0;
  transition: opacity .6s ease, transform .6s ease;
  transform: translateY(6px);
  text-align:center;
}
.quick-quote.show{ opacity: 1; transform: none; }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .headline .futuristic::after{ animation: none !important; }
  .ripple{ animation: none !important; }
}


/* ==== Fixes: restore hero layout alignment after cleanup ==== */
.hero-grid{ text-align: initial !important; }


/* === Final hero reset === */
.hero-grid{ display:grid; grid-template-columns: 1.25fr 1fr !important; gap:26px; align-items:center; text-align: initial !important; }
.hero-text .actions{ justify-content: flex-start !important; }


/* ======================== */
/*   Tablet & Phone only    */
/*   لا تغييرات على الديسكتوب */
/* ======================== */
@media (max-width: 920px){
  

  /* الهيدر: إخفاء الروابط وترك الاسم + المربع */
  .site-header .nav-links{ display: none !important; }
  .site-header .brand-gem,
  .site-header .brand-name{ display: inline-flex !important; }

  /* الهيرو عمود واحد */
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: start !important;
  }

  /* نخلي عناصر الهيرو تتحول لأبناء للجريد علشان نرتبها */
  .hero-media{ display: contents !important; }
  .hero-text{ display: contents !important; }

  /* الترتيب: الصورة → الإي برو(كاتبة — قصص…) → العنوان → الجملة → الهاشتاجات → اللمحة السريعة */
  .avatar-wrap{ order: 1; margin-inline: auto !important; }
  .eyebrow{ order: 2; text-align: center !important; }
  .headline{ order: 3; text-align: center !important; }
  .sub{ order: 4; text-align: center !important; }
  .tags{ order: 5; justify-content: center !important; }
  .quick-note{ order: 6; }

  /* إخفاء الزرين على التابلت والموبايل */
  .actions{ order: 7; display: none !important; }

  /* عنّي: عمود واحد */
  .bio-grid{ grid-template-columns: 1fr !important; }

  /* مساحة تحت للـ bottom nav */
  .site-footer{ padding-bottom: 98px !important; }
}

/* تحسينات موبايل صغيرة فقط */
@media (max-width: 600px){
  .avatar-wrap{ inline-size: 200px !important; block-size: 200px !important; }
  .section{ padding: 28px 16px !important; }
}

.see-more {
  text-align: center;
  margin-top: 20px;
}



/* ===== Lightbox base (Desktop) ===== */
.lightbox{
  display:none; position:fixed; inset:0; z-index:4000;
  background: rgba(0,0,0,.9);
  justify-content:center; align-items:center;
}
.lightbox.is-open{ display:flex; }
.lightbox .close{
  position:absolute; top:18px; right:24px; z-index:2;
  font-size:38px; line-height:1; background:transparent; border:0; color:#fff; cursor:pointer;
}

/* الإظهار العادي على الكمبيوتر */
.lb-rotator{ width:auto; height:auto; transform:none; }
#lightbox-img{
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}

/* ===== Mobile: لفّ 90° وملء الشاشة ===== */
@media (max-width: 680px){
  .lb-rotator{
    transform: rotate(90deg);
    transform-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
  }
  #lightbox-img{
    width:100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: #000;
  }
}

