/* ========================================
   Creative Click - Design System
   Modern, Premium, Bilingual (AR/EN)
======================================== */

/* ===== CSS Variables ===== */
:root {
  /* Primary Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.3);

  /* Secondary & Accent */
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;

  /* Neutral Colors */
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --light: #f8fafc;
  --white: #ffffff;

  /* Theme Colors (Light Mode) */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-card: var(--white);
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-600);
  --text-heading: var(--dark);
  --border-color: var(--gray-200);
  --header-bg: rgba(255, 255, 255, 0.95);

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Typography */
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px var(--primary-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* Header Height */
  --header-height: 80px;
}

/* ===== Dark Mode Variables ===== */
[data-theme="dark"] {
  /* Background Colors - Deeper, richer tones */
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;

  /* Text Colors - Higher contrast for readability */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-heading: #ffffff;

  /* Border & UI Elements */
  --border-color: #374151;
  --header-bg: rgba(10, 15, 26, 0.97);

  /* Override gray scale for dark mode */
  --gray-50: #1a2332;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --white: #0a0f1a;
  --light: #111827;
  --dark: #f8fafc;
  --dark-light: #e2e8f0;

  /* Hero & Section backgrounds */
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Dark Mode - Enhanced Styling */
[data-theme="dark"] body {
  background-color: #0a0f1a;
  color: #f1f5f9;
}

[data-theme="dark"] .header {
  background: rgba(10, 15, 26, 0.97);
  border-bottom-color: #374151;
}

[data-theme="dark"] .card {
  background: #1a2332;
  border-color: #374151;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
  color: #ffffff;
}

[data-theme="dark"] .card p,
[data-theme="dark"] p {
  color: #cbd5e1;
}

[data-theme="dark"] .section {
  background-color: #0a0f1a;
}

[data-theme="dark"] .section[style*="background: var(--gray-50)"],
[data-theme="dark"] .section[style*="background-color: var(--gray-50)"] {
  background-color: #111827 !important;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e1e3f 0%, #0a0f1a 50%, #0f172a 100%);
}

[data-theme="dark"] .hero h1 {
  color: #ffffff;
}

[data-theme="dark"] .hero p {
  color: #cbd5e1;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #374151;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #334155;
}

[data-theme="dark"] .btn-outline {
  border-color: #6366f1;
  color: #a5b4fc;
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #a5b4fc;
}

[data-theme="dark"] .footer {
  background: #0a0f1a;
  border-top: 1px solid #374151;
}

[data-theme="dark"] .footer-links a {
  color: #94a3b8;
}

[data-theme="dark"] .footer-links a:hover {
  color: #a5b4fc;
}

/* Form Inputs in Dark Mode */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #1e293b;
  border-color: #374151;
  color: #f1f5f9;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #64748b;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .form-label {
  color: #e2e8f0;
}

/* Card Icons in Dark Mode */
[data-theme="dark"] .card-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Stats Section */
[data-theme="dark"] .stat-item h3 {
  color: #a5b4fc;
}

/* CTA Section */
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Testimonials */
[data-theme="dark"] .testimonial-card {
  background: #1a2332;
  border-color: #374151;
}

/* Feature Items */
[data-theme="dark"] .feature-item {
  background: #1a2332;
}

[data-theme="dark"] .feature-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Section Headers */
[data-theme="dark"] .section-header h2 {
  color: #ffffff;
}

[data-theme="dark"] .section-header p {
  color: #94a3b8;
}

/* WhatsApp Float */
[data-theme="dark"] .whatsapp-float a {
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Filter Buttons */
[data-theme="dark"] .filter-btn {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #374151;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* FAQ Accordion */
[data-theme="dark"] .faq-question {
  background: #1a2332;
  color: #f1f5f9;
}

[data-theme="dark"] .faq-answer {
  background: #111827;
  color: #cbd5e1;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* RTL Support */
[dir="rtl"] body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: var(--gray-200);
}

/* Dark Mode Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
  border: none;
}

.theme-toggle:hover {
  background: var(--gray-200);
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle {
  background: var(--gray-700);
  color: var(--warning);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--gray-600);
}

/* ===== Mobile Menu - Enhanced ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    /* Solid dark background - no transparency */
    padding: var(--space-8);
    padding-top: calc(var(--header-height) + var(--space-4));
    gap: var(--space-2);
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility 0s linear 0.3s;
    z-index: 1001;
    overflow-y: auto;
  }

  /* RTL Support for Mobile Menu */
  [dir="rtl"] .nav-list {
    direction: rtl;
    transform: translateX(-100%);
  }

  .nav-list.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility 0s;
  }

  [dir="rtl"] .nav-list.active {
    transform: translateX(0);
  }

  .nav-list li {
    width: 100%;
    max-width: 320px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
  }

  .nav-list.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered animation for menu items */
  .nav-list.active li:nth-child(1) {
    transition-delay: 0.05s;
  }

  .nav-list.active li:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav-list.active li:nth-child(3) {
    transition-delay: 0.15s;
  }

  .nav-list.active li:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav-list.active li:nth-child(5) {
    transition-delay: 0.25s;
  }

  .nav-list.active li:nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-list.active li:nth-child(7) {
    transition-delay: 0.35s;
  }

  .nav-list.active li:nth-child(8) {
    transition-delay: 0.4s;
  }

  .nav-list .nav-link {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #ffffff;
    /* Pure white for maximum contrast */
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: none;
  }

  .nav-list .nav-link:hover,
  .nav-list .nav-link.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: scale(1.02);
  }

  .nav-list .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Keep menu toggle visible above mobile nav */
  .menu-toggle.active span {
    background: var(--white);
  }

  .nav-actions {
    display: none;
  }

  /* Mobile Menu Actions - shown inside mobile nav */
  .nav-list .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
    width: 100%;
    max-width: 320px;
    padding-bottom: var(--space-8);
  }

  .nav-list .mobile-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--space-6);
  }

  .nav-list .mobile-actions .lang-switch,
  .nav-list .mobile-actions .theme-toggle-mobile {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .nav-list .mobile-actions .lang-switch:hover,
  .nav-list .mobile-actions .theme-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .nav-list .mobile-actions .theme-toggle-mobile {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero p {
  font-size: var(--font-size-xl);
  color: var(--gray-300);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  opacity: 0.2;
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--white);
  font-size: var(--font-size-2xl);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Product Card */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.product-card .card-icon {
  width: 70px;
  height: 70px;
}

/* Service Card */
.service-card {
  text-align: center;
}

.service-card .card-icon {
  margin: 0 auto var(--space-4);
}

/* ===== Stats Section ===== */
.stats {
  background: var(--gradient-dark);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item h3 {
  font-size: var(--font-size-5xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.stat-item h3 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--gray-400);
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--gray-50);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  font-size: var(--font-size-lg);
  color: var(--gray-700);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

/* ===== Industries ===== */
.industry-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.industry-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.industry-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-xl);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-primary);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin: var(--space-4) 0;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--dark-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-title {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: var(--space-6);
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: var(--radius-full);
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: var(--gradient-dark);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

.breadcrumbs a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs span {
  color: var(--gray-500);
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-5);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
  padding: var(--space-5);
  max-height: 500px;
}

/* ===== Scroll Animation Classes ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.bg-gray {
  background: var(--gray-50);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* ===== RTL Specific Adjustments ===== */
[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .card-icon {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

[dir="rtl"] .industry-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-visual {
  right: auto;
  left: -10%;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .breadcrumbs {
  flex-direction: row-reverse;
}

/* ===== Mobile Actions Visibility ===== */
.mobile-actions {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-list.active .mobile-actions {
    display: flex !important;
    flex-direction: column;
  }
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
  background: var(--gradient-dark);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-header p {
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb (singular) - matches the HTML class */
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: var(--gray-500);
}