/* ==========================================================================
   Clients Page Redesign Stylesheet
   AlanWebs - Clients Page Redesign
   Uses design system tokens consistent with web_development_new.css
   ========================================================================== */

:root {
  --color-primary: #00bca9;       /* Brand Teal */
  --color-primary-rgb: 0, 188, 169;
  --color-secondary: #0c1024;     /* Deep Navy */
  --color-dark-bg: #070913;       /* Premium Dark Space */
  --color-card-dark: rgba(15, 23, 42, 0.45);
  --color-card-border-dark: rgba(255, 255, 255, 0.08);
  --color-text-white: #ffffff;
  --color-text-muted: #94a3b8;
  --color-text-dark: #1e293b;
  --color-bg-light: #f8fafc;
  --color-bg-alternate: #f1f5f9;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Ubuntu', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Base Styles for Clients Section */
.clients_section {
   font-family: var(--font-body);
   background-color: var(--color-bg-light);
   overflow: hidden;
}

/* Stats/Values Section */
.clients_stats_section {
   padding: 100px 0;
   background: var(--color-bg-alternate);
   position: relative;
}

.stats_intro {
   max-width: 800px;
   margin: 0 auto 50px auto;
}

.stats_intro h2 {
   font-family: var(--font-display);
   font-size: 32px;
   font-weight: 800;
   color: var(--color-secondary);
   line-height: 1.3;
   margin-bottom: 20px;
   letter-spacing: -0.02em;
}

.stats_intro h2 strong {
   color: var(--color-primary);
}

.stats_intro p {
   color: #475569;
   font-size: 16px;
   line-height: 1.6;
   margin: 0;
}

.clients_stats_grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
   max-width: 1200px;
   margin: 0 auto;
}

.clients_stats_card {
   background: var(--color-text-white);
   border: 1px solid #e2e8f0;
   border-radius: 20px;
   padding: 40px 30px;
   text-align: center;
   position: relative;
   overflow: hidden;
   transition: var(--transition-smooth);
}

.clients_stats_card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--color-primary), #38bdf8);
   opacity: 0;
   transition: var(--transition-smooth);
}

.clients_stats_card:hover {
   transform: translateY(-8px);
   box-shadow: 0 20px 45px rgba(0, 188, 169, 0.08);
   border-color: rgba(var(--color-primary-rgb), 0.25);
}

.clients_stats_card:hover::before {
   opacity: 1;
}

.stats_icon {
   width: 60px;
   height: 60px;
   background: rgba(var(--color-primary-rgb), 0.08);
   color: var(--color-primary);
   border-radius: 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 24px;
   margin: 0 auto 20px auto;
   transition: var(--transition-smooth);
}

.clients_stats_card:hover .stats_icon {
   background: var(--color-primary);
   color: var(--color-secondary);
   box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.stats_count {
   font-family: var(--font-display);
   font-size: 40px;
   font-weight: 800;
   color: var(--color-secondary);
   margin-bottom: 10px;
   display: flex;
   justify-content: center;
   align-items: baseline;
}

.stats_count span:last-child {
   color: var(--color-primary);
   margin-left: 2px;
}

.clients_stats_card h3 {
   font-family: var(--font-display);
   font-size: 18px;
   font-weight: 700;
   color: var(--color-secondary);
   margin-bottom: 10px;
}

.clients_stats_card p {
   font-size: 13px;
   color: #64748b;
   line-height: 1.5;
   margin: 0;
}

/* Showcase Section */
.clients_showcase_section {
   padding: 100px 0;
   background: var(--color-bg-light);
}

.showcase_header {
   margin-bottom: 50px;
}

.showcase_header .section_subtitle {
   display: block;
   font-family: var(--font-display);
   font-size: 14px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.15em;
   color: var(--color-primary);
   margin-bottom: 12px;
}

.showcase_header h2 {
   font-family: var(--font-display);
   font-size: 40px;
   font-weight: 800;
   color: var(--color-secondary);
   margin-bottom: 16px;
   letter-spacing: -0.02em;
}

.showcase_header p {
   color: #64748b;
   font-size: 16px;
   max-width: 650px;
   margin: 0 auto;
   line-height: 1.6;
}

/* Grid Layout */
.clients_grid_new {
   display: grid;
   grid-template-columns: repeat(5, 1fr);
   gap: 20px;
   max-width: 1200px;
   margin: 0 auto;
   transition: var(--transition-smooth);
}

/* Cards */
.client_card {
   background: var(--color-text-white);
   border: 1px solid #e2e8f0;
   border-radius: 16px;
   aspect-ratio: 4/3;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
   position: relative;
   overflow: hidden;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.client_card img {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
   filter: grayscale(0%);
   opacity: 1;
   transition: var(--transition-smooth);
}

.client_card:hover {
   transform: translateY(-5px);
   border-color: rgba(var(--color-primary-rgb), 0.35);
   box-shadow: 0 12px 25px rgba(var(--color-primary-rgb), 0.1);
}

.client_card:hover img {
   filter: grayscale(100%);
   opacity: 0.75;
   transform: scale(1.06);
}

/* Testimonials Styles */
.clients_testimonials_section {
   padding: 100px 0;
   background: var(--color-bg-alternate);
}

.testimonials_grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 30px;
   max-width: 1200px;
   margin: 0 auto;
}

.testimonial_card {
   background: var(--color-text-white);
   border: 1px solid #e2e8f0;
   border-radius: 20px;
   padding: 40px 32px;
   position: relative;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   transition: var(--transition-smooth);
}

.testimonial_card:hover {
   transform: translateY(-6px);
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.test_stars {
   color: #f59e0b;
   font-size: 14px;
   margin-bottom: 20px;
}

.test_quote {
   font-style: italic;
   font-size: 15px;
   color: #475569;
   line-height: 1.6;
   margin-bottom: 24px;
   position: relative;
}

.test_quote::before {
   content: '“';
   font-family: var(--font-display);
   font-size: 80px;
   color: rgba(var(--color-primary-rgb), 0.1);
   position: absolute;
   top: -40px;
   left: -15px;
   line-height: 1;
}

.test_author {
   border-top: 1px solid #f1f5f9;
   padding-top: 20px;
   margin-top: auto;
}

.author_details h4,
.author_details h3 {
   font-family: var(--font-display);
   font-size: 16px;
   font-weight: 700;
   color: var(--color-secondary);
   margin: 0 0 4px 0;
}

.author_details span {
   font-size: 12px;
   color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
   .clients_grid_new {
      grid-template-columns: repeat(5, 1fr);
   }
}

@media (max-width: 991px) {
   .clients_stats_grid {
      grid-template-columns: repeat(2, 1fr);
   }
   
   .clients_grid_new {
      grid-template-columns: repeat(4, 1fr);
   }
   
   .testimonials_grid {
      grid-template-columns: 1fr;
      max-width: 600px;
      margin: 0 auto;
   }
}

@media (max-width: 768px) {
   .clients_grid_new {
      grid-template-columns: repeat(3, 1fr);
   }
   
   .showcase_header h2 {
      font-size: 32px;
   }
   
   .stats_intro h2 {
      font-size: 26px;
   }
   
   .clients_stats_section {
      padding: 60px 0;
   }
   
   .clients_showcase_section {
      padding: 60px 0;
   }
   
   .clients_testimonials_section {
      padding: 60px 0;
   }
}

@media (max-width: 575px) {
   .clients_stats_grid {
      grid-template-columns: 1fr;
   }
   
   .clients_grid_new {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
   }
}

/* Enable CSS Sticky Projects Stacking by overriding overflow: hidden */
.clients_page_body .canvas-wrap,
.clients_page_body .clients_section {
    overflow: visible !important;
}

.clients_page_body .parallax_projects_section .section_maintitle h2 {
    color: #ffffff !important;
}
