/* ==========================================================================
   أشيائك (Ashyaak) - Delivery App Marketing Website CSS
   Design System: Dark/Light Mode, Gold Accents, Fully Responsive
   ========================================================================== */

:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: rgba(201, 168, 76, 0.25);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.15), transparent 70%);
  --gold-primary: #C9A84C;
  --gold-deep: #B3923B;
  --gold-light: #E5CD83;
  --gold-glow: rgba(201, 168, 76, 0.35);
  --accent-success: #10B981;
  --font-family: 'Cairo', 'Outfit', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #090D16;
  --bg-secondary: #0F172A;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: rgba(201, 168, 76, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.2), transparent 70%);
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Typography ===== */
.text-gold {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-title {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #000;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .navbar {
  background: rgba(9, 13, 22, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 3px 10px var(--gold-glow);
  border: 1px solid var(--border-color);
}

.logo span {
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after { width: 100%; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: rotate(15deg);
}

.nav-download-btn {
  display: inline-flex;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.25rem;
}

.mobile-menu-btn:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

/* ===== Hero ===== */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
  background: var(--hero-glow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mockup */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.mockup-card {
  width: 280px;
  max-width: 100%;
  height: 560px;
  background: var(--bg-secondary);
  border: 8px solid #1E293B;
  border-radius: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--gold-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .mockup-card { border-color: #E2E8F0; }

.mockup-screen {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mockup-app-title {
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 1rem;
}

.mockup-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.badge-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  margin-bottom: 0.5rem;
}

.floating-badge {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.badge-top-left {
  top: 8%;
  right: -15px;
}

.badge-bottom-right {
  bottom: 12%;
  left: -15px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-primary);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Features */
.features { padding: 6rem 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px var(--gold-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Driver CTA */
.driver-cta { padding: 6rem 0; }

.driver-box {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: #F8FAFC;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--gold-glow);
}

.driver-box h2 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.driver-box p {
  color: #CBD5E1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.driver-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.perk-item i { color: var(--gold-primary); }

/* FAQ */
.faq {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.35rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question i {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin: 1.1rem 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a { color: var(--text-secondary); font-size: 0.92rem; }

.footer-links a:hover { color: var(--gold-primary); }

.copyright {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Responsive ===== */

/* Tablet: 992px */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p { margin: 0 auto 2rem; }

  .hero-buttons,
  .hero-stats { justify-content: center; }

  .steps-grid { grid-template-columns: 1fr 1fr; }

  .driver-box {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { gap: 1rem; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  /* Navbar: compact and clean on mobile */
  .navbar { padding: 0.55rem 0; }

  /* Nav links become fullwidth dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-links.active { display: flex; }

  /* Show hamburger */
  .mobile-menu-btn { display: flex; }

  /* HIDE download button completely on mobile */
  .nav-download-btn { display: none !important; }

  /* Hero mobile */
  .hero { padding: 7rem 0 4rem; }

  .hero-content h1 { font-size: 2rem; }

  .hero-content p { font-size: 1rem; }

  .hero-stats { gap: 1.5rem; }

  .stat-item h3 { font-size: 1.5rem; }

  /* Mockup on mobile */
  .mockup-wrapper { margin-top: 1rem; }

  .mockup-card {
    width: 230px;
    height: 450px;
  }

  /* Floating badges */
  .badge-top-left {
    top: 5%;
    right: -5px;
  }

  .badge-bottom-right {
    bottom: 5%;
    left: -5px;
  }

  .floating-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }

  /* Driver box */
  .driver-box {
    padding: 2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .driver-box h2 { font-size: 1.75rem; }

  .driver-perks { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Section titles */
  .section-title { font-size: 1.75rem; }
}


/* Small Mobile: 480px */
@media (max-width: 480px) {
  .logo { font-size: 1.1rem; }

  .logo-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .hero-content h1 { font-size: 1.75rem; }

  .hero-buttons { flex-direction: column; width: 100%; }

  .hero-buttons .btn { width: 100%; justify-content: center; }

  .hero-stats { flex-direction: column; gap: 1rem; text-align: center; }

  .mockup-card {
    width: 200px;
    height: 400px;
  }

  .floating-badge { display: none; }

  .driver-box { padding: 1.5rem; }

  .footer-grid { gap: 1.5rem; }

  .nav-actions .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
