/* ========================================
   MODERN CLIENT SECTION - ENHANCED
   Professional Client Logo Carousel with Advanced Animations
   ======================================== */

/* Section Container */
.modern-client-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.modern-client-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(3, 50, 112, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.modern-client-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(33, 150, 243, 0.4) 20%, 
    rgba(33, 150, 243, 0.6) 50%, 
    rgba(33, 150, 243, 0.4) 80%, 
    transparent 100%);
  animation: shimmerLine 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes shimmerLine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.modern-client-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.client-section-header {
  margin-bottom: 0;
  position: relative;
}

.client-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #033270 0%, #2196f3 50%, #033270 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  font-family: 'Teko', 'Inter', sans-serif;
  text-transform: uppercase;
  animation: gradientFlow 4s ease infinite;
  position: relative;
  display: inline-block;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.client-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #2196f3, transparent);
  border-radius: 2px;
  animation: expandLine 2s ease-in-out infinite;
}

@keyframes expandLine {
  0%, 100% { width: 80px; opacity: 0.6; }
  50% { width: 120px; opacity: 1; }
}

.client-section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Client Logos Wrapper */
.client-logos-wrapper {
  position: relative;
  padding: 40px 0;
  margin: 0 -20px;
}

.client-logos-wrapper::before,
.client-logos-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(to right, 
    rgba(248, 249, 250, 1) 0%, 
    rgba(248, 249, 250, 0.8) 50%, 
    transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.client-logos-wrapper::before {
  left: 0;
}

.client-logos-wrapper::after {
  right: 0;
  background: linear-gradient(to left, 
    rgba(248, 249, 250, 1) 0%, 
    rgba(248, 249, 250, 0.8) 50%, 
    transparent 100%);
}

/* Simply Scroll Container Override */
.modern-client-section .simply-scroll-container {
  position: relative;
  overflow: hidden;
}

.modern-client-section .simply-scroll-clip {
  overflow: hidden;
  position: relative;
}

/* Modern Client List */
.modern-client-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
}

/* Smooth scrolling animation */
.modern-client-section .simply-scroll-list {
  display: flex !important;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
}

/* Client Logo Item */
.client-logo-item {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-logo-item:nth-child(1) { animation-delay: 0.1s; }
.client-logo-item:nth-child(2) { animation-delay: 0.2s; }
.client-logo-item:nth-child(3) { animation-delay: 0.3s; }
.client-logo-item:nth-child(4) { animation-delay: 0.4s; }
.client-logo-item:nth-child(5) { animation-delay: 0.5s; }
.client-logo-item:nth-child(6) { animation-delay: 0.6s; }
.client-logo-item:nth-child(7) { animation-delay: 0.7s; }
.client-logo-item:nth-child(8) { animation-delay: 0.8s; }
.client-logo-item:nth-child(9) { animation-delay: 0.9s; }
.client-logo-item:nth-child(10) { animation-delay: 1s; }
.client-logo-item:nth-child(11) { animation-delay: 1.1s; }
.client-logo-item:nth-child(12) { animation-delay: 1.2s; }

/* Client Logo Card */
.client-logo-card {
  width: 200px;
  height: 140px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Animated Border Gradient */
.client-logo-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #2196f3, #64b5f6, #2196f3);
  background-size: 200% 200%;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.client-logo-card:hover::before {
  opacity: 1;
}

/* Shine Effect */
.client-logo-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  z-index: 2;
  pointer-events: none;
}

.client-logo-card:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Hover Effects */
.client-logo-card:hover {
  transform: translateY(-12px) scale(1.08);
  border-color: #2196f3;
  box-shadow: 0 20px 50px rgba(33, 150, 243, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* Glow Effect on Hover */
.client-logo-card:hover {
  animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 20px 50px rgba(33, 150, 243, 0.3);
  }
  50% {
    box-shadow: 0 25px 60px rgba(33, 150, 243, 0.4);
  }
}

/* Client Logo Image */
.client-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.client-logo-card:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.client-logo-item:nth-child(odd) .client-logo-card {
  animation: float 4s ease-in-out infinite;
}

.client-logo-item:nth-child(even) .client-logo-card {
  animation: float 4s ease-in-out infinite 2s;
}

.client-logo-card:hover {
  animation: none !important;
}

/* Ensure proper alignment for simplyScroll */
.modern-client-section .simply-scroll-clip {
  overflow: hidden;
  width: 100%;
}

.modern-client-section .simply-scroll-container {
  width: 100%;
  position: relative;
}

/* Responsive Design */
@media (min-width: 1400px) {
  .modern-client-section {
    padding: 60px 0;
  }
  
  .client-logo-card {
    width: 220px;
    height: 150px;
    padding: 30px;
  }
  
  .modern-client-list {
    gap: 40px;
  }
  
  .client-section-header {
    margin-bottom: 0px;
  }
}

@media (max-width: 1200px) {
  .modern-client-section {
    padding: 80px 0;
  }
  
  .client-logo-card {
    width: 180px;
    height: 120px;
    padding: 22px;
  }
  
  .modern-client-list {
    gap: 28px;
  }
  
  .client-logos-wrapper::before,
  .client-logos-wrapper::after {
    width: 60px;
  }
}

@media (max-width: 992px) {
  .modern-client-section {
    padding: 70px 0;
  }
  
  .client-section-header {
    margin-bottom: 50px;
  }
  
  .client-logo-card {
    width: 160px;
    height: 110px;
    padding: 20px;
    border-radius: 14px;
  }
  
  .modern-client-list {
    gap: 24px;
  }
  
  .client-section-title {
    font-size: 2.25rem;
  }
  
  .client-section-subtitle {
    font-size: 1rem;
  }
  
  .client-logos-wrapper {
    padding: 30px 0;
  }
}

@media (max-width: 768px) {
  .modern-client-section {
    padding: 60px 0;
  }
  
  .client-section-header {
    margin-bottom: 40px;
  }
  
  .client-logo-card {
    width: 150px;
    height: 100px;
    padding: 18px;
    border-radius: 12px;
  }
  
  .modern-client-list {
    gap: 20px;
  }
  
  .client-section-title {
    font-size: 2rem;
  }
  
  .client-section-subtitle {
    font-size: 0.9375rem;
  }
  
  .client-logo-card:hover {
    transform: translateY(-8px) scale(1.05);
  }
  
  .client-logos-wrapper::before,
  .client-logos-wrapper::after {
    width: 40px;
  }
}

@media (max-width: 576px) {
  .modern-client-section {
    padding: 50px 0;
  }
  
  .client-section-header {
    margin-bottom: 35px;
  }
  
  .client-logo-card {
    width: 130px;
    height: 90px;
    padding: 15px;
    border-radius: 10px;
    border-width: 1.5px;
  }
  
  .modern-client-list {
    gap: 18px;
  }
  
  .client-section-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .client-section-subtitle {
    font-size: 0.875rem;
  }
  
  .client-logo-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.25);
  }
  
  .client-logos-wrapper {
    padding: 25px 0;
    margin: 0 -15px;
  }
  
  .client-logos-wrapper::before,
  .client-logos-wrapper::after {
    width: 30px;
  }
}

@media (max-width: 400px) {
  .modern-client-section {
    padding: 40px 0;
  }
  
  .client-logo-card {
    width: 110px;
    height: 80px;
    padding: 12px;
    border-radius: 8px;
  }
  
  .modern-client-list {
    gap: 15px;
  }
  
  .client-section-title {
    font-size: 1.5rem;
  }
  
  .client-logos-wrapper {
    margin: 0 -10px;
  }
}

/* Pause animation on hover for better UX */
.modern-client-list:hover {
  animation-play-state: paused;
}

/* Smooth transitions */
.client-logo-card,
.client-logo-img {
  will-change: transform;
}

/* Accessibility */
.client-logo-card:focus {
  outline: 3px solid #2196f3;
  outline-offset: 4px;
  border-radius: 16px;
}

.client-logo-card:focus-visible {
  outline: 3px solid #2196f3;
  outline-offset: 4px;
}

/* Loading State */
.client-logo-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.client-logo-img[src] {
  animation: none;
  background: transparent;
}

/* Print Styles */
@media print {
  .modern-client-section {
    background: white;
    padding: 40px 0;
  }
  
  .client-logo-card {
    border: 1px solid #e5e7eb;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  .client-logo-img {
    filter: grayscale(0%) opacity(1);
  }
  
  .modern-client-list {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .client-logo-card::before,
  .client-logo-card::after {
    display: none;
  }
}
