@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit: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");
@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  scroll-behavior: smooth;
}

*::selection {
  background-color: #cc3a7c; /* Change this color to your preferred selection color */
  color: white;
  -webkit-text-fill-color: white;
}

body {
  font-family: "Kanit", sans-serif;
  background-color: #141410;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    rgba(201, 49, 127, 1) 0%,
    rgba(249, 184, 72, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-hover:hover {
  background: linear-gradient(
    90deg,
    rgba(201, 49, 127, 1) 0%,
    rgba(249, 184, 72, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home {
  position: relative;
  height: 100vh;
}

#background-video {
  width: 100vw;
  height: 100vh; /* Adjust height to account for header height */
  object-fit: cover;
  position: absolute;
  top: 81px; /* Adjust this value to match the height of your header */
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  z-index: -1; /* Ensure the video stays behind other content */
}

/* ------------------ Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px var(--theme-bg);
  border-radius: 5px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  /* background-image: -webkit-linear-gradient(left, rgba(201, 49, 127, 1) 0%, rgba(249, 184, 72, 1) 100%); */
  background-image: linear-gradient(
    90deg,
    rgba(201, 49, 127, 1) 0%,
    rgba(249, 184, 72, 1) 100%
  );
  border-radius: 10px;
}

/* ----------------- Common css */

.pt_60 {
  padding-top: 60px;
}
.pb_60 {
  padding-bottom: 60px;
}

/* Add this animation for the arrow icon */
@keyframes move-arrow {
  0%,
  100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(10px);
  }
}

/* Media Queries */

@media (max-width: 1280px) {
  .pt_60 {
    padding-top: 40px;
  }
  .pb_60 {
    padding-bottom: 40px;
  }
}
@media (max-width: 1024px) {
  .pt_60 {
    padding-top: 20px;
  }
  .pb_60 {
    padding-bottom: 20px;
  }
}

/* ----------------- Clip pth  */
.clip_bg {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
/* -------------- Animation text */
.designers {
  /* -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white; */
  color: transparent;
  transition: all 0.5s;
  position: relative;
}
.designers::before {
  content: attr(data-text);
  position: absolute;
  /* color: #c9f31d; */
  /* background-image: -webkit-gradient(linear, left top, right top, from(rgba(201, 49, 127, 1)), to(rgba(249, 184, 72, 1))); */
  /* background-image: -webkit-linear-gradient(left, rgba(201, 49, 127, 1) 0%, rgba(249, 184, 72, 1) 100%); */
  /* background-image: linear-gradient(90deg, rgba(201, 49, 127, 1) 0%, rgba(249, 184, 72, 1) 100%); */
  width: 0px;
  overflow: hidden;
  animation: pulse-width 3s ease-in infinite;
  /* -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #c9f31d; */

  background: -webkit-linear-gradient(
    left,
    rgba(201, 49, 127, 1) 0%,
    rgba(249, 184, 72, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes pulse-width {
  50% {
    width: 100%;
  }
}

/* -------------------- slider dote */
.swiper-pagination3 {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  margin: 20px -20px;
}
.swiper-pagination3 .swiper-pagination-bullet {
  background: #ffffff;
  width: 8px;
  height: 8px;
  opacity: 1;
  position: relative;
}
.swiper-pagination3 .swiper-pagination-bullet-active {
  background: #cc3a7c;
  padding: 2px;
  width: 8px;
  height: 8px;
  position: relative;
  opacity: 1;
}

.swiper-pagination-bullet-active::before {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  content: "";
  border: 1px solid #cc3a7c !important;
  border-radius: 50%;
}

.swiper-pagination3 .swiper-pagination-bullet::before {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  content: "";
  border: 1px solid #ffffff;
  border-radius: 50%;
}

/* ------------ Logo slider */
.slide-track {
  width: calc(200px * 16);
  display: flex;
  align-items: center;
  animation: scroll 20s linear infinite;
  justify-content: space-between;
  height: 100%;
  gap: 50px;
}
.slide-track2 {
  animation: scroll2 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(calc(-150px * 8));
  }
}
@keyframes scroll2 {
  0% {
    transform: translateX(calc(-150px * 8));
  }
  100% {
    transform: translateX(0px);
  }
}

/* UI Components CSS custom */
#btn_custom {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 10px;
  padding-top: 10px;
  border-radius: 9px;
  background: #cc3a7c;
  border: none;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: 0.4s;
}

#btn_custom:hover {
  box-shadow: 7px 5px 56px -14px #ff2b8a;
}

#btn_custom:active {
  transform: scale(0.97);
  box-shadow: 7px 5px 56px -10px #ff2b8a;
}

.container-bg {
  width: 100%;
  height: 100%;
  --color: rgba(114, 114, 114, 0.15);
  background-color: #141410;
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    );
  background-size: 55px 55px;
}

.job-link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.job-container {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.job-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 0;
  transition: left 0.5s ease;
}

.job-link:hover::before {
  left: 0;
}

.job-link:hover .job-title {
  color: black;
}

.job-link:hover .job-location,
.job-link:hover .fa-arrow-right {
  color: #cc3a7c; /* Assuming you have a --clr_base CSS variable */
}

/* Smooth transition for all text elements */
.job-title,
.job-location,
.fa-arrow-right,
.fa-certificate {
  transition: color 0.3s ease;
}

.job-link:hover .fa-arrow-right {
  color: #cc3a7c; /* Assuming you have a --clr_base CSS variable */
}

.job-link:hover .arrow-icon {
  animation: move-arrow 0.5s infinite;
}

/* ------------ Logo slider */

.client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 125px;
  padding: 10px;
  border-radius: 8px;
  background-color: white;
  transition: transform 0.1s ease;
}

.logo-item:hover {
  transform: scale(1.05) !important;
}

.logo-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Default (mobile): 1 image per row */
.client-logo-grid {
  flex-direction: column;
}

/* Above 425px: 2 images per row */
@media (min-width: 426px) {
  .client-logo-grid {
    flex-direction: row;
  }

  .logo-item {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* Above 768px: 3 images per row */
@media (min-width: 769px) {
  .logo-item {
    flex-basis: calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}
