/* ==============================
   styles.css — نسخة "Chip Icons" تدعم PNG من نفس المجلد
   ============================== */
:root{
  --bg-gif: url('hero.gif');
  --overlay: rgba(0,0,0,.35);
  --text: #fff;
  --accent: #7c3aed;
  --avatar-size: clamp(120px, 24vw, 180px);
  --ring: 3px;
  --gap: 16px;
  --radius: 999px;

  /* مقاسات الأيقونات والحبّات */
  --icon-size: 31px;
  --chip-h: 60px;
  --chip-pad-x: 52px;
  --chip-gap: 13px;
  --chip-font: 15px;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: system-ui, -apple-system, Segoe UI, Roboto, 'Noto Kufi Arabic', 'Noto Sans Arabic', 'Tajawal', Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: #0b0b12;
}

.hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-gif);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.05);
  z-index: -3;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}

.center-stack{
  width: min(100% - 32px, 880px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: calc(var(--gap) * 1.2);
  text-align: center;
  padding-block: 40px;
  animation: floatIn .7s ease both;
}
@keyframes floatIn{
  from{ transform: translateY(10px); opacity: 0 }
  to  { transform: translateY(0); opacity: 1 }
}

.avatar{
  margin: 0;
  width: var(--avatar-size);
  aspect-ratio: 1;
  border-radius: var(--radius);
  padding: var(--ring);
  background: radial-gradient(120% 120% at 80% 10%, #a78bfa 0%, #6d28d9 80%);
  box-shadow: var(--shadow);
}
.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  display: block;
  background: #222;
}

.title{
  font-size: clamp(22px, 3.6vw, 36px);
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
}
.subtitle{
  margin: 0;
  opacity: .9;
  font-size: clamp(14px, 2.4vw, 18px);
}

.icons{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====== Chip icons (PNG + label) ====== */
.icon-chip{
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse; /* الأيقونة يمين والكلمة يسار */
  gap: var(--chip-gap);
  height: var(--chip-h);
  padding-inline: var(--chip-pad-x);
  border-radius: 9999px;

  background: #ffffff1a;
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px #00000040;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: var(--chip-font);
}
.icon-chip:hover{
  transform: translateY(-2px) scale(1.03);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.32);
}

.icon-chip .icon-img{
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  object-fit: contain;         /* تبقي الأيقونة داخل المربع بدون قص */
  border-radius: 6px;          /* لو تبغاها دائرية: غيّرها لـ 50% */
  /* لو كانت الأيقونة سوداء وتبيها بيضاء: فعّل الفلتر التالي */
  /* filter: invert(1) brightness(1.2); */
}

/* تحسينات للجوال */
@media (max-width: 420px){
  :root{
    --icon-size: 20px;
    --chip-h: 40px;
    --chip-font: 14px;
  }
  .subtitle{ opacity: .95 }
}
