/* home.css — مديـنـةُ الجمهورية | Homepage Styles */
/* ── AOS ── */
.aos-item { opacity:0; transform:translateY(28px); transition:opacity .6s ease, transform .6s ease; }
.aos-item.aos-in { opacity:1; transform:translateY(0); }
/* ════════════════════════════════════
   HERO — صورة ثابتة خلفية
   ════════════════════════════════════ */
.hero {
  min-height: 72vh;
  padding: 100px 0 70px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; position:relative; overflow:hidden;
  isolation:isolate;
}
/* YouTube Background Video Styling */
.yt-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#ytBgFrame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;  /* 16:9 aspect ratio */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  border: none;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
#ytBgFrame.loaded {
  opacity: 0.88; /* تداخل خفيف ووضوح عالي جداً للمقاطع */
}
/* الخلفية: الصورة الجديدة */
.hero-bg {
  position:absolute; inset:0; z-index:0;
  background: #060608;
}
.hero-overlay {
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(6,6,8,0.1), rgba(6,6,8,0.72) 58%, rgba(6,6,8,1) 100%),
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(155,28,28,0.25), transparent 62%);
}
/* Scanlines */
.vice-scanline {
  position:absolute; inset:0; z-index:2;
  pointer-events:none; opacity:0.07;
  background:repeating-linear-gradient(180deg, transparent 0, transparent 5px, rgba(255,255,255,0.06) 6px);
}
/* خطوط منظور أسفل الهيرو */
.hero-vice::before {
  content:'';
  position:absolute; inset:auto 0 0; height:28%; z-index:3;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      transparent 0 9%, rgba(155,28,28,0.38) 9% 9.5%,
      transparent 9.5% 18%, rgba(201,168,76,0.2) 18% 18.4%,
      transparent 18.4% 100%),
    linear-gradient(180deg, transparent, rgba(155,28,28,0.15));
  background-size: 150px 100%, 100% 100%;
  transform: perspective(480px) rotateX(58deg);
  transform-origin: bottom;
  opacity: 0.45;
}
/* خط مشع علوي */
.hero-vice::after {
  content:'';
  position:absolute; top:0; left:8%; right:8%; height:1px; z-index:4;
  background:linear-gradient(90deg, transparent, var(--red-light), var(--gold), var(--red-light), transparent);
  box-shadow:0 0 30px rgba(155,28,28,0.5);
  opacity:0.6;
}
/* Hero content */
.hero-content { position:relative; z-index:5; padding:0 24px; max-width:1020px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
/* Orbs */
.hero-orb { position:absolute; border-radius:50%; pointer-events:none; filter:blur(100px); animation:orb-drift 16s ease-in-out infinite alternate; z-index:1; }
.hero-orb-1 { width:500px;height:500px; background:rgba(155,28,28,0.38); top:-100px; right:-120px; opacity:0.28; }
.hero-orb-2 { width:340px;height:340px; background:rgba(107,15,15,0.28); bottom:0; left:-80px; opacity:0.22; animation-delay:8s; }
/* Live dot */
.live-dot {
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background:#dc2626; box-shadow:0 0 10px #dc2626, 0 0 20px rgba(220,38,38,0.5);
  animation:live-blink 1.4s infinite;
}
/* Logo */
.server-mark { display:inline-flex; position:relative; margin-bottom:24px; }
.server-mark::before {
  content:''; position:absolute; inset:6px; border-radius:var(--r);
  box-shadow:0 0 80px rgba(155,28,28,0.5), 0 0 40px rgba(155,28,28,0.3);
  animation:mark-pulse 3s ease-in-out infinite;
}
.server-mark::after {
  content:'LIVE'; position:absolute; left:-18px; top:6px;
  padding:2px 7px; border-radius:5px;
  background:#9b1c1c; color:#fff; font-size:.64rem; font-weight:900;
  box-shadow:0 0 16px rgba(155,28,28,0.7); animation:live-blink 1.4s infinite;
}
.hero-logo {
  width:110px; height:110px; border-radius:var(--r-lg); object-fit:cover;
  border:2px solid rgba(155,28,28,0.5);
  box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(155,28,28,0.4);
  animation:logo-float 5s ease-in-out infinite;
}
/* Eyebrow */
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(155,28,28,0.18); border:1px solid rgba(155,28,28,0.4);
  color:#e8a0a0; padding:6px 18px; border-radius:30px;
  font-size:.82rem; font-weight:700; margin-bottom:1.4rem;
}
/* Title */
.hero h1 {
  font-family:'Amiri', serif;
  font-size:clamp(2.8rem, 9vw, 7.5rem);
  font-weight:700; line-height:1.05; margin-bottom:.6rem;
  background:linear-gradient(180deg, #ffffff 0%, #f0dbc0 25%, var(--gold-light) 52%, var(--red-light) 80%, var(--red-deep) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter: drop-shadow(0 0 28px rgba(155,28,28,0.55)) drop-shadow(0 0 14px rgba(201,168,76,0.35));
  animation: title-glow 4s ease-in-out infinite;
}
.hero-subtitle { font-size:.82rem; color:var(--muted); letter-spacing:.25em; text-transform:uppercase; margin-bottom:1.2rem; }
.hero-copy { display:block!important; font-size:1.08rem; color:var(--text-warm); max-width:660px; margin:0 auto 1.8rem!important; line-height:1.9; }
/* Dashboard */
.vice-dashboard {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px; width:min(680px,100%); margin:0 auto 1.6rem;
  border:1px solid rgba(155,28,28,0.4); border-radius:var(--r); overflow:hidden;
  background:linear-gradient(90deg, rgba(155,28,28,0.7), rgba(201,168,76,0.4), rgba(155,28,28,0.6));
  box-shadow:0 0 50px rgba(155,28,28,0.22), 0 24px 60px rgba(0,0,0,0.45);
}
.vice-dashboard span { min-height:62px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(6,6,8,0.9); color:var(--text-warm); font-size:.78rem; font-weight:700; }
.vice-dashboard strong { color:var(--gold-light); font-size:1.15rem; line-height:1.1; text-shadow:0 0 16px rgba(201,168,76,0.5); display:block; margin-bottom:2px; }
/* Pills */
.hero-pills { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:0 auto 2rem; }
.hero-pills span {
  display:inline-flex; align-items:center; gap:7px;
  min-height:36px; padding:7px 16px; border-radius:30px;
  border:1px solid rgba(155,28,28,0.32); color:var(--text-warm);
  background:rgba(155,28,28,0.14); font-size:.85rem; font-weight:700;
  transition:.25s; cursor:default;
}
.hero-pills span:hover { background:rgba(155,28,28,0.24); border-color:var(--red); transform:translateY(-2px); }
.hero-pills i { color:var(--gold); }
/* Buttons row */
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.pulse-btn { position:relative; }
.pulse-btn::before {
  content:''; position:absolute; inset:-4px; border-radius:inherit;
  background:inherit; opacity:0.28; animation:btn-ripple 2.5s ease-out infinite;
}
.pulse-btn.pop { transform:scale(1.04); }
/* Scroll hint */
.scroll-hint { margin-top:3rem; display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--muted); font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; }
.scroll-arrow { width:32px; height:32px; border:1px solid rgba(155,28,28,0.35); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--red-light); animation:bounce-down 1.8s ease infinite; }
/* ════════════════════════════════════
   STATS CARDS SECTION (PREMIUM UI)
   ════════════════════════════════════ */
.stats-section {
  padding: 40px 0;
  position: relative;
  z-index: 10;
  margin-top: -60px; /* Overlap with hero slightly for premium card layout */
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.stat-card {
  position: relative;
  background: rgba(12, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 28, 28, 0.22);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* Hover effects */
.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(155, 28, 28, 0.18);
}
/* Glowing background orb inside the card */
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(155, 28, 28, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.stat-card:hover::after {
  opacity: 1;
}
/* Icon wrap */
.stat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(155, 28, 28, 0.12);
  border: 1px solid rgba(155, 28, 28, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red-light);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.stat-card:hover .stat-icon-wrap {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
  transform: scale(1.1);
}
/* Values and labels */
.stat-val-premium {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #f0dbc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.stat-card:hover .stat-val-premium {
  background: linear-gradient(180deg, #ffffff 20%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 25px rgba(201, 168, 76, 0.35);
}
.stat-label-premium {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}
.stat-card:hover .stat-label-premium {
  color: var(--text-warm);
}
/* Pulsing radar for 24/7 status */
.pulsing-radar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
}
.pulsing-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}
.pulsing-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #22c55e;
  border-radius: 50%;
  animation: radar-pulse 1.6s infinite ease-in-out;
}
@keyframes radar-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}
/* ════════════════════════════════════
   FEATURES
   ════════════════════════════════════ */
.features-section { padding:90px 0; position:relative; }
.features-section::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 70% 60% at 50% 50%, rgba(155,28,28,0.06), transparent); pointer-events:none; }
.features-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:20px; }
.feature-card {
  background:linear-gradient(180deg, rgba(12,10,14,0.94), rgba(8,7,10,0.96));
  border:1px solid rgba(155,28,28,0.16); border-radius:var(--r-lg);
  padding:2rem 1.8rem; position:relative; overflow:hidden; 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--red-deep), var(--red-light), var(--gold), transparent);
  opacity:.65; transform:scaleX(0.7); transition: transform 0.4s ease, opacity 0.4s;
}
.feature-card:hover::before { transform:scaleX(1); opacity:1; }
.feature-card:hover { 
  border-color:rgba(201,168,76,0.45); 
  transform:translateY(-8px); 
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 30px rgba(155,28,28,0.15); 
}
.feature-icon-wrap {
  width:52px; height:52px; border-radius:12px;
  background:rgba(155,28,28,0.14); border:1px solid rgba(155,28,28,0.28);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; color:var(--red-light); margin-bottom:1.1rem; transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-wrap { 
  background:rgba(201,168,76,0.15); 
  border-color:var(--gold-light); 
  color:var(--gold-light); 
  box-shadow:0 0 22px rgba(201,168,76,0.35); 
  transform: scale(1.1) rotate(6deg);
}
.feature-card h3 { font-size:1rem; font-weight:800; margin-bottom:.6rem; color:#fff; }
.feature-card p { font-size:.88rem; color:var(--muted); line-height:1.75; }
/* ════════════════════════════════════
   STORE
   ════════════════════════════════════ */
.store-section { padding:0 0 90px; }
.product-img-wrap { position:relative; }
.product-img-overlay {
  position:absolute; inset:0;
  background:rgba(155,28,28,0.5);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; color:#fff; opacity:0; transition:.3s; border-radius:inherit;
}
.product-card:hover .product-img-overlay { opacity:1; }
/* ════════════════════════════════════
   HOW TO JOIN
   ════════════════════════════════════ */
.howtojoin-section { padding:90px 0; position:relative; }
.steps-grid { display:flex; align-items:center; justify-content:center; gap:0; flex-wrap:wrap; }
.step-card {
  flex:1; min-width:240px; max-width:300px;
  background:linear-gradient(180deg, rgba(13,11,16,0.95), rgba(9,8,12,0.95));
  border:1px solid rgba(155,28,28,0.18); border-radius:var(--r-lg);
  padding:2.2rem 1.8rem; text-align:center; position:relative; 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.step-card:hover { 
  border-color: rgba(201,168,76,0.45); 
  transform:translateY(-8px); 
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 36px rgba(155,28,28,0.18); 
}
.step-num { 
  font-size:3rem; font-weight:900; color:rgba(155,28,28,0.18); line-height:1; margin-bottom:.6rem; 
  transition: all 0.35s ease;
}
.step-card:hover .step-num {
  color: rgba(201,168,76,0.25);
  transform: scale(1.08) translateY(-2px);
}
.step-icon { 
  width:58px; height:58px; border-radius:50%; 
  background:rgba(155,28,28,0.16); border:1px solid rgba(155,28,28,0.32); 
  display:flex; align-items:center; justify-content:center; 
  font-size:1.4rem; color:var(--red-light); margin:0 auto 1rem; 
  transition: all 0.3s ease; 
}
.step-card:hover .step-icon { 
  background:rgba(201,168,76,0.15); 
  border-color:var(--gold-light);
  color:var(--gold-light); 
  box-shadow:0 0 26px rgba(201,168,76,0.4); 
  transform: scale(1.1);
}
.step-card h3 { font-size:1rem; font-weight:800; margin-bottom:.6rem; color:#fff; }
.step-card p { font-size:.86rem; color:var(--muted); line-height:1.75; margin-bottom:1.1rem; }
.step-link { display:inline-flex; align-items:center; gap:6px; color:var(--gold-light); font-size:.86rem; font-weight:700; transition:.25s; }
.step-link:hover { color:#fff; gap:10px; }
.step-arrow { font-size:1.3rem; color:rgba(155,28,28,0.3); padding:0 .8rem; flex-shrink:0; }
/* ════════════════════════════════════
   CTA
   ════════════════════════════════════ */
.cta-section { position:relative; padding:100px 0; overflow:hidden; text-align:center; }
.cta-bg { position:absolute; inset:0; background:url('/assets/img/hero_bg.png') center / cover no-repeat; filter:brightness(0.2) saturate(0.5); }
.cta-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,6,8,0.88), rgba(155,28,28,0.3) 50%, rgba(6,6,8,0.88)); }
.cta-inner { position:relative; z-index:2; }
.cta-badge { display:inline-flex; align-items:center; gap:7px; background:rgba(155,28,28,0.22); border:1px solid rgba(155,28,28,0.42); color:var(--red-light); padding:6px 18px; border-radius:30px; font-size:.82rem; font-weight:700; margin-bottom:1.4rem; }
.cta-inner h2 { font-family:'Amiri',serif; font-size:clamp(2rem,5vw,3.4rem); font-weight:700; margin-bottom:1rem; color:#fff; }
.cta-inner h2 span { color:var(--gold-light); }
.cta-inner p { font-size:1rem; color:var(--text-warm); margin-bottom:2rem; max-width:500px; margin-left:auto; margin-right:auto; }
.cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
/* ════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════ */
@keyframes hero-drift  { from{transform:scale(1.02)} to{transform:scale(1.06) translate3d(.8%,-.6%,0)} }
@keyframes logo-float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes mark-pulse  { 0%,100%{opacity:.35;transform:scale(.94)} 50%{opacity:1;transform:scale(1.1)} }
@keyframes live-blink  { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes btn-ripple  { 0%{transform:scale(1);opacity:.28} 100%{transform:scale(1.45);opacity:0} }
@keyframes bounce-down { 0%,100%{transform:translateY(0);opacity:.6} 50%{transform:translateY(6px);opacity:1} }
@keyframes orb-drift   { from{transform:translate(0,0)} to{transform:translate(25px,16px)} }
@keyframes title-glow  {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(155,28,28,0.5)) drop-shadow(0 0 12px rgba(201,168,76,0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(155,28,28,0.75)) drop-shadow(0 0 20px rgba(201,168,76,0.5)); transform: scale(1.015); }
}
/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media(max-width:900px) {
  .features-grid { grid-template-columns:1fr 1fr; }
  .steps-grid { flex-direction:column; }
  .step-arrow { transform:rotate(-90deg); padding:.4rem 0; }
  .stat-divider { display:none; }
  .stats-ribbon { gap:.8rem; }
}
@media(max-width:640px) {
  .features-grid { grid-template-columns:1fr; }
  .hero-logo { width:88px; height:88px; }
  .vice-dashboard { grid-template-columns:1fr; }
  .vice-dashboard span { min-height:48px; }
  .hero h1 { font-size:2.6rem; }
  .hero-btns { flex-direction:column; align-items:center; }
  .hero-btns .btn { width:100%; max-width:300px; }
}
