@import url("https://fonts.googleapis.com/css2?family=Madimi+One&family=Metrophobic&family=Mina:wght@400;700&family=Nanum+Myeongjo:wght@400;700;800&display=swap");

/* * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 20px;
      background: #000000;
    } */

.brand-container {
  width: 100%;
  background: transparent;
  border: 2px solid transparent;
  border-top: 2px solid #0097b200;
  border-bottom: 2px solid #0097b200;
  padding: 40px 20px;
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.05);
}

.brand-title {
  position: relative;
  margin-left: 5%;
  text-align: left;
  color: #17d2f3;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: "Metrophobic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.brand-title::after {
  position: absolute;
  content: " ";
  height: 4px;
  width: 60vw;
  align-self: center;
  background: linear-gradient(135deg, #17d2f3, #000000);
}

.brands-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 150px;
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  animation: scroll 40s linear infinite;
  gap: 40px;
  white-space: nowrap;
  width: fit-content;
}

.brand-set {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.brand-item {
  flex: 0 0 auto;
  width: 180px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  background: linear-gradient(135deg, #bbbaba98, #17d2f371, #9292923b);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.brand-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 158, 158, 0.849),
    transparent
  );
  transition: left 0.5s ease;
}

.brand-item:hover::before {
  left: 100%;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(2px 4px 6px black);
  /* filter: grayscale(-100%); */
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.brand-item:hover .brand-logo img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Demo placeholder styling */
.demo-logo {
  width: 80px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Optional: Pause on hover */
.brands-slider:hover .brands-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .brand-title::after {
    width: 30vw;
  }

  .brand-item {
    width: 140px;
    height: 80px;
    padding: 12px;
  }

  .brand-set {
    gap: 30px;
  }

  .brands-track {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .brand-container {
    padding: 30px 15px;
  }

  .brand-title::after {
    display: none;
  }

  .brand-item {
    width: 120px;
    height: 100px;
    padding: 10px;
  }

  .brand-set {
    gap: 20px;
  }

  .brands-track {
    gap: 20px;
  }
}
