* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #111;
  background-color: #fafbfb;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  /* overflow: hidden; */
}

.glow-blob {
  position: absolute;
  width: 75vw;
  height: 50vh;
  background: #d7f37966;
  bottom: 0;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
}

html[dir="rtl"] .glow-blob {
  left: -30%;
  right: auto;
}
html[dir="ltr"] .glow-blob {
  right: -30%;
  left: auto;
}

.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f6f6;
  border: 1px solid #e1e1e1;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 50px;
}

.nav-brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-brand-text .text1 {
  font-size: 10px;
  font-weight: 700;
  color: #444;
}
.nav-brand-text .text2 {
  margin-top: -6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.brand-logo {
  height: 35px;
  width: auto;
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-store-btns {
  display: flex;
  gap: 10px;
}
.lang-switcher-container {
  display: flex;
  align-items: center;
}
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #e62020;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  width: 110px;
  height: 36px;
}
.lang-switcher-icon {
  width: 18px;
  height: 18px;
}
.lang-switcher:hover {
  background-color: rgba(230, 32, 32, 0.85);
}
.lang-switcher:focus {
  outline: none;
}

/* Store Buttons */
.store-btn.black-btn {
  background: black;
  color: white;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  gap: 10px;
  transition: transform 0.2s;
}
.store-btn.black-btn:hover {
  transform: translateY(-2px);
}
.store-icon {
  width: 22px;
  height: 22px;
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.store-btn-text .small-text {
  font-size: 9px;
  line-height: 1.2;
  opacity: 0.9;
}
.store-btn-text .large-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text-content {
  flex: 1;
  max-width: 500px;
}
.hero-image-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end; /* This pushes item to the far side based on dir property (left in RTL, right in LTR) */
  position: relative;
}
.app-image {
  max-width: 100%;
  height: 520px !important;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #111;
}
.highlight {
  background-color: #e62020;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.2;
  margin-top: 5px;
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.dealer-section {
  width: 100%;
}

.hero-store-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

/* Specific Store Button Order for Hero based on language visually right/left */

.hero-store-btns .hero-store-btn {
  width: 100%;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  height: 64px;
}

.hero-store-btns .hero-store-btn .store-btn-text .small-text {
  font-size: 12px !important;
}

.hero-store-btns .hero-store-btn .store-btn-text .large-text {
  font-size: 16px !important;
}

.hero-store-btns .apple-btn {
  order: 1;
}
.hero-store-btns .google-btn {
  order: 2;
}
html[dir="rtl"] .hero-store-btns .google-btn {
  order: 1;
}
html[dir="rtl"] .hero-store-btns .apple-btn {
  order: 2;
}

.dealer-text {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #34c759;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 8px;
  gap: 10px;
  width: 100%;
  height: 64px;
  transition: background-color 0.2s;
}
.whatsapp-btn:hover {
  background-color: #2eb14e;
}
.wa-icon {
  width: 24px;
  height: 24px;
}

.wa-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wa-text-container .small-text {
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.9;
}
.wa-text-container .large-text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.show-on-mobile {
  display: none;
}

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.fade-in-down {
  opacity: 0;
  animation: fadeInDown 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}

/* Responsiveness for Mobile */
@media (max-width: 850px) {
  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: flex;
  }

  .app-wrapper {
    display: flex;
    flex-direction: column;
  }

  .nav-actions {
    gap: 8px;
  }

  .lang-switcher {
    font-size: 11px;
    border-radius: 10px;
    width: 85px;
    height: 28px;
    padding: 2px 8px;
    gap: 4px;
  }

  .lang-switcher-icon {
    width: 14px;
    height: 14px;
  }

  .navbar {
    background: #f6f6f6;
    border: 1px solid #e1e1e1;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  .nav-store-btns {
    gap: 6px;
  }

  .nav-store-btns .store-btn.black-btn {
    padding: 6px 8px;
    gap: 5px;
    border-radius: 6px;
  }

  .nav-store-btns .store-icon {
    width: 16px;
    height: 16px;
  }

  .nav-store-btns .store-btn-text .small-text {
    font-size: 6px;
  }

  .nav-store-btns .store-btn-text .large-text {
    font-size: 9px;
  }

  .brand-logo {
    height: 24px;
  }

  .nav-brand-text .text1 {
    font-size: 8px;
  }

  .nav-brand-text .text2 {
    font-size: 11px;
    margin-top: -3px;
  }

  .nav-brand-container {
    gap: 6px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }
  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-top-store-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.5;
  }

  .dealer-text {
    font-size: 16px;
  }

  .hero-store-btns {
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
  }

  .hero-store-btns .hero-store-btn {
    padding: 13px 20px;
    height: 56px;
    flex: 1;
  }

  .hero-store-btns .hero-store-btn .store-icon {
    width: 22px;
    height: 22px;
  }

  .hero-store-btns .hero-store-btn .store-btn-text .small-text {
    font-size: 9px !important;
  }

  .hero-store-btns .hero-store-btn .store-btn-text .large-text {
    font-size: 13px !important;
  }

  .whatsapp-btn {
    width: 100%;
    max-width: none;
    height: 56px;
    padding: 13px 20px;
    font-size: 16px;
  }

  .wa-text-container .small-text {
    font-size: 9px;
  }

  .wa-text-container .large-text {
    font-size: 18px;
  }

  .glow-blob {
    width: 100vw;
    height: 50vh;
    top: 20%;
    transform: translateY(-50%);
    bottom: 0;
  }
  html[dir="rtl"] .glow-blob {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  html[dir="ltr"] .glow-blob {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .app-image {
    height: 280px !important;
  }
}

@media (min-width: 851px) {
  .hide-on-desktop {
    display: none !important;
  }
}
