/* ===========================
   General Layout Settings
   =========================== */
html,
body {
  overflow-x: hidden;
  font-family: "Noto Kufi Arabic", sans-serif !important;
}

html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="en"] body {
  direction: ltr;
  text-align: left;
}

body {
  font-family: "Noto Kufi Arabic", sans-serif;
  scroll-behavior: smooth;
}

/* ===========================
   Header & Navigation
   =========================== */
header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.navbar {
  background-color: #0057ff;
}

/* Navigation Links */
.nav-link,
.nav-link-about {
  color: #fff !important;
  font-weight: 400;
  position: relative;
  text-decoration: none;
}

.nav-link-about:hover {
  color: #9b9b9c !important;
}

.nav-link:hover {
  color: #39ff14 !important;
}

.highlight-link {
  text-decoration: none;
  color: #fff !important;
  font-weight: 400;
  cursor: default;
}
/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-about-bg {
  background-image: url("../assets/images/hero-bg-A.jpeg");
}

.hero-products-bg {
  background-image: url("../assets/images/OurVision.jpg");
}

.home-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-hero-swiper {
  direction: ltr !important;
}

.display-3 {
  font-size: 3.4rem;
}

.home-hero-slide {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-fixed-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.shadowhero {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* Hero Section Arrows */
.hero-swiper-button-next,
.hero-swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  background-color: #0d6dfd5b;
  border-radius: 50%;
  color: white !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-swiper-button-next::after,
.hero-swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper.home-hero-swiper {
  height: 100%;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.342);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Responsive Hero Text */
@media (min-width: 847px) and (max-width: 1200px) {
  .home-hero-section .display-3 {
    font-size: 2.4rem !important;
  }
  .home-hero-section .lead {
    font-size: 0.9rem;
  }
  .nav-link {
    font-size: 12px;
  }
}

@media (min-width: 769px) and (max-width: 846px) {
  .home-hero-section .display-3 {
    font-size: 2.2rem !important;
  }
  .home-hero-section .lead {
    font-size: 0.9rem;
  }
}

@media (min-width: 504px) and (max-width: 768px) {
  .home-hero-section .display-3 {
    font-size: 1.6rem !important;
  }
  .home-hero-section .lead {
    font-size: 1rem;
  }
}

@media (min-width: 396px) and (max-width: 503px) {
  .home-hero-section .display-3 {
    font-size: 2.2rem !important;
  }
  .home-hero-section .lead {
    font-size: 0.5rem;
  }
}

@media (max-width: 395px) {
  .home-hero-section .display-3 {
    font-size: 1.7rem !important;
  }
  .home-hero-section .lead {
    font-size: 0.7rem;
  }
}

/* ===========================
   Loading Screen
   =========================== */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0057ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
  color: #fff;
}

.loader img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin-bottom: 10px;
}

.loader span {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===========================
   Custom Scrollbar
   =========================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0a58ca;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #ffffff #333;
}

/* ===========================
   Back To Top Button
   =========================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  line-height: 1;
  z-index: 999;
  display: none;
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/* ===========================
   Products Section (Home)
   =========================== */
section.products {
  padding: 60px 20px;
  background-color: #f7f9fb;
  text-align: center;
}

.products h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #003466;
}

/* ===========================
   Products Section (Grid)
   =========================== */
.products-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 40px;
}
/* ===========================
   Product Card
   =========================== */
.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

.product-card p {
  margin-top: 10px;
  font-weight: bold;
}

/* View All Button */
.view-all .btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* ===========================
   Miscellaneous
   =========================== */
.text-end {
  text-align: start !important;
  padding: 69px;
}

footer a:hover {
  text-decoration: underline;
  color: #fff;
}

footer {
  background-color: #0057ff;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
  background: url("../assets/images/bg-contact-us.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 30px;
}

.contact-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
  font-family: "Noto Kufi Arabic", sans-serif;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 14px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #39ff14;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.contact-button {
  background-color: #39ff14;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Kufi Arabic", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #0056b3;
}

.contact-section .container {
  max-width: 600px;
  margin: auto;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section input,
.contact-section textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.contact-section button {
  padding: 12px;
  background-color: #0057ff;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-section button:hover {
  background-color: #004adf;
}

/* ===========================
   Clients Section
   =========================== */
.clients-section {
  padding: 80px 40px;
  text-align: center;
  background: #fff;
  color: #333;
}

.section-title {
  font-family: "Noto Kufi Arabic", sans-serif;
  color: #0057ff !important;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 18px;
  color: #0057ff;
  margin-bottom: 40px;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.clients-logos img {
  width: 100px;
  height: auto;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: grayscale(50%);
}

.clients-logos img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%);
}
/* ===========================
   Testimonials Section
   =========================== */
.testimonials-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  direction: rtl; /* RTL for Arabic text */
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #003466;
}

.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  max-width: 300px;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-10px); /* Hover animation */
}

.testimonial-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.client-name {
  font-weight: bold;
  color: #003466;
  margin-bottom: 5px;
}

.client-title {
  font-size: 14px;
  color: #777;
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
#whatsappBtn {
  position: fixed;
  bottom: 100px;
  right: 31px;
  z-index: 9999;
  background-color: #25d366;
  color: white;
  font-size: 24px;
  padding: 12px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  width: 50px;
  height: 50px;
}

#whatsappBtn:hover {
  transform: scale(1.1);
}

/* FontAwesome icons alignment */
.fa-brands,
.fab {
  position: relative;
  bottom: 4px;
}

/* ===========================
   Buttons (Translation & Contact)
   =========================== */
.TranslationBtn,
.contactBtn {
  border-color: #ffffff;
  color: #ffffff;
}

.TranslationBtn:hover,
.contactBtn:hover {
  border-color: #25d366 !important;
  background-color: #25d366 !important;
  color: #ffffff !important;
}

/* ===========================
   Vision, Goals & Customer Section
   =========================== */
#vision,
#goals,
#Customer,
#Customer button {
  background-color: #0057ff;
  color: white;
  border-color: white;
}

#vision h2,
#goals h2,
#Customer h2 {
  color: #25d366 !important;
}

#Customer button:hover {
  border-color: rgb(219, 219, 219);
  background-color: #002d88;
}

/* ===========================
   Loading Screen Styles
   =========================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-container {
  text-align: center;
}

.loading-text {
  margin-top: 20px;
  font-weight: bold;
}

.loaded {
  opacity: 0;
  visibility: hidden;
}
