:root {
  --bg: #0e0f14;
  --layer: #10131b;
  --card: #141a25;
  --ink: #e9edf3;
  --muted: #9ea8bb;
  --brand: #a78bfa;
  --brand2: #ff7eb6;
  --highlight: #ffd166;
}

/* === Base rules === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  background: radial-gradient(1200px 500px at 70% -20%, rgba(167,139,250,.12), transparent),
              linear-gradient(180deg, #0f1117, #121829 45%, #0f1117);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; transition: .2s; }
img { max-width: 100%; display: block; border-radius: 10px; }
.container { width: min(1200px, 92%); margin-inline: auto; }
section { padding: 60px 0; }
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  margin-bottom: 14px;
}
.muted { color: white; line-height: 1.7; text-align: center; }
.grad {
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ppp{
    color: rgba(255, 0, 0, 0.904);
}
/* === Header (Fixed Navbar) === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(16,19,27,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease, box-shadow .3s ease;
}
body { padding-top: 80px; }

.header.scrolled {
  background: rgba(16,19,27,.95);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 0;
  gap: 16px;
}
.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  padding: 10px 16px;
  border-radius: 14px;
  background: #171d2c;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .25s ease;
  font-weight: 600;
}
.pill:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.cta {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #111;
  font-weight: 800;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

/* === Auto Animation for Logo === */
@keyframes spinGradient {
  0% { transform: rotate(0deg); filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { transform: rotate(360deg); filter: brightness(1); }
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: conic-gradient(from 180deg, var(--brand), var(--brand2), var(--highlight), var(--brand));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(167,139,250,.4);
  animation: spinGradient 5s linear infinite;
}
.logo svg { width: 20px; height: 20px; }
.brand-name { font-weight: 800; letter-spacing: .4px; font-size: 18px; }

/* === Hero Section === */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.4;         /* ✅ تباعد عمودي أفضل */
  letter-spacing: 1px;      /* ✅ تباعد بين الحروف */
  margin-bottom: 20px;      /* ✅ مسافة إضافية أسفل الجملة */
  text-align: right;
}

.hero p { text-align: right; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.chip {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1a1f31;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s;
}
.chip:hover { transform: scale(1.07); }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #111;
  font-weight: 800;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.hero-card {
  background: radial-gradient(800px 300px at 80% -60%, rgba(255,126,182,.25), transparent), var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  animation: fadeUp .8s ease both;
}
.hero-figure {
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg,#2a2f3b,#1b2230);
  display: grid;
  place-items: center;
  color: #c9d2e3;
}

/* === Products === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, #171b2a, #121827);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  animation: fadeUp .8s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 25px 60px rgba(0,0,0,.4); }
.card-media { aspect-ratio: 1/1; background: #1b2230; overflow: hidden; }
.card-media img { transition: transform .3s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 14px; text-align: center; }
.title { font-weight: 800; margin-bottom: 6px; }
.price {
  color: #fff;
  background: rgba(167,139,250,.18);
  border: 1px solid rgba(167,139,250,.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.gallery .g {
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: #1b2230;
  transition: transform .3s, box-shadow .3s;
  animation: fadeUp .9s ease both;
}
.gallery .g:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

/* === Reviews === */
.reviews-section { padding: 60px 0 40px; }
.testi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.bubble {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px;
  transition: transform .2s, box-shadow .2s;
  animation: fadeUp .8s ease both;
}
.bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* === Footer === */
.footer {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: white;
  font-weight: 900;
  text-align: center;
  font-size: 14px;
}
.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.social-icon {
  font-size: 38px;
  transition: transform .25s, filter .25s;
}
.social-icon:hover { transform: scale(1.2); filter: brightness(1.3); }
.whatsapp { color: #25D366; }
.snapchat { color: #FFFC00; }

/* === Section scroll offset fix === */
section[id] {
  scroll-margin-top: 100px;
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Mobile responsive === */
@media (max-width: 600px) {
  .pill { font-size: 14px; padding: 8px 10px; }
  .hero h1 { font-size: 26px; }
  .menu { justify-content: center; }
}
