/* ============================================
   GLOBAL STYLES
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #6C63FF;
  --accent:  #00D4FF;
  --dark:    #0A0A0F;
  --darker:  #050508;
  --card:    #111118;
  --border:  #1E1E2E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--darker);
  color: #fff;
  direction: rtl;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-dark {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(17, 17, 24, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(108,99,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   ANIMATED BLOBS
   ============================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobMove 12s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: rgba(108,99,255,0.15); top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: rgba(0,212,255,0.10); bottom: 0; left: -80px; animation-delay: 3s; }
.blob-3 { width: 300px; height: 300px; background: rgba(168,85,247,0.12); top: 40%; left: 30%; animation-delay: 6s; }
.blob-4 { width: 600px; height: 600px; background: rgba(108,99,255,0.12); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 0s; }
.blob-5 { width: 400px; height: 400px; background: rgba(108,99,255,0.08); bottom: 0; right: 0; animation-delay: 2s; }

@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,15px) scale(0.95); }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px;
  left: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: #9ca3af;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: #fff; }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #9ca3af;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(108,99,255,0.35);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.35);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; }

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 20px 50px rgba(108,99,255,0.15);
}
.category-card:hover::before { opacity: 1; }

.cat-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}
.category-card:hover .cat-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.cat-label {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.cat-count {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 12px;
}
.cat-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(4px);
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateY(0); }

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: 0 24px 60px rgba(108,99,255,0.15);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #0d0d18, #111120);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.badge-discount, .badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
}
.badge-discount { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.badge-new      { background: linear-gradient(135deg, var(--primary), #8B5CF6); color: #fff; }

.product-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}
.action-btn:hover { color: #fff; border-color: var(--primary); background: rgba(108,99,255,0.2); }

.product-body { padding: 16px; }

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 8px;
  line-height: 1.4;
}
.product-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 12px; font-size: 0.8rem; }

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-new { font-size: 1.1rem; font-weight: 900; color: #fff; }
.price-old { font-size: 0.8rem; color: #6b7280; text-decoration: line-through; margin-right: 6px; }

.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}
.add-cart-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(108,99,255,0.5); }

/* ============================================
   OFFERS SECTION
   ============================================ */
.offers-banner {
  border: 1px solid rgba(108,99,255,0.2);
  box-shadow: 0 0 80px rgba(108,99,255,0.1);
}

/* Countdown */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 64px;
}
.countdown-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label { font-size: 0.7rem; color: #9ca3af; margin-top: 4px; }
.countdown-sep {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  align-self: center;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 20px 50px rgba(108,99,255,0.12);
}

.feature-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.feature-desc { font-size: 0.88rem; color: #6b7280; line-height: 1.7; }

.feature-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover .feature-glow { opacity: 1; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 20px 50px rgba(108,99,255,0.12);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 5rem;
  color: rgba(108,99,255,0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.footer-link {
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 0;
}
.footer-link:hover { color: #fff; padding-right: 6px; }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.social-icon:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(108,99,255,0.15);
  transform: translateY(-3px);
}

.payment-badge {
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone-mockup {
  position: relative;
  display: inline-block;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(108,99,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite;
}

/* ============================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 640px) {
  .countdown-box { min-width: 52px; padding: 10px 12px; }
  .countdown-num { font-size: 1.4rem; }
}
