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

:root {
  --black: #111111;
  --white: #FFFFFF;
  --warm-bg: #F5F2ED;
  /* إعدادات الزجاج (Glassmorphism) */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(16px);
  --border: rgba(0, 0, 0, 0.08);
  --gray-text: #707072;
}

body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; }

/* ===== الخلفية المتحركة ===== */
.blob {
  position: fixed; top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167, 229, 211, 0.5) 0%, rgba(244, 197, 168, 0.3) 50%, rgba(255,255,255,0) 70%);
  filter: blur(80px); z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: floatBlob 12s infinite alternate ease-in-out;
}

@keyframes floatBlob {
  0% { transform: translate(-40%, -40%) scale(1); }
  100% { transform: translate(-60%, -60%) scale(1.3); }
}

/* ===== شريط التنقل ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100; border-bottom: 1px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.site-header.hide { transform: translateY(-100%); opacity: 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.logo { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.5px; z-index: 102;}

.nav-links { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav-links a { opacity: 0.7; transition: opacity 0.3s, transform 0.3s; }
.nav-links a:hover { opacity: 1; transform: translateY(-2px); }

/* ===== قائمة الهواتف ===== */
.mobile-menu-btn {
  display: none; background: none; border: none; padding: 10px; z-index: 102;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px; background: var(--black);
  margin: 5px 0; transition: 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; font-size: 24px; font-weight: 800;
  z-index: 101; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a { opacity: 0.6; transition: opacity 0.3s; }
.mobile-nav a:hover { opacity: 1; }

/* ===== Hero ===== */
.hero-section {
  padding: 160px 24px 80px; max-width: 1000px; margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-family: 'Tajawal', sans-serif; font-size: clamp(40px, 7vw, 80px);
  font-weight: 900; line-height: 1.1; margin-bottom: 24px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.hero-title .word { display: inline-block; }
.hero-subtitle { 
  font-size: clamp(16px, 2vw, 20px); color: var(--gray-text); 
  max-width: 600px; margin: 0 auto; opacity: 0.8;
}

/* ===== شبكة التطبيقات ===== */
.apps-section { padding: 40px 24px 100px; max-width: 1200px; margin: 0 auto; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.section-title { font-size: 24px; font-weight: 800; }

.categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cat-btn {
  background: rgba(245, 242, 237, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); padding: 8px 16px;
  border-radius: 99px; font-family: inherit; font-weight: 600; font-size: 14px;
  transition: all 0.3s; white-space: nowrap; opacity: 0.8;
}
.cat-btn:hover { opacity: 1; background: rgba(235, 231, 223, 0.9); transform: translateY(-2px); }
.cat-btn.active { background: var(--black); color: var(--white); opacity: 1; border-color: var(--black); }

.app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* البطاقات الزجاجية */
.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.85; /* الشفافية */
}
.card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  opacity: 1; /* تصبح غير شفافة عند التمرير */
  border-color: rgba(255, 255, 255, 0.8);
}
.card:active { transform: scale(0.98); }

.card-image {
  width: 100%; aspect-ratio: 1/1; background: rgba(245, 242, 237, 0.5);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 900; color: #ccc;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 18px; font-weight: 800; }
.card-desc { font-size: 14px; color: var(--gray-text); }

/* ===== صفحة التفاصيل ===== */
.detail-container { max-width: 800px; margin: 0 auto; padding: 140px 24px 80px; }
.detail-header { display: flex; gap: 32px; align-items: center; margin-bottom: 40px; }
.detail-icon {
  width: 120px; height: 120px; border-radius: 24px; background: var(--warm-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 900; color: #ccc; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }

/* صندوق التحميل الزجاجي */
.download-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 32px; margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* الأزرار */
.btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-radius: 99px; font-weight: 700;
  margin-bottom: 12px; border: none; 
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  opacity: 0.9;
}
.btn:hover { transform: scale(1.02); opacity: 1; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-secondary { 
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
  color: var(--black); border: 1px solid var(--border); 
}

/* ===== التجاوب ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-section { padding-top: 120px; }
  .hero-title { flex-direction: column; gap: 0; font-size: 48px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .app-grid { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; text-align: center; }
  .detail-icon { width: 100px; height: 100px; }
  .download-box { padding: 20px; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111111;
  --white: #FFFFFF;
  --warm-bg: #F5F2ED;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(16px);
  --border: rgba(0, 0, 0, 0.08);
  --gray-text: #707072;
}

body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  color: var(--black);
  background: #FAFAFA; /* خلفية فاتحة جداً */
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; }

/* ===== الخلفية المتحركة ===== */
.blob {
  position: fixed; top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 126, 95, 0.2) 0%, rgba(254, 180, 123, 0.15) 50%, rgba(255,255,255,0) 70%);
  filter: blur(80px); z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: floatBlob 12s infinite alternate ease-in-out;
}

@keyframes floatBlob {
  0% { transform: translate(-40%, -40%) scale(1); }
  100% { transform: translate(-60%, -60%) scale(1.3); }
}

/* ===== شريط التنقل ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100; border-bottom: 1px solid var(--glass-border);
  transition: transform 0.4s, opacity 0.3s;
}
.site-header.hide { transform: translateY(-100%); opacity: 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.logo { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 20px; z-index: 102;}
.nav-links { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav-links a { opacity: 0.7; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

/* ===== صفحة التفاصيل ===== */
.detail-container { 
  max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; 
}
.detail-header { 
  display: flex; gap: 24px; align-items: center; 
  margin-bottom: 40px; flex-wrap: wrap;
}
.detail-icon {
  width: 120px; height: 120px; border-radius: 24px; background: var(--warm-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 900; color: #ccc; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); flex-shrink: 0;
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 250px; }

/* صندوق التحميل الزجاجي */
.download-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 32px; margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ===== الزر البرتقالي المتدرج مع الحركة (Keyframes) ===== */
.btn-download {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-radius: 99px; font-weight: 800; font-size: 16px;
  margin-bottom: 12px; border: none; color: var(--black);
  /* التدرج البرتقالي الأبيض */
  background: linear-gradient(135deg, #FF7E5F 0%, #FEB47B 50%, #FFFFFF 100%);
  background-size: 200% auto;
  animation: gradientShine 3s linear infinite;
  box-shadow: 0 8px 20px rgba(255, 126, 95, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { 
  transform: scale(1.02); 
  box-shadow: 0 12px 25px rgba(255, 126, 95, 0.5);
}
.btn-download:active { transform: scale(0.96); }

@keyframes gradientShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* الزر الثانوي (الروابط الأخرى) */
.btn-secondary { 
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-radius: 99px; font-weight: 700; font-size: 16px;
  margin-bottom: 12px; 
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
  color: var(--black); border: 1px solid var(--border); 
  transition: transform 0.2s;
}
.btn-secondary:hover { transform: scale(1.02); border-color: var(--black); }
/* ===== معرض صور التطبيق ===== */
.screenshots-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  margin-bottom: 40px;
}
.screenshot-img {
  height: 300px; /* ارتفاع ثابت للصور */
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  cursor: pointer;
}
.screenshot-img:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .screenshot-img { height: 220px; }
}
/* التجاوب */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .detail-header { flex-direction: column; text-align: center; }
  .detail-icon { width: 100px; height: 100px; }
  .download-box { padding: 20px; }
  .btn-download, .btn-secondary { flex-direction: column; gap: 8px; text-align: center; }
}