/** ADD YOUR AWESOME CODES HERE **/
.hero-gradient-text {
  background: linear-gradient(90deg, #00c6ff, #0072ff, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cta {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
}
.hero-cta-animate:hover, .hero-cta-animate:focus {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(0,114,255,0.18);
}
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#hero-lottie-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero-lottie-bg svg, #hero-lottie-bg canvas {
  max-width: 600px;
  max-height: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}
#hero .container {
  position: relative;
  z-index: 2;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ============================
   Header gap fix for English
   ============================ */
html[lang="en"] #main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html[lang="en"] .hero-section-enhanced {
  padding-top: 80px !important; /* offset for fixed header height */
  margin-top: 0 !important;
}
@media (max-width: 768px) {
  #hero-lottie-bg svg, #hero-lottie-bg canvas {
    max-width: 320px;
    max-height: 220px;
  }
  .display-3 { font-size: 1.5rem; }
  .hero-cta { font-size: 0.95rem; padding: 0.6rem 1rem; }
  .sidebar {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    z-index: 1050;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.12);
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
    display: block !important;
  }
  .sidebar.show {
    left: 0;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1049;
  }
  .sidebar.show ~ .sidebar-backdrop {
    display: block;
  }
  .mobile-nav-toggle {
    display: block !important;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1051;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 15px !important;
  }
  body.sidebar-open {
    overflow: hidden;
  }
}

/* Sidebar for desktop */
@media (min-width: 769px) {
  .sidebar {
    position: sticky !important;
    top: 30px;
    left: 0;
    width: 220px;
    height: auto;
    z-index: 1;
    box-shadow: none;
    background: #f8f9fa;
    display: block !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: none !important;
  }
}

/* ============================================
   Interactive Demos - High Contrast Buttons
   Applies to both English and Arabic
   ============================================ */
.interactive-demos-section .btn,
.interactive-demo .btn,
.interactive-demos-section button,
.interactive-demo button,
.mobile-ecosystem-product-button {
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* When backgrounds are light/transparent, force dark text */
.interactive-demos-section .btn.btn-light,
.interactive-demo .btn.btn-light,
.interactive-demos-section .btn[style*="255, 255, 255"],
.interactive-demo .btn[style*="255, 255, 255"],
.interactive-demos-section button[style*="255, 255, 255"],
.interactive-demo button[style*="255, 255, 255"],
.mobile-ecosystem-product-button[style*="255, 255, 255"] {
  color: #0b1029 !important;
}

/* Primary/active state - ensure readable white on gradient */
.interactive-demos-section .btn.btn-primary,
.interactive-demo .btn.btn-primary,
.mobile-ecosystem-product-button.active {
  color: #ffffff !important;
}

/* High-contrast pills/chips used under ask boxes and quick actions */
.interactive-demos-section .quick-actions .quick-btn,
.interactive-demos-section .quick-actions button,
.interactive-demos-section .quick-actions .quick-action,
.interactive-demos-section .filter-chip,
.interactive-demos-section .suggestion-grid .suggestion-item button,
.interactive-demos-section .view-btn,
.interactive-demos-section .carousel-btn,
.interactive-demos-section .preview-cta {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0b1029 !important;
  border: 1px solid rgba(11, 16, 41, 0.15) !important;
}

/* Hover state keep contrast */
.interactive-demos-section .quick-actions .quick-btn:hover,
.interactive-demos-section .quick-actions .quick-action:hover,
.interactive-demos-section .filter-chip:hover,
.interactive-demos-section .view-btn:hover,
.interactive-demos-section .carousel-btn:hover,
.interactive-demos-section .preview-cta:hover {
  background: #ffffff !important;
  color: #0b1029 !important;
}

/* ============================
   Demo quick chips/buttons - Unified design
   ============================ */
.interactive-demos-section .quick-actions .quick-btn,
.interactive-demos-section .quick-actions .quick-action,
.interactive-demos-section .filter-chip,
.interactive-demos-section .view-btn,
.interactive-demos-section .carousel-btn,
.interactive-demos-section .preview-cta {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,245,255,0.95)) !important;
  color: #0b1029 !important;
  border: 1px solid rgba(11, 16, 41, 0.12) !important;
  border-radius: 20px !important;
  padding: 10px 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.interactive-demos-section .quick-actions .quick-btn:hover,
.interactive-demos-section .quick-actions .quick-action:hover,
.interactive-demos-section .filter-chip:hover,
.interactive-demos-section .view-btn:hover,
.interactive-demos-section .carousel-btn:hover,
.interactive-demos-section .preview-cta:hover {
  background: #ffffff !important;
  color: #0b1029 !important;
}

html[dir="rtl"] .interactive-demos-section .quick-actions {
  justify-content: flex-start;
}