/* Clients Page Styles */
.page-hero {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-5));
  padding: 150px 0 100px 0;
  margin-top: 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(27, 177, 220, 0.2);
}
.stat-card .number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Filter Section */
.clients-section {
  padding: 100px 0;
}
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 60px;
}
.filter-tab {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  padding: 15px 35px;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-tab:hover, .filter-tab.filteractive {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(27, 177, 220, 0.3);
}

/* Client Cards */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.client-card {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}
.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 177, 220, 0.05), rgba(108, 99, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.client-card:hover::before {
  opacity: 1;
}
.client-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(27, 177, 220, 0.25), 0 0 30px rgba(108, 99, 255, 0.15);
  border-color: rgba(27, 177, 220, 0.4);
}
.client-card .image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.client-card .image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 17, 23, 0.8) 100%);
  pointer-events: none;
}
.client-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: brightness(0.9) saturate(0.95);
}
.client-card:hover .image-wrapper img {
  transform: scale(1.15);
  filter: brightness(1) saturate(1.1);
}
.client-card .card-content {
  padding: 25px;
  position: relative;
  z-index: 2;
}
.client-card h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.client-card:hover h3 {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.client-card .category-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(27, 177, 220, 0.15), rgba(108, 99, 255, 0.15));
  color: var(--accent-blue);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(27, 177, 220, 0.2);
  transition: all 0.3s ease;
}
.client-card:hover .category-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(27, 177, 220, 0.3);
}

/* Modal styling */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(27, 177, 220, 0.1);
}
.modal-header {
  border-bottom: 1px solid var(--border-dark);
  padding: 25px 30px;
}
.modal-title {
  color: var(--text-light);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-body {
  padding: 30px;
}
.modal-body img {
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
  filter: brightness(0.95);
}
.modal-body img:hover {
  transform: scale(1.02);
  filter: brightness(1);
}
.modal-body p {
  color: var(--text-muted);
  line-height: 1.8;
}
.modal-footer {
  border-top: 1px solid var(--border-dark);
  padding: 20px 30px;
}
.btn-close-modal {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.btn-close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27, 177, 220, 0.4);
}
.close {
  color: var(--text-muted);
}

/* Light Theme Overrides for Clients Page */
body.light-theme .page-hero {
  background: linear-gradient(135deg, #eef2f7, #d9e2ec) !important;
}

body.light-theme .stats-section {
  background: linear-gradient(135deg, #f8f9fc, #eef2f7) !important;
}

body.light-theme .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .stat-card:hover {
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.12);
}

body.light-theme .stat-card p {
  color: #4a5568;
}

body.light-theme .clients-section {
  background: #ffffff;
}

body.light-theme .filter-tab {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #4a5568;
}

body.light-theme .filter-tab:hover,
body.light-theme .filter-tab.filteractive {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
}

body.light-theme .client-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .client-card:hover {
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 30px 60px rgba(13, 110, 253, 0.12);
}

body.light-theme .client-card h3 {
  color: #1a1a2e;
}

body.light-theme .client-card .card-content {
  background: #ffffff;
}

body.light-theme .client-card .image-wrapper::after {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.9) 100%);
}

body.light-theme .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .modal-body p {
  color: #4a5568;
}

body.light-theme .modal-body img {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}
