/* ========================================
   MODERN ELEGANT DESIGN SYSTEM
   Fresh Contemporary Design - Mobile-First
======================================== */

/* CSS Variables for consistent theming - Dark Green Theme */
:root {
  /* Dark Green Color Palette */
  --primary-color: #065f46;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-lighter: #34d399;
  --secondary-color: #059669;
  --accent-color: #10b981;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  /* Dark Green Shades */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  /* Neutral Colors - Modern Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;

  /* Shadow System - Modern & Soft */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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-colored: 0 10px 30px -5px rgba(6, 95, 70, 0.3);

  /* Dark Mode Variables */
  --bg-primary-dark: #0f172a;
  --bg-secondary-dark: #1e293b;
  --bg-tertiary-dark: #334155;
  --text-primary-dark: #f1f5f9;
  --text-secondary-dark: #cbd5e1;
  --border-dark-mode: #334155;

  /* Background Gradients - Dark Green Theme */
  --gradient-primary: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  --gradient-secondary: linear-gradient(135deg, #047857 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #065f46 25%, #047857 50%, #059669 75%, #10b981 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);

  /* Theme‑aware UI (navbar, mobile, dropdown) – light defaults */
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-border: rgba(255, 255, 255, 0.25);
  --navbar-scrolled-bg: rgba(255, 255, 255, 0.95);
  --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  --navbar-scrolled-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --dropdown-bg: #ffffff;
  --mobile-menu-bg: #ffffff;
  --view-toggle-bg: #ffffff;

  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-small: 8px;
  --border-radius-xs: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --header-height: 80px;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Poppins', 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: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Spacing Scale */
  --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;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1070;
}

/* ========================================
   COLOR THEMES (24 palettes: 18 light + 6 dark)
   Apply with: body[data-color-theme="..."]
   Dark themes override bg/text/navbar/mobile/dropdown for site‑wide dark UI.
======================================== */

/* Helper: support applying on html too (if needed) */
body[data-color-theme],
html[data-color-theme] {
  --theme-applied: 1;
}

body[data-color-theme="green"],
html[data-color-theme="green"] {
  --primary-color: #065f46;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --secondary-color: #059669;
  --accent-color: #10b981;
  --theme-soft-bg: rgba(16, 185, 129, 0.14);
  --theme-soft-bg-strong: rgba(16, 185, 129, 0.22);
  --theme-ring: rgba(16, 185, 129, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(6, 95, 70, 0.30);
  --gradient-primary: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  --gradient-secondary: linear-gradient(135deg, #047857 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #065f46 25%, #047857 50%, #059669 75%, #10b981 100%);
}

body[data-color-theme="teal"],
html[data-color-theme="teal"] {
  --primary-color: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #2dd4bf;
  --secondary-color: #14b8a6;
  --accent-color: #2dd4bf;
  --theme-soft-bg: rgba(45, 212, 191, 0.14);
  --theme-soft-bg-strong: rgba(45, 212, 191, 0.22);
  --theme-ring: rgba(45, 212, 191, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(13, 148, 136, 0.30);
  --gradient-primary: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
  --gradient-secondary: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  --gradient-hero: linear-gradient(135deg, #042f2e 0%, #0f766e 35%, #14b8a6 70%, #2dd4bf 100%);
}

body[data-color-theme="blue"],
html[data-color-theme="blue"] {
  --primary-color: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary-color: #2563eb;
  --accent-color: #3b82f6;
  --theme-soft-bg: rgba(59, 130, 246, 0.14);
  --theme-soft-bg-strong: rgba(59, 130, 246, 0.22);
  --theme-ring: rgba(59, 130, 246, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(37, 99, 235, 0.28);
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #60a5fa 100%);
  --gradient-secondary: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #0b1224 0%, #1e40af 35%, #2563eb 70%, #60a5fa 100%);
}

body[data-color-theme="red"],
html[data-color-theme="red"] {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fb7185;
  --secondary-color: #ef4444;
  --accent-color: #f87171;
  --theme-soft-bg: rgba(248, 113, 113, 0.14);
  --theme-soft-bg-strong: rgba(248, 113, 113, 0.22);
  --theme-ring: rgba(248, 113, 113, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(220, 38, 38, 0.25);
  --gradient-primary: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #fb7185 100%);
  --gradient-secondary: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  --gradient-hero: linear-gradient(135deg, #200a0a 0%, #7f1d1d 35%, #dc2626 70%, #fb7185 100%);
}

body[data-color-theme="gray"],
html[data-color-theme="gray"] {
  --primary-color: #374151;
  --primary-dark: #1f2937;
  --primary-light: #9ca3af;
  --secondary-color: #4b5563;
  --accent-color: #6b7280;
  --theme-soft-bg: rgba(156, 163, 175, 0.14);
  --theme-soft-bg-strong: rgba(156, 163, 175, 0.22);
  --theme-ring: rgba(156, 163, 175, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(55, 65, 81, 0.25);
  --gradient-primary: linear-gradient(135deg, #111827 0%, #374151 55%, #9ca3af 100%);
  --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  --gradient-hero: linear-gradient(135deg, #0b0f19 0%, #111827 35%, #374151 70%, #9ca3af 100%);
}

body[data-color-theme="pink"],
html[data-color-theme="pink"] {
  --primary-color: #db2777;
  --primary-dark: #9d174d;
  --primary-light: #f472b6;
  --secondary-color: #ec4899;
  --accent-color: #f472b6;
  --theme-soft-bg: rgba(244, 114, 182, 0.14);
  --theme-soft-bg-strong: rgba(244, 114, 182, 0.22);
  --theme-ring: rgba(244, 114, 182, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(219, 39, 119, 0.25);
  --gradient-primary: linear-gradient(135deg, #9d174d 0%, #db2777 55%, #f472b6 100%);
  --gradient-secondary: linear-gradient(135deg, #be185d 0%, #ec4899 100%);
  --gradient-hero: linear-gradient(135deg, #210615 0%, #9d174d 35%, #db2777 70%, #f472b6 100%);
}

body[data-color-theme="purple"],
html[data-color-theme="purple"] {
  --primary-color: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --secondary-color: #8b5cf6;
  --accent-color: #a78bfa;
  --theme-soft-bg: rgba(167, 139, 250, 0.14);
  --theme-soft-bg-strong: rgba(167, 139, 250, 0.22);
  --theme-ring: rgba(167, 139, 250, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(124, 58, 237, 0.25);
  --gradient-primary: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #a78bfa 100%);
  --gradient-secondary: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #0f0b1e 0%, #4c1d95 35%, #7c3aed 70%, #a78bfa 100%);
}

body[data-color-theme="orange"],
html[data-color-theme="orange"] {
  --primary-color: #ea580c;
  --primary-dark: #9a3412;
  --primary-light: #fdba74;
  --secondary-color: #f97316;
  --accent-color: #fb923c;
  --theme-soft-bg: rgba(251, 146, 60, 0.14);
  --theme-soft-bg-strong: rgba(251, 146, 60, 0.22);
  --theme-ring: rgba(251, 146, 60, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(234, 88, 12, 0.25);
  --gradient-primary: linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #fdba74 100%);
  --gradient-secondary: linear-gradient(135deg, #9a3412 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #1a0c06 0%, #7c2d12 35%, #ea580c 70%, #fdba74 100%);
}

body[data-color-theme="yellow"],
html[data-color-theme="yellow"] {
  --primary-color: #ca8a04;
  --primary-dark: #92400e;
  --primary-light: #fde68a;
  --secondary-color: #eab308;
  --accent-color: #facc15;
  --theme-soft-bg: rgba(250, 204, 21, 0.14);
  --theme-soft-bg-strong: rgba(250, 204, 21, 0.22);
  --theme-ring: rgba(250, 204, 21, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(202, 138, 4, 0.22);
  --gradient-primary: linear-gradient(135deg, #713f12 0%, #ca8a04 55%, #fde68a 100%);
  --gradient-secondary: linear-gradient(135deg, #92400e 0%, #eab308 100%);
  --gradient-hero: linear-gradient(135deg, #140b03 0%, #713f12 35%, #ca8a04 70%, #fde68a 100%);
}

/* Black/White/Gray (Mono) */
body[data-color-theme="mono"],
html[data-color-theme="mono"] {
  --primary-color: #111827;
  --primary-dark: #000000;
  --primary-light: #6b7280;
  --secondary-color: #374151;
  --accent-color: #9ca3af;
  --theme-soft-bg: rgba(156, 163, 175, 0.14);
  --theme-soft-bg-strong: rgba(156, 163, 175, 0.22);
  --theme-ring: rgba(156, 163, 175, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(17, 24, 39, 0.28);
  --gradient-primary: linear-gradient(135deg, #000000 0%, #111827 55%, #6b7280 100%);
  --gradient-secondary: linear-gradient(135deg, #111827 0%, #374151 100%);
  --gradient-hero: linear-gradient(135deg, #000000 0%, #0b0f19 35%, #111827 70%, #6b7280 100%);
}

body[data-color-theme="brown"],
html[data-color-theme="brown"] {
  --primary-color: #92400e;
  --primary-dark: #78350f;
  --primary-light: #fbbf24;
  --secondary-color: #b45309;
  --accent-color: #f59e0b;
  --theme-soft-bg: rgba(245, 158, 11, 0.14);
  --theme-soft-bg-strong: rgba(245, 158, 11, 0.22);
  --theme-ring: rgba(245, 158, 11, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(146, 64, 14, 0.25);
  --gradient-primary: linear-gradient(135deg, #451a03 0%, #92400e 55%, #fbbf24 100%);
  --gradient-secondary: linear-gradient(135deg, #78350f 0%, #b45309 100%);
  --gradient-hero: linear-gradient(135deg, #0e0703 0%, #451a03 35%, #92400e 70%, #fbbf24 100%);
}

body[data-color-theme="navy"],
html[data-color-theme="navy"] {
  --primary-color: #1e3a8a;
  --primary-dark: #0b1f4a;
  --primary-light: #93c5fd;
  --secondary-color: #1d4ed8;
  --accent-color: #60a5fa;
  --theme-soft-bg: rgba(96, 165, 250, 0.14);
  --theme-soft-bg-strong: rgba(96, 165, 250, 0.22);
  --theme-ring: rgba(96, 165, 250, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(30, 58, 138, 0.28);
  --gradient-primary: linear-gradient(135deg, #0b1f4a 0%, #1e3a8a 55%, #93c5fd 100%);
  --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  --gradient-hero: linear-gradient(135deg, #060a18 0%, #0b1f4a 35%, #1e3a8a 70%, #93c5fd 100%);
}

/* --- 6 additional light themes --- */
body[data-color-theme="indigo"],
html[data-color-theme="indigo"] {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary-color: #6366f1;
  --accent-color: #818cf8;
  --theme-soft-bg: rgba(129, 140, 248, 0.14);
  --theme-soft-bg-strong: rgba(129, 140, 248, 0.22);
  --theme-ring: rgba(129, 140, 248, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(79, 70, 229, 0.28);
  --gradient-primary: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #818cf8 100%);
  --gradient-secondary: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4f46e5 70%, #818cf8 100%);
}

body[data-color-theme="cyan"],
html[data-color-theme="cyan"] {
  --primary-color: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --secondary-color: #06b6d4;
  --accent-color: #22d3ee;
  --theme-soft-bg: rgba(34, 211, 238, 0.14);
  --theme-soft-bg-strong: rgba(34, 211, 238, 0.22);
  --theme-ring: rgba(34, 211, 238, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(8, 145, 178, 0.28);
  --gradient-primary: linear-gradient(135deg, #155e75 0%, #0891b2 55%, #22d3ee 100%);
  --gradient-secondary: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
  --gradient-hero: linear-gradient(135deg, #083344 0%, #155e75 35%, #0891b2 70%, #22d3ee 100%);
}

body[data-color-theme="lime"],
html[data-color-theme="lime"] {
  --primary-color: #65a30d;
  --primary-dark: #4d7c0f;
  --primary-light: #a3e635;
  --secondary-color: #84cc16;
  --accent-color: #a3e635;
  --theme-soft-bg: rgba(163, 230, 53, 0.14);
  --theme-soft-bg-strong: rgba(163, 230, 53, 0.22);
  --theme-ring: rgba(163, 230, 53, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(101, 163, 13, 0.28);
  --gradient-primary: linear-gradient(135deg, #3f6212 0%, #65a30d 55%, #a3e635 100%);
  --gradient-secondary: linear-gradient(135deg, #4d7c0f 0%, #84cc16 100%);
  --gradient-hero: linear-gradient(135deg, #1a2e05 0%, #3f6212 35%, #65a30d 70%, #a3e635 100%);
}

body[data-color-theme="rose"],
html[data-color-theme="rose"] {
  --primary-color: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --secondary-color: #f43f5e;
  --accent-color: #fb7185;
  --theme-soft-bg: rgba(251, 113, 133, 0.14);
  --theme-soft-bg-strong: rgba(251, 113, 133, 0.22);
  --theme-ring: rgba(251, 113, 133, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(225, 29, 72, 0.28);
  --gradient-primary: linear-gradient(135deg, #9f1239 0%, #e11d48 55%, #fb7185 100%);
  --gradient-secondary: linear-gradient(135deg, #be123c 0%, #f43f5e 100%);
  --gradient-hero: linear-gradient(135deg, #4c0519 0%, #9f1239 35%, #e11d48 70%, #fb7185 100%);
}

body[data-color-theme="amber"],
html[data-color-theme="amber"] {
  --primary-color: #d97706;
  --primary-dark: #b45309;
  --primary-light: #fbbf24;
  --secondary-color: #f59e0b;
  --accent-color: #fbbf24;
  --theme-soft-bg: rgba(251, 191, 36, 0.14);
  --theme-soft-bg-strong: rgba(251, 191, 36, 0.22);
  --theme-ring: rgba(251, 191, 36, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(217, 119, 6, 0.28);
  --gradient-primary: linear-gradient(135deg, #92400e 0%, #d97706 55%, #fbbf24 100%);
  --gradient-secondary: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #451a03 0%, #92400e 35%, #d97706 70%, #fbbf24 100%);
}

body[data-color-theme="slate"],
html[data-color-theme="slate"] {
  --primary-color: #475569;
  --primary-dark: #334155;
  --primary-light: #94a3b8;
  --secondary-color: #64748b;
  --accent-color: #94a3b8;
  --theme-soft-bg: rgba(148, 163, 184, 0.14);
  --theme-soft-bg-strong: rgba(148, 163, 184, 0.22);
  --theme-ring: rgba(148, 163, 184, 0.35);
  --shadow-colored: 0 10px 30px -5px rgba(71, 85, 105, 0.28);
  --gradient-primary: linear-gradient(135deg, #1e293b 0%, #475569 55%, #94a3b8 100%);
  --gradient-secondary: linear-gradient(135deg, #334155 0%, #64748b 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #475569 70%, #94a3b8 100%);
}

/* --- 6 dark themes: override surfaces + navbar/mobile/dropdown --- */
body[data-color-theme="dark_green"],
html[data-color-theme="dark_green"],
body[data-color-theme="dark_blue"],
html[data-color-theme="dark_blue"],
body[data-color-theme="dark_purple"],
html[data-color-theme="dark_purple"],
body[data-color-theme="dark_slate"],
html[data-color-theme="dark_slate"],
body[data-color-theme="dark_rose"],
html[data-color-theme="dark_rose"],
body[data-color-theme="dark_teal"],
html[data-color-theme="dark_teal"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-light: #334155;
  --border-medium: #475569;
  --navbar-bg: rgba(15, 23, 42, 0.9);
  --navbar-border: rgba(51, 65, 85, 0.6);
  --navbar-scrolled-bg: rgba(15, 23, 42, 0.98);
  --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  --navbar-scrolled-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --dropdown-bg: #1e293b;
  --mobile-menu-bg: #0f172a;
  --view-toggle-bg: #1e293b;
}

body[data-color-theme="dark_green"],
html[data-color-theme="dark_green"] {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary-color: #14b8a6;
  --accent-color: #34d399;
  --theme-soft-bg: rgba(16, 185, 129, 0.18);
  --theme-soft-bg-strong: rgba(16, 185, 129, 0.28);
  --theme-ring: rgba(16, 185, 129, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(16, 185, 129, 0.35);
  --gradient-primary: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  --gradient-secondary: linear-gradient(135deg, #059669 0%, #14b8a6 100%);
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 60%, #10b981 100%);
}

body[data-color-theme="dark_blue"],
html[data-color-theme="dark_blue"] {
  --primary-color: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-light: #93c5fd;
  --secondary-color: #38bdf8;
  --accent-color: #93c5fd;
  --theme-soft-bg: rgba(96, 165, 250, 0.18);
  --theme-soft-bg-strong: rgba(96, 165, 250, 0.28);
  --theme-ring: rgba(96, 165, 250, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(59, 130, 246, 0.35);
  --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #60a5fa 100%);
  --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  --gradient-hero: linear-gradient(135deg, #0b1f4a 0%, #1e40af 35%, #2563eb 65%, #60a5fa 100%);
}

body[data-color-theme="dark_purple"],
html[data-color-theme="dark_purple"] {
  --primary-color: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c4b5fd;
  --secondary-color: #a78bfa;
  --accent-color: #c4b5fd;
  --theme-soft-bg: rgba(167, 139, 250, 0.18);
  --theme-soft-bg-strong: rgba(167, 139, 250, 0.28);
  --theme-ring: rgba(167, 139, 250, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(139, 92, 246, 0.35);
  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
  --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #3b0764 0%, #5b21b6 35%, #7c3aed 65%, #a78bfa 100%);
}

body[data-color-theme="dark_slate"],
html[data-color-theme="dark_slate"] {
  --primary-color: #94a3b8;
  --primary-dark: #64748b;
  --primary-light: #cbd5e1;
  --secondary-color: #94a3b8;
  --accent-color: #cbd5e1;
  --theme-soft-bg: rgba(148, 163, 184, 0.18);
  --theme-soft-bg-strong: rgba(148, 163, 184, 0.28);
  --theme-ring: rgba(148, 163, 184, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(71, 85, 105, 0.35);
  --gradient-primary: linear-gradient(135deg, #475569 0%, #64748b 50%, #94a3b8 100%);
  --gradient-secondary: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #475569 70%, #94a3b8 100%);
}

body[data-color-theme="dark_rose"],
html[data-color-theme="dark_rose"] {
  --primary-color: #fb7185;
  --primary-dark: #f43f5e;
  --primary-light: #fda4af;
  --secondary-color: #fb7185;
  --accent-color: #fda4af;
  --theme-soft-bg: rgba(251, 113, 133, 0.18);
  --theme-soft-bg-strong: rgba(251, 113, 133, 0.28);
  --theme-ring: rgba(251, 113, 133, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(244, 63, 94, 0.35);
  --gradient-primary: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #fb7185 100%);
  --gradient-secondary: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --gradient-hero: linear-gradient(135deg, #4c0519 0%, #9f1239 35%, #e11d48 65%, #fb7185 100%);
}

body[data-color-theme="dark_teal"],
html[data-color-theme="dark_teal"] {
  --primary-color: #2dd4bf;
  --primary-dark: #14b8a6;
  --primary-light: #5eead4;
  --secondary-color: #2dd4bf;
  --accent-color: #5eead4;
  --theme-soft-bg: rgba(45, 212, 191, 0.18);
  --theme-soft-bg-strong: rgba(45, 212, 191, 0.28);
  --theme-ring: rgba(45, 212, 191, 0.4);
  --shadow-colored: 0 10px 30px -5px rgba(20, 184, 166, 0.35);
  --gradient-primary: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
  --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
  --gradient-hero: linear-gradient(135deg, #042f2e 0%, #0f766e 35%, #14b8a6 65%, #2dd4bf 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  position: relative;
}

/* RTL Support */
body[lang="ar"],
body[lang="ku"] {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 500;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 500;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Modern Hero Section - Elegant Design with Image Swiper */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

/* Hero Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Swiper Box */
.hero-swiper-box {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
}

/* Hero Swiper Container */
.hero-swiper-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-out;
}

.hero-slide.active .slide-image img {
  transform: scale(1.1);
}

.slide-overlay {
  display: none;
}

.slide-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 3;
  max-width: 700px;
  padding: 0 var(--space-6);
  animation: fadeInUp 1s ease-out;
}

.slide-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: white;
}

.slide-category {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Swiper Navigation */
.swiper-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 4;
  pointer-events: none;
}

.swiper-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  pointer-events: all;
  font-size: var(--font-size-lg);
}

.swiper-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Swiper Indicators */
.swiper-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 4;
}

.swiper-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.swiper-indicator.active {
  background: white;
  border-color: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.3) 0%, transparent 70%);
  z-index: 1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 40%;
  right: 30%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 20%;
  right: 20%;
  animation-delay: 8s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 1;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: 600px;
}

.brand-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  font-weight: 500;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-btn.snapchat:hover {
  background: rgba(255, 252, 0, 0.2);
}

.social-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
}

.social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.contact-info {
  display: flex;
  justify-content: center;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.scroll-indicator:hover .scroll-arrow {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Compact hero layout (40% viewport): hero + content on same screen */
body[data-hero-layout="compact"] .hero-section {
  min-height: 0;
  height: 40vh;
  max-height: 40vh;
  padding-top: var(--header-height);
  margin-top: calc(-1 * var(--header-height));
}

@supports (height: 1dvh) {
  body[data-hero-layout="compact"] .hero-section {
    height: 40dvh;
    max-height: 40dvh;
  }
}

body[data-hero-layout="compact"] .hero-content-wrapper {
  padding: var(--space-4) var(--space-6);
  min-height: 0;
  flex-shrink: 1;
}

body[data-hero-layout="compact"] .hero-swiper-box {
  height: min(28vh, 220px);
  min-height: 0;
  max-height: min(28vh, 220px);
  max-width: 720px;
  flex-shrink: 1;
}

@supports (height: 1dvh) {
  body[data-hero-layout="compact"] .hero-swiper-box {
    height: min(28dvh, 220px);
    max-height: min(28dvh, 220px);
  }
}

body[data-hero-layout="compact"] .slide-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

body[data-hero-layout="compact"] .main-content {
  padding-top: var(--space-12);
}

/* Main Content - Modern Layout */
.main-content {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  padding: var(--space-16) 0;
  margin-top: -1px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
  gap: var(--space-8);
}

.section-title-wrapper {
  text-align: center;
  flex: 1;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
}

/* Content controls bar (index + category-style layout switcher) */
.content-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  background: var(--bg-primary);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px var(--shadow-sm);
  border: 1px solid var(--border-light);
  gap: var(--space-6);
  flex-wrap: wrap;
}

.content-controls-index {
  justify-content: flex-end;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.layout-switcher {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  padding: var(--space-1);
  border: 1px solid var(--border-light);
}

.layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--border-radius-small);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.layout-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: var(--transition);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.layout-btn:hover::before {
  width: 100%;
  height: 100%;
}

.layout-btn:hover {
  color: white;
}

.layout-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px var(--shadow-md);
}

.layout-btn.active::before {
  width: 100%;
  height: 100%;
}

/* Categories Section */
.categories-section {
  margin-bottom: var(--space-16);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
  padding: var(--space-4) 0;
}

/* Grid Layout Views */
.categories-grid.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.categories-grid.list-view {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.categories-grid.list-view .category-item {
  display: block;
}

.categories-grid.list-view .category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-4);
  border-radius: var(--border-radius-lg);
}

.categories-grid.list-view .card-media {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.categories-grid.list-view .card-content {
  flex: 1;
  padding: 0;
}

.categories-grid.list-view .content-header {
  justify-content: space-between;
}

.categories-grid.list-view .category-name {
  font-size: var(--font-size-lg);
}

.categories-grid.cards-view {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Category Items */
.category-item {
  animation: fadeInUp 0.6s ease-out backwards;
  cursor: pointer;
}

.category-item:nth-child(1) {
  animation-delay: 0.1s;
}

.category-item:nth-child(2) {
  animation-delay: 0.2s;
}

.category-item:nth-child(3) {
  animation-delay: 0.3s;
}

.category-item:nth-child(4) {
  animation-delay: 0.4s;
}

.category-item:nth-child(5) {
  animation-delay: 0.5s;
}

.category-item:nth-child(6) {
  animation-delay: 0.6s;
}

.category-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;

}

.category-card:hover,
.category-item.hover-active .category-card {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .media-wrapper img,
.category-item.hover-active .media-wrapper img {
  transform: scale(1.1);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card:hover .media-overlay,
.category-item.hover-active .media-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-primary);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.explore-btn:hover {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-6);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: var(--transition);
}

.category-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.category-card:hover .category-indicator,
.category-item.hover-active .category-indicator {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  transform: scale(1.1) rotate(90deg);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--theme-soft-bg-strong);
  color: var(--primary-color);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-6);
}

.empty-title {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.empty-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern Footer */
.footer {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-20);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.4) 0%, transparent 50%);
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}

.footer-brand .footer-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-brand .footer-title .footer-name-link {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.copyright .footer-name-link {
  color: inherit;
  text-decoration: none;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-lg);
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.footer-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: white;
}

.social-grid {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: white;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link.snapchat:hover {
  background: rgba(255, 252, 0, 0.2);
}

.social-link.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
}

.social-link.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.social-link.telegram:hover {
  background: rgba(0, 136, 204, 0.2);
}

.social-link.tiktok:hover {
  background: rgba(0, 242, 234, 0.15);
}

.social-link.web:hover {
  background: rgba(59, 130, 246, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin: 0;
}

.hide {
  display: none;
}

/* Utility Classes */
.ltr {
  direction: ltr;
  text-align: left;
}

.number-text {
  font-family: 'Poppins', monospace;
  font-weight: 500;
}

.touch-active {
  transform: scale(0.95) !important;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Image Loading */
.image-loading {
  background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Focus States */
.btn:focus-visible,
.layout-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.category-item:focus-visible {
  outline: 2px solid var(--brown-700);
  outline-offset: 4px;
  border-radius: var(--border-radius-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-3);
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --space-4: 0.75rem;
    --space-6: 1rem;
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2.5rem;
    --space-16: 3rem;
    --space-20: 4rem;
  }

  body {
    padding-top: var(--header-height);
  }

  .hero-section {
    min-height: 80vh;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
  }

  .hero-content-wrapper {
    padding: var(--space-6) var(--space-4);
  }

  .hero-swiper-box {
    height: 350px;
    max-width: 100%;
  }

  body[data-hero-layout="compact"] .hero-section {
    min-height: 0;
    height: 40vh;
    max-height: 40vh;
  }

  @supports (height: 1dvh) {
    body[data-hero-layout="compact"] .hero-section {
      height: 40dvh;
      max-height: 40dvh;
    }
  }

  body[data-hero-layout="compact"] .hero-swiper-box {
    height: min(26vh, 180px);
    min-height: 0;
    max-height: min(26vh, 180px);
  }

  @supports (height: 1dvh) {
    body[data-hero-layout="compact"] .hero-swiper-box {
      height: min(26dvh, 180px);
      max-height: min(26dvh, 180px);
    }
  }

  .slide-content {
    bottom: 10%;
    padding: 0 var(--space-4);
  }

  .slide-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
  }

  body[data-hero-layout="compact"] .slide-title {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
  }

  .swiper-navigation {
    padding: 0 var(--space-3);
  }

  .swiper-btn {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  .swiper-indicators {
    bottom: 15px;
  }

  .brand-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .brand-subtitle {
    font-size: var(--font-size-lg);
  }

  .social-links {
    gap: var(--space-3);
  }

  .social-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .content-controls-index {
    justify-content: center;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Keep list view as horizontal cards on mobile */
  .categories-grid.list-view .category-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .categories-grid.list-view .card-media {
    width: 110px;
    height: 90px;
    border-radius: var(--border-radius);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .social-grid {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }

  .hero-content {
    padding: 0 var(--space-4);
  }

  .brand-logo {
    width: 250px;
    height: 250px;
  }

  .social-links {
    flex-direction: column;
    gap: var(--space-2);
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .layout-switcher {
    width: 100%;
    justify-content: space-around;
  }

  .categories-grid.cards-view {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .categories-grid.cards-view .card-media {
    height: 120px;
  }

  .categories-grid.cards-view .card-content {
    padding: var(--space-3);
  }

  .categories-grid.cards-view .category-name {
    font-size: var(--font-size-base);
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .logo-img,
  .media-wrapper img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .particle {
    animation: none;
  }
}

/* Print Styles */
@media print {

  .hero-section,
  .content-controls,
  .layout-controls,
  .footer {
    display: none;
  }

  .main-content {
    margin-top: 0;
    padding: var(--space-4) 0;
  }

  .category-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: var(--space-4);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* ========================================
   DARK MODE STYLES
======================================== */
.dark-mode {
  --bg-primary: var(--bg-primary-dark);
  --bg-secondary: var(--bg-secondary-dark);
  --bg-tertiary: var(--bg-tertiary-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --border-light: var(--border-dark-mode);
  --border-medium: #475569;
}

.dark-mode body {
  background: var(--bg-primary-dark);
  color: var(--text-primary-dark);
}

.dark-mode .category-card {
  background: var(--bg-secondary-dark);
  border-color: var(--border-dark-mode);
}

.dark-mode .category-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.dark-mode .category-name {
  color: var(--text-primary-dark);
}

.dark-mode .empty-state {
  background: var(--bg-secondary-dark);
  border-color: var(--border-dark-mode);
  color: var(--text-primary-dark);
}

.dark-mode .empty-icon {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  color: var(--primary-light);
}

.dark-mode .footer {
  background: var(--gradient-hero);
}

.dark-mode .main-content {
  background: var(--bg-primary-dark);
}

.dark-mode .layout-btn {
  color: var(--text-primary-dark);
}

.dark-mode .layout-btn:hover,
.dark-mode .layout-btn.active {
  background: var(--gradient-primary);
  color: white;
}

.dark-mode .hero-swiper-box {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 25px 50px -12px rgba(6, 95, 70, 0.4);
}