/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  display: flex;
  gap: 1rem;
}

.dot {
  width: 18px;
  height: 18px;
  background: #2f393a;
  border-radius: 50%;
  animation: bounce 0.6s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px);
    opacity: 0.6;
  }
}

/* Hide loading screen when page is loaded */
.loader-hidden {
    display: none;
}




.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    font-size: 32px;
    text-decoration: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
@keyframes bounce {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
    100% {
      transform: translateY(0);
    }
}
.whatsapp-icon:hover {
    animation: bounce 1s infinite;
}


/* --- */
.translate-btn {
    background-color: #f0f2e3;
    color: #2f393a;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .translate-btn:hover {
      background-color: #eee;
  }
  
  .translate-btn.scrolled {
    top: 10px;
  }
  
  @media (max-width: 768px) {
    /* Translate Button */
    .translate-btn {
      top: 70px;
      left: 5px !important;
      padding: 6px 10px;
      font-size: 12px;
    }
  }
  
  
.navbar {
  background-color: #f0f2e3;
  color: #3f4a4c;
  padding: 0.5rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 65px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #3f4a4c;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3f4a4ccc;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #3f4a4c;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 70%;
    height: 100%;
    background: #3f4a4c;
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
  }
  
    .nav-links a {
    color: #f0f2e3;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


.hero-section {
  background-color: #3f4a4c;
  color: #f0f2e3;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
}

/* Background Accent inspired by logo shape */
.hero-background-shape {
  position: absolute;
  top: -20px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: #f0f2e3;
  opacity: 0.05;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  animation: floatShape 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatShape {
  0%, 100% {
    transform: rotate(45deg) translateY(0px);
  }
  50% {
    transform: rotate(45deg) translateY(20px);
  }
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.4;
  animation: fadeInDown 1.2s ease both;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.4s ease both;
}

.hero-cta {
  background-color: #f0f2e3;
  color: #3f4a4c;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-cta:hover {
  background-color: #d9dfcc;
}

.shape-bottom-left {
  top: auto;
  bottom: -40px;
  left: -80px;
  right: auto;
  background: #f0f2e3;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  animation: floatShapeReverse 10s ease-in-out infinite;
}

/* Counter animation direction */
@keyframes floatShapeReverse {
  0%, 100% {
    transform: rotate(45deg) translateY(0px);
  }
  50% {
    transform: rotate(45deg) translateY(-20px);
  }
}


@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-background-shape {
    width: 200px;
    height: 200px;
    right: -60px;
  }
}

/* Optional entrance animations */
@keyframes fadeInDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.about-section {
    position: relative;
    background: #ffffff;
    padding: 6rem 5%;
}


.about-container {
    max-width: 1400px;
    margin: 0 auto;
    z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap-reverse;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text .section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark, #3f4a4c);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 2rem;
  color: #444;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-card {
  background-color: #f0f2e3;
  padding: 1.5rem;
  border-right: 4px solid #3f4a4c;
  border-radius: 8px;
}

.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #3f4a4c;
}

.pillar-card p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Visual geometric block */
.about-visual {
  flex: 1;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.triangle-shape {
  width: 200px;
  height: 200px;
  background-color: #3f4a4c;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  position: absolute;
  top: 0;
  left: 0;
  animation: floatShape 8s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight-box {
  width: 140px;
  height: 140px;
  background: #d9dfcc;
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 12px;
  animation: floatShape 8s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .about-text .section-title {
    font-size: 2rem;
  }

  .about-visual {
    min-height: 200px;
  }

  .triangle-shape {
    width: 150px;
    height: 150px;
  }

  .highlight-box {
    width: 100px;
    height: 100px;
  }
.about-visual {
    display: none;
}
}


.services-section {
  background: linear-gradient(to top, white 0px, #f8f8f8 40px, #f8f8f8 100%);
  padding: 6rem 5%;
  direction: rtl;
  text-align: center;
}
.section-header {
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3f4a4c;
  position: relative;
  display: inline-block;
}

.section-underline {
  width: 80px;
  height: 4px;
  background-color: #3f4a4c;
  margin: 1rem auto 0;
  border-radius: 2px;
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}


.services-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1400px;
  gap: 2rem;
  margin: 3rem auto;
}

.service-card {
    z-index: 99;
  background: #ffffff;
  text-align: center;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 2.5rem; /* Adjust icon size */
  margin-bottom: 2.5rem;
  padding: 20px;
  border-radius: 50px;
  background: #3f4a4c;
  color: #f0f2e3;     /* Optional: match brand color */
}


.service-card h3 {
  font-size: 1.3rem;
  color: #3f4a4c;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}












.features-section {
    overflow: hidden;
    position: relative;
  background-color: #3f4a4c;
  padding: 6rem 5%;
  direction: rtl;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5rem;
  color: #f0f2e3 !important;
  margin-bottom: 1rem;
}

.features-section .section-underline {
  background-color: #f0f2e3;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  color: #3f4a4c;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #3f4a4c;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}










.clients-section {
  background: #ffffff;
  padding: 6rem 5%;
  text-align: center;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.client-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f2e3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.client-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}










.projects-section {
  background: #fff;
  padding: 6rem 5%;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: #ffffff;
  max-width: 350px;
  border-radius: 12px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  text-align: right;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  color: #3f4a4c;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}




.contact-section {
  background: linear-gradient(to bottom, white 0px, #f0f2e3 40px, #f0f2e3 100%);
  padding: 6rem 5%;
  direction: rtl;
}

.contact-content {
    max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form button {
  padding: 0.75rem 2rem;
  background-color: #3f4a4c;
  color: #f0f2e3;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2f393a;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  font-size: 1.1rem;
  margin: 0 auto;
  color: #3f4a4c;
  line-height: 2;
}

.contact-info img {
    max-width: 350px;
    border-radius: 30px;
}
.contact-info i {
  margin-left: 10px;
  color: #3f4a4c;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }
}


.site-footer {
  background-color: #3f4a4c;
  color: #f0f2e3;
  padding: 3rem 5% 2rem;
  font-size: 0.95rem;
  direction: rtl;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 0.5rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #f0f2e3;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d9dfcc;
}

.footer-social {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  color: #f0f2e3;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #d9dfcc;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    text-align: center;
  }
    
}