body {
  font-family: "Tajawal", sans-serif;
  background-color: #f9f7f2;
  overflow-x: hidden;
}
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0eadd;
}
::-webkit-scrollbar-thumb {
  background: #354f52;
  border-radius: 4px;
}

/* Hero Image Mask */
.hero-img-mask {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition: border-radius 5s ease-in-out infinite;
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-content {
  display: inline-flex;
  animation: scroll 60s linear infinite;
}
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.value-card {
  transition: all 0.3s ease;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  background: white;
}

/* Static brands grid (no loop) */
.marquee-container {
  width: 100%;
}

.marquee-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  align-items: center;
  padding: 1rem;
}

.marquee-content img {
  /* ensure logos don't get too small or distorted */
  object-fit: contain;
}

/* Smooth anchored scrolling that accounts for the fixed navbar. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
section {
  scroll-margin-top: 5rem;
}

/* Lightbox / simple image modal for brand previews */
#lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
#lightbox.show {
  opacity: 1;
  pointer-events: auto;
}
#lightbox .box {
  max-width: 92%;
  max-height: 92%;
  text-align: center;
}
#lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: block;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
}
#lightbox .caption {
  color: #fff;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.95;
}
