:root {
  --green: #004d26;
  --black: #000;
  --white: #fff;
  --max-width: 1100px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  color: var(--green);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  position: relative; 
  height: 80px;
}

.nav-logo img {
  height: 100px;
  width: auto;
}

/* Menu */
.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-menu a:hover {
  color: var(--black);
}

/* Language buttons */
.lang button {
  background: none;
  border: none;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
}

.lang button:hover {
  color: #ccc;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--green);
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar{
    height: auto;
  }
  .nav-inner {
    padding: 18px 20px;
    height: 50px;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 10px 20px;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.5s ease;
  }

  .nav-menu.active {
    max-height: 500px; /* adjust to fit menu */
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .nav-menu a {
    padding: 10px 12px;
    font-size: 16px;
    display: block;
    font-weight: 600;
  }

  .lang {
    margin-top: 10px;
  }
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items:center;
    justify-content: flex-start;
    height: 90vh;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
  }

  /* SVG Triangle */
  .hero-triangle {
    position: absolute;
    left: 0;
    top: 0;
    width: 75%;
    height: 100%;
    z-index: 1;
  }

  /* Image on right */
  .hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* Content */
  .hero-content {
    position: relative;
    top:0;
    z-index: 2;
    color: #fff;
    width: 40%;
    padding: 2%;
    background-color:var(--green);
    height:100%;
    display:flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-evenly;
    opacity: 0;
    transform: translateX(-50px);
    animation: greenBoxIn 1s ease forwards;
    animation-delay: 0.3s;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    
  }

  .cta {
    display: inline-block;
    background: #fff;
    color: #004d26;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.3s ease;
  }

  .cta:hover {
    background:#101010;
    color:#fff;
  }

  .hero-content h1,
.hero-content .cta {
  opacity: 0;
  transform: translateY(25px);
  animation: textFadeUp 1s ease forwards;
}

.hero-content h1 {
  animation-delay: 0.8s; /* After green box */
}

.hero-content .cta {
  animation-delay: 1.1s;
}

/* === Keyframes === */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes greenBoxIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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


  /* Responsive */
  @media (max-width: 768px) {
    .hero {
    display: block;
    height: auto;
    position: relative;
      }

      .hero-img {
        position: relative;
        width: 100%;
        height: 250px;
        z-index: 0;
      }

      .hero-content {
        position: relative;
        width: 100%;
        padding: 30px;
        background: var(--black);
        color: #fff;
        z-index: 2;
      }

      .hero-triangle {
        display: none;
      }

  }
/*About Section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
  padding:5%;
}

.about-img-container {
  flex: 1 1 300px;
  max-width: 500px;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.about-content {
  flex: 1 1 300px;
  max-width: 600px;
}

.about-content h2 {
  color: var(--green);
  margin-top: 0;
}

.about-content p {
  line-height: 1.6;
  color: #333;
}

/* Mission & Vision Section */
.mv-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
  padding:5%;
}   

.mv-content {
  flex: 1 1 300px;
  max-width: 600px;
}

.mv-content h2 {
  color: var(--green);
  margin-top: 0;
}

.mv-content p {
  line-height: 1.6;
  color: #333;
}

.mv-img-container {
  flex: 1 1 300px;
  max-width: 500px;
}

.mv-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

    .mv-container{
      flex-direction: column-reverse;
    }
    }

/*Services */
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

label {
  display: flex;
}

.service-card {
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 280px;
  transition: all 0.4s ease;
  cursor: pointer;
  border-left: 5px solid #004d26;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h1 {
  font-size: 1.15rem;
  color: #004d26;
  margin-bottom: 10px;
}

.service-content p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.service-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Expanded state */
.service-card.active {
  width: 520px;
  transform: translateY(-5px);
}

.service-card.active .service-details {
  opacity: 1;
  max-height: 200px;
  margin-top: 10px;
}

/* Checkbox for Mobile (not used for toggle now, kept for structure consistency) */
.service-toggle {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
    max-width: 400px;
  }

  .service-card.active {
    width: 90%;
  }
}

/*Clients Carousel */
.clients-carousel {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 10px 0;
}

.fixed-logo img {
  width: 130px;
  padding:5%;
  
}

.slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slide-track {
  display: flex;
  gap: 50px;
  animation: scroll 18s linear infinite;
}

.slide-track img {
  width: 120px;
  height: auto;
  object-fit: contain;
  /* filter: brightness(0) invert(0);  */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.slide-track img:hover {
  opacity: 1;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50%));
  }
}

@media (max-width: 768px) {
  .fixed-logo img {
    width: 90px;
  }
  .slide-track img {
    width: 80px;
  }
  .slide-track {
    gap: 30px;
  }
}


/* Footer Base */
.footer {
  background-color: #004d26;
  color: #fff;
  padding: 50px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* Footer Sections */
.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 70px;
  height: auto;
  margin-bottom: 15px;
  background-color: #fff;
}

.company-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.company-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Useful Links */
.useful-links h3,
.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
}

.useful-links h3::after,
.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #8ddca4;
}

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

.useful-links ul li {
  margin: 8px 0;
}

.useful-links ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

.useful-links ul li a:hover {
  color: #8ddca4;
}

/* Contact Info */
.contact-info p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.contact-info a {
  color: #8ddca4;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .footer-section {
    width: 100%;
  }

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

/* RTL fixes */

html[dir="rtl"] .clients-carousel {
  direction: ltr; /* Keeps logos moving left-to-right even in Arabic mode */
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-menu ul {
  flex-direction: row-reverse;
}

body.rtl .nav-menu a {
  font-family: "Tajawal", sans-serif; /* Optional Arabic font */
}

body.rtl .hero-content {
  padding-left: 0;
  padding-right: 4%;
  text-align: right;
  transform: translateX(50px);
}

body.rtl .hero-content h1 {
  text-align: right;
}

body.rtl .hero-content {
  animation: greenBoxInRTL 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes greenBoxInRTL {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.rtl .footer {
  text-align: right;
}

body.rtl .useful-links h3::after,
.contact-info h3::after {
  display: none;
}