/* Clients Section Styles */
.clients-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Background Elements */
.clients-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* .bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
} */

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338bdf8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  z-index: 2;
}

.bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(56, 189, 248, 0) 70%
  );
}

.shape-2 {
  bottom: 10%;
  right: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(56, 189, 248, 0) 70%
  );
}

.shape-3 {
  top: 40%;
  right: 15%;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.05) 0%,
    rgba(239, 68, 68, 0) 70%
  );
}

.shape-4 {
  bottom: 30%;
  left: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.05) 0%,
    rgba(56, 189, 248, 0) 70%
  );
}

.bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.line {
  position: absolute;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0) 0%,
    rgba(56, 189, 248, 0.1) 50%,
    rgba(56, 189, 248, 0) 100%
  );
  height: 1px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
}

.line-1 {
  top: 20%;
}

.line-2 {
  top: 40%;
}

.line-3 {
  top: 60%;
}

.line-4 {
  top: 80%;
}

.line-5 {
  top: 90%;
}

/* Clients Header */
.clients-header {
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.counter-wrapper {
  margin-bottom: 30px;
  position: relative;
}

.counter-container {
  display: inline-flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.counter-value {
  font-size: 5rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  opacity: 0;
  transform: translateY(20px);
}

.counter-plus {
  font-size: 3rem;
  font-weight: 800;
  color: #38bdf8;
  margin-left: 5px;
  opacity: 0;
  transform: translateY(20px);
}

.clients-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: whitesmoke;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
}

.clients-description {
  max-width: 800px;
  margin: 0 auto;
}

.description-text {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

/* Clients Categories */
.clients-categories {
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.category-tab {
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.category-tab:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.category-tab.active {
  background-color: #38bdf8;
  border-color: #38bdf8;
  color: #fff;
}

/* Clients Showcase */
.clients-showcase {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.showcase-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.client-item {
  perspective: 1000px;
  opacity: 0;
  transform: translateY(30px);
}

.client-card {
  position: relative;
  width: 100%;
  height: 150px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  cursor: pointer;
}

.client-item:hover .client-card {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.card-front {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-back {
  background-color: #38bdf8;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.client-logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.client-item:hover .client-logo {
  transform: scale(1.05);
}

.client-info {
  text-align: center;
}

.client-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.client-category {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.client-description {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Clients Pagination */
.clients-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  z-index: 2;
}

.pagination-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-arrow:hover {
  background-color: #38bdf8;
  color: #fff;
}

.pagination-indicators {
  display: flex;
  gap: 8px;
  margin: 0 15px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #38bdf8;
  /* transform: scale(1.1); */
}

/* Clients CTA */
.clients-cta {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  z-index: 2;
}

.cta-text {
  font-size: 1.2rem;
  color: whitesmoke;
  margin-bottom: 20px;
}

.btn-become-client {
  padding: 12px 30px;
  background-color: #38bdf8;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-become-client:hover {
  background-color: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Clients Testimonial */
.clients-testimonial {
  background-color: #f8fafc;
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.testimonial-container {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-quote {
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  color: #38bdf8;
  opacity: 0.2;
  margin-bottom: 20px;
}

.quote-text {
  font-size: 1.3rem;
  color: #1e293b;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 30px;
}

.quote-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.author-position {
  font-size: 0.9rem;
  color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .showcase-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .clients-section {
    padding: 80px 0;
  }

  .counter-value {
    font-size: 4rem;
  }

  .counter-plus {
    font-size: 2.5rem;
  }

  .clients-title {
    font-size: 2rem;
  }

  .showcase-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonial-container {
    padding: 30px;
  }

  .quote-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .clients-section {
    padding: 60px 0;
  }

  .counter-value {
    font-size: 3.5rem;
  }

  .counter-plus {
    font-size: 2rem;
  }

  .clients-title {
    font-size: 1.8rem;
  }

  .description-text {
    font-size: 1rem;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
  }

  .category-tab {
    white-space: nowrap;
  }

  .showcase-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .client-card {
    height: 120px;
  }

  .client-logo {
    max-height: 80px;
  }

  .testimonial-container {
    padding: 25px;
  }

  .quote-text {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .showcase-container {
    grid-template-columns: 1fr;
  }

  .client-card {
    height: 100px;
  }

  .client-logo {
    max-height: 60px;
  }

  .quote-author {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
