/* ===========================
   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;
}

.textBL {
  color: #00374B !important;
}

.textW {
  color: #ffffff !important;
}

.btnBL {
  border-color: #00374B;
  color: #00374B;
}

.btnBL:hover {
  background-color: #00374B;
  border-color: #00374B;
}


/* ===========================
   Loading Screen
=========================== */

#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-color: white;
}

#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;
}


/* ===========================
   Header & Navbar
=========================== */

header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.navbar {
  background-color: #00374B;
}


/* ===========================
   Hero Section & Slider
=========================== */

.hero-section {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.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: 2.5rem !important;
}

.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-swiper-button-next,
.hero-swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  background-color: #FF6B35;
  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;
}

.shadowhero {
  text-shadow: -1px 5px 8px rgba(0, 0, 0, 1.6)
}

@media (max-width: 768px) {
  .home-hero-slide h1 {
    font-size: 2rem;
  }

  .home-hero-slide p {
    font-size: 1rem;
  }
}


/* ===========================
   Navigation Links
=========================== */

.nav-link,
.nav-link-about {
  color: #fff !important;
  font-weight: 200;
  font-size: 16px;
  position: relative;
  text-decoration: none;
}

.nav-link-about:hover {
  color: #9b9b9c !important;
}

.nav-link:hover {
  color: #FF6B35 !important;
}

.highlight-link {
  text-decoration: none;
  color: #fff !important;
  font-weight: 400;
  cursor: default;
}


/* ===========================
   Mobile Button
=========================== */

@media (max-width: 768px) {
  .btn {
    margin-top: 10px;
    width: 100%;
  }
}


/* ===========================
   Logo
=========================== */

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  user-select: none;
}

#hero .overlay {
  z-index: 1;
}

#hero .container {
  z-index: 2;
}


/* ===========================
   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;
  background-color: #FF6B35;
  border-color: #FF6B35;
}

#backToTop:hover {
  background-color: #c74b1d;
  border-color: #c74b1d;
  transform: scale(1.1);
}


/* ===========================
   Products Section
=========================== */

section.products {
  padding: 60px 20px;
  background-color: #f7f9fb;
  text-align: center;
}

.products h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #003466;
}


/* ===========================
   Products 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 .btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #0068d8;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}


/* ===========================
   Misc Elements
=========================== */

.text-end {
  text-align: start !important;
  padding: 69px;
}

footer {
  background-color: #00374B;
}

footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.lang-switcher {
  position: relative;
  z-index: 1001;
}

.btn-sm {
  margin: 11px 30px;
}


/* ===========================
   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;
  margin: 50px;
  max-width: 500px;
  width: 90%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.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: #FF6B35;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.contact-button {
  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-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: #00374B;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

.contact-section button:hover {
  background-color: #002735;
}


/* ===========================
   Clients Section
=========================== */

.clients-section {
  padding: 80px 40px;
  text-align: center;
  background: #fff;
  color: #333;
}

.section-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 18px;
  color: #00374B;
  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%);
}

.grayscale {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.grayscale:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* ===========================
   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);
}

.fa-brands,
.fab {
  position: relative;
  bottom: 4px;
}


/* ===========================
   Gallery Section
=========================== */

.gallery-title {
  font-size: 2rem;
  font-weight: bold;
  color: #408D42;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.color-w {
  color: white;
}

/* Zoom icon displayed on image hover */
.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.img-wrapper:hover .zoom-icon {
  opacity: 1;
  pointer-events: auto;
}

/* Image zoom effect */
.img-wrapper:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.profile-body {
  background: #1C6582 url('../assets/images/pattern-1.png') repeat !important;
}

.row {
  border: 20px rgb(255, 255, 255) !important;
}

/* Gallery image styling */
.gallery-img {
  border: 1px solid #408D42;
  border-radius: 8px;
  padding: 5px;
  box-sizing: border-box;
}

/* Home button styling */
.btn-home {
  background-color: #408D42;
}

.btn-home:hover {
  background-color: #1C6582;
  color: #ffffff;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Gallery item hover effects */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.5s ease;
  height: 250px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.gallery-item:hover img {
  filter: brightness(1.15);
}

/* Overlay text on hover */
.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 18px;
  text-align: center;
  transition: bottom 0.35s ease, opacity 0.35s;
}

.gallery-item:hover .overlay {
  bottom: 0;
}

.overlay i {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

/* Fullscreen Modal with Blur Background */
.fullscreen-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.fullscreen-modal.open {
  display: flex;
}

/* Modal backdrop */
.fs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.35);
  transition: opacity 300ms ease;
}

/* Modal container */
.fs-container {
  position: relative;
  width: 92%;
  max-width: 1500px;
  height: 86%;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20010;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.00));
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.5);
  transform: scale(.98);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.2, .9, .3, 1), opacity 360ms ease;
}

.fullscreen-modal.open .fs-container {
  transform: scale(1);
  opacity: 1;
}

/* Image stage container */
.fs-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: transparent;
}

.fs-img {
  max-width: 100%;
  max-height: 100%;
  will-change: transform;
  transform-origin: center center;
  transition: transform 180ms ease;
  user-select: none;
  pointer-events: none;
  image-rendering: auto;
}

/* Top control buttons */
.fs-controls {
  position: absolute;
  top: 18px;
  right: 65px;
  display: flex;
  gap: 10px;
  z-index: 20020;
  align-items: center;
}

.fs-btn {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, background 120ms;
}

.fs-btn:active {
  transform: scale(.98);
}

.fs-btn i {
  font-size: 16px;
}

/* Close button */
.fs-close {
  position: absolute;
  top: 16px;
  right: 10px;
  z-index: 20030;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
}

/* Navigation arrows */
.fs-nav-left,
.fs-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20015;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.fs-nav-left {
  left: 12px;
}

.fs-nav-right {
  right: 12px;
}

/* Caption text */
.fs-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-align: left;
  z-index: 20020;
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Mobile responsive controls */
@media (max-width: 768px) {
  .fs-btn {
    padding: 8px;
    font-size: 14px;
  }

  .fs-nav-left,
  .fs-nav-right {
    width: 46px;
    height: 46px;
  }
}

/* Image fade-out animation */
.fs-img.fadeOut {
  opacity: 0;
  transform: scale(.98);
  transition: opacity 200ms ease, transform 200ms ease;
}