/* استخدام الخط المخصص والالوان */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f5f7; /* لون خلفية شبيه بآبل */
}

/* تعريف متغيرات الألوان لاستخدامها مع Tailwind */
:root {
    --color-dark-blue: #4377ba;
    --color-sky-blue: #4baede;
    --color-pale-blue: #a8c8e1;
    --color-orange-yellow: #f9bf49;
}

.bg-dark-blue { background-color: var(--color-dark-blue); }
.bg-sky-blue { background-color: var(--color-sky-blue); }
.bg-pale-blue { background-color: var(--color-pale-blue); }
.bg-orange-yellow { background-color: var(--color-orange-yellow); }

.text-dark-blue { color: var(--color-dark-blue); }
.text-sky-blue { color: var(--color-sky-blue); }
.text-pale-blue { color: var(--color-pale-blue); }
.text-orange-yellow { color: var(--color-orange-yellow); }

.border-dark-blue { border-color: var(--color-dark-blue); }
.border-sky-blue { border-color: var(--color-sky-blue); }
.border-pale-blue { border-color: var(--color-pale-blue); }
.border-orange-yellow { border-color: var(--color-orange-yellow); }

/* تأثيرات إضافية */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/65.jpg') center center/cover;
    position: relative;
    overflow: visible;
    border-bottom-left-radius: 18px; /* تدوير خفيف للحافة السفلية اليسرى */
    border-bottom-right-radius: 18px; /* تدوير خفيف للحافة السفلية اليمنى */
}
/* منحنى ناعم أسفل الهيرو */
.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -72px; /* نزّلنا الأبيض أكثر ليتحرك للأسفل */
    height: 72px; /* زِدنا الارتفاع لتظل القوس ناعمة */
    background: #ffffff;
    border-top-left-radius: 100% 56px;
    border-top-right-radius: 100% 56px;
    z-index: 1;
    pointer-events: none;
}
/* ضبط على الشاشات الأكبر */
@media (min-width: 768px) {
  .hero-section::after {
    bottom: -120px; /* نزّلناه أكثر على الشاشات الكبيرة */
    height: 88px;
    border-top-left-radius: 100% 64px;
    border-top-right-radius: 100% 64px;
  }
  .hero-section {
    border-bottom-left-radius: 28px; /* تدوير أكبر قليلاً على الشاشات الكبيرة */
    border-bottom-right-radius: 28px;
  }
}
/* تأكيد أن عناصر الهيرو فوق المنحنى */
.hero-section > * { position: relative; z-index: 2; }
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dropdown (Desktop) - nicer look + LTR slide-in */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.25rem 0; /* py-1 */
  transform: translateX(-14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  backdrop-filter: saturate(120%) blur(6px);
}
.menu-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.menu-hidden {
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .dropdown-menu {
    transition: none;
  }
}

/* Splash Screen */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 700px at 50% 40%, rgba(75,174,222,0.15), transparent 60%),
              radial-gradient(900px 600px at 70% 70%, rgba(67,119,186,0.15), transparent 60%),
              linear-gradient(180deg, #ffffff, #f5f7fb);
}
.splash-content { 
  text-align: center; 
  transform: translateY(10px); 
  opacity: 0; 
  animation: splash-in 700ms ease forwards 100ms; 
}
/* بطاقة مائلة ناعمة حول الشعار */
.splash-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: linear-gradient(145deg, #ffffff, #eef2f7);
  border-radius: 28px; /* حواف ناعمة */
  box-shadow: 0 16px 32px rgba(67,119,186,0.15), 0 4px 12px rgba(0,0,0,0.06);
  transform: rotate(-3deg);
  position: relative;
  overflow: hidden;
}
.splash-card::after{
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(60deg, rgba(75,174,222,0.15), rgba(67,119,186,0.15));
  transform: rotate(10deg);
  filter: blur(22px);
}
.splash-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(67,119,186,0.25));
  animation: floatY 3s ease-in-out infinite;
}
.splash-subtitle {
  margin-top: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1f2937; /* gray-800 */
}
.splash-progress {
  margin-top: 16px;
  width: 160px;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.splash-bar {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 40px;
  background: linear-gradient(90deg, var(--color-sky-blue), var(--color-dark-blue));
  border-radius: 999px;
  animation: progress-run 1.4s ease-in-out infinite;
}

@keyframes progress-run {
  0% { transform: translateX(-40px); }
  50% { transform: translateX(120px); }
  100% { transform: translateX(320px); }
}
@keyframes splash-in {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* When hidden */
.splash.hide {
  animation: splash-fadeout 500ms ease forwards;
}
@keyframes splash-fadeout {
  to { opacity: 0; visibility: hidden; }
}

/* تعطيل تمرير الصفحة أثناء السبلاش */
.no-scroll {
  overflow: hidden;
}
/* إظهار الموقع بعد اختفاء السبلاش بتلاشي وانزلاق بسيط */
#site {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}
.site-hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* Dark mode support (if prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
  .splash {
    background: radial-gradient(1200px 700px at 50% 40%, rgba(75,174,222,0.12), transparent 60%),
                radial-gradient(900px 600px at 70% 70%, rgba(67,119,186,0.12), transparent 60%),
                linear-gradient(180deg, #0b1220, #0f172a);
  }
  .splash-subtitle { color: #e5e7eb; }
  .splash-progress { background: rgba(255,255,255,0.1); }
}

/* ===== Fullscreen Overlay Menu (Apple-like) ===== */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above header */
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.overlay-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.overlay-inner { height: 100%; overflow-y: auto; padding: 20px 20px 40px; position: relative; }
.overlay-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; font-size: 28px; line-height: 1; color: #374151; /* gray-700 */
  background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .15s ease, background .15s ease;
}
.overlay-close:hover { background: rgba(255,255,255,0.9); transform: scale(1.06); }

.overlay-nav { max-width: 1100px; margin: 0 auto; }
.overlay-list { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-direction: column; gap: clamp(12px, 3.5vw, 24px); }
.overlay-link {
  display: block; text-decoration: none; color: #1f2937; /* gray-800 */
  font-weight: 800; letter-spacing: -0.2px;
  font-size: clamp(28px, 7vw, 44px);
  transition: color .18s ease, transform .18s ease;
}
.overlay-link:hover { color: var(--color-dark-blue); transform: translateX(-4px); }

/* Staggered entrance */
.overlay-menu.open .overlay-list li { opacity: 1; transform: translateY(0); }
.overlay-list li { opacity: 0; transform: translateY(8px); transition: transform .35s ease, opacity .35s ease; }
.overlay-list li:nth-child(1){ transition-delay: .05s }
.overlay-list li:nth-child(2){ transition-delay: .09s }
.overlay-list li:nth-child(3){ transition-delay: .13s }
.overlay-list li:nth-child(4){ transition-delay: .17s }
.overlay-list li:nth-child(5){ transition-delay: .21s }
.overlay-list li:nth-child(6){ transition-delay: .25s }
.overlay-list li:nth-child(7){ transition-delay: .29s }
.overlay-list li:nth-child(8){ transition-delay: .33s }
.overlay-list li:nth-child(9){ transition-delay: .37s }
.overlay-list li:nth-child(10){ transition-delay: .41s }
.overlay-list li:nth-child(11){ transition-delay: .45s }

@media (prefers-color-scheme: dark) {
  .overlay-menu { background: rgba(15, 23, 42, 0.92); }
  .overlay-link { color: #e5e7eb; }
  .overlay-close { color: #e5e7eb; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
  .overlay-link:hover { color: var(--color-sky-blue); }
}
/* بطاقة مائلة ناعمة حول الشعار */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.reveal-up { transform: translateY(24px); }
.reveal.reveal-fade { transform: none; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Remove extra closing brace as it has no matching opening brace */
