@font-face {
  font-family: "NeuePlak";
  src: url("assets/fonts/Neue\ Plak\ Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "NeuePlak";
  src: url("assets/fonts/Neue\ Plak\ Bold.woff") format("woff");

  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "NeuePlak";
  src: url("assets/fonts/Neue\ Plak\ SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: "NeuePlak", sans-serif;
}
.slider-container .card-group {
  display: flex;
  width: max-content;
  gap: 5rem;
  padding-inline: 20px;
  position: relative;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.slider-container .card-group .item {
  width: 20rem;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-block: 0.5rem;
  text-align: start;
  gap: 2;
}

.slider-left .card-group {
  animation-name: scroll-left;
  animation-duration: 20s;
}

.slider-right .card-group {
  animation-name: scroll-right;
  animation-duration: 20s;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(calc(-50% - 0.5rem));
  }
  100% {
    transform: translateX(0%);
  }
}

@media (max-width: 600px) {
  .slider-container .card-group {
    gap: 2rem;
    padding-inline: 10px;
  }

  .slider-container .card-group .item {
    width: 5rem; /* Adjust item width */
    height: 50px; /* Adjust item height */
  }

  .slider-left .card-group,
  .slider-right .card-group {
    animation-duration: 15s; /* Speed up the animation on smaller screens */
  }
}

/* Tablets (601px to 768px) */
@media (min-width: 601px) and (max-width: 768px) {
  .slider-container .card-group {
    gap: 3rem;
    padding-inline: 15px;
  }

  .slider-container .card-group .item {
    width: 8rem; /* Adjust item width */
    height: 105px; /* Adjust item height */
  }

  .slider-left .card-group,
  .slider-right .card-group {
    animation-duration: 18s; /* Slightly slower animation for tablets */
  }
}

/* Larger Screens (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .slider-container .card-group {
    gap: 4rem;
    padding-inline: 20px;
  }

  .slider-container .card-group .item {
    width: 20rem; /* Default width for larger screens */
    height: 110px; /* Default height */
  }

  .slider-left .card-group,
  .slider-right .card-group {
    animation-duration: 20s; /* Default animation duration */
  }
}

/* Extra Large Screens (1025px and above) */
@media (min-width: 1025px) {
  .slider-container .card-group {
    gap: 5rem; /* Default gap for large screens */
    padding-inline: 20px;
  }

  .slider-container .card-group .item {
    width: 15rem; /* Default width for large screens */
    height: 110px; /* Default height */
  }

  .slider-left .card-group,
  .slider-right .card-group {
    animation-duration: 20s; /* Default animation duration */
  }
}

/* image at different position */
.avatar-anim {
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s ease;
  position: absolute;
}

.animate-avatar {
  opacity: 1;
  transform: none;
}

.final-pos-1 {
  top: 0rem;
  left: 16rem;
}
.final-pos-2 {
  top: 0rem;
  left: 75%;
}
.final-pos-3 {
  top: 75%;
  left: 25%;
}
.final-pos-4 {
  top: 75%;
  left: 75%;
}
.final-pos-5 {
  top: 0;
  left: 33.3333%;
}
.final-pos-6 {
  top: 28%;
  left: 80%;
}

#wordScroller {
  transition: transform 0.7s ease-in-out;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fromCenter {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  100% {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y));
    opacity: 1;
  }
}

.animate-from-center {
  animation: fromCenter 0.8s ease-out forwards;
}

/* carousel auto scroll about section */
.slider-container2 {
  overflow: hidden;
}

.slider-container2 .card-group {
  display: flex;
  gap: 3rem;
  padding-inline: 20px;
  /* position: relative; */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* animation: scroll 15s linear infinite; */
  animation-play-state: running;
}

.slider-container2:hover .card-group {
  animation-play-state: paused;
}

.slider-container2 .card-group .item {
  width: 380px;
  left: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2;
  height: 450px;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}
@media (max-width: 1200px) {
  .slider-container2 .card-group {
    gap: 3rem;
  }

  .slider-container2 .card-group .item {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 900px) {
  .slider-container2 .card-group {
    gap: 2rem;
  }

  .slider-container2 .card-group .item {
    width: 375px;
    height: 375px;
  }
}

@media (max-width: 600px) {
  .slider-container2 .card-group {
    gap: 1rem;
  }

  .slider-container2 .card-group .item {
    width: 350px;
    height: 350px;
  }
}

/* vertical-carousel */
.vertical-carousel-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vertical-carousel {
  transition: transform 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.item {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 40px;
}

.carousel-counter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  width: 50px;
  background-color: #f0f0f0;
}

.carousel-counter span {
  font-size: 1.5rem;
  font-weight: bold;
}

#activeBar {
  position: absolute;
  transition: top 0.5s ease-in-out;
}

/* sidebar for mobile */
/* Mobile Sidebar Styles */
#mobileMenu {
  position: fixed;
  top: 0;
  right: -280px; /* Initially hidden off-screen */
  width: 280px;
  max-height: 1200px;
  height: 1200px;
  background-color: #ffffff;
  transition: right 0.3s ease-in-out; /* Smooth sliding effect */
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  padding-top: 20px;
}

#mobileMenu.open {
  right: 0; /* Slide in from the right */
}

#mobileMenu .menu-item {
  margin: 10px 0;
}

#mobileMenu .cursor-pointer {
  text-align: left;
}

/* Optional: Overlay for the background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: none;
  z-index: 30; /* Below the sidebar */
}

#overlay.show {
  display: block; /* Show overlay when sidebar is open */
}
