/* ================= Base ================= */
:root{
  --bg: #0f0e1a;
  --bg-alt: #161428;
  --card: #1c1a30;
  --card-hover: #221f3c;
  --text: #f2f1f8;
  --muted: #a9a6c4;
  --primary: #7c5cff;
  --primary-2: #ff5fa2;
  --accent: #34e0c9;
  --gold: #ffc94d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --max: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor:pointer;
  border: none;
}
.btn-primary{
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow: 0 8px 24px rgba(124,92,255,.4);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(124,92,255,.55); }
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,.25);
}
.btn-outline:hover{ background: rgba(255,255,255,.08); transform: translateY(-3px); }

/* ================= Header ================= */
.site-header{
  position: fixed;
  top:0; right:0; left:0;
  z-index: 100;
  background: rgba(15,14,26,.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
}
.logo{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:1.3rem; }
.logo-badge{
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size:1.1rem;
}
.logo-text span{ color: var(--accent); }

.main-nav{ display:flex; gap: 32px; }
.main-nav a{
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a::after{
  content:"";
  position:absolute; right:0; bottom:-6px;
  width:0; height:2px;
  background: var(--accent);
  transition: width .25s ease;
}
.main-nav a:hover::after{ width:100%; }

.nav-toggle{
  display:none;
  flex-direction: column;
  gap:5px;
  background:none; border:none; cursor:pointer;
}
.nav-toggle span{
  width:24px; height:2px; background: var(--text); border-radius:2px;
}

/* ================= Hero ================= */
.hero{
  position: relative;
  padding: 170px 0 100px;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(500px 350px at 85% 10%, rgba(255,95,162,.3), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(52,224,201,.18), transparent 60%);
  z-index:0;
}
.hero-inner{ position:relative; z-index:1; text-align:center; max-width: 820px; }
.hero h1{
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 22px;
}
.hero h1 .highlight{
  background: linear-gradient(120deg, var(--accent), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p{
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions{
  display:flex; gap:18px; justify-content:center; flex-wrap:wrap;
  margin-bottom: 60px;
}
.hero-stats{
  display:flex; justify-content:center; gap:48px; flex-wrap:wrap;
}
.stat{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.stat strong{ font-size: 1.8rem; font-weight:900; color: var(--gold); }
.stat span{ color: var(--muted); font-size:.9rem; }

/* ================= Section head ================= */
.section-head{ text-align:center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight:900; margin-bottom:12px; }
.section-head p{ color: var(--muted); }

/* ================= Games ================= */
.games{ padding: 100px 0; background: var(--bg-alt); }
.games-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.game-card{
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  display:flex;
  flex-direction:column;
}
.game-card:hover{
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: rgba(124,92,255,.4);
}
.game-media{
  aspect-ratio: 1/1;
  overflow:hidden;
}
.game-media img{ width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.game-card:hover .game-media img{ transform: scale(1.06); }

.game-info{ padding: 22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.game-info h3{ font-size:1.3rem; font-weight:800; }
.genre{
  display:inline-block;
  align-self:flex-start;
  font-size: .78rem;
  color: var(--accent);
  background: rgba(52,224,201,.12);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight:700;
}
.game-info p{ color: var(--muted); font-size:.94rem; flex:1; }

.card-footer{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
  margin-top: 8px;
}
.rating{ color: var(--gold); font-size:.95rem; font-weight:700; }
.rating span{ color: var(--muted); font-weight:500; margin-right:4px; }

.play-btn{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color:#fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight:700;
  font-size:.88rem;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.play-btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,92,255,.45); }
.gp-icon{ width:16px; height:16px; filter: brightness(0) invert(1); }

/* ================= About ================= */
.about{ padding: 100px 0; }
.about-inner{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 50px;
  align-items:center;
}
.about-text h2{ font-size: clamp(1.7rem,3vw,2.4rem); font-weight:900; margin-bottom: 18px; }
.about-text p{ color: var(--muted); margin-bottom: 22px; }
.about-points li{ margin-bottom: 12px; color: var(--text); font-weight:500; }
.about-visual{
  font-size: 5rem;
  text-align:center;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(255,95,162,.18));
  border-radius: 28px;
  padding: 60px 20px;
}

/* ================= CTA ================= */
.cta{
  padding: 90px 0;
  background: linear-gradient(120deg, rgba(124,92,255,.18), rgba(255,95,162,.14));
  text-align:center;
}
.cta h2{ font-size: clamp(1.6rem,3vw,2.2rem); font-weight:900; margin-bottom: 14px; }
.cta p{ color: var(--muted); max-width: 520px; margin: 0 auto 30px; }

/* ================= Footer ================= */
.site-footer{ background: var(--bg-alt); padding: 40px 0; border-top:1px solid rgba(255,255,255,.06); }
.footer-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px;
}
.footer-brand{ display:flex; align-items:center; gap:10px; font-weight:900; }
.footer-inner p{ color: var(--muted); font-size:.9rem; }
.footer-links{ display:flex; gap: 20px; }
.footer-links a{ color: var(--muted); font-size:.9rem; transition: color .2s; }
.footer-links a:hover{ color: var(--text); }

/* ================= Back to top ================= */
.back-to-top{
  position: fixed;
  bottom: 26px; left: 26px;
  width: 46px; height:46px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  box-shadow: var(--shadow);
  opacity:0; pointer-events:none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 90;
}
.back-to-top.show{ opacity:1; pointer-events:auto; }
.back-to-top:hover{ transform: translateY(-4px); }

/* ================= Responsive ================= */
@media (max-width: 860px){
  .about-inner{ grid-template-columns: 1fr; }
  .about-visual{ order:-1; }
}

@media (max-width: 720px){
  .main-nav{
    position:absolute;
    top: 100%; right:0; left:0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display:none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .hero{ padding-top: 140px; }
}

/* ===== Social icons ===== */
.social-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.social{ width:42px; height:42px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; color:#fff; transition: transform .2s, box-shadow .2s; }
.social svg{ width:22px; height:22px; }
.social:hover{ transform: translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.35); }
.social-row-lg{ margin-top:22px; } .social-row-lg .social{ width:50px; height:50px; } .social-row-lg .social svg{ width:26px; height:26px; }
.s-x{ background:#000; border:1px solid rgba(255,255,255,.25); }
.s-ig{ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.s-yt{ background:#ff0000; }
.s-tt{ background:#000; border:1px solid rgba(255,255,255,.25); box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.s-lt{ background:#43e660; color:#111; }
