/* Partners Section Styling */
.partners-section {
  background-image: url('../images/client_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: var(--text-color, #e4e6eb);
  /* Animation styling */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Very dark overlay with increased opacity */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.97));
  pointer-events: none;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.partners-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(8, 14, 26, 0.9), transparent);
  pointer-events: none;
  z-index: 1;
}

.partners-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.partners-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.partners-header p {
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Only 2 partners per row */
  gap: 40px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.partner-card {
  background-color: rgba(10, 12, 20, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 208, 44, 0.08);
}

.partner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color, #fad02c),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(250, 208, 44, 0.25);
  border: 1px solid var(--primary-color, #fad02c);
}

.partner-card:hover::after {
  opacity: 1;
}

.partner-logo {
  height: 100px;
  width: 100%;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 8px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.partner-card:hover .partner-logo img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(250, 208, 44, 0.15));
}

.partner-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f0f0f0;
  margin: 10px 0;
  text-align: center;
}

.partner-description {
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}

.partner-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color, #fad02c);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
}

.partner-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color, #fad02c);
  transition: width 0.3s ease;
}

.partner-link:hover::after {
  width: 100%;
}

.tier-divider {
  position: relative;
  text-align: center;
  margin: 40px 0;
}

.tier-divider::before,
.tier-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(250, 208, 44, 0.15);
}

.tier-divider::before {
  left: 0;
}

.tier-divider::after {
  right: 0;
}

.tier-title {
  font-size: 1.3rem;
  color: var(--primary-color, #fad02c);
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 30px;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  display: inline-block;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(250, 208, 44, 0.1);
  letter-spacing: 0.5px;
}

.partners-cta {
  text-align: center;
  margin-top: 60px;
  position: relative;
}

.partners-cta::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(250, 208, 44, 0.5),
    transparent
  );
}

.become-partner-btn {
  display: inline-block;
  background: linear-gradient(135deg, #fad02c, #e8b80a);
  color: #000;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(250, 208, 44, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.become-partner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(250, 208, 44, 0.3);
}

.become-partner-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
  z-index: -1;
}

.become-partner-btn:hover::after {
  left: 100%;
}

/* Responsive styling */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(
      3,
      1fr
    ); /* 3 partners per row on medium screens */
    gap: 25px;
  }

  .partners-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 partners per row on tablets */
    gap: 25px;
  }
}

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

  .partners-header {
    margin-bottom: 40px;
  }

  .partners-header h2 {
    font-size: 2rem;
  }

  .tier-divider::before,
  .tier-divider::after {
    width: 25%;
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(
      1,
      1fr
    ); /* 1 partner per row on small screens */
    gap: 20px;
  }

  .partner-logo {
    height: 60px;
  }

  .partner-logo img {
    max-height: 60px;
  }

  .tier-divider::before,
  .tier-divider::after {
    width: 20%;
  }

  .partner-name {
    font-size: 1rem;
  }
}

/* Light mode styles */
.light-mode .partners-section {
  /* Keep the same background image */
  background-image: url('../images/client_background.jpg');
}

.light-mode .partners-section::before {
  /* Lighter overlay for light mode */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(240, 240, 240, 0.85)
  );
}

.light-mode .partners-section::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

.light-mode .partners-header h2 {
  color: #222;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.light-mode .partners-header p {
  color: #444;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.light-mode .partner-card {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .partner-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 20px rgba(250, 208, 44, 0.2);
}

.light-mode .partner-name {
  color: #333;
}

.light-mode .partner-description {
  color: #666;
}

.light-mode .tier-title {
  background: rgba(255, 255, 255, 0.8);
  color: #e8b80a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-shadow: none;
}

.light-mode .tier-divider::before,
.light-mode .tier-divider::after {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(250, 208, 44, 0.1);
}

/* Add a subtle animated gradient overlay */
.partners-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 208, 44, 0.03),
    rgba(0, 0, 0, 0.05),
    rgba(250, 208, 44, 0.03),
    transparent
  );
  z-index: 1;
  pointer-events: none;
  animation: gradientMove 20s infinite linear;
}

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

@keyframes gradientMove {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
