@font-face {
  font-family: "Coolvetica";
  src: url("../Fonts/coolvetica-rg.ttf") format("truetype");
  font-weight: normal;
}
@font-face {
  font-family: "Coolvetica";
  src: url("../Fonts/CoolveticaLt-Regular.ttf") format("truetype");
  font-weight: 300;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
overflow-x: visible;}
/* Navbar Coloring animation */
a {
  font-weight: 400;
}
.bg-gradient {
  background: #0074ff;
}
.bg-gradient-ar {
  background: #0074ff;
}
.bg-gradient-bottom {
  background: #0074ff;
}
.text-gradient {
  background: #0074ff;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-ar {
  background: #0074ff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* a:is(:link, :active, :visited).active {
  background: linear-gradient(to right, #7d00f9, #4cdfff);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 500;
  position: relative;
}

a:is(:link, :active, :visited).active::after {
  content: "";
  display: block;
  width: 115%;
  height: 2px;
  background: linear-gradient(to right, #7d00f9, #4cdfff);
  position: absolute;
  bottom: -8px;
  left: -7%;
} */
#navbarHomeWeb,
#navbarServiceWeb,
#navbarTechnologyWeb,
#navbarContactWeb,
#navbarLanguageWeb {
  background: rgba(51, 51, 51, 0.5);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
#navbarHomeWeb.active,
#navbarServiceWeb.active,
#navbarTechnologyWeb.active,
#navbarContactWeb.active,
#navbarLanguageWeb.active {
  background: #0074ff;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 500;
  position: relative;
}
/* Adjust gradient direction for Arabic active links */

#navbarHomeWeb.active::after,
#navbarServiceWeb.active::after,
#navbarTechnologyWeb.active::after,
#navbarContactWeb.active::after,
#navbarLanguageWeb.active::after {
  content: "";
  display: block;
  width: 115%;
  height: 2px;
  background: #0074ff;
  position: absolute;
  bottom: -8px;
  left: -7%;
}

html[dir="rtl"] #navbarHomeWeb.active,
html[dir="rtl"] #navbarServiceWeb.active,
html[dir="rtl"] #navbarTechnologyWeb.active,
html[dir="rtl"] #navbarContactWeb.active,
html[dir="rtl"] #navbarLanguageWeb.active {
  background: #0074ff;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 500;
  position: relative;
}

html[dir="rtl"] #navbarHomeWeb.active::after,
html[dir="rtl"] #navbarServiceWeb.active::after,
html[dir="rtl"] #navbarTechnologyWeb.active::after,
html[dir="rtl"] #navbarContactWeb.active::after,
html[dir="rtl"] #navbarLanguageWeb.active::after {
  content: "";
  display: block;
  width: 115%;
  height: 2px;
  background: #0074ff;
  position: absolute;
  bottom: -8px;
  left: -7%;
}
#navbarHomeMobile,
#navbarServiceMobile,
#navbarTechnologyMobile,
#navbarContactMobile,
#navbarLanguageMobile {
  background: rgba(51, 51, 51, 0.5);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
#navbarHomeMobile.active,
#navbarServiceMobile.active,
#navbarTechnologyMobile.active,
#navbarContactMobile.active,
#navbarLanguageMobile.active {
  background: #0074ff;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 500;
  position: relative;
}

html[dir="rtl"] #navbarHomeMobile.active,
html[dir="rtl"] #navbarServiceMobile.active,
html[dir="rtl"] #navbarTechnologyMobile.active,
html[dir="rtl"] #navbarContactMobile.active,
html[dir="rtl"] #navbarLanguageMobile.active {
  background: #0074ff;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 500;
  position: relative;
}

.placeholder-font-en::placeholder {
  font-family: "Poppins", sans-serif;
}

.placeholder-font-ar::placeholder {
  font-family: "Tajawal", sans-serif;
}

.scroller {
  max-width: 1300px;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 40s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-100% - 3rem));
  }
}

/* Sidebar styles */
/* .overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none; 
}

.overlay.hidden {
  display: none;
}

.overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto; 
}

.sidebar {
  transition: transform 0.6s ease;
  z-index: 50; 
  
}

.sidebar-closed {
  transform: translateX(-100%);
}

.sidebar-closed-ar {
  transform: translateX(100%);
}

.sidebar-open {
  transform: translateX(100%);
} */

/* Overlay Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40; /* Below sidebar but above other content */
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none; /* Disable clicks when hidden */
}

.overlay.hidden {
  display: none;
}

.overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto; /* Enable clicks when visible */
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sidebar Base Styles */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%; /* Adjust as needed */
  z-index: 50;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  background: #fff; /* Ensure background is set */
}

/* LTR (Left-to-Right) Languages */
[dir="ltr"] .sidebar {
  left: 0;
  transform: translateX(-100%);
}

[dir="ltr"] .sidebar.sidebar-open {
  transform: translateX(0);
}

/* RTL (Right-to-Left) Languages */
[dir="rtl"] .sidebar {
  right: 0;
  transform: translateX(100%);
}

[dir="rtl"] .sidebar.sidebar-open {
  transform: translateX(0);
}

/* Accessibility Improvements */
.sidebar {
  outline: none; /* Remove default focus outline */
}

.sidebar:focus-visible {
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.6);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

li::marker {
  font-size: 0.8rem;
}

.content-block {
  display: none;
}

.content-block:first-child {
  display: block;
}
.content-block-mobile {
  display: none;
}

.content-block-mobile:first-child {
  display: block;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #0074FF;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
