@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --city-navy: #041128;
  --accent-blue: #007AFF;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.8);
  --transition: all 0.3s ease;
  --section-padding: 80px 0;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevents global horizontal scrolling from off-screen menus */
}

html {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Common Typography */
.section-title,
.work h2,
.about-content h2,
.msg-content h2,
.abt-vm-content h2 {
  font-size: 48px;
  color: #000000;
  margin-bottom: 25px;
  font-weight: 500;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.about-content h2 {
  font-size: 36px;
}

/* Common Buttons */
.btn-primary,
.btn-submit,
.btn-info,
.btn-download,
.btn-location {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 40px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--city-navy);
  color: var(--white);
}

.btn-primary:hover,
.btn-submit:hover,
.btn-info:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-download {
  background-color: var(--white);
  color: var(--city-navy);
  border-radius: 50px;
  padding: 10px 24px;
}

.btn-download:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: scale(1.05);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
  transition: var(--transition);
}

.nav-capsule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--city-navy);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 30px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

header.scrolled {
  top: 10px;
}

header.scrolled .nav-capsule {
  background: var(--city-navy);
  padding: 8px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
}

nav .logo img {
  height: 40px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}

nav ul li a {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
}


nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2100;
  width: 30px;
  height: 30px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 5px;
  transform-origin: center;
}

/* Perfect X Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
  background-color: var(--white) !important;
}

.hamburger.active span:nth-child(2) {
  opacity: 0 !important;
  transform: translateX(-20px) !important;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
  background-color: var(--white) !important;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero,
.hero-app,
.hero-about,
.hero-projects {
  height: 100vh;
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding: 0 5% 100px;
}

.hero {
  background-image: url('imges/banar.png');
}

.hero-app {
  background-image: url("imges/Free iPhone 17 Pro.png");
}

.hero-about {
  background-image: url('imges/banarr2.png');
}

.hero-projects {
  background-image: url("imges/bannar3.png");
  padding-bottom: 10%;
}

.allcontent {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto !important;
}

.hero-content {
  max-width: 850px;
  text-align: left;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 550px;
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */
.about,
.work,
.download-section,
.contact-info,
.contact-msg,
.abt-intro,
.abt-vision-mission,
.serv-area,
.projects-details {
  padding: 80px 0 !important;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  border-radius: 20px;
}

.about-content p {
  font-size: 17px;
  color: #555;
  margin-bottom: 35px;
  max-width: 90%;
}

/* Our Work Slider */
.work {
  text-align: center;
  background: var(--white);
}

.work-slider {
  padding: 40px 0 100px;
  overflow: visible;
}

.swiper-slide {
  transition: all 0.7s cubic-bezier(0.42, 0, 0.58, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide .work-card {
  transform: scale(0.68) translateY(10px);
  opacity: 0.6;
  filter: blur(1px);
}

.swiper-slide-active .work-card {
  transform: scale(1) translateY(0);
  opacity: 1 !important;
  z-index: 10;
  filter: blur(0);
}

.work-card {
  width: 100%;
  max-width: 780px;
  height: 460px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  background: #222;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 50px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-text h3 {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.work-text p.location {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.work-text p.location img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.work-text p.desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 600px;
}

.btn-work-details {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Slider Nav */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

.slider-nav .swiper-button-next,
.slider-nav .swiper-button-prev {
  color: var(--city-navy);
  background: var(--white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-nav .swiper-button-next:hover,
.slider-nav .swiper-button-prev:hover {
  background: var(--city-navy);
  color: var(--white);
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(4, 17, 40, 0.2);
}

.slider-nav .swiper-button-next::after,
.slider-nav .swiper-button-prev::after {
  display: none !important;
}

.slider-nav .swiper-button-next::before,
.slider-nav .swiper-button-prev::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  display: block;
}

.slider-nav .swiper-button-prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.slider-nav .swiper-button-next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Download Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 55px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 25px;
  background: var(--white);
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #000000;
  transition: var(--transition);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
  transform: translateY(-8px);
}

.qr-code img {
  width: 140px;
  height: 140px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 15px;
}

.download-info h3 {
  font-size: 32px;
  color: var(--city-navy);
  margin-bottom: 5px;
  font-weight: 500;
}

.download-info p {
  color: #777;
  font-size: 18px;
  font-weight: 500;
}

/* Contact Forms & Info */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  background: var(--city-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 35px 35px;
  padding: 22px 29px;
  border-radius: 25px;
  color: var(--white);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  height: 60px;
  display: flex;
  align-items: center;
}

.info-icon img {
  max-width: 36px;
  object-fit: contain;
}

.info-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 14px;
}

.btn-info {
  background: var(--white);
  color: var(--city-navy);
  padding: 14px 35px;
  border-radius: 12px;
}

.msg-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.subtitle {
  color: var(--city-navy);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.msg-content h2 {
  font-size: 44px;
  color: var(--city-navy);
  line-height: 1.2;
  margin-bottom: 45px;
  font-weight: 700;
}

.contact-form .form-group {
  margin-bottom: 35px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 0;
  border: none;
  border-bottom: 2px solid #eaedf2;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent-blue);
}

.btn-submit {
  background: var(--city-navy);
  color: var(--white);
  border-radius: 10px;
  border: none;
}

.msg-map {
  height: 550px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   About & App Specifics
   ========================================================================== */
.abt-intro {
  text-align: left;
}

.abt-intro .section-title {
  text-align: left !important;
  font-size: 40px !important;
  margin-bottom: 30px !important;
  color: var(--city-navy) !important;
}

.abt-intro .intro-text p {
  font-size: 21px;
  color: #555;
  width: 95%;
}

.abt-vm-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.abt-vm-row.reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.abt-vm-row.reverse .abt-vm-content {
  grid-column: 2;
}

.abt-vm-row.reverse .abt-vm-image {
  grid-column: 1;
  grid-row: 1;
}

.abt-vm-content h2 {
  font-size: 40px;
}

.abt-vm-p {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
}

.abt-vision-mission .abt-vm-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
}

.abt-vision-mission .abt-vm-image img {
  height: 420px;
  object-fit: cover;
}

.app-specific .abt-vm-image,
.projects-page .abt-vm-image {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.app-specific .abt-vm-image img,
.projects-page .abt-vm-image img {
  height: 600px !important;
  object-fit: contain !important;
  width: 100%;
}

.app-specific .abt-vm-row,
.projects-page .abt-vm-row {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
}

.app-specific .abt-vm-row.reverse,
.projects-page .abt-vm-row.reverse {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
}

.app-specific .abt-vm-content h2,
.projects-page .abt-vm-content h2 {
  font-size: 48px;
  margin-bottom: 25px;
  color: #000;
}

.app-specific .abt-vm-p,
.projects-page .abt-vm-p {
  font-size: 21px;
  line-height: 1.6;
}

.app-specific .btn-app-download,
.projects-page .btn-app-download {
  margin-top: 30px;
  background-color: #041128 !important;
  color: #fff;
  padding: 14px 45px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
}

/* Info Cards (About Page) */
.abt-info-card {
  background: var(--city-navy) !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 35px 35px !important;
  padding: 40px !important;
  border-radius: 25px !important;
  color: var(--white) !important;
}

.abt-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abt-info-card h3 {
  font-size: 24px !important;
  margin-bottom: 10px !important;
}

.abt-info-card p {
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 30px !important;
  font-size: 15px !important;
}

/* ==========================================================================
   Projects Page
   ========================================================================== */
.projects-page .project-main-title {
  font-size: 44px;
  color: var(--city-navy);
  margin-bottom: 40px;
  font-weight: 700;
}

.projects-page .project-block {
  margin-bottom: 70px;
}

.projects-page .project-block h2 {
  font-size: 32px;
  color: var(--city-navy);
  margin-bottom: 25px;
  font-weight: 600;
}

.projects-page .project-block p {
  font-size: 20px;
  color: #555;
  max-width: 85%;
}

.projects-page .project-block ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.projects-page .project-block ul li {
  font-size: 20px;
  color: #555;
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  max-width: 85%;
}

.projects-page .project-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background-color: var(--city-navy);
  border-radius: 50%;
}

/* RTL Support for features bullet points */
html[lang="ar"] .projects-page .project-block ul li {
  padding-left: 0;
  padding-right: 25px;
}

html[lang="ar"] .projects-page .project-block ul li::before {
  left: auto;
  right: 0;
}

.projects-page .projects-map-section {
  padding: 0 0 80px;
}

.projects-page .map-container {
  height: 530px;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.projects-page .location-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.projects-page .pin-icon {
  width: 60px;
  height: 60px;
  transition: var(--transition);
}

.projects-page .map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.projects-page .map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-premium {
  background-color: var(--city-navy);
  color: var(--white);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 100px;
  margin-bottom: 80px;
}

.footer-brand .footer-logo {
  height: 70px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 350px;
  margin-bottom: 35px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: capitalize;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-blue);
  transform: translateY(-5px);
}

.social-links a img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.social-links a:hover img {
  transform: scale(1.15);
}

.footer-links {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.footer-col h4 {
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 600;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent-blue);
}

.footer-col p,
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a:hover {
  color: var(--accent-blue);
  padding-left: 8px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* ==========================================================================
   Animation Utils (Global Reveal)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: var(--delay, 0s);
  /* Supports staggered animations for card groups */
}

[data-reveal="up"] {
  transform: translateY(60px);
}

[data-reveal="left"] {
  transform: translateX(-60px);
}

[data-reveal="right"] {
  transform: translateX(60px);
}

[data-reveal].revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .about-content h2,
  .abt-vm-content h2,
  .msg-content h2,
  .section-title {
    font-size: 32px;
  }

  .about-grid,
  .abt-vm-row {
    gap: 30px !important;
  }

  .footer-grid {
    gap: 40px;
  }

  .work-card {
    height: 450px;
    border-radius: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
    max-width: 450px;
  }

  .about-content h2,
  .abt-vm-content h2,
  .msg-content h2,
  .section-title {
    font-size: 26px;
  }

  .about-content p,
  .abt-vm-p,
  .msg-grid p {
    font-size: 15px;
  }

  .about-grid,
  .abt-vm-row {
    gap: 20px !important;
  }

  .footer-grid {
    gap: 30px;
  }

  .divider {
    display: none;
  }

  .btn-download {
    display: flex;
    padding: 8px 16px;
    font-size: 13px;
  }

  .hamburger {
    display: flex;
  }

  .nav-capsule {
    padding: 10px 5px;
  }

  nav ul {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 250px;
    height: auto;
    padding: 30px 10px;
    background: var(--city-navy);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  nav ul.active {
    right: 20px;
    visibility: visible;
    opacity: 1;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    padding: 12px 20px;
    width: 100%;
  }


  nav ul li a:hover,
  nav ul li a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .work-card {
    height: 400px;
    border-radius: 20px;
    transform: scale(1) !important;
  }

  .swiper-slide .work-card {
    transform: scale(1) !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .slider-nav .swiper-button-next,
  .slider-nav .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .slider-nav {
    margin-top: 41px;
    gap: 50px;
  }
}

@media (max-width: 490px) {

  .about,
  .work,
  .abt-intro,
  .abt-vision-mission,
  .contact-msg,
  .download-section,
  .contact-info,
  .projects-details {
    padding: 50px 0 !important;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .header-actions {
    gap: 8px;
  }

  .about-grid,
  .abt-vm-row,
  .abt-vm-row.reverse,
  .footer-grid,
  .download-grid,
  .msg-grid,
  .info-grid {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
    text-align: center;
  }

  .about-content h2,
  .abt-vm-content h2,
  .msg-content h2,
  .section-title {
    font-size: 24px !important;
  }

  /* Grid Reset for mobile */
  .abt-vm-row .abt-vm-content,
  .abt-vm-row .abt-vm-image,
  .abt-vm-row.reverse .abt-vm-content,
  .abt-vm-row.reverse .abt-vm-image {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .about-content p,
  .abt-vm-p,
  .abt-intro .intro-text p {
    max-width: 100%;
    font-size: 14.5px;
    margin: 0 auto;
  }

  .abt-vm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    text-align: center;
  }

  .abt-vm-image {
    order: 2;
  }

  .app-specific .abt-vm-image img {
    height: 350px !important;
    margin-top: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .footer-brand,
  .footer-links {
    text-align: center !important;
    grid-template-columns: 1fr !important;
  }

  .footer-brand p {
    margin: 0 auto 20px;
  }

  .footer-brand .footer-logo {
    display: block !important;
    margin: 0 auto 30px !important;
  }

  .social-links {
    justify-content: center !important;
    margin-bottom: 40px;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .download-card {
    flex-direction: column !important;
    padding: 25px 15px;
  }

  .info-icon,
  .abt-info-icon {
    justify-content: center !important;
    margin: 0 auto 20px !important;
    width: 100% !important;
    /* Allow justify-content to work across the card */
  }

  .qr-code img {
    width: 120px;
    height: 120px;
  }

  .download-info h3 {
    font-size: 22px;
  }

  .btn-primary,
  .btn-submit,
  .btn-download {
    width: 100%;

  }

  .btn-download {
    padding: 10px 5px;
    font-size: 11px;

  }

  .logo img {
    height: 32px !important;
  }

  .projects-page .project-main-title {
    font-size: 26px;
    text-align: center;
  }

  .projects-page .project-block h2 {
    font-size: 22px;
    text-align: center;
  }

  .projects-page .project-block p {
    font-size: 14px;
    text-align: center;
    max-width: 100%;
  }

  .projects-page .map-container {
    height: 300px;
  }

  .work-card {
    height: 380px;
  }

  .work-info {
    padding: 20px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .work-text h3 {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .work-text p.desc {
    display: none;
  }

  .work-text p.location {
    font-size: 13px;
    margin-bottom: 0px;
    gap: 5px;
  }

  .btn-work-details {
    padding: 6px 14px;
    font-size: 9px;
    gap: 6px;
  }
}

@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .about-content h2,
  .abt-vm-content h2,
  .section-title {
    font-size: 22px !important;
  }

  .about-content p,
  .abt-vm-p {
    font-size: 14px;
  }

  .download-info h3 {
    font-size: 20px;
  }
}

/* ==========================================================================
   Language Toggle & RTL Styles
   ========================================================================== */
.lang-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition);
  padding: 5px 0;
}

.lang-toggle:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.globe-icon {
  stroke-width: 1.5;
}

/* RTL Font and Line Height Improvements */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .section-title,
html[lang="ar"] .lang-toggle {
  font-family: 'Cairo', sans-serif !important;
}

html[lang="ar"] body {
  font-size: 16px;
  letter-spacing: 0;
}

html[lang="ar"] .hero-content h1 {
  line-height: 1.4;
  font-size: 52px;
}

html[lang="ar"] .hero-content p {
  line-height: 1.8;
  font-size: 18px;
}

html[lang="ar"] .about-content p,
html[lang="ar"] .work-text p.desc,
html[lang="ar"] .app-p,
html[lang="ar"] .contact-form input,
html[lang="ar"] .contact-form textarea,
html[lang="ar"] .footer-brand p {
  line-height: 1.8;
  font-size: 17px;
}

html[lang="ar"] .nav-capsule nav ul li a {
  font-size: 16px;
  font-weight: 600;
}

/* RTL Specific Fixes */
html[lang="ar"] .hero-content {
  text-align: right;
}

html[lang="ar"] .btn-work-details .arrow {
  transform: scaleX(-1);
  display: inline-block;
}

html[lang="ar"] .slider-nav {
  flex-direction: row-reverse;
}

html[lang="ar"] .contact-form input,
html[lang="ar"] .contact-form textarea {
  text-align: right;
}

html[lang="ar"] .abt-intro,
html[lang="ar"] .abt-intro .section-title,
html[lang="ar"] .about-content,
html[lang="ar"] .work-info,
html[lang="ar"] .download-info,
html[lang="ar"] .info-card,
html[lang="ar"] .msg-content,
html[lang="ar"] .footer-brand,
html[lang="ar"] .footer-col {
  text-align: right !important;
}

html[lang="ar"] .info-card h3 {
  margin-right: 0;
}

html[lang="ar"] .info-icon {
  justify-content: flex-start;
}

html[lang="ar"] .footer-col h4::after {
  left: auto;
  right: 0;
}

/* Force footer visibility on short pages */
.projects-page .footer-premium [data-reveal],
.app-specific .footer-premium [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Fix mobile menu RTL */
html[lang="ar"] .hamburger {
  margin-right: auto;
  margin-left: 0;
}

@media (max-width: 490px) {

  html[lang="ar"] .hero-content,
  html[lang="ar"] .abt-intro,
  html[lang="ar"] .abt-intro .section-title,
  html[lang="ar"] .about-content,
  html[lang="ar"] .work-info,
  html[lang="ar"] .download-info,
  html[lang="ar"] .info-card,
  html[lang="ar"] .msg-content,
  html[lang="ar"] .footer-brand,
  html[lang="ar"] .footer-links,
  html[lang="ar"] .footer-col {
    text-align: center !important;
  }

  html[lang="ar"] .info-icon,
  html[lang="ar"] .abt-info-icon {
    justify-content: center !important;
  }
}