/* =========================================================
   Mahdi Rheem — Portfolio
   Dark + Gold | RTL Arabic
   ========================================================= */

:root {
  --bg: #06070b;
  --bg-2: #0a0c12;
  --panel: #0e1119;
  --panel-2: #121624;
  --gold: #d4af37;
  --gold-2: #f6d878;
  --gold-3: #a8842a;
  --gold-dim: rgba(212, 175, 55, 0.16);
  --green: #2ecc71;
  --red: #e74c3c;
  --text: #eae7de;
  --muted: #9b968b;
  --line: rgba(212, 175, 55, 0.14);
  --radius: 18px;
  --font-display: 'El Messiri', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.8;
  direction: rtl;
}

::selection { background: var(--gold); color: #0a0c12; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #08090e; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-3), var(--gold)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Gold text helper ---------- */
.gold-text {
  background: linear-gradient(120deg, #a8842a, #f6d878 45%, #d4af37 70%, #fff3c4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShift 6s linear infinite;
}
@keyframes goldShift { to { background-position: 200% center; } }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #05060a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring { position: relative; width: 110px; height: 110px; }
.loader-ring span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
}
.loader-ring span:nth-child(1) { border-top-color: var(--gold); animation: spin 1s linear infinite; }
.loader-ring span:nth-child(2) {
  inset: 12px; border-right-color: var(--gold-2);
  animation: spin 1.4s linear infinite reverse;
}
.loader-ring span:nth-child(3) { inset: 24px; border-bottom-color: var(--gold-3); animation: spin 0.8s linear infinite; }
.loader-mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
.loader-text { color: var(--muted); font-size: 13px; letter-spacing: 6px; animation: fadeUp 1.4s ease; }
.loader-bar { width: 160px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); animation: load 1.6s ease forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.6; } }
@keyframes load { to { width: 100%; } }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(212,175,55,0.5);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.grow { width: 60px; height: 60px; border-color: var(--gold-2); background: rgba(212,175,55,0.08); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* =========================================================
   BACKGROUND ORBS + GRID
   ========================================================= */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.orb-1 { width: 520px; height: 520px; background: #4a3510; top: -140px; right: -120px; animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #241c0a; bottom: -120px; left: -100px; animation: orbFloat 18s ease-in-out infinite reverse; }
.orb-3 { width: 260px; height: 260px; background: #5a430f; top: 40%; right: 20%; opacity: 0.18; animation: orbFloat 22s ease-in-out infinite; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-50px) scale(1.1); }
  66% { transform: translate(-30px,30px) scale(0.95); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(7, 8, 13, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #0a0c12; font-family: var(--font-display); font-weight: 800; font-size: 22px;
  box-shadow: 0 0 24px rgba(212,175,55,0.4);
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.logo-name small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 16px; font-size: 15px; color: var(--text); font-weight: 600;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; right: 16px; left: 16px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #0a0c12; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(212,175,55,0.25);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,175,55,0.4); }
.nav-cta::after {
  content: ''; position: absolute; top: 0; height: 100%; width: 40px; left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease infinite;
}
@keyframes shine { 0% { left: -80px; } 60%,100% { left: 130%; } }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 1001; }
.burger span { width: 26px; height: 2.5px; background: var(--gold); border-radius: 3px; transition: all 0.35s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(320px, 80vw); height: 100vh;
    background: rgba(9,10,16,0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 12px;
    border-left: 1px solid var(--line);
    transition: right 0.5s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 20px; padding: 14px; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 2; text-align: center; }

.hero-greet {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 22px; border-radius: 50px; font-size: 14px; font-weight: 600;
  background: var(--gold-dim); border: 1px solid var(--line); color: var(--gold-2);
  margin-bottom: 26px;
}
html.anim .hero-greet { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease) 0.2s forwards; }
.hero-greet .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Hero banner: من فلسطين إلى العراق */
.hero-banner {
  display: inline-flex; align-items: center; gap: 18px; justify-content: center;
  margin: 0 auto 30px; padding: 16px 34px;
  background: rgba(14, 17, 25, 0.72); border: 1px solid var(--line); border-radius: 20px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 0 40px rgba(212,175,55,0.05);
}
html.anim .hero-banner { opacity: 0; transform: translateY(24px); animation: heroIn 0.9s var(--ease) 0.35s forwards; }
.banner-txt { font-family: var(--font-display); font-size: clamp(22px, 4vw, 36px); font-weight: 700; }
.banner-arrow { font-size: 26px; animation: arrowPulse 1.8s ease-in-out infinite; color: var(--gold); }
@keyframes arrowPulse { 0%,100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(8px); opacity: 1; } }

/* =========================================================
   FLAGS (Palestine & Iraq) — robust rendering
   ========================================================= */
.flag {
  width: 58px; height: 40px; border-radius: 6px; position: relative;
  display: inline-block; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.flag-pal {
  background: linear-gradient(to bottom,
    #0b0b0b 0%, #0b0b0b 33.3%,
    #ffffff 33.3%, #ffffff 66.6%,
    #0a7d33 66.6%, #0a7d33 100%);
}
.flag-pal::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: #e2001a;
  -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.flag-iq {
  background: linear-gradient(to bottom,
    #ce1126 0%, #ce1126 33.3%,
    #ffffff 33.3%, #ffffff 66.6%,
    #0b0b0b 66.6%, #0b0b0b 100%);
}
.flag-iq .takbir {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #149954; font-family: var(--font-body); font-weight: 800;
  font-size: 11px; line-height: 1; letter-spacing: -0.5px;
}
@keyframes waveFlag {
  0%,100% { transform: perspective(200px) rotateY(0deg) translateY(0); }
  25%     { transform: perspective(200px) rotateY(-8deg) translateY(-1.5px); }
  50%     { transform: perspective(200px) rotateY(4deg) translateY(1px); }
  75%     { transform: perspective(200px) rotateY(-4deg) translateY(-1px); }
}
.flag { animation: waveFlag 3.4s ease-in-out infinite; }
.flag-iq { animation-delay: 0.4s; }

/* Name */
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 9vw, 110px); line-height: 1.08; letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-title .char { display: inline-block; }
html.anim .hero-title .char { opacity: 0; transform: translateY(60px) rotate(6deg); }
html.anim .hero-title .char.in { animation: charIn 0.9s var(--ease) forwards; }
@keyframes charIn { to { opacity: 1; transform: translateY(0) rotate(0); } }
.hero-arab-name {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); font-weight: 700; color: var(--muted);
  margin-bottom: 20px;
}
html.anim .hero-arab-name { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease) 1s forwards; }

html.anim .hero-typing-wrap { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease) 1.15s forwards; }
.hero-typing-wrap { min-height: 34px; margin-bottom: 34px; }
.hero-typing-wrap .prefix { color: var(--gold); font-weight: 700; }
.typing {
  font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; color: var(--gold-2); border-left: 3px solid var(--gold);
  padding-left: 8px; margin-left: 6px; white-space: nowrap;
}
@keyframes caret { 50% { border-color: transparent; } }
.caret-anim { animation: caret 0.8s step-end infinite; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
html.anim .hero-actions { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease) 1.3s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 50px; font-size: 16px; font-weight: 700;
  position: relative; overflow: hidden; transition: all 0.35s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  color: #0a0c12; box-shadow: 0 8px 30px rgba(212,175,55,0.35);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(212,175,55,0.5); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; height: 100%; width: 40px; left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease infinite;
}
.btn-ghost {
  background: transparent; color: var(--gold-2); border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold-dim); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(212,175,55,0.2); }
.btn-ig { background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); color: #fff; }
.btn-ig:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(220,39,67,0.45); }

/* Hero stats chips */
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
html.anim .hero-stats { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s var(--ease) 1.5s forwards; }
.hstat {
  padding: 14px 26px; border-radius: 16px; background: rgba(14,17,25,0.7);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.hstat:hover { transform: translateY(-6px); border-color: var(--gold); }
.hstat b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.hstat span { font-size: 13px; color: var(--muted); }

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Floating glass cards in hero background */
.floating-card {
  position: absolute; z-index: 1; width: 200px; padding: 16px; border-radius: 16px;
  background: rgba(16,19,28,0.85); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
html.anim .floating-card {
  opacity: 0;
  animation: floatIn 1s var(--ease) forwards, floaty 6s ease-in-out infinite;
}
.fc-1 { top: 22%; right: 4%; animation-delay: 1.7s, 3.7s; }
.fc-2 { bottom: 18%; left: 4%; animation-delay: 1.9s, 3.9s; }
@keyframes floatIn { to { opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 1100px) { .floating-card { display: none; } }
.fc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.fc-pair { font-weight: 800; color: var(--text); }
.fc-up { color: var(--green); font-weight: 800; }
.fc-down { color: var(--red); font-weight: 800; }
.spark { width: 100%; height: 46px; margin-top: 6px; }
.spark path { stroke-linecap: round; }

/* Scroll indicator */
.scroll-ind {
  position: absolute; bottom: 26px; right: 50%; transform: translateX(50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted);
  font-size: 12px; letter-spacing: 3px; z-index: 2;
}
.mouse { width: 26px; height: 42px; border: 2px solid var(--gold); border-radius: 16px; position: relative; }
.mouse::after {
  content: ''; position: absolute; top: 8px; right: 50%; transform: translateX(50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold);
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 24px; } }

/* =========================================================
   TICKER MARQUEE
   ========================================================= */
.ticker {
  position: relative; z-index: 5;
  background: linear-gradient(90deg, #100d04, #1a1506, #100d04);
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 13px 0;
  display: flex; align-items: center; gap: 14px;
}
.ticker-live {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  margin-inline-start: 18px;
  font-size: 12px; font-weight: 800; color: var(--green); white-space: nowrap;
  background: rgba(7, 8, 13, 0.9); border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 6px 14px; border-radius: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.ticker-live .dot-live { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); animation: blink 1.4s infinite; }
.ticker-live.offline { color: #f0ad4e; border-color: rgba(240, 173, 78, 0.35); }
.ticker-live.offline .dot-live { background: #f0ad4e; box-shadow: 0 0 10px #f0ad4e; }
.ticker-track { display: flex; flex-shrink: 0; gap: 0; width: max-content; animation: tick 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 0 26px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--text); }
.ticker-item .t-pair { color: var(--gold-2); }
.ticker-item .t-up { color: var(--green); }
.ticker-item .t-down { color: var(--red); }
.ticker-item .t-sep { color: rgba(212,175,55,0.35); }
@keyframes tick { to { transform: translateX(50%); } }

/* =========================================================
   SECTION COMMON
   ========================================================= */
.section { position: relative; padding: 110px 0; z-index: 2; }
.sec-head { text-align: center; margin-bottom: 62px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  color: var(--gold-2); letter-spacing: 3px; margin-bottom: 14px;
  text-transform: uppercase;
}
.sec-tag::before, .sec-tag::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-tag::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.sec-sub { color: var(--muted); max-width: 620px; margin-inline: auto; font-size: 16px; }

/* Reveal — hidden states only apply when JS adds `html.anim` */
html.anim [data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.anim [data-reveal].visible { opacity: 1; transform: translateY(0); }
html.anim [data-reveal="left"] { transform: translateX(-46px); }
html.anim [data-reveal="right"] { transform: translateX(46px); }
html.anim [data-reveal="left"].visible, html.anim [data-reveal="right"].visible { transform: translateX(0); }
html.anim [data-reveal="zoom"] { transform: scale(0.85); }
html.anim [data-reveal="zoom"].visible { transform: scale(1); }
[data-reveal].delay-1 { transition-delay: 0.1s; }
[data-reveal].delay-2 { transition-delay: 0.2s; }
[data-reveal].delay-3 { transition-delay: 0.3s; }
[data-reveal].delay-4 { transition-delay: 0.4s; }
[data-reveal].delay-5 { transition-delay: 0.5s; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.about-visual { position: relative; display: flex; justify-content: center; }
.avatar-ring { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.avatar-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(212,175,55,0.5); animation: spin 22s linear infinite;
}
.avatar-ring::after {
  content: ''; position: absolute; inset: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1a1f2e, #0b0d14 70%);
  box-shadow: inset 0 0 60px rgba(212,175,55,0.15), 0 24px 70px rgba(0,0,0,0.55);
}
.avatar-mono {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 100px; color: var(--gold);
  text-shadow: 0 0 40px rgba(212,175,55,0.55);
}
.avatar-chip {
  position: absolute; z-index: 3; padding: 10px 18px; border-radius: 14px;
  background: rgba(12,14,21,0.9); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 700; color: var(--gold-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.avatar-chip.c1 { top: 8%; right: -4%; animation: floaty 5s ease-in-out infinite; }
.avatar-chip.c2 { bottom: 12%; left: -8%; animation: floaty 6s ease-in-out 0.8s infinite; }
.avatar-chip.c3 { bottom: 2%; right: 8%; animation: floaty 5.4s ease-in-out 1.4s infinite; }

.about-body h3 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.about-body p { color: var(--muted); margin-bottom: 16px; }
.about-body .highlight { color: var(--gold-2); font-weight: 700; }
.about-list { margin: 24px 0; display: grid; gap: 14px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.about-list .icon-b {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--gold-dim); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold); font-size: 18px;
}
.about-list b { color: var(--text); }
.about-list span { color: var(--muted); }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.counter-card {
  padding: 24px 16px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), rgba(14,17,25,0.4));
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.counter-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 18px 44px rgba(212,175,55,0.14); }
.counter-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; }
.counter-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .counters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .counters { grid-template-columns: 1fr; } }

/* =========================================================
   SKILLS / TOOLS
   ========================================================= */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.skill-card {
  padding: 34px 26px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--panel), rgba(14,17,25,0.35));
  border: 1px solid var(--line); transition: all 0.5s var(--ease);
}
.skill-card::before {
  content: ''; position: absolute; top: -60%; right: -60%; width: 140%; height: 140%;
  background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.skill-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  border: 1px solid var(--line); color: var(--gold); transition: transform 0.5s var(--ease);
}
.skill-card:hover .skill-icon { transform: rotate(-8deg) scale(1.1); }
.skill-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.skill-card p { color: var(--muted); font-size: 14px; }
.skill-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.07); margin-top: 16px; overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width 1.4s var(--ease); }

/* =========================================================
   FOREX CONTENT
   ========================================================= */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.tab-btn {
  padding: 11px 28px; border-radius: 50px; font-size: 15px; font-weight: 700;
  background: transparent; border: 1.5px solid var(--line); color: var(--muted);
  transition: all 0.35s var(--ease); position: relative;
}
.tab-btn:hover { color: var(--gold-2); border-color: var(--gold); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #0a0c12; border-color: transparent;
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}
.tab-count { font-size: 12px; opacity: 0.75; margin-right: 4px; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(170deg, var(--panel), rgba(14,17,25,0.4));
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.post-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 24px 54px rgba(0,0,0,0.55); }
.post-card.featured { border-color: rgba(212,175,55,0.45); }
.post-card.featured::after {
  content: '★ مميز'; position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 30px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #0a0c12;
  box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}
.post-top { padding: 18px 22px; border-bottom: 1px solid rgba(212,175,55,0.08); display: flex; justify-content: space-between; align-items: center; }
.post-type {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  padding: 6px 14px; border-radius: 30px; letter-spacing: 0.5px;
}
.post-type.tip { background: rgba(212,175,55,0.14); color: var(--gold-2); border: 1px solid rgba(212,175,55,0.35); }
.post-type.signal { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.35); }
.post-type.analysis { background: rgba(52,152,219,0.12); color: #5dade2; border: 1px solid rgba(52,152,219,0.35); }
.post-date { font-size: 12px; color: var(--muted); }
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.post-content { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; justify-content: space-between; align-items: center; }

/* Signal meta */
.signal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sig-badge {
  font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 30px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sig-badge.buy { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.4); }
.sig-badge.sell { background: rgba(231,76,60,0.15); color: var(--red); border: 1px solid rgba(231,76,60,0.4); }
.sig-badge.status { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.1); }
.sig-badge.status.waiting { color: #f0ad4e; border-color: rgba(240,173,78,0.4); }
.sig-badge.status.closed { color: #95a5a6; }
.sig-badge.status.active { color: var(--green); border-color: rgba(46,204,113,0.4); }
.sig-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.sig-pair { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text); }

.post-link { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.3s; }
.post-link:hover { gap: 12px; color: var(--gold-2); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state .emoji { font-size: 46px; margin-bottom: 14px; display: block; }

/* Filter animations */
.posts-grid .post-card { animation: cardIn 0.55s var(--ease) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta {
  position: relative; border-radius: 28px; overflow: hidden; text-align: center;
  padding: 90px 40px; margin-top: 20px;
  background: linear-gradient(135deg, #151009, #0c0e15 50%, #161006);
  border: 1px solid var(--line);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212,175,55,0.22), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(212,175,55,0.16), transparent 45%);
  animation: orbFloat 12s ease-in-out infinite;
}
.cta::after {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: lineSlide 3s ease infinite;
}
@keyframes lineSlide { 0%,100% { transform: translateX(0); opacity: 0.4; } 50% { transform: translateX(30%); opacity: 1; } }
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; }
.cta-socials { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 50px;
  font-weight: 700; font-size: 15px; transition: all 0.35s var(--ease);
  border: 1.5px solid var(--line); color: var(--text); background: rgba(14,17,25,0.6);
}
.social-btn:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(212,175,55,0.2); color: var(--gold-2); }
.social-btn.ig { background: linear-gradient(135deg, #f09433, #dc2743 60%, #bc1888); color: #fff; border-color: transparent; }
.social-btn.ig:hover { box-shadow: 0 14px 36px rgba(220,39,67,0.5); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 46px 0 30px; position: relative; z-index: 2; background: rgba(6,7,11,0.7); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 26px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(212,175,55,0.08); padding-top: 20px; text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-dev { font-size: 13px; }
.footer-dev a { color: var(--gold-2); font-weight: 700; transition: color 0.3s, text-shadow 0.3s; }
.footer-dev a:hover { color: var(--gold); text-shadow: 0 0 12px rgba(212,175,55,0.5); }
.footer-flags { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.footer-flags .flag { width: 34px; height: 24px; }

/* Back to top */
.to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 900; width: 50px; height: 50px;
  border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(10,12,18,0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold); font-size: 20px; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: #0a0c12; box-shadow: 0 0 26px rgba(212,175,55,0.5); }

/* =========================================================
   MODALS
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(4,5,8,0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: all 0.4s var(--ease);
}
.modal.show { opacity: 1; visibility: visible; }
.modal-box {
  width: min(640px, 92vw); max-height: 84vh; overflow-y: auto; border-radius: 22px;
  background: linear-gradient(170deg, #12151f, #0b0d14);
  border: 1px solid var(--line); padding: 38px;
  transform: translateY(40px) scale(0.96); transition: transform 0.45s var(--ease);
  position: relative;
}
.modal.show .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 16px; transition: all 0.3s; z-index: 5;
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(90deg); }
.modal-type { display: inline-block; font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 30px; margin-bottom: 14px; }
.modal-type.tip { background: rgba(212,175,55,0.14); color: var(--gold-2); }
.modal-type.signal { background: rgba(46,204,113,0.12); color: var(--green); }
.modal-type.analysis { background: rgba(52,152,219,0.12); color: #5dade2; }
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.modal-date { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.modal-content { color: var(--text); white-space: pre-line; font-size: 15px; }

/* Admin floating link */
.admin-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 50px; height: 50px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,12,18,0.85); border: 1px solid var(--line); color: var(--muted); font-size: 19px;
  transition: all 0.4s var(--ease);
}
.admin-float:hover { color: var(--gold-2); border-color: var(--gold); transform: translateY(-4px); }

/* =========================================================
   RESPONSIVE — works on any screen
   ========================================================= */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
  .fc-1 { right: 2%; }
  .fc-2 { left: 2%; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding-top: 105px; }
  .hero-banner { gap: 12px; padding: 14px 22px; flex-wrap: wrap; }
  .banner-arrow { transform: rotate(90deg); font-size: 20px; }
  .post-card { min-height: auto; }
  .sec-head { margin-bottom: 44px; }
  .about-list li { font-size: 15px; }
  .cta { padding: 60px 24px; }
  .tabs { gap: 8px; }
  .tab-btn { padding: 9px 18px; font-size: 14px; }
}

@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .logo-name { font-size: 17px; }
  .logo-mark { width: 40px; height: 40px; font-size: 19px; }
  .hero { padding-top: 96px; }
  .hero-greet { font-size: 12.5px; padding: 7px 16px; }
  .hero-banner { padding: 12px 16px; gap: 10px; }
  .flag { width: 44px; height: 30px; }
  .flag-iq .takbir { font-size: 8px; }
  .banner-txt { font-size: 20px; }
  .hero-arab-name { font-size: 22px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 12px 24px; font-size: 15px; }
  .hstat { padding: 11px 18px; }
  .hstat b { font-size: 20px; }
  .hstat span { font-size: 11.5px; }
  .ticker { gap: 8px; }
  .ticker-live { font-size: 10.5px; padding: 5px 10px; margin-inline-start: 12px; }
  .ticker-item { padding: 0 16px; font-size: 12.5px; }
  .counters { gap: 12px; }
  .counter-num { font-size: 32px; }
  .avatar-chip { font-size: 11.5px; padding: 8px 13px; }
  .avatar-mono { font-size: 76px; }
  .cta h2 { font-size: 26px; }
  .cta p { font-size: 14.5px; }
  .social-btn { padding: 12px 22px; font-size: 13.5px; }
  .modal-box { padding: 26px 20px; }
  .modal-title { font-size: 22px; }
  .section { padding: 60px 0; }
  .footer-grid { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  .admin-float, .to-top { width: 44px; height: 44px; bottom: 20px; }
  .admin-float { right: 20px; }
  .to-top { left: 20px; }
}

/* Small landscape phones */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 130px 0 60px; }
  .scroll-ind { display: none; }
}

/* Ultra-wide safe: cap content width on huge screens */
@media (min-width: 1600px) {
  .container { width: min(1320px, 92%); }
}
