body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* * {
  outline: 1px solid red;
} */


html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(70px);
  overflow-x: hidden;
  overflow-y: auto;
}

@font-face {
  font-family: 'Montaser';
  src: url('/static/home/fonts/Montserrat-Arabic Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montaser';
  src: url('/static/home/fonts/Montserrat-Arabic Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'raleway';
  src: url('/static/home/fonts/raleway.regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'raleway';
  src: url('/static/home/fonts/raleway.bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'inter';
  src: url('/static/home/fonts/Inter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'inter';
  src: url('/static/home/fonts/Inter-Bold.otf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.navbar {
  background-color: #000;
  font-family: 'Montaser', sans-serif;
  font-size: 1.1rem;
  z-index: 100;
  position: fixed;
  top: 0;
  height: 70px;
  display: flex;
  align-items: center;
  width: 100%;
  transition: transform 0.73s ease, opacity 0.73s ease;
}

.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between; /* Adds space between nav items */
  align-items: center; /* Centers items vertically in nav-items */
  width: auto;
  margin-left: auto; /* Pushes items to the right side of the navbar */
}

.nav-item {
  position: relative;
  margin-right: 3vw;
}

.nav-item a {
  text-decoration: none;
  color: white;
  text-align: left;
}

/* Subnav (dropdown) styles */
.subnav {
  display: none;
  position: absolute;
  background-color: #000;
  list-style: none;
  padding: calc(0vw) calc(1rem) calc(0vw) calc(0vw);
  margin: 0;
  top: 100%;
  left: calc(-1vw);
  /* right: calc(-2vw); */
  z-index: 100;
  min-width: 120%;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
}

.subnav li {
  margin: 0;
}

.subnav li a {
  padding: calc(1vw) calc(0vw) calc(0vw) calc(1vw);
  white-space: nowrap;
  display: block;
  text-align: left;
  font-size: 0.9rem;
}

.nav-item a:hover {
  color: #209084;
}

.different-hover a:hover {
  color: #fff;
}

.nav-item:hover {
  transform: scale(1.1);
}

/* Show subnav when hovering over the parent nav item */
.nav-item:hover .subnav {
  display: block;
  padding-bottom: calc(1vw);
}

.subnav li a:hover {
  color: #209084;
  font-size: 1rem;
}

.logo-navbar-container {
  position: absolute;
  display: flex;
  align-items: center;
  height: auto;
}

.logo_navbar {
  height: 50px;
  margin-left: 2vw;
}

.nav-item img:hover {
  filter: brightness(0.73);
}

.menu-toggle {
  display: none;
}

.top_usps {
  display: flex;
  flex-wrap: wrap;
  background-color: #e6dfd7;
  font-family: 'raleway', sans-serif;
  font-size: 14px;
}

.top_usps div {
  padding: 5px 0 5px 20px;
}

.navbar-languages {
  display: flex;
  position: absolute;
  top: calc(0.5vw);
  right: calc(1vw);
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.navbar-languages li {
  margin-left: calc(1vw);
}

.navbar-languages a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
}

.navbar-languages img {
  width: 100%;
  height: 100%;
}

.navbar-languages a:hover {
  cursor: pointer;
  border: 2px solid #209084;
}

.nav-item.active > a {
  color: #209084;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 160px;
}


/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 5rem 5rem 5rem;
  background-color: #000;
  color: #fff;
  gap: 20px;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 30%;
}

.footer-item h4 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #ddd;
  font-family: 'Montaser', sans-serif;
  font-weight: bold;
}

.footer-item-link {
  color: #fff;
  text-decoration: underline;
  margin: 1rem 0;
}

.footer-item-link:hover {
  color: #209084;
}


.footer-text {
  display: inline;
  flex-direction: column;
  font-family: 'raleway', sans-serif;
}

.link-container {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
}

.instagram-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  bottom: 1vw;
  right: 1vw;
}

.linkedin-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  bottom: 1vw;
  right: 4vw;
}


.instagram-icon img,
.linkedin-icon img {
  width: 40px;
  height: 40px;
}

.instagram-icon:hover,
.linkedin-icon:hover {
  transform: scale(1.1);
}


@media (max-width: 1000px) {
  html {
    scroll-padding-top: 200px;
  }

  .navbar {
    height: 200px;
  }

  .logo-navbar-container {
    position: relative;
    height: 90px;
    left: 50%;
    transform: translate(-50%, -5%);
  }

  .logo_navbar {
    height: auto;
    width: 100%;
    margin-left: 0;
  }

  .nav-items {
    margin: 130px 10px 0 10px;
    width: 97%;
    position: absolute;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 0px;
  }

  .navbar{
    height: 100px;
  }

  .logo_navbar {
    margin: 10px;
    max-width: 75%;
  }

  .footer {
    flex-wrap: wrap;
    font-size: 1rem;
    gap: 0;
    padding: 2rem 0rem 2rem 1rem;
  }

  .footer-item {
    width: 100vw;
  }

  .footer-item h4{
    margin: 10px 0;
    font-size: 1.6rem;
  }

  .footer-item-link{
    margin: 5px 0;
  }

  .footer-text {
    margin: 0;
  }

  .nav-items {
    display: none;
    flex-direction: column;
  }

  .navbar.open .nav-items {
    display: flex;
    background-color: #000;
    margin: 20rem 0 0 0;
    padding: 1rem 0 2rem 0;
    width: 100%;
    border-radius: 0px 0px 20px 20px;
  }

  .navbar.open .nav-item {
    padding: 8px;
  }

  .nav-item:hover .subnav {
    display: none;
  }

  .hero.open {
    padding-top: 10rem;
  }

  #menu-toggle {
    width: 30px;
    height: 25px;
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  #menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  /* Animate to "X" */
  #menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  #menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

}

@media (max-width: 500px) {
  .link-container {
    grid-template-columns: repeat(1, 1fr);
  }

  #menu-toggle {
    right: 0.5rem;
    top: 0.5rem;

  }
}












/* popup */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.73);
  justify-content: center;
  align-items: center;
  z-index: 100;
}


/* Popup content */
.popup-content {
  background-color: #000; /* Dark border color */
  padding: 0; /* Remove padding to avoid double spacing */
  border-radius: 1px; /* Outer border radius */
  overflow: hidden; /* Hide overflow to ensure inner content stays rounded */
  width: 620px;
  box-shadow: 0 0 0 25px #000;
  position: fixed;
}

/* Inner content */
.popup-inner {
  background-color: #e6dfd7; /* Inner background color */
  padding: 20px;
  border-radius: 20px; /* Smaller radius to fit inside the outer border */
}

.popup-title {
  font-family: 'Montaser', sans-serif;
  color: #000;
  text-align: center;
  margin: 20px 0 10px 0;
  font-size: 2rem;
  font-weight: bold;
}

.popup-subtitle {
  font-family: 'Montaser', sans-serif;
  color: #209084;
  text-align: center;
  margin: 0;
  font-size: 1.5rem;
}

.popup-text {
  font-family: 'inter', sans-serif;
  color: #000;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}

/* Fade-in animation */
.popup-container.show {
  display: flex;
  animation: fadeIn 0.3s;
}

@media (max-width: 700px) {
  .popup-content {
    width: 80%;
  }

  .popup-title {
    font-size: 1.6rem;
  }

  .popup-subtitle {
    font-size: 1.2rem;
  }
}