@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Poppins";

  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
}

/*
  Lenis Smooth Scroll CSS
*/
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Custom Scrollbar for WebKit Browsers */
::-webkit-scrollbar {
  width: 8px; /* Width of the vertical scrollbar */
  height: 8px; /* Height of the horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.5); /* Gray transparent color */
  border-radius: 50px; /* Rounded corners */
  border: 2px solid transparent; /* Adds space around thumb */
  background-clip: content-box; /* Ensures background does not fill the entire box */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.7); /* Darker on hover */
}

::-webkit-scrollbar-track {
  background: transparent; /* No background */
}

/* Custom Scrollbar for Firefox */
* {
  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: rgba(128, 128, 128, 0.5) transparent; /* Gray transparent color and transparent track */
}

/* Example of positioning a scrolling container */
body {
  overflow-y: scroll;
  position: relative; /* Ensure the container is positioned */
}

/*
  Header Styling
*/
.active-nav-item {
  -webkit-text-stroke: 1px white;
}

.swiper-pagination-bullet-active {
  background: white !important;
}

@keyframes custom-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animated-custom-spin {
  animation-name: custom-spin;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-200%, 0, 0);
  }
}

/* Apply the animation to the marquee element */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* Apply the animation to the text within the marquee */
.marquee span {
  display: inline-block;
  animation: marquee 30s linear infinite; /* Adjust the duration and timing function as needed */
}

.faq-answer {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 1000px; /* A large enough value to fit your content */
  padding-top: 2rem;
  padding-bottom: 2rem;
}
