* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  /* Updated to match original turquoise color */
  --primary: #0d9488;
  --primary-foreground: #ffffff;
  --secondary: #f8fafc;
  --secondary-foreground: #334155;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #14b8a6;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0d9488;
  --dark-bg: #0f0f0f;
  --dark-fg: #fafafa;
  --dark-card: #1a1a1a;
  --dark-border: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

body.dark-mode {
  --background: var(--dark-bg);
  --foreground: var(--dark-fg);
  --card: var(--dark-card);
  --card-foreground: var(--dark-fg);
  --secondary: #1a1a1a;
  --secondary-foreground: #e5e5e5;
  --muted: #1a1a1a;
  --muted-foreground: #999999;
  --border: var(--dark-border);
  --input: var(--dark-border);
}


.hero-with-image {
  /* No background image by default (desktop) */
  position: relative;
}

/* Desktop - explicitly NO background image */
@media (min-width: 769px) {
  .hero-with-image {
    background-image: none !important;
    background-color: var(--background);
  }
}

/* Mobile background image - ONLY show on mobile */
@media (max-width: 768px) {
  .hero-with-image {
    background-image: url('public/dasharb.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  
  /* Add overlay for better text readability on mobile */
  .hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    z-index: 1;
  }
  
  .hero-with-image .container-max {
    position: relative;
    z-index: 2;
  }
}


body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* RTL Text Direction Only - but not for header */
body.rtl {
  direction: rtl !important;
}

/* Force header to stay LTR layout regardless of body direction */
body.rtl header {
  direction: ltr !important;
}

body.rtl header nav {
  direction: ltr !important;
  flex-direction: row !important;
}

body.rtl header nav > div {
  direction: ltr !important;
}

/* Keep original header layout in RTL mode */
body.rtl header nav > div:first-child {
  order: 1 !important;
}

body.rtl header nav > div:last-child {
  order: 2 !important;
}

.container-max {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Spacing utilities */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Header styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-backdrop-filter: blur(20px);
}

body.dark-mode header {
  background-color: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid rgba(51, 51, 51, 0.8);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

/* Navigation links */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

/* Button styles */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

button[data-i18n] {
  font-size: 0.875rem;
}

/* Primary button styling */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Secondary button styling */
.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(13, 148, 136, 0.05);
}

/* Ghost button styling */
.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background-color: var(--muted);
  color: var(--primary);
}

/* Outline button styling */
.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Button sizes */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Layout utilities */
.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-stretch {
  align-items: stretch;
}

.flex-grow {
  flex-grow: 1;
}

.flex-col {
  flex-direction: column;
}

.h-full {
  height: 100%;
}

.mt-auto {
  margin-top: auto;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Section utilities */
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.gap-4 {
  gap: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-6 {
  margin-bottom: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-7xl {
  max-width: 80rem;
}

/* Shadow utilities */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image utilities */
.h-auto {
  height: auto;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

/* Sizing utilities */
.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

/* Rounded corners */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

/* Text alignment */
.text-center {
  text-align: center;
}

/* Display utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-flex {
  display: inline-flex;
}

/* Mobile-specific utility classes */
@media (max-width: 767px) {
  .md\\:flex {
    display: none !important;
  }
  
  .md\\:hidden {
    display: block !important;
  }
  
  .hidden.md\\:flex {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\\:flex {
    display: flex !important;
  }
  
  .md\\:hidden {
    display: none !important;
  }
  
  .hidden.md\\:flex {
    display: flex !important;
  }
}

/* Flex utilities */
.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Width utilities */
.w-full {
  width: 100%;
}

/* Mobile-first responsive utilities */
@media (max-width: 767px) {
  /* Hide desktop navigation on mobile */
  .hidden.items-center.gap-8.md\\:flex,
  .md\\:flex {
    display: none !important;
  }
  
  /* Show mobile actions on mobile */
  .flex.items-center.gap-2.md\\:hidden {
    display: flex !important;
  }
  
  /* Ensure mobile menu button is visible */
  .md\\:hidden {
    display: block !important;
  }
}

/* Desktop responsive utilities */
@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  
  .md\:hidden {
    display: none !important;
  }
  
  /* Force desktop navigation to show */
  .hidden.items-center.gap-8.md\:flex {
    display: flex !important;
  }
  
  .hidden.items-center.gap-4.md\:flex {
    display: flex !important;
  }
  
  /* Force hide mobile actions on desktop */
  .flex.items-center.gap-2.md\:hidden {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:w-auto {
    width: auto;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:text-6xl {
    font-size: 3.75rem;
  }
  
  .lg\:text-xl {
    font-size: 1.25rem;
  }
  
  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Card styles */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* Border utilities */
.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-y {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.border-primary {
  border-color: var(--primary);
}

/* Color utilities */
.bg-background {
  background-color: var(--background);
}

.bg-muted {
  background-color: var(--muted);
}

.bg-muted\/30 {
  background-color: var(--muted);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary\/5 {
  background-color: rgba(34, 211, 238, 0.05);
}

.bg-primary\/10 {
  background-color: rgba(34, 211, 238, 0.1);
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-foreground {
  color: var(--foreground);
}

.text-slate-600 {
  color: #64748b;
}

.text-slate-900 {
  color: #0f172a;
}

.bg-muted {
  background-color: var(--muted);
}

.bg-slate-50 {
  background-color: #f8fafc;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.xl\:text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

/* Border radius */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Hover utilities */
.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:border-primary\/50:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(34, 211, 238, 0.9);
}

.hover\:bg-white\/90:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.hover\:bg-primary-foreground\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Transition */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Responsive */
@media (max-width: 768px) {
  .hidden {
    display: none;
  }

  .flex-col {
    flex-direction: column;
  }

  .md\:flex {
    display: flex;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .text-4xl {
    font-size: 2.25rem;
  }

  .text-3xl {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .lg\:text-5xl {
    font-size: 3rem;
  }

  .lg\:text-6xl {
    font-size: 3.75rem;
  }

  .lg\:text-2xl {
    font-size: 1.5rem;
  }

  .lg\:text-4xl {
    font-size: 2.25rem;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:col-span-1 {
    grid-column: span 1;
  }

  .lg\:flex {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .xl\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* Feature cards */
.feature-card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: 0 10px 25px -3px rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(20, 184, 166, 0.15) 100%);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(20, 184, 166, 0.25) 100%);
  transform: scale(1.05);
}

.feature-icon svg {
  height: 1.5rem;
  width: 1.5rem;
  color: var(--primary);
  stroke-width: 2;
}

/* Detailed feature sections */
.detailed-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.detailed-feature-content {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
}

.feature-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border-radius: 9999px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.checkmark-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-image {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--muted);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
}

/* Responsive grid for detailed features */
@media (min-width: 1024px) {
  .detailed-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
  
  .detailed-feature.reverse {
    direction: rtl;
  }
  
  .detailed-feature.reverse > * {
    direction: ltr;
  }
}

/* Animations */
@keyframes blur-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.blur-3xl {
  filter: blur(64px);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.-top-24 {
  top: -6rem;
}

.-bottom-24 {
  bottom: -6rem;
}

.right-0 {
  right: 0;
}

.left-0 {
  left: 0;
}

.h-96 {
  height: 24rem;
}

.w-96 {
  width: 24rem;
}

.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.inline-flex {
  display: inline-flex;
}

.inline-block {
  display: inline-block;
}

.shrink-0 {
  flex-shrink: 0;
}

.z-50 {
  z-index: 50;
}

.z-10 {
  z-index: 10;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-24 > * + * {
  margin-top: 6rem;
}

.inline {
  display: inline;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Additional styling for perfect React matching */
.leading-relaxed {
  line-height: 1.625;
}

.text-center {
  text-align: center;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* Form styling */
input, textarea {
  font-family: inherit;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Mobile responsiveness enhancements */
@media (max-width: 640px) {
  .sm\:w-auto {
    width: 100%;
  }
  
  .sm\:flex-row {
    flex-direction: column;
  }
  
  /* Mobile-specific padding and margins */
  .container-max {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile navigation */
  nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile hero section */
  .hero-with-image {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-attachment: scroll; /* Fix for mobile background issues */
  }
  
  /* Mobile text sizes */
  .text-4xl {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.2;
  }
  
  .text-3xl {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.3;
  }
  
  .text-2xl {
    font-size: 1.25rem !important; /* 20px */
  }
  
  .lg\:text-6xl {
    font-size: 2.25rem !important; /* 36px on mobile */
    line-height: 1.1;
  }
  
  .lg\:text-5xl {
    font-size: 1.875rem !important; /* 30px on mobile */
    line-height: 1.2;
  }
  
  /* Mobile spacing adjustments */
  .py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .lg\:py-32 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .mb-16 {
    margin-bottom: 2rem !important;
  }
  
  .mb-8 {
    margin-bottom: 1.5rem !important;
  }
  
  /* Mobile grid adjustments */
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Mobile feature cards */
  .feature-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .detailed-feature {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .detailed-feature-content {
    padding: 1.5rem;
  }
  
  /* Mobile buttons */
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }
  
  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  
  /* Mobile form elements */
  input, textarea, select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  /* Mobile contact cards */
  .contact-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile pricing cards */
  .pricing-card {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 640px) {
  .sm\:w-auto {
    width: auto;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .btn-primary, .btn-secondary, .btn-outline {
    width: auto;
    margin-bottom: 0;
  }
}

/* Tablet and desktop header styles */
@media (min-width: 768px) {
  /* Desktop brand text size and formatting */
  .text-sm.md\:text-xl {
    font-size: 1.25rem !important;
    text-decoration: none !important;
    letter-spacing: -0.025em !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  }
  
  .text-sm.md\:text-xl:hover {
    text-decoration: none !important;
  }
  
  /* Desktop logo size */
  .h-8.w-8.md\:h-10.md\:w-10 {
    height: 2.5rem;
    width: 2.5rem;
  }
  
  .h-8.w-8.md\:h-10.md\:w-10 span {
    font-size: 1.25rem;
  }
  
  /* Force show desktop navigation */
  header nav .hidden.items-center.gap-8.md\:flex {
    display: flex !important;
    visibility: visible !important;
  }
  
  header nav .hidden.items-center.gap-4.md\:flex {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Hide mobile actions on desktop - be more specific to avoid hiding brand */
  nav > div.flex.items-center.gap-2.md\:hidden,
  nav div[class="flex items-center gap-2 md:hidden"] {
    display: none !important;
  }
  
  /* Reset body padding for desktop */
  body {
    padding-top: 0;
  }
  
  /* Reset header position for desktop */
  header {
    position: sticky;
  }
  
  /* Desktop navigation spacing */
  nav {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Enhanced mobile optimizations for tablets */
@media (max-width: 768px) {
  /* Tablet-specific adjustments */
  .container-max {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .hero-with-image {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .lg\:text-6xl {
    font-size: 2.75rem !important;
  }
  
  .lg\:text-5xl {
    font-size: 2.25rem !important;
  }
  
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .lg\:py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* Tablet grid adjustments */
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .btn-primary, .btn-secondary, .btn-outline, .btn-ghost {
    min-height: 44px; /* Apple's recommended touch target size */
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 0.5rem;
    display: block;
  }
  
  /* Remove hover effects on touch devices */
  .feature-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Larger tap targets for mobile menu */
  #mobileMenuBtn {
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Final polish for exact React replication */
button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.aspect-ratio-3-2 {
  aspect-ratio: 3/2;
}

/* Enhanced UI Styles for Contact Page */
.rounded-2xl {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Transform utilities */
.translate-x-1 {
  transform: translateX(0.25rem);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

/* Form group styling */
.form-group {
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* Enhanced hover effects */
.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Scale utilities */
.scale-110 {
  transform: scale(1.1);
}

.scale-\[1\.02\] {
  transform: scale(1.02);
}

/* Additional spacing */
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

/* Pointer events */
.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* Appearance */
.appearance-none {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Min width */
.min-w-\[60px\] {
  min-width: 60px;
}

/* Z-index */
.-z-10 {
  z-index: -10;
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* Via gradient */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-white {
  --tw-gradient-from: #ffffff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.via-white {
  --tw-gradient-stops: var(--tw-gradient-from), #ffffff, var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-primary\/5 {
  --tw-gradient-to: rgba(13, 148, 136, 0.05);
}

.to-primary\/80 {
  --tw-gradient-to: rgba(13, 148, 136, 0.8);
}

.to-primary\/90 {
  --tw-gradient-to: rgba(13, 148, 136, 0.9);
}

.to-primary {
  --tw-gradient-to: var(--primary);
}

.from-primary {
  --tw-gradient-from: var(--primary);
}

.via-primary {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary), var(--tw-gradient-to, rgba(13, 148, 136, 0));
}

.hover\:from-primary\/90:hover {
  --tw-gradient-from: rgba(13, 148, 136, 0.9);
}

.hover\:via-primary:hover {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary), var(--tw-gradient-to, rgba(13, 148, 136, 0));
}

.hover\:to-primary:hover {
  --tw-gradient-to: var(--primary);
}

/* Text gradient */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

/* Focus ring */
.focus\:ring-primary\/20:focus {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.focus\:ring-primary\/30:focus {
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.3);
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.focus\:ring-4:focus {
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.3);
}

/* Group hover */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group\/item:hover .group-hover\/item\:text-primary {
  color: var(--primary);
}

.group\/item:hover .group-hover\/item\:opacity-100 {
  opacity: 1;
}

/* Transition all */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Margin utilities */
.mr-2 {
  margin-right: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Additional utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.left-3 {
  left: 0.75rem;
}

.right-3 {
  right: 0.75rem;
}

.top-1\/2 {
  top: 50%;
}

/* Red text color */
.text-red-500 {
  color: #ef4444;
}

/* Responsive grid fix for contact form */
@media (max-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .lg\:grid-cols-2 > div:first-child {
    margin-bottom: 2rem;
  }
}

/* Enhanced Contact Page Styles */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

/* Form Input Enhancements */
.form-input {
  position: relative;
}

.form-input:focus {
  transform: translateY(-1px);
}

.form-input:focus ~ .input-check,
.form-input:valid ~ .input-check {
  opacity: 1;
}

.form-input:focus ~ .input-icon,
.form-input:valid ~ .input-icon {
  color: var(--primary);
}

.form-input:invalid:not(:placeholder-shown),
.form-input.error {
  border-color: #ef4444;
}

.form-input:invalid:not(:placeholder-shown) ~ .input-check,
.form-input.error ~ .input-check {
  display: none;
}

.form-input:invalid:not(:placeholder-shown) ~ .input-icon,
.form-input.error ~ .input-icon {
  color: #ef4444;
}

.form-input.valid {
  border-color: #10b981;
}

.form-input.valid ~ .input-check {
  opacity: 1;
}

.form-input.valid ~ .input-icon {
  color: #10b981;
}

/* Input check icon */
.input-check {
  pointer-events: none;
}

/* Focus shadow enhancement */
.focus\:shadow-md:focus {
  box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.1), 0 2px 4px -1px rgba(13, 148, 136, 0.06);
}

/* Animation for form groups */
.form-group {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact card animation */
.contact-card {
  animation: fadeInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced button hover effect */
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"] span {
  position: relative;
  z-index: 1;
}

button[type="submit"] svg {
  position: relative;
  z-index: 1;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced select dropdown */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d9488'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Loading state for button */
button[type="submit"].loading {
  pointer-events: none;
  opacity: 0.7;
}

button[type="submit"].loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success message animation */
.success-message {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects for links */
a[href^="mailto:"],
a[href^="tel:"] {
  position: relative;
  transition: all 0.3s ease;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
  transform: translateX(4px);
}

/* Pulse animation for icons */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.contact-card:hover .group-hover\:scale-110 {
  animation: pulse 2s ease-in-out infinite;
}

/* Pricing Page Enhancements */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card-top {
  border-top: 2px solid transparent !important;
}

.pricing-card-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 0.25rem;
  background: var(--primary);
  border-radius: 0 0 0.5rem 0;
  z-index: 2;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.pricing-card:hover::before {
  left: 100%;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-feature-card {
  position: relative;
  overflow: hidden;
}

.pricing-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.08), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.pricing-feature-card:hover::before {
  left: 100%;
}

.pricing-feature-card > * {
  position: relative;
  z-index: 1;
}

/* Pricing card animations */
.pricing-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }

.pricing-feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.pricing-feature-card:nth-child(1) { animation-delay: 0.3s; }
.pricing-feature-card:nth-child(2) { animation-delay: 0.4s; }
.pricing-feature-card:nth-child(3) { animation-delay: 0.5s; }

/* Enhanced button hover effect for pricing */
button[type="button"].group\/btn,
button.group\/btn {
  position: relative;
  overflow: hidden;
}

button[type="button"].group\/btn::before,
button.group\/btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="button"].group\/btn:hover::before,
button.group\/btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Animate spin for loading */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Error and success message styles */
.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.border-red-200 {
  border-color: #fecaca;
}

.text-green-800 {
  color: #166534;
}

.text-red-800 {
  color: #991b1b;
}

/* Whitespace utilities */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Text white color */
.text-white {
  color: #ffffff;
}

/* Mobile header override - ensure correct display */
@media screen and (max-width: 767px) {
  /* Force mobile header layout - always LTR regardless of body direction */
  header nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    height: 4rem !important;
    direction: ltr !important;
    flex-direction: row !important;
  }
  
  /* Force mobile actions to align properly */
  header nav > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    height: 36px !important;
  }
  
  /* Override RTL for header specifically */
  body.rtl header {
    direction: ltr !important;
  }
  
  body.rtl header nav {
    direction: ltr !important;
    justify-content: space-between !important;
    flex-direction: row !important;
  }
  
  body.rtl header nav > div {
    direction: ltr !important;
  }
  
  /* Force correct order in RTL */
  body.rtl header nav > div:first-child {
    order: 1 !important;
  }
  
  body.rtl header nav > div:last-child {
    order: 2 !important;
  }
  
  /* RTL Text Direction for Mobile - but force header to stay LTR layout */
  body.rtl {
    direction: rtl !important;
  }
  
  /* Force mobile header to maintain LTR layout even in RTL mode */
  body.rtl header {
    direction: ltr !important;
  }
  
  body.rtl header nav {
    direction: ltr !important;
    justify-content: space-between !important;
    flex-direction: row !important;
  }
  
  /* Ensure brand stays on left */
  body.rtl header nav > div:first-child {
    order: 1 !important;
    direction: ltr !important;
  }
  
  /* Ensure actions stay on right */
  body.rtl header nav > div:last-child {
    order: 2 !important;
    direction: ltr !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}
  
  /* Hide desktop navigation elements ONLY on mobile */
  header nav > div:nth-child(2),
  header nav > div:nth-child(3),
  header nav div[class*="hidden"][class*="md:flex"],
  header .hidden.items-center.gap-8,
  header .hidden.items-center.gap-4 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Show only brand (first div) and mobile actions (last div) */
  header nav > div:first-child,
  header nav > div:last-child {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure mobile menu button shows */
  #mobileMenuBtn,
  #mobileTranslateBtnHeader {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Mobile brand text sizing and formatting */
  header nav a[class*="text-sm"][class*="md:text-xl"] {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: -0.025em !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  }
  
  header nav a[class*="text-sm"][class*="md:text-xl"]:hover {
    text-decoration: none !important;
  }
  
  /* Mobile logo sizing */
  header nav div[class*="h-8"][class*="w-8"] {
    height: 2rem !important;
    width: 2rem !important;
  }
  
  header nav div[class*="h-8"][class*="w-8"] span {
    font-size: 0.875rem !important;
  }
  
  /* Force mobile actions to show on the right and align properly */
  header nav > div:last-child {
    margin-left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    height: 36px !important;
  }
  
  /* Ensure buttons stay on same line - override any conflicting styles */
  header nav .flex.items-center.gap-2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
}

/* Desktop navigation override - force show on desktop */
@media (min-width: 768px) {
  /* Highest specificity rules to force desktop navigation */
  header nav > div:nth-child(2),
  header nav > div:nth-child(3) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force hide mobile actions on desktop */
  header nav > div:nth-child(4),
  header nav > div:last-child {
    display: none !important;
  }
  
  /* Target specific class combinations for desktop nav */
  header nav div[class="hidden items-center gap-8 md:flex"],
  header nav div[class="hidden items-center gap-4 md:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Additional high-specificity selectors */
  body header nav .hidden.items-center.gap-8,
  body header nav .hidden.items-center.gap-4 {
    display: flex !important;
  }
  
  /* Hide mobile elements with high specificity */
  body header nav .flex.items-center.gap-2,
  body header nav div[class*="md:hidden"] {
    display: none !important;
  }
}

/* Force header LTR layout - highest specificity */
html[dir="rtl"] header,
html[lang="ar"] header,
body.rtl header {
  direction: ltr !important;
}

html[dir="rtl"] header nav,
html[lang="ar"] header nav,
body.rtl header nav {
  direction: ltr !important;
  justify-content: space-between !important;
  flex-direction: row !important;
}

html[dir="rtl"] header nav > div,
html[lang="ar"] header nav > div,
body.rtl header nav > div {
  direction: ltr !important;
}

/* Very small mobile screens */
@media (max-width: 320px) {
  /* Extra small mobile adjustments */
  .text-sm.md\:text-xl {
    font-size: 0.8rem;
  }
  
  .h-8.w-8.md\:h-10.md\:w-10 {
    height: 1.75rem;
    width: 1.75rem;
  }
  
  .h-8.w-8.md\:h-10.md\:w-10 span {
    font-size: 0.75rem;
  }
  
  #mobileTranslateBtnHeader {
    padding: 0.4rem !important;
    font-size: 0.7rem !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  
  #mobileMenuBtn {
    padding: 0.4rem !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  
  nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Force mobile header layout - ONLY ON MOBILE */
@media (max-width: 767px) {
  /* Force hide desktop elements ONLY ON MOBILE */
  nav > div:nth-child(2),
  nav > div:nth-child(3),
  nav .hidden.items-center.gap-8,
  nav .hidden.items-center.gap-4 {
    display: none !important;
  }
  
  /* Force show mobile elements ONLY ON MOBILE */
  nav > div:nth-child(4),
  nav .flex.items-center.gap-2 {
    display: flex !important;
  }
  
  /* Ensure proper mobile header structure */
  nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* Mobile brand section */
  nav > div:first-child {
    display: flex !important;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 640px) {
  /* Improve text readability on mobile */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Mobile-specific hero text improvements */
  .hero-with-image h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
  }
  
  .hero-with-image p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  /* Mobile sticky header optimization */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Add top padding to body to account for fixed header */
  body {
    padding-top: 64px;
  }
  
  /* Mobile header specific styles */
  nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Mobile brand text size */
  .text-sm.md\:text-xl {
    font-size: 0.875rem;
  }
  
  /* Mobile logo size */
  .h-8.w-8.md\:h-10.md\:w-10 {
    height: 2rem;
    width: 2rem;
  }
  
  .h-8.w-8.md\:h-10.md\:w-10 span {
    font-size: 0.875rem;
  }
  
  /* Mobile translation button in header - exact same size as menu button */
  #mobileTranslateBtnHeader {
    background-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
  }
  
  #mobileTranslateBtnHeader:hover {
    background-color: #0f766e !important;
  }
  
  /* Mobile menu button - exact same size as translation button */
  #mobileMenuBtn {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
  }
  
  #mobileMenuBtn:hover {
    background-color: var(--muted) !important;
  }
  
  /* Mobile actions container - force same line alignment */
  .flex.items-center.gap-2.md\:hidden {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    height: 36px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  /* Ensure buttons are perfectly aligned on same baseline */
  #mobileTranslateBtnHeader,
  #mobileMenuBtn {
    vertical-align: middle !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    display: flex !important;
    margin: 0 !important;
    float: none !important;
  }
  
  /* Ensure proper text sizing on mobile */
  .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  /* Mobile brand link styling */
  .text-sm.md\:text-xl.font-bold {
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
    letter-spacing: -0.025em !important;
    color: var(--foreground) !important;
  }
  
  .text-sm.md\:text-xl.font-bold:hover {
    color: var(--primary) !important;
    text-decoration: none !important;
  }
  
  .text-sm.md\:text-xl.font-bold:focus {
    outline: none !important;
    text-decoration: none !important;
  }
  
  /* Mobile header height consistency */
  header nav {
    min-height: 4rem;
  }
  
  /* Ensure mobile menu doesn't interfere with header */
  #mobileMenu {
    margin-top: 0;
    border-top: 1px solid var(--border);
  }
  
  /* Mobile translate button specific styling */
  button[data-i18n="translate"] span.text-xs {
    font-weight: 600;
    text-transform: uppercase;
  }
  
  /* Mobile menu improvements */
  #mobileMenu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Improve mobile button spacing */
  .flex.flex-col.items-center.justify-center.gap-4.sm\\:flex-row > * {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .flex.flex-col.items-center.justify-center.gap-4.sm\\:flex-row > *:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile stats section */
  .grid.grid-cols-2.gap-8.lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
  }
  
  /* Mobile footer improvements */
  footer .grid.gap-8.md\\:grid-cols-2.lg\\:grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden;
  }
  
  .container-max {
    overflow-x: hidden;
  }
  
  /* Mobile image optimizations */
  img {
    max-width: 100%;
    height: auto;
  }
  
  .feature-image {
    aspect-ratio: 16/9; /* Better for mobile viewing */
  }
  
  /* Mobile form improvements */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-input {
    padding: 0.75rem;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  /* Mobile-friendly select dropdown */
  select.form-input {
    background-size: 1rem;
    padding-right: 2rem;
  }
  
  /* Improve mobile loading states */
  .loading {
    cursor: not-allowed;
  }
  
  /* Mobile scroll improvements */
  * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  
  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mobile-specific animations - reduce motion for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .feature-card {
      animation-duration: 0.3s;
    }
    
    .contact-card {
      animation-duration: 0.3s;
    }
    
    .form-group {
      animation-duration: 0.3s;
    }
  }
  
  /* Disable animations on mobile for better performance */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Landscape phone optimizations */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-with-image {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .lg\:text-6xl {
    font-size: 2rem !important;
  }
  
  .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* High DPI mobile displays - ONLY on mobile devices */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 768px) and (min-resolution: 192dpi) {
  .hero-with-image {
    background-image: url('public/dasharb.png');
    /* You could add a high-res version here if available */
  }
}

/* FINAL DESKTOP HEADER FIX - HIGHEST PRIORITY */
@media screen and (min-width: 768px) {
  /* Force show BRAND SECTION (logo + Tenancy Plus) on desktop */
  html body header nav > div:first-child,
  html body header nav div.flex.items-center.gap-2:first-child {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force show desktop navigation with maximum specificity */
  html body header nav div.hidden.items-center.gap-8,
  html body header nav div[class*="hidden"][class*="items-center"][class*="gap-8"],
  html body header nav div[class="hidden items-center gap-8 md:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  html body header nav div.hidden.items-center.gap-4,
  html body header nav div[class*="hidden"][class*="items-center"][class*="gap-4"],
  html body header nav div[class="hidden items-center gap-4 md:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force hide mobile menu on desktop */
  html body header nav div[class*="flex"][class*="items-center"][class*="gap-2"]:last-child,
  html body header nav div[class="flex items-center gap-2 md:hidden"] {
    display: none !important;
  }
  
  /* Ensure all desktop sections show using nth-child with maximum specificity */
  html body header.sticky nav.container-max > div:nth-child(1) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  html body header.sticky nav.container-max > div:nth-child(2),
  html body header.sticky nav.container-max > div:nth-child(3) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hide mobile actions using nth-child with maximum specificity */
  html body header.sticky nav.container-max > div:nth-child(4) {
    display: none !important;
  }
  
  /* Additional fallback rules for desktop sections */
  header nav > div:has(a[href="index.html"]) {
    display: flex !important;
  }
  
  header nav > div:has(a[href*="features"]),
  header nav > div:has(button#translateBtn) {
    display: flex !important;
  }
  
  header nav > div:has(button#mobileMenuBtn) {
    display: none !important;
  }
  
  /* Force show logo and brand components */
  header nav .h-8.w-8,
  header nav .md\\:h-10.md\\:w-10,
  header nav div[class*="h-8"][class*="w-8"] {
    display: flex !important;
    visibility: visible !important;
  }
  
  header nav a[href="index.html"] {
    display: inline-block !important;
    visibility: visible !important;
  }
  
  /* Ensure desktop brand section layout */
  html body header nav .flex.items-center.gap-2:first-child > * {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Override any rules that might hide the brand section */
  html body header nav > div:first-child.flex.items-center.gap-2 {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force show brand elements specifically */
  html body header nav > div:first-child .h-8.w-8,
  html body header nav > div:first-child a[href="index.html"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* RTL Desktop Header Fix - Force LTR layout even in Arabic mode */
  html body.rtl header,
  html[dir="rtl"] body header,
  html[lang="ar"] body header {
    direction: ltr !important;
  }
  
  html body.rtl header nav,
  html[dir="rtl"] body header nav,
  html[lang="ar"] body header nav {
    direction: ltr !important;
    justify-content: space-between !important;
    flex-direction: row !important;
  }
  
  html body.rtl header nav > div,
  html[dir="rtl"] body header nav > div,
  html[lang="ar"] body header nav > div {
    direction: ltr !important;
  }
  
  /* Ensure desktop header structure is maintained in RTL */
  html body.rtl header nav > div:nth-child(1),
  html body.rtl header nav > div:nth-child(2),
  html body.rtl header nav > div:nth-child(3) {
    display: flex !important;
    order: unset !important;
  }
  
  html body.rtl header nav > div:nth-child(4) {
    display: none !important;
  }
  
  /* CRITICAL: Override ALL RTL rules for desktop header with maximum specificity */
  html[dir="rtl"] body header.sticky nav.container-max,
  html[lang="ar"] body header.sticky nav.container-max,
  body.rtl header.sticky nav.container-max {
    direction: ltr !important;
    justify-content: space-between !important;
    flex-direction: row !important;
  }
  
  html[dir="rtl"] body header.sticky nav.container-max > div,
  html[lang="ar"] body header.sticky nav.container-max > div,
  body.rtl header.sticky nav.container-max > div {
    direction: ltr !important;
    order: unset !important;
  }
  
  /* Force desktop header elements to show in correct positions regardless of RTL */
  html[dir="rtl"] body header.sticky nav.container-max > div:nth-child(1),
  html[lang="ar"] body header.sticky nav.container-max > div:nth-child(1),
  body.rtl header.sticky nav.container-max > div:nth-child(1) {
    display: flex !important;
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  html[dir="rtl"] body header.sticky nav.container-max > div:nth-child(2),
  html[lang="ar"] body header.sticky nav.container-max > div:nth-child(2),
  body.rtl header.sticky nav.container-max > div:nth-child(2) {
    display: flex !important;
    order: 2 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  html[dir="rtl"] body header.sticky nav.container-max > div:nth-child(3),
  html[lang="ar"] body header.sticky nav.container-max > div:nth-child(3),
  body.rtl header.sticky nav.container-max > div:nth-child(3) {
    display: flex !important;
    order: 3 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* Fix phone number display in RTL mode */
.phone-number {
  direction: ltr !important;
  unicode-bidi: embed !important;
  text-align: left !important;
}

/* Force all phone numbers, emails, and numeric content to display LTR in RTL mode */
body.rtl .phone-number,
body.rtl a[href^="tel:"],
body.rtl a[href^="mailto:"],
body.rtl input[type="tel"],
body.rtl input[type="email"],
body.rtl input[placeholder*="+971"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  text-align: left !important;
}

/* Additional RTL fixes for contact forms */
body.rtl input[name="phone"],
body.rtl input[name="email"] {
  direction: ltr !important;
  text-align: left !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* WhatsApp animation */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
