/* ===================================
   Clean Water Solutions - Custom Styles
   =================================== */

/* ===== Color Variables ===== */
:root {
  --cws-blue: #0d6efd;
  --cws-green: #198754;
  --cws-dark: #0a1628;
  --cws-white: #ffffff;
  --whatsapp-green: #25d366;
}

/* ===== Global Styles ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ===== Custom Background Colors ===== */
.bg-cws-dark {
  background-color: var(--cws-dark) !important;
}

.bg-cws-blue {
  background-color: var(--cws-blue) !important;
}

.bg-cws-green {
  background-color: var(--cws-green) !important;
}

/* ===== Header Styles ===== */
#site-header {
  z-index: 1030;
  transition: all 0.3s ease;
}

/* Default navbar positioning for all pages except index */
body:not(.home-page) #site-header {
  position: sticky !important;
  top: 0;
  background-color: var(--cws-blue) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Fixed positioning only for home page */
body.home-page #site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}

/* Transparent navbar (initial state) - only on home page */
body.home-page .navbar-transparent {
  background-color: transparent !important;
  backdrop-filter: none;
  box-shadow: none !important;
}

/* Solid navbar (scrolled state) - only on home page */
body.home-page .navbar-solid {
  background-color: rgba(13, 110, 253, 0.9) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Default solid styling for non-home pages */
body:not(.home-page) #site-header .nav-link {
  background-color: transparent;
  margin: 0 0.5rem;
  color: #ffffff !important;
  text-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  position: relative;
}

body:not(.home-page) #site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

body:not(.home-page) #site-header .nav-link:hover::after {
  width: 100%;
}

body:not(.home-page) #site-header .nav-link.active::after {
  width: 100%;
  background-color: var(--cws-green);
}

/* Enhanced navbar brand styling */
#site-header .navbar-brand {
  line-height: 1.2;
  transition: all 0.3s ease;
}

/* Logo styling with transition */
.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Navbar links with enhanced transitions */
#site-header .nav-link {
  font-weight: 600;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  color: #ffffff !important;
  font-size: 0.95rem;
}

#site-header .nav-link:hover,
#site-header .nav-link.active {
  color: #ffffff !important;
}

/* Home page transparent navbar - clean transparent navbar */
body.home-page .navbar-transparent .nav-link {
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin: 0 0.5rem;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

body.home-page .navbar-transparent .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

body.home-page .navbar-transparent .nav-link:hover {
  background-color: transparent;
  transform: none;
  color: #ffffff !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

body.home-page .navbar-transparent .nav-link:hover::after {
  width: 100%;
}

body.home-page .navbar-transparent .nav-link.active {
  background-color: transparent;
  color: #ffffff !important;
}

body.home-page .navbar-transparent .nav-link.active::after {
  width: 100%;
  background-color: var(--cws-green);
}

/* Home page solid navbar */
body.home-page .navbar-solid .nav-link {
  background-color: transparent;
  margin: 0 0.5rem;
  color: #ffffff !important;
  text-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  position: relative;
}

body.home-page .navbar-solid .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

body.home-page .navbar-solid .nav-link:hover {
  background-color: transparent;
  transform: none;
  color: #ffffff !important;
}

body.home-page .navbar-solid .nav-link:hover::after {
  width: 100%;
}

body.home-page .navbar-solid .nav-link.active {
  background-color: transparent;
  color: #ffffff !important;
}

body.home-page .navbar-solid .nav-link.active::after {
  width: 100%;
  background-color: var(--cws-green);
}

/* Navbar toggler styling for transparent state */
.navbar-transparent .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.navbar-transparent .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.4);
}

.navbar-transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-solid .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.navbar-solid .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand text styling for better visibility on transparent background */
.navbar-transparent .navbar-brand {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  color: #ffffff !important;
}

.navbar-transparent .navbar-brand small {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure navbar brand is visible in solid state */
.navbar-solid .navbar-brand {
  text-shadow: none;
  color: #ffffff !important;
}

.navbar-solid .navbar-brand small {
  text-shadow: none;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Enhanced mobile menu styling */
.navbar-collapse {
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Default mobile menu for non-home pages */
body:not(.home-page) .navbar-collapse {
  background-color: rgba(13, 110, 253, 0.95);
  backdrop-filter: blur(10px);
}

/* Home page mobile menu - transparent initially */
body.home-page .navbar-transparent .navbar-collapse {
  background-color: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0.5rem 0;
}

body.home-page .navbar-solid .navbar-collapse {
  background-color: rgba(13, 110, 253, 0.95);
  backdrop-filter: blur(15px);
}

/* Mobile menu links */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-weight: 600;
    background-color: transparent;
    border-radius: 0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Default mobile menu for non-home pages */
  body:not(.home-page) .navbar-nav .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }
  
  body:not(.home-page) .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }
  
  body:not(.home-page) .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-left: 3px solid var(--cws-green);
  }
  
  /* Home page transparent mobile menu */
  body.home-page .navbar-transparent .nav-link {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    border: none;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
  }
  
  body.home-page .navbar-transparent .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
  }
  
  body.home-page .navbar-transparent .nav-link.active {
    background-color: rgba(25, 135, 84, 0.7);
    color: #ffffff !important;
  }
  
  /* Home page solid mobile menu */
  body.home-page .navbar-solid .nav-link {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  body.home-page .navbar-solid .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }
  
  body.home-page .navbar-solid .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-left: 3px solid var(--cws-green);
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ===== Footer Styles ===== */
#site-footer {
  margin-top: auto;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--cws-white);
}

/* ===== WhatsApp Floating Button ===== */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background-color: var(--whatsapp-green);
  color: var(--cws-white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--cws-white);
}

/* ===== Hero Slider Styles ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

#heroCarousel {
  height: 100%;
}

#heroCarousel .carousel-inner {
  height: 100%;
}

#heroCarousel .carousel-item {
  height: 100%;
}

.hero-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.carousel-caption {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.carousel-caption h1,
.carousel-caption h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.carousel-caption .lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Enhanced carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-size: 100%;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Enhanced carousel indicators */
.carousel-indicators {
  bottom: 2rem;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: var(--cws-green);
  border-color: var(--cws-green);
  transform: scale(1.2);
}

/* ===== Service Card Styles ===== */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-direction: column;
  display: flex;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.service-card .card-img-container {
  height: 180px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
  padding: 10px;
}

.service-card:hover .card-img-top {
  transform: scale(1.02);
}

.service-card .card-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.service-card .card-text {
  flex-grow: 1;
  margin-bottom: 0;
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== CTA Banner Gradient ===== */
.cta-gradient {
  background: linear-gradient(135deg, var(--cws-blue) 0%, var(--cws-green) 100%);
}

/* ===== Page Hero Banner ===== */
.page-hero {
  padding: 2rem 0;
}

/* Light navy blue background for all pages except index */
body:not(.home-page) .page-hero {
  background-color: #2c3e50 !important;
}

/* Keep blue for index page if it has page-hero (though it shouldn't) */
body.home-page .page-hero {
  background-color: var(--cws-blue) !important;
}

.page-hero .breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero .breadcrumb-item a:hover {
  color: var(--cws-white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.page-hero .breadcrumb-item.active {
  color: var(--cws-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced text styling for page hero */
.page-hero h1 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

/* ===== Testimonial Slider Styles ===== */
#testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  overflow: hidden;
  position: relative;
}

.testimonial-item {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-company {
  color: var(--cws-green);
  font-size: 0.9rem;
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--cws-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.testimonial-prev {
  left: -50px;
}

.testimonial-next {
  right: -50px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.testimonial-dot.active {
  background: var(--cws-green);
}

/* ===== Gallery Styles ===== */
.gallery-card {
  position: relative;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gallery-card img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--cws-white);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item {
  transition: opacity 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

/* ===== Filter Buttons ===== */
.filter-btn {
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--cws-blue) !important;
  border-color: var(--cws-blue) !important;
  color: var(--cws-white) !important;
}

/* ===== Stats Counter Styles ===== */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--cws-blue), var(--cws-green));
  color: var(--cws-white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== Team Card Styles ===== */
.team-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--cws-blue);
}

/* ===== Lightbox Modal Styles ===== */
#lightboxModal .modal-content {
  background: transparent !important;
}

#lightboxModal .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.lightbox-trigger {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox-trigger:hover {
  opacity: 0.9;
}

/* ===== Form Styles ===== */
.form-control:focus,
.form-select:focus {
  border-color: var(--cws-blue);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  display: none;
  padding: 1rem;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: 0.375rem;
  color: #0f5132;
  margin-bottom: 1rem;
}

.success-message.show {
  display: block;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  #hero {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-img {
    height: 100%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption .lead {
    font-size: 1.1rem;
  }

  .carousel-caption {
    padding: 1rem;
  }

  #whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .testimonial-prev {
    left: 0;
  }

  .testimonial-next {
    right: 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }
  
  .navbar-logo {
    height: 40px;
  }
  
  .footer-logo {
    height: 30px;
  }
}

@media (max-width: 576px) {
  #hero {
    height: 100vh;
    min-height: 450px;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .carousel-caption .lead {
    font-size: 1rem;
  }

  .carousel-caption .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-caption {
    padding: 0.5rem;
  }

  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 0.3rem;
  }
}

/* ===== Landscape mobile optimization ===== */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    height: 100vh;
    min-height: 400px;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .carousel-caption .btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* ===== Utility Classes ===== */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--cws-green);
  margin: 1rem auto 0;
}

.badge-custom {
  background-color: var(--cws-green);
  color: var(--cws-white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
}

/* ===== Button Hover Effects ===== */
.btn {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* ===== Our Clients Section ===== */
.clients-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.clients-slider {
  width: 100%;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: scroll-clients 30s linear infinite;
  width: fit-content;
}

.client-logo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Pause animation on hover */
.clients-slider-wrapper:hover .clients-track {
  animation-play-state: paused;
}

@keyframes scroll-clients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients-track {
    gap: 30px;
  }
  
  .client-logo {
    width: 120px;
    height: 120px;
    padding: 15px;
  }
}
