/* English LTR version of styles - adapted from RTL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", Arial, sans-serif;
}

body {
  overflow-x: hidden;
  background-color: #f8fafc;
  direction: ltr;
  line-height: 1.6;
}

/* Navbar styles */
.navbar {
  background-color: white;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;
  margin-right: 10px;
}

.logo h1 {
  color: #15101e;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #15101e;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #ed1a37;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

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

.nav-links a.active {
  color: #ed1a37;
  font-weight: 700;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.language-toggle .lang-btn {
  color: #334155;
  text-decoration: none;
  transition: color 0.3s;
}

.language-toggle .lang-btn:hover {
  color: #ed1a37;
}

.language-toggle .lang-current {
  color: #ed1a37;
  font-weight: 700;
}

.language-toggle .lang-separator {
  color: #d1d5db;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #15101e;
}

.mobile-menu .close-icon {
  display: none;
}

@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    padding: 20px;
    border-left: 1px solid #eee;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    justify-content: center;
    align-items: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu .hamburger-icon {
    display: block;
  }

  .mobile-menu .close-icon {
    display: none;
  }

  .nav-links.active+.mobile-menu .hamburger-icon {
    display: none;
  }

  .nav-links.active+.mobile-menu .close-icon {
    display: block;
  }
}

/* Consistent slide-in panel for medium screens */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background: white;
    width: 80%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: right 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
  }
}

/* Hero section styles */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  padding-top: 55px;
}

.hero-content {
  line-height: 1.3;
  padding: 2rem;
  text-align: left;
  color: white;
  max-width: 800px;
  margin-bottom: 5%;
  margin-left: 5%;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 0rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-button {
  padding: 12px 24px;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #ed1a37;
  color: white;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #d01631;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  font-weight: 700;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #15101e;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 50vh;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero-content {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.8rem;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-button {
    width: 100%;
    max-width: 250px;
  }
}

/* Services Section */
.services {
  padding: 80px 5%;
  background-color: #fff;
}

.container {
  max-width: 1280px;
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #15101e;
  margin-bottom: 15px;
}

.section-title span {
  color: #ed1a37;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f1f1;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(237, 26, 55, 0.1);
  border-color: rgba(237, 26, 55, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-left: 0;
  margin-right: auto;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #15101e;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

.more-services-card {
  position: relative;
  background: #21213b;
  color: white;
  overflow: hidden;
}

.more-services-card .service-icon {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.more-services-card h3 {
  color: white;
}

.more-services-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.more-services-btn {
  display: inline-block;
  background-color: #ed1a37;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ed1a37;
  margin-top: auto;
}

.more-services-btn:hover {
  background-color: transparent;
  color: #ed1a37;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 25px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }
}

/* Join Us Section */
.join-us {
    background-color: #15101E;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.join-us .container {
    max-width: 800px;
    margin: 0 auto;
}

.join-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.join-us p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.join-us .cta-button {
    display: inline-block;
    background-color: #ED1A37;
    color: white;
    padding: 15px 30px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.join-us .cta-button:hover {
    background-color: #D01631;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .join-us h2 {
        font-size: 2rem;
    }

    .join-us p {
        font-size: 1rem;
    }

    .join-us .cta-button {
        padding: 12px 25px;
    }
}

/* Clients Section */
.clients {
  padding: 80px 5%;
  background-color: #f9f9f9;
  overflow: hidden;
}

.clients-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}

.client-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.client-logo {
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f1f1f1;
  opacity: 0;
  transform: translateY(30px);
}

.client-row-1 .client-logo {
  animation: fadeInUp 0.6s forwards;
}

.client-row-2 .client-logo {
  animation: fadeInUp 0.6s forwards 0.2s;
}

.client-row-3 .client-logo {
  animation: fadeInUp 0.6s forwards 0.4s;
}

.client-row-4 .client-logo {
  animation: fadeInUp 0.6s forwards 0.6s;
}

.client-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(237, 26, 55, 0.15);
  border-color: rgba(237, 26, 55, 0.3);
}

.client-logo img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .client-logo {
    width: 140px;
    height: 90px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .client-logo {
    width: calc(50% - 10px);
  }
}

/* Features Section */
.features-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to bottom right, #f9f9f9, #f1f1f1);
  font-family: "Inter", sans-serif;
  direction: ltr;
}

.features-section h3 {
  color: #2c3e50;
  font-size: 19px;
  margin-bottom: 10px;
}

.features-section .section-title {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.features-section .section-title span {
  color: #ed1a37;
  font-weight: bold;
}

.features-section .section-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.features-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  width: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
}

.feature-icon {
  font-size: 45px;
  color: #ed1a37;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-card h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.feature-card p {
  color: #7f8c8d;
  font-size: 16px;
  line-height: 1.7;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover .feature-icon {
  transform: scale(1.3) rotate(10deg);
}

.feature-card:hover h3 {
  color: #ed1a37;
}

@media (max-width: 768px) {
  .features-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    width: 90%;
  }
}

/* Case Studies */
.case-studies {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.flip-card {
  background: transparent;
  width: 375px;
  height: 750px;
  perspective: 1000px;
}

@media (max-width: 768px) {
    .cards-container{
    width: 100%;
  }
  .flip-card {
    width: 100%;
    max-width: 350px;
    height: 800px;
  }
}

@media (max-width: 480px) {
  .cards-container{
    width: 100%;
  }
  .flip-card {
    width: 100%;
    max-width: 300px;
    height: 985px;
  }
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  text-align: left;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 20px 35px;
  box-sizing: border-box;
  text-align: left;
}

.flip-front img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  margin: 0px;
}

.flip-front h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ed1a37;
}

.flip-back h3 {
  text-align: center;
}

.flip-back {
  display: flex;
  justify-content: start;
  flex-direction: column;
  transform: rotateY(180deg);
  color: #333;
  direction: ltr;
}

.flip-back h4 {
  color: #ed1a37;
  margin-bottom: 10px;
}

/* Footer Styles */
.footer {
  background-color: #15101e;
  color: #fff;
  padding: 60px 0 0;
  font-family: "Inter", sans-serif;
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  margin-bottom: 30px;
  text-align: left;
}

.footer-about {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 80px;
  margin-right: 10px;
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #ed1a37;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}

.footer-links a:hover {
  color: #ed1a37;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal .legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-legal .legal-link:hover {
  color: #ed1a37;
}

@media (max-width: 768px) {
  .footer-container {
      place-items: center;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .footer-contact li {
    justify-content: center;
  }
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}