/* Trusted By Section - Modern Design 2025 */

:root {
  --trusted-primary: #0aa5a6;
  --trusted-secondary: #14c4c5;
  --trusted-dark: #0f0f0f;
  --trusted-card: #161616;
  --trusted-text-light: #ffffff;
  --trusted-text-secondary: #b0b0b0;
  --trusted-gradient: linear-gradient(
    135deg,
    var(--trusted-primary),
    var(--trusted-secondary)
  );
  --trusted-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  --trusted-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Main section styling */
.trusted-section {
  background-color: var(--trusted-dark);
  background-image: radial-gradient(
      circle at 85% 15%,
      rgba(10, 165, 166, 0.07) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(20, 196, 197, 0.05) 0%,
      transparent 40%
    );
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  color: var(--trusted-text-light);
}

/* Animated background effect */
.trusted-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: 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='%230aa5a6' fill-opacity='0.03'%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: 0.7;
  z-index: 0;
}

/* Container styling */
.trusted-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

/* Trusted By content wrapper */
.trusted-by {
  text-align: center;
  position: relative;
}

/* Section title styling */
.trusted-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--trusted-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(10, 165, 166, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Title underline effect */
.trusted-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  background: var(--trusted-gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(20, 196, 197, 0.5);
  animation: expandWidth 1s ease forwards 0.3s;
}

/* Brands grid layout */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

/* Brand item styling */
.brand-item {
  background: rgba(22, 22, 22, 0.7);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--trusted-transition);
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  height: 150px;
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered animation for brand items */
.brand-item {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.3s);
}

/* Hover effect for brand items */
.brand-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(10, 165, 166, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Brand logo styling */
.brand-logo {
  width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: grayscale(100%) brightness(1.5);
  transition: var(--trusted-transition);
  opacity: 0.7;
}

.brand-item:hover .brand-logo {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Brand name styling */
.brand-name {
  color: var(--trusted-text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--trusted-transition);
  margin-top: 15px;
  position: relative;
}

.brand-item:hover .brand-name {
  color: var(--trusted-text-light);
}

/* Brand description - hidden by default, shows on hover */
.brand-description {
  font-size: 0.9rem;
  color: var(--trusted-text-secondary);
  margin-top: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--trusted-transition);
  text-align: center;
}

.brand-item:hover .brand-description {
  opacity: 1;
  max-height: 60px;
  margin-top: 8px;
}

/* Glowing accent for each brand item */
.brand-item::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 3px;
  background: var(--trusted-gradient);
  bottom: 15px;
  border-radius: 3px;
  transform: scaleX(0.3);
  opacity: 0.7;
  transition: var(--trusted-transition);
}

.brand-item:hover::after {
  transform: scaleX(0.7);
  opacity: 1;
  box-shadow: 0 0 15px rgba(10, 165, 166, 0.5);
}

/* Brand row for smaller screens */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand {
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 10px;
  color: var(--trusted-text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--trusted-transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.3s);
  position: relative;
  overflow: hidden;
}

.brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: var(--trusted-transition);
}

.brand:hover {
  color: var(--trusted-text-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(10, 165, 166, 0.3);
}

.brand:hover::before {
  left: 100%;
  transition: 0.8s;
}

/* Testimonial snippet from brand */
.brand-testimonial {
  display: none;
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(20, 20, 20, 0.9);
  padding: 10px 15px;
  border-radius: 8px;
  width: 200px;
  color: var(--trusted-text-light);
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--trusted-transition);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  backdrop-filter: blur(5px);
}

.brand:hover .brand-testimonial {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  bottom: -70px;
}

/* Trust indicators section */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
}

.indicator-icon {
  font-size: 1.8rem;
  color: var(--trusted-primary);
  opacity: 0.9;
}

.indicator-text {
  color: var(--trusted-text-secondary);
  font-size: 1rem;
}

.indicator-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--trusted-text-light);
  margin-bottom: 3px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Responsive design */
@media (max-width: 992px) {
  .trusted-section {
    padding: 80px 0;
  }

  .trusted-title {
    font-size: 2.4rem;
    margin-bottom: 50px;
  }

  .brand-grid {
    gap: 25px;
  }

  .trust-indicators {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .trusted-section {
    padding: 60px 0;
  }

  .trusted-title {
    font-size: 2.2rem;
  }

  .brand-item {
    height: 130px;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .brand {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .brand-row {
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto;
  }

  .brand {
    width: 100%;
    text-align: center;
    padding: 15px;
  }
}
