@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&display=swap');


*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Cairo', sans-serif;
  color: #000;
  background-color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: absolute;
  right: 1rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.menu {
  list-style: none;
  display: flex;
  gap: 3.5rem;
}
.menu li a {
  color: #000;
  font-weight: bold;
  transition: color 0.2s;
}
.menu li a:hover {
  color: #555;
}
.logo-container {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 0.4rem 0.8rem; 
  box-shadow: 0 3px 10px var(--shadow-light);
  transition: all 0.3s ease;
  max-width: 180px; 
font-size: 0.9rem; /*Optional: reduce text size */
}
  
.logo-container img {
  max-height: 100px; /* smaller than 100px */
  width: auto;
  height: auto;
  margin-right: auto;
}

.company-logo {
  height: 160%;
  width: auto;
  transform: translateY(26px);
}

html[lang="ar"] .logo-container {
  right: 2rem;
  left: auto;
}

html[lang="en"] .logo-container {
  left: 2rem;
  right: auto;
}


/* Dropdown Menu */
.menu li.dropdown {
  position: relative;
}

.menu li.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 0.5rem;
  left: 0;
  right: auto;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0.50s linear 0.50s;
}

html[lang="ar"] .menu li.dropdown .dropdown-menu {
  left: auto;
  right: 0;
}

.menu li.dropdown .dropdown-menu li {
  padding: 0;
}

.menu li.dropdown .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #000;
  font-weight: normal;
  transition: background 0.2s;
}

.menu li.dropdown .dropdown-menu li a:hover {
  background: #f2f2f2;
}

.menu li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
}

@media (max-width: 768px) {
  .menu li.dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .menu li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}


/* HERO */
/* --- Default styles (Mobile-first) --- */
/* These styles apply to ALL devices, but are optimized for phones. */
#hero {
  height:78.5vh;
  margin: 4rem auto;
  background-image: url("1.jpg");
  background-repeat: no-repeat;
  background-position: center center;
 background-size: cover;
  background-position: center;
    border-radius: 35px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}
.hero-title {
  position: relative;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 500;
}
.hero-title .name-ar,
.hero-title .name-en {
  display: block;
}


/* ABOUT */
#about {
  padding: 8rem 2rem;
  background: #fff;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse; 
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}
.about-text {
  flex: 1 1 400px;
  text-align: right;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}
.about-company-name {
  font-size: 1.2rem;
  font-weight: bold;
}
.company-profile-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #1f6690;
  color: white;
  border-radius: 5px;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}
.company-profile-button:hover {
  background-color: #174d6f;
}
.about-image {
  flex: 1 1 400px;
  text-align: left;
  filter: brightness(90%);
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* SUBSIDIARIES */
#subsidiaries {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}
#subsidiaries h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.company-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
}
.company-logos li {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}
.company-logos li img {
  max-height: 100px;
  width: auto;
  transition: filter 0.3s;
}
.company-logos li img:hover {
  filter: grayscale(100%);
}

/* CLIENTS CAROUSEL */
#clients {
  padding: 4rem 2rem;
  background: #f9f9f9;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 2rem;
}
.section-header h2 {
  font-size: 1.8rem;
}
.section-header .view-all {
  padding: 0.5rem 1rem;
  background: #1f6690;
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s;
}
.section-header .view-all:hover {
  background: #174d6f;
}
.carousel-wrapper {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 15s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
.carousel-track li {
  list-style: none;
  flex: 0 0 auto;
  width: 180px;
}
.carousel-track li:nth-child(6) img {
  filter: brightness(0.8);
}
.carousel-track li a {
  display: block;
}
.carousel-track img {
  max-height: 120px;
  width: auto;
  transition: transform 0.3s, filter 0.3s;
}
.carousel-track img:hover {
  transform: scale(1.05);
  filter: grayscale(100%);
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CONTACT */
#contact {
  padding: 4rem 2rem;
  text-align: center;
}
#contact iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 0;
}


/* FOOTER */
footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  padding: 3rem 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 200px;
  text-align: center;
  padding: 0;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
  border-bottom: 2px solid #444;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom ul li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}


.footer-col ul li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socials a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #aaa;
}


/* Responsive */
@media (max-width: 1620px) {
  header nav {
    padding: 1rem;
    min-height: 100px;
  }

  /* Show Hamburger */
  .hamburger {
    display: flex;
  }

  /* Transform Menu to Sidebar */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 6rem 0 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu li a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
  }

  /* Dropdown in Mobile */
  .menu li.dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    opacity: 1;
    visibility: visible;
    transition: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  .menu li.dropdown .dropdown-menu li a {
    padding-right: 3rem;
  }

  /* Logo - Center and Bigger in Mobile */
  .logo-container {
    position: absolute !important;
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: 200px;
  }

  .logo-container img {
    max-height: 80px !important;
  }

  html[lang="ar"] .logo-container,
  html[lang="en"] .logo-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  /* Language Switcher */
  .lang-switcher {
    top: 1rem;
    left: 1rem !important;
    right: auto !important;
    transform: none;
  }

  html[lang="ar"] .lang-switcher,
  html[lang="en"] .lang-switcher {
    left: 1rem !important;
    right: auto !important;
  }

  .about-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .section-header,
  .carousel-wrapper,
  .company-logos {
    margin: 0 1rem;
  }
  .company-logos {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .carousel-track li {
    width: 140px;
  }
}
/* ====== LANGUAGE SWITCHER – absolute positioning ====== */
.lang-switcher {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lang-switcher button {
  display: inline-block;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
  text-decoration: none;
  cursor: pointer;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
  text-underline-position: under;
  color: #000;
}
.lang-switcher button:hover,
.lang-switcher button:focus {
  text-decoration: underline;
  color: #004080;
}



html[lang="ar"] .lang-switcher {
  left: 2rem;
  right: auto;
}
html[lang="ar"] .lang-switcher button {
  display: none;
}
html[lang="ar"] .lang-switcher .en-btn {
  display: block;
}
html[lang="en"] .lang-switcher {
  right: 2rem;
  left: auto;
}
html[lang="en"] .lang-switcher button {
  display: none;
}
html[lang="en"] .lang-switcher .ar-btn {
  display: block;
}

