@font-face {
  font-family: "Kohinoor-Bangla";
  src: url("../fonts/Kohinoor_Bangla/KohinoorBangla-Regular.otf")
    format("truetype");
  font-display: swap; /* Add this for better performance */
  font-weight: 100;
}
@font-face {
  font-family: "Kohinoor-Bangla-Bold";
  src: url("../fonts/Kohinoor_Bangla/KohinoorBangla-Bold.otf")
    format("truetype");
  font-display: swap; /* Add this for better performance */
}

:root {
  --section-heading-color: #434343;

  --hero-font-size: 5rem;
  --hero-font-weight: 100;
  --hero-line-height: 0.9;
  --hero-font-color: white;
  --hero-letter-spacing: -3px;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #343434;
  font-family: "Kohinoor-Bangla";
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(255, 111, 24);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  cursor: grabbing;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(255, 111, 24) transparent;
}

.client-hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.client-hero-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  z-index: 1;
  background-color: rgba(31, 35, 46, 0.632);
  /* backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); */
}

.client-hero-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 97%;
  height: 93%;
  z-index: 2;
}

/* Hero Section */
.client-hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 150px;
  width: 70%;
}

.client-hero-overlay h1 {
  margin-top: 100px;
  margin-bottom: 30px;
  text-align: center;
  font-size: var(--hero-font-size);
  line-height: var(--hero-line-height);
  letter-spacing: var(--hero-letter-spacing);
  font-weight: var(--hero-font-weight);
  color: var(--hero-font-color);
}
.client-hero-overlay p {
  font-size: 1.1rem;
  line-height: 1.2;
  width: 80%;
  margin: 0 auto 40px;
  color: white;
}

/* Button */
.client-hero-btn {
  text-align: center;
  width: 100%;
}
.client-hero-btn button {
  background: black;
  color: white;
  width: 200px;
  height: 55px;
  font-size: 1.2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: -1px;
}
.client-hero-btn button:hover {
  background-color: rgb(29, 29, 29);
}

/* Footer Links */
.client-hero_list_items {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  z-index: 5;
  /* border: 1px solid blue;  */
}

.client-hero_list_items ul {
  position: relative;
  bottom: 40px;
  left: 58px;
  list-style-type: none;
  line-height: 18px;
  padding: 30px;
  /* border: 1px solid rgba(0, 0, 0, 0.2); */
  background: rgba(30, 33, 39, 0.801);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
}
.client-hero_list_items ul li a {
  text-decoration: none;
  color: #999999;
  font-size: 0.9rem;
  position: relative;
}

.client-hero_list_items ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: #999999;
  z-index: 1;
  width: 0;
}

.client-hero_list_items ul li a:hover::after {
  width: 100%;
}

/* Responsive for screens up to 1366px */
@media screen and (max-width: 1366px) {
  .client-hero-overlay {
    margin-top: 70px;
  }

  .client-hero-overlay h1 {
    font-size: 3rem;
    line-height: 0.9;
    width: 90%;
    letter-spacing: -3px;
  }

  .client-hero-overlay p {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .client-hero_list_items ul {
    line-height: 14px;
  }
  .client-hero_list_items ul li a {
    font-size: 0.7rem;
    line-height: 1;
  }
}

/* Mobile devices - screens up to 768px */
@media screen and (max-width: 768px) {
  .client-hero-overlay {
    width: 90% !important;
  }
  .client-hero-overlay h1 {
    font-size: 2.5rem !important;
    line-height: 1 !important;
  }

  .client-hero-btn button {
    max-width: 160px;
    height: 40px;
    font-size: 1rem;
  }

  .client-hero_list_items ul {
    padding: 20px 20px;
    left: auto;
  }
  .client-hero_list_items ul li a {
    font-size: 0.7rem;
  }
}

/* Extra small screens - screens up to 480px */
@media screen and (max-width: 480px) {
  .client-hero-overlay {
    width: 100%;
  }
  .client-hero-overlay h1 {
    font-size: 1.6rem !important;
    letter-spacing: normal;
  }
  .client-hero-overlay p {
    width: 95%;
  }

  .client-hero-btn button {
    font-size: 1rem;
  }
  .client-hero_list_items ul {
    padding: 20px;
  }
  .client-hero_list_items ul li a {
    font-size: 0.7rem;
  }
  .hero_list_items ul{
      margin-bottom: 100px;
  }
}
/* ------------------------------------------------------- */
/* Main Section */
.cards-section {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  background: #0e0d0d;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 0;
  box-sizing: border-box;
}

/* Container */
.cards-container {
  position: relative;
  width: 100%;
  padding: 10px;
}

/* Swiper wrapper */
.cards-swiper {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.cards-swiper .swiper-wrapper {
  display: flex;
}

/* Swiper slides */
.cards-swiper .swiper-slide {
  display: flex;
  justify-content: center;
}

/* Client Cards */
.client-card {
  width: max(20rem, 22vmax);
  height: clamp(20rem, 65vmin, 30vmax);
  border-radius: 30px;
  border: 2px solid #33333375;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.client-card-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Header */
.cards-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
}

.cards-header h2 {
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -2px;
  color: #dadada;
}

/* Card Titles */
.client-card .card-title h3 {
  margin-top: 10%;
  font-size: max(1.7rem, 2.5vmax);
  line-height: 0.9;
  color: #ff6f18;
}

.client-card .card-title h4 {
  margin-top: 10px;
  font-size: max(0.6rem, 1vmax);
  color: #dadada;
}

.client-card p {
  margin-top: 30px;
  font-size: max(0.8rem, 1.1vmax);
  color: #dadada;
}

/* Responsive Breakpoints */
body.rtl .cards-swiper .swiper-wrapper {
  direction: ltr !important;
}

/* <= 1366px */
@media screen and (max-width: 1366px) {
  .cards-header {
    width: 90%;
  }
  .cards-header h2 {
    font-size: 4rem;
    text-align: center;
  }
  .client-card {
    margin: 10px;
  }
  .cards-section {
    height: auto;
    padding: 40px 0;
  }
}

/* <= 992px Tablets */
@media screen and (max-width: 992px) {
  .cards-header h2 {
    font-size: 3rem;
  }
  .client-card {
    width: 90%;
    height: auto;
  }
  .client-card .card-title h3 {
    margin-top: 60px;
  }
  .client-card-content {
    gap: 30px;
  }
}

/* <= 768px Mobile */
@media screen and (max-width: 768px) {
  .cards-header {
    width: 100%;
    padding: 0 10px;
  }
  .cards-header h2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .client-card {
    width: 95%;
    margin: 10px 0;
    height: auto;
  }
  .client-card-content {
    padding: 15px;
  }
}

/* <= 480px Extra Small */
@media screen and (max-width: 480px) {
  .cards-header h2 {
    font-size: 2rem;
    letter-spacing: -1px;
  }
  .client-card .card-title h3 {
    font-size: 1.6rem;
    margin-top: 40px;
  }
  .client-card .card-title h4 {
    font-size: 0.9rem;
  }
  .client-card p {
    font-size: 0.9rem;
    margin-top: 20px;
  }
}

/* ------------------------------------------------ */

.about-sec-3 {
  min-height: 200vh; /* MODIFIED: Ensures enough scrollable height for the effect */
  background: #2f384e;
  color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* MODIFIED: Aligns content to the top as it scrolls in */
  align-items: center;
  text-align: center;
  position: relative; /* KEPT: Essential for normal document flow and z-index to work */
  z-index: 20; /* ADDED/MODIFIED: Higher z-index to scroll OVER the sticky section */
  padding: 10rem 0; /* MODIFIED: Added padding for spacing */
  box-sizing: border-box;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.sec-3-body {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 95%;
  margin: 0 auto;
}

.aboutus-card {
  position: sticky; /* ADDED: Makes individual cards sticky within .about-sec-3 */
  top: 100px; /* ADDED: Specifies where each card sticks (100px from top) */
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 85vh;
  border-radius: 50px;
  padding: 40px;
  box-sizing: border-box;
}

.card-1 {
  background: rgb(37, 45, 63);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-2 {
  background: rgb(31, 35, 46);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-heading {
  color: #dadada;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-heading p {
  width: 85%;
  font-size: 5rem;
  font-weight: 100;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #dadada;
}

.comp-name {
  font-style: italic;
  color: #ff6f18;
  font-weight: bold;
}

.under-line {
  display: inline-block;
  position: relative;
}

.under-line::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 7px;
  z-index: -1;
  background-color: #ff6f18;
}

.aboutus-card {
  position: sticky;
  top: 100px;
  z-index: calc(10 - var(--i));
}

footer {
  z-index: 30;
  position: relative;
}

/* For screens 1366px and below */
@media screen and (max-width: 1366px) {
  .card-heading p {
    font-size: 4rem;
    width: 90%;
  }

  .about-sec-3 {
    padding: 3rem 0 !important;
  }

  .aboutus-card {
    top: 2rem !important;
  }

}

/* Tablets and medium screens (≤ 992px) */
@media screen and (max-width: 992px) {
  .card-heading p {
    font-size: 3rem;
    width: 95%;
    line-height: 1;
  }

  .sec-3-body {
    gap: 3rem;
  }

  .about-sec-3 {
    padding: 7rem 0;
  }

  .card-heading {
    padding: 0 10px;
  }
}

/* Small tablets and phones (≤ 768px) */
@media screen and (max-width: 768px) {
  .card-heading p {
    font-size: 2.2rem;
    letter-spacing: -1px;
    line-height: 1.2;
    width: 100%;
  }

  .about-sec-3 {
    padding: 5rem 0;
  }

  .card-heading {
    padding: 0 15px;
  }
}

/* Mobile devices (≤ 480px) */
@media screen and (max-width: 480px) {
  .card-heading p {
    font-size: 1.7rem;
    width: 100%;
  }

  .under-line::before {
    height: 4px;
  }

  .about-sec-3 {
    padding: 4rem 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .card-heading {
    padding: 0;
    width: 100%;
  }
  .card-heading p {
    font-size: 1.2rem !important;
  }
  .aboutus-card {
    height: 100%;
  }
  .about-sec-3 {
    min-height: 50vh;
  }
}
/* ============================================================================ */
/* === Base Section Styles === */
.clients-sect {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  position: relative;
}

.clients-wrapper {
  position: relative;
  color: white;
  background-color: #ff5e00;
  width: 97%;
  height: 93%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.clients-wrapper::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 0;
  left: 0;
  background-image: url("../images/bg/background1.png");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 600px auto;
  mix-blend-mode: multiply;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

.clients-wrapper > * {
  position: relative;
  z-index: 1;
}

.clients-row-1 {
  display: flex;
  justify-content: space-between;
  width: 90%;
}

.clients-content {
  width: 40%;
}

.clients-content h1 {
  text-align: left;
  width: 100%;
  font-size: 2.7rem;
  font-weight: bold;
  font-family: "Kohinoor-Bangla-Bold";
  color: black;
}

.clients-content p {
  width: 100%;
  color: black;
}

/* === Clients Box === */
.clients-box {
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 90%;
  max-width: 1750px;
  margin-top: 70px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === Marquee Base === */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 120px;
  mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}

.marquee[data-direction="right"] {
  --mask-direction: to left;
}

.marquee__ctn {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-duration: 25s;
  animation-direction: normal; /* default motion (leftward) */
}

.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 180px;
  margin-inline-end: 4rem;
}

.marquee__item img {
  height: 90px;
  width: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  filter: brightness(100%);
  transition: transform 0.3s ease;
}

.marquee__item img:hover {
  transform: scale(1.05);
}

/* === Single Keyframes for Both Directions === */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === Control Animation Direction (Independent of Language) === */
.marquee[data-direction="left"] .marquee__track {
  animation-direction: normal;
}
.marquee[data-direction="right"] .marquee__track {
  animation-direction: reverse;
}

/* === Hover Behavior === */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

body.rtl .marquee {
  direction: ltr !important;
}

/* === Responsive Adjustments === */
@media screen and (max-width: 1366px) {
  .clients-content {
    width: 45%
  }
  .clients-img img {
    width: 80%;
    height: auto;
  }
  .clients-content h1 {
    font-size: 2.2rem;
  }
  .clients-box {
    margin-top: 3rem;
  }
  .clients-box {
    height: 250px !important;
    gap: 1rem;
  }
  .marquee__item img {
    width: 100px !important;
  }
}

@media screen and (max-width: 1024px) {
   .clients-sect {
    height: auto;
  }

  .clients-wrapper {
    height: auto;
    padding: 40px 0;
  }

  .clients-row-1 {
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .clients-content {
    text-align: left;
    width: 85%;
  }

  .clients-content h1 {
    font-size: 2rem;
  }

  .clients-content p {
    font-size: 1rem;
  }

  .clients-img {
    margin-top: 20px;
  }

  .clients-img img {
    width: 80%;
    height: auto;
  }

  .clients-box {
    margin-top: 2rem;
    height: 300px !important;
  }

  .marquee__item {
    width: 120px;
    margin-inline-end: 2rem;
  }

  .marquee__item img {
    height: 60px;
  }
  .clients-wrapper::before{
      background-size: 450px auto;
  }
}

@media screen and (max-width: 768px) {
  .clients-content h1 {
    font-size: 1.7rem;
  }

  .clients-content p {
    font-size: 0.95rem;
  }

  .clients-box {
    height: 250px !important;
    padding: 40px 20px;
  }

  .marquee__item {
    width: 100px;
    margin-inline-end: 1.5rem;
  }

  .marquee__item img {
    height: 50px;
  }
  .clients-wrapper::before{
      background-size: 350px auto;
  }
}

@media screen and (max-width: 480px) {
  .clients-box {
    height: 200px !important;
  }
  
  .clients-row-1 {
    flex-direction: column;
  }
  .clients-img img {
    display: none;
  }

  .clients-content h1 {
    font-size: 1.5rem;
  }

  .clients-content p {
    font-size: 0.9rem;
  }

  .marquee__item {
    width: 80px;
    margin-inline-end: 1rem;
  }

  .marquee__item img {
    height: 40px;
  }
  .clients-wrapper::before{
      background-size: 250px auto;
  }
}

@media (min-width: 1500px) {
  section {
    width: 100vw;
    height: 100vh;
  }
}

@media screen and (max-width: 1450px) {
  .client-hero-overlay h1 {
    font-size: 4rem;
    line-height: 1;
  }

  .cards-header {
    width: 80%;
    margin-bottom: 1rem;
  } 
  .cards-header h2 {
    line-height: 1;
  }

  .clients-box {
    padding: 20px;
  }
  .clients-box {
    height: 300px;
  }
}