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

:root {
  --primary-blue: #2563eb;
  --dark-blue: #1e40af;
  --light-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --white: #ffffff;
  --black: #000000;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --shadow-professional: 0 20px 60px rgba(37, 99, 235, 0.15);
  --shadow-hover: 0 30px 80px rgba(37, 99, 235, 0.25);
}

[dir="rtl"] {
  font-family: "Cairo", "Roboto", sans-serif;
}

[dir="ltr"] {
  font-family: "Roboto", "Cairo", sans-serif;
}

/* Enhanced RTL Support for Mobile Browsers */
[dir="rtl"] * {
  text-align: inherit;
}

[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
  min-width: 320px;
  /* Prevent layout shifts during language switching */
  transition: direction 0.3s ease;
}

/* Enhanced Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--gradient-dark);
  overflow: hidden;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(37, 99, 235, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(6, 182, 212, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(139, 92, 246, 0.3) 0%,
      transparent 50%
    );
  animation: float 25s ease-in-out infinite;
}

.bg-animation::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: gridMove 20s linear infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-30px) rotate(2deg) scale(1.1);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg) scale(0.9);
  }
  75% {
    transform: translateY(-40px) rotate(1deg) scale(1.05);
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100px);
  }
}

/* Language Toggle */
.language-toggle {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 8px 16px;
  background: transparent;
  color: var(--white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Logo Upload */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;
}

.logo-image {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  width: auto;
  height: auto;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo-upload {
  position: absolute;
  top: -60px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  padding: 15px;
  border-radius: 10px;
  display: none;
  min-width: 200px;
}

.logo-upload input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.logo-upload button {
  width: 100%;
  padding: 8px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 5px;
}

/* Enhanced Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-professional);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.cta-btn {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.cta-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 ease;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Professional Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  margin-top: 40px;
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--accent-cyan) 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1.2s ease-out;
  position: relative;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: none;
}

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Prevent hyphenation for important words */
.no-hyphen,
.hero h1 {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
  animation: slideUp 1.2s ease-out 0.3s both;
  line-height: 1.4;
  word-wrap: break-word;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: slideUp 1.2s ease-out 0.6s both;
  line-height: 1.8;
  word-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease-out 0.9s both;
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 18px 35px;
  border: none;
  border-radius: 50px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  transform: translateY(0);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
}

.btn-primary::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.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 18px 35px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-cyan);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-hero:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
}

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

/* Professional Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-secondary);
  opacity: 0.15;
  animation: floatElement 20s ease-in-out infinite;
  filter: blur(1px);
}

.floating-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: -3s;
}

.floating-2 {
  width: 80px;
  height: 80px;
  top: 65%;
  right: 12%;
  animation-delay: -10s;
}

.floating-3 {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 15%;
  animation-delay: -7s;
}

.floating-4 {
  width: 60px;
  height: 60px;
  top: 35%;
  right: 25%;
  animation-delay: -15s;
}

@keyframes floatElement {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-40px) translateX(30px) rotate(90deg);
  }
  50% {
    transform: translateY(-20px) translateX(-30px) rotate(180deg);
  }
  75% {
    transform: translateY(-50px) translateX(20px) rotate(270deg);
  }
}

/* Professional Services Section */
.services {
  padding: 10rem 2rem;
  background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
  position: relative;
  width: 100%;
}

.services::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, transparent 0%, var(--white) 100%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  line-height: 1.2;
  word-wrap: break-word;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-light);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  word-wrap: break-word;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 3rem;
  margin-top: 5rem;
  width: 100%;
}

.service-card {
  background: var(--white);
  padding: 3.5rem 2.5rem;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.05) 0%,
    transparent 70%
  );
  transition: all 0.4s ease;
  transform: scale(0);
}

.service-card:hover::after {
  transform: scale(1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-secondary);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-card h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  line-height: 1.3;
  word-wrap: break-word;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.9;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  position: relative;
  z-index: 2;
  word-wrap: break-word;
}

/* Enhanced Why Choose Us */
.why-choose {
  padding: 10rem 2rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  width: 100%;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(37,99,235,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 3rem;
  margin-top: 5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.feature-item {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-item:hover::before {
  opacity: 0.05;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-number {
  display: inline-flex;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 2rem;
  position: relative;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.feature-number::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover .feature-number::before {
  opacity: 1;
}

.feature-item h4 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  line-height: 1.3;
  word-wrap: break-word;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  position: relative;
  z-index: 2;
  word-wrap: break-word;
}

/* Professional CTA Section */
.cta-section {
  padding: 10rem 2rem;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 25% 30%,
      rgba(37, 99, 235, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 70%,
      rgba(6, 182, 212, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(139, 92, 246, 0.3) 0%,
      transparent 50%
    );
  animation: ctaFloat 30s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  33% {
    transform: scale(1.1) rotate(1deg);
  }
  66% {
    transform: scale(0.95) rotate(-1deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  width: 100%;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  line-height: 1.2;
  word-wrap: break-word;
}

.cta-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.cta-section p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  word-wrap: break-word;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Professional Footer */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1e293b 100%);
  color: var(--white);
  padding: 6rem 2rem 3rem;
  position: relative;
  width: 100%;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 4rem;
  width: 100%;
}

.footer-brand h3 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  word-wrap: break-word;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  word-wrap: break-word;
}

.footer-links h4 {
  font-size: clamp(1.2rem, 3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
  position: relative;
  line-height: 1.3;
  word-wrap: break-word;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-wrap: break-word;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  word-wrap: break-word;
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
}

.nav-toggle:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Professional Mobile Responsiveness */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 3rem;
  }
  
  .hero {
    padding: 2rem 1rem;
    padding-top: 7rem;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
}

@media (max-width: 768px) {
  .language-toggle {
    top: 80px;
    right: 15px;
    padding: 6px;
    gap: 3px;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .nav-container {
    padding: 0 1rem;
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
  }

  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 2rem;
    gap: 2rem;
  }

  .nav-links.mobile-open li {
    margin: 1rem 0;
  }

  .nav-links.mobile-open a {
    font-size: 1.5rem;
    padding: 1rem;
    display: block;
    text-align: center;
    min-width: 200px;
  }

  .nav-toggle {
    display: block;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
  }

  .logo-image {
    max-height: 35px;
    max-width: 100px;
  }

  .logo-text {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
  }

  .logo-container {
    gap: 10px;
  }

  .hero {
    padding: 1rem 0.5rem;
    padding-top: 6rem;
    min-height: 90vh;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero h1 {
    margin-top: 80px;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-description {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    padding: 15px 30px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-width: auto;
  }

  .floating-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 5%;
  }

  .floating-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 8%;
  }

  .floating-3 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 10%;
  }

  .floating-4 {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 15%;
  }

  .services {
    padding: 6rem 1rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .why-choose {
    padding: 6rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .feature-item {
    padding: 2.5rem 1.5rem;
    margin: 0;
  }

  .feature-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 3rem;
    padding: 0 0.5rem;
  }

  .cta-section {
    padding: 6rem 1rem;
  }

  .cta-content {
    padding: 0 0.5rem;
  }

  .cta-section p {
    margin-bottom: 3rem;
    padding: 0 0.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
    min-width: auto;
  }

  footer {
    padding: 4rem 1rem 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
}

@media (max-width: 480px) {
  .language-toggle {
    right: 10px;
    top: 75px;
    padding: 4px;
    gap: 2px;
  }
  
  .lang-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .logo-image {
    max-height: 30px;
    max-width: 80px;
  }

  .hero {
    min-height: 85vh;
    padding: 0.5rem 0.25rem;
    padding-top: 5rem;
  }

  .hero-content {
    padding: 0 0.25rem;
  }

  .hero h1 {
    margin-top: 70px;
  }

  .hero-description {
    padding: 0 0.25rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    max-width: 250px;
  }

  .service-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .feature-item {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .services,
  .why-choose,
  .cta-section {
    padding: 4rem 0.75rem;
  }

  .container {
    padding: 0 0.25rem;
  }

  .section-subtitle {
    padding: 0 0.25rem;
  }

  .cta-content {
    padding: 0 0.25rem;
  }

  .cta-section p {
    padding: 0 0.25rem;
  }

  footer {
    padding: 3rem 0.75rem 1.5rem;
  }

  .floating-1 {
    width: 60px;
    height: 60px;
    top: 25%;
    left: 3%;
  }

  .floating-2 {
    width: 45px;
    height: 45px;
    top: 75%;
    right: 5%;
  }

  .floating-3 {
    width: 55px;
    height: 55px;
    bottom: 25%;
    left: 8%;
  }

  .floating-4 {
    width: 40px;
    height: 40px;
    top: 45%;
    right: 10%;
  }
}

@media (max-width: 360px) {
  .language-toggle {
    right: 5px;
    top: 70px;
    padding: 2px;
    gap: 1px;
    border-radius: 20px;
  }
  
  .lang-btn {
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 15px;
    min-height: 24px;
    min-width: 24px;
  }
  
  [dir="rtl"] .language-toggle {
    left: 5px;
    right: auto;
  }

  .nav-container {
    padding: 0 0.5rem;
  }

  .logo-image {
    max-height: 28px;
    max-width: 70px;
  }

  .hero {
    min-height: 80vh;
    padding: 0.25rem;
    padding-top: 5rem;
  }

  .hero-content {
    padding: 0 0.1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    max-width: 220px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .feature-item {
    padding: 1.5rem 1rem;
  }

  .services,
  .why-choose,
  .cta-section {
    padding: 3rem 0.5rem;
  }

  footer {
    padding: 2.5rem 0.5rem 1rem;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    max-width: 200px;
  }
}

/* Extra small screens - 320px and below */
@media (max-width: 320px) {
  .language-toggle {
    right: 3px;
    top: 65px;
    padding: 1px;
    gap: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
  }
  
  .lang-btn {
    padding: 2px 4px;
    font-size: 8px;
    border-radius: 10px;
    min-height: 20px;
    min-width: 20px;
  }
  
  [dir="rtl"] .language-toggle {
    left: 3px;
    right: auto;
  }
}

/* Professional Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Professional Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Professional RTL Support */
[dir="rtl"] .nav-links {
  gap: 2.5rem;
}

[dir="rtl"] .hero-buttons {
  gap: 2rem;
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .language-toggle {
  left: 20px;
  right: auto;
}

[dir="rtl"] .nav-links a::after {
  left: 50%;
  transform: translateX(-50%);
}

[dir="rtl"] .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

[dir="rtl"] .hero h1::after {
  left: 50%;
  transform: translateX(-50%);
}

[dir="rtl"] .cta-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

[dir="rtl"] .footer-links h4::after {
  right: 0;
  left: auto;
}

@media (max-width: 768px) {
  [dir="rtl"] .language-toggle {
    left: 15px;
    right: auto;
  }
  
  [dir="rtl"] .footer-links h4::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  [dir="rtl"] .footer-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .language-toggle {
    left: 10px;
    right: auto;
  }
}

/* Enhanced Mobile RTL Fixes for Android Chrome */
@media (max-width: 768px) {
  [dir="rtl"] {
    /* Prevent horizontal overflow on mobile */
    overflow-x: hidden !important;
  }
  
  [dir="rtl"] .nav-container {
    direction: rtl;
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .hero-content {
    text-align: center;
    direction: rtl;
  }
  
  [dir="rtl"] .hero-buttons {
    direction: rtl;
  }
  
  [dir="rtl"] .container {
    direction: rtl;
    text-align: center;
  }
  
  [dir="rtl"] .services-grid,
  [dir="rtl"] .features-grid {
    direction: rtl;
  }
  
  [dir="rtl"] .service-card,
  [dir="rtl"] .feature-item {
    text-align: center;
    direction: rtl;
  }
  
  [dir="rtl"] .cta-content {
    direction: rtl;
    text-align: center;
  }
  
  [dir="rtl"] .footer-content {
    direction: rtl;
  }
  
  /* Force proper width calculation on Android Chrome */
  [dir="rtl"] * {
    box-sizing: border-box;
    max-width: 100%;
  }
  
  /* Prevent text overflow in RTL */
  [dir="rtl"] h1,
  [dir="rtl"] h2,
  [dir="rtl"] h3,
  [dir="rtl"] h4,
  [dir="rtl"] p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }
}

/* Additional fixes for very small screens in RTL */
@media (max-width: 480px) {
  [dir="rtl"] .hero {
    direction: rtl;
    text-align: center;
  }
  
  [dir="rtl"] .nav-links.mobile-open {
    direction: rtl;
    text-align: center;
  }
  
  [dir="rtl"] .btn-primary,
  [dir="rtl"] .btn-secondary {
    direction: rtl;
    text-align: center;
  }
}

/* Professional Cursor Effects */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.active {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .cursor {
    display: none;
  }
}

/* Professional Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  padding: 8px;
  background: #000;
  color: #fff;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 5px 0;
}

/* Mobile Hover Effects Optimization */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .feature-item:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .cta-btn:hover {
    transform: none;
    box-shadow: initial;
  }
  
  /* Add better tap effects for mobile */
  .service-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .btn-primary:active,
  .btn-secondary:active,
  .cta-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Improve touch targets */
  .nav-links a,
  .footer-links a,
  .btn-primary,
  .btn-secondary,
  .cta-btn,
  .lang-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Additional mobile optimizations */
  .footer-links a:hover,
  .cta-btn:hover,
  .nav-links a:hover {
    transform: none;
  }
}

/* Landscape Mode Fixes for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0.5rem;
    padding-top: 5rem;
  }
  
  .hero h1 {
    margin-top: 60px;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    margin-bottom: 1rem;
  }
  
  .hero-description {
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
  
  .services,
  .why-choose,
  .cta-section {
    padding: 4rem 1rem;
  }
}

/* Fix for very wide screens */
@media (min-width: 1600px) {
  .nav-container,
  .container,
  .footer-content,
  .footer-bottom {
    max-width: 1400px;
  }
}

/* Ensure buttons don't get too wide on larger screens */
@media (min-width: 1200px) {
  .btn-primary,
  .btn-secondary {
    max-width: 300px;
  }
}

/* Additional fixes for Android WebView issues */
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Ensure proper direction inheritance */
  direction: inherit;
}

/* Force proper direction on language change */
body[dir="rtl"] {
  direction: rtl !important;
}

body[dir="ltr"] {
  direction: ltr !important;
}

/* Fix for Android Chrome address bar height changes */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile support */
}

/* Ensure proper touch targets for mobile */
.nav-links a,
.footer-links a,
.btn-primary,
.btn-secondary,
.cta-btn,
.lang-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fix for input zoom on iOS */
input[type="text"],
input[type="email"],
input[type="tel"] {
  font-size: 16px;
}

/* Prevent horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Additional mobile browser fixes */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Android Chrome RTL Layout Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
  [dir="rtl"] {
    /* Force proper rendering on Android Chrome */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  [dir="rtl"] .hero,
  [dir="rtl"] .services,
  [dir="rtl"] .why-choose,
  [dir="rtl"] .cta-section,
  [dir="rtl"] footer {
    /* Prevent layout shifts */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 100%;
    overflow-x: hidden;
  }
}

/* Additional grid fixes for very small screens */
@media (max-width: 320px) {
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card,
  .feature-item {
    margin: 0;
    padding: 1.5rem 1rem;
  }
}