html,
body {
  overflow-x: hidden;
}


body {
  font-family: 'Noto Kufi Arabic', sans-serif;
  scroll-behavior: smooth;
  direction: ltr;
  text-align: left;
}

header {
  box-shadow: 0 2px 8px;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.bg-dark {
  background-color: #1A1A1A !important;
}

.navbar-brand {
  font-size: 1.8rem;
}

.nav-link {
  color: #DDDDDD !important;
  font-weight: bold;
  position: relative;
}

.contact:hover {
  background-color: #f9be00;
  color: #414042;
}

@media (max-width: 768px) {
  .btn {
    margin-top: 10px;
    width: 100%;
  }
}

.nav-link:hover {
  color: #f9be00 !important;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  user-select: none;
}

#hero .overlay {
  z-index: 1;
}

#hero .container {
  z-index: 2;
}

#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: #f9be00 !important;
  border: 1px solid #414042;
  color: #414042;
}

#backToTop:hover {
  background-color: #ffffff !important;
  transform: scale(1.1);
  color: #414042;
  border-color: #414042 !important;
}

.btn-primary {
  background-color: #414042;
  border-color: #414042;
}

.btn-primary:hover {
  background-color: #313031;
  border-color: #313031;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #1F1F1F;
  opacity: 0;
  transition: opacity 1s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* home-hero-section */

.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: #1f1f1f80;
  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);
}

/* Arrow button styles */

.hero-swiper-button-next,
.hero-swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  background-color: #f4b30070;
  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)
}

/* Improve text readability on small screens */

@media (max-width: 768px) {
  .home-hero-slide h1 {
    font-size: 2rem;
  }

  .home-hero-slide p {
    font-size: 1rem;
  }
}

#about,
#mission,
.p-4 {
  background: #414042 url('../assets/images/pattern-1.png') repeat !important;
  background-color: #414042 !important;
  color: white;
}

#about h2,
#mission h2,
#footer h5,
.p-4 h5 {
  color: #f9be00 !important;
}

#vision,
#services {
  background: #f9be00 url('../assets/images/pattern-2.png') repeat !important;
}

#vision h2,
#services h2 {
  color: #414042 !important;
}

.p-4 {
  background-color: #414042 !important;
  color: white;
}

#footer {
  background-color: #1A1A1A !important;
  color: #FFFFFF;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);

}


.gallery-title {
  font-size: 2rem;
  font-weight: bold;
  color: #f9be00;
  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;
}

/* Display icon 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 on hover */
.img-wrapper:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.profile-body {
  background: #414042 url('../assets/images/pattern-1.png') repeat !important;
}

.row {
  border: 20px rgb(255, 255, 255) !important;
}

.gallery-img {
  border: 1px solid #f9be00;
  border-radius: 8px;
  padding: 5px;
  box-sizing: border-box;
}

.btn-home {
  background-color: #f9be00;
  color: #414042;
}

.btn-home:hover {
  background-color: #1A1A1A;
  color: #ffffff;
}

/* Loading */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #414042;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#myLogo {
  width: 150px;
  height: auto;
}

#logoPath {
  fill: #f9be00;
  fill-opacity: 0;
  stroke: #f9be00;
  stroke-width: 10;
  stroke-miterlimit: 10.43;
  stroke-dasharray: 4500;
  stroke-dashoffset: 4500;
  filter: drop-shadow(0 0 20px #f9be00);
  animation: drawStroke 3s forwards, fillFade 1s forwards 3s;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillFade {
  to {
    fill-opacity: 1;
  }
}

.gbtn {
  background-color: #f9be00 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: #414042;
}

::-webkit-scrollbar-thumb {
  background-color: #f9be00;
}

::-webkit-scrollbar-track {
  background-color: #414042;
}