/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  color: #1a1a1a;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #004080;
  text-decoration: underline;
}
/* Header */
header {
  position: sticky;
  top: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}
.logo {
  color: #004080;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo img {
  height: 60px;
  max-width: 100%;
  vertical-align: middle;
  margin-right: 12px;
  width: auto;
}
nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
nav a {
  color: #004080;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
nav a:hover,
nav a.active {
  background-color: #f0f4f8;
  color: #003366;
  text-decoration: none;
}
/* Main container */
.container-fluid {
  max-width: 900px;
  margin: 3rem auto 6rem;
  padding: 0 1.25rem;
}
/* Heading */
h1 {
  color: #004080;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}
/* Clients list */
ul.clients-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}
ul.clients-list li {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 64, 128, 0.1);
  margin-bottom: 1rem;
  border-radius: 12px;
  padding: 1.4rem 2rem;
  font-size: 1.2rem;
  color: #222;
  transition: box-shadow 0.3s ease;
}
ul.clients-list li:hover {
  box-shadow: 0 8px 22px rgba(0, 64, 128, 0.25);
}
/* Footer with pattern and updated color */
footer {
  background-color: #f9fafb;
  color: #374151;
  padding: 4rem 1.5rem 3rem;
  font-size: 1rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    #e0e7ff 0,
    #e0e7ff 10px,
    #f9fafb 10px,
    #f9fafb 20px
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
footer .footer-section {
  flex: 1 1 280px;
  min-width: 280px;
}
footer h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 0.75rem;
}
footer ul li a {
  color: #475569;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}
footer ul li a:hover,
footer ul li a:focus {
  color: #2563eb;
  text-decoration: underline;
  outline: none;
}
footer .contact-info p {
  margin: 0.5rem 0;
  color: #475569;
  line-height: 1.5;
  font-size: 1rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .footer-section {
    min-width: 100%;
  }
}
/* Responsive */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .about {
    flex-direction: column;
  }
  .about-text,
  .about-image {
    flex: 1 1 100%;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }
  nav {
    margin-top: 0.5rem;
  }
  .logo img {
    height: 90px;
    margin-right: 12px;
  }
  .service-card {
    min-height: auto;
    align-items: center;
    text-align: center;
  }
  .service-description {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0.5rem 3rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .about-text,
  .about-image {
    min-width: 0;
  }
  .logo img {
    height: 60px;
    margin-right: 10px;
  }
  nav {
    gap: 0.7rem;
  }
  .container {
    padding: 0 0.5rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .service-card p {
    font-size: 1.1rem;
  }
  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }
  .service-title {
    font-size: 1.6rem;
  }
}
@media (max-width: 400px) {
  .logo {
    font-size: 1rem;
  }
  .logo img {
    height: 48px;
    margin-right: 8px;
  }
  nav a {
    font-size: 0.9rem;
  }
}
/* Clients Logos */
.client-logo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  background: white;
}
.client-logo img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.client-logo:hover img {
  transform: scale(1.1);
}
.client-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.client-logo:hover .client-overlay {
  opacity: 1;
}

/* Buttons inside overlays */
.client-overlay .btn {
  min-width: 110px;
  font-weight: 600;
}
/* Custom styles for horizontal layout */
.client-logos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px; /* Gap between logos */
}

.card-img-top {
  width: 20em;
}
/* Testimonial Cards Responsive Fix */
.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0 1rem;
}

.testimonial-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  flex: 1 1 calc(33.333% - 20px);
  max-width: 100%;
  transition: transform 0.3s ease;
}

.testimonial-box:hover {
  transform: translateY(-8px);
}

.company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  background: #f5f7fa;
  box-shadow: 0 2px 8px rgba(30,41,59,0.07);
  padding: 0.5rem;
  display: block;
}

.testimonial-box h3 {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 10px 0;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  margin: 0 auto;
  max-width: 280px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .testimonial-box {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-box {
    flex: 1 1 100%;
    max-width: 95%;
    padding: 20px 16px;
  }

  .testimonial-box h3 {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .stars {
    font-size: 1rem;
  }
}

/* Clients Section Styles */
.clients-hero {
  background: linear-gradient(120deg, #1e3c72 0%, #2a5298 50%, #4e4376 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem 0;
  text-align: center;
  box-shadow: 0 4px 24px rgba(30, 41, 59, 0.07);
  position: relative;
  overflow: hidden;
}

.clients-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #ffd70055 0%, transparent 70%);
  z-index: 0;
}

.clients-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #00e6e655 0%, transparent 70%);
  z-index: 0;
}

.clients-hero-content {
  position: relative;
  z-index: 1;
}

.clients-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(30, 41, 59, 0.18);
}

.clients-hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.93;
  color: #e0e7ef;
  text-shadow: 0 1px 4px rgba(30, 41, 59, 0.10);
}

.clients-main-bg {
  background: #f8fafd;
  min-height: 100vh;
  padding-bottom: 1rem; /* reduced from 2rem */
}

/* Client Logos */
.animated-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin: 2.5rem 0 3rem 0;
  flex-wrap: wrap;
}

.client-logo-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 120px;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: fadeInUp 0.7s forwards;
}

.client-logo-card img {
  max-width: 120px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(0.2) brightness(0.95);
  transition: filter 0.3s;
}

.client-logo-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.16);
}

.client-logo-card:hover img {
  filter: grayscale(0) brightness(1.1);
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Testimonials */
.animated-testimonials {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 3rem 0 1rem 0; /* reduced bottom margin */
  flex-wrap: wrap;
}

.testimonial-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: testimonialFadeIn 0.8s forwards;
  position: relative;
  overflow: hidden;
}

.testimonial-fade-in.delay-1 { animation-delay: 0.2s; }
.testimonial-fade-in.delay-2 { animation-delay: 0.5s; }
.testimonial-fade-in.delay-3 { animation-delay: 0.8s; }

@keyframes testimonialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-box .testimonial-quote {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  color: #4e4376;
  font-size: 2.2rem;
  opacity: 0.13;
  pointer-events: none;
}

.testimonial-box .company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  background: #f5f7fa;
  box-shadow: 0 2px 8px rgba(30,41,59,0.07);
  padding: 0.5rem;
  display: block;
}

.testimonial-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a5298;
  margin-bottom: 0.5rem;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.05rem;
  color: #2d3748;
  font-style: italic;
  margin-bottom: 0;
}

.section-header {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3c72;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

/* Standard fade-in animation for all animated elements */
@keyframes fadeInStandard {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  60% {
    opacity: 0.7;
    transform: translateY(-8px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apply to logo cards */
.client-logo-card,
.fade-in-up {
  animation-name: fadeInStandard;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

/* Apply to testimonials */
.testimonial-box,
.testimonial-fade-in {
  animation-name: fadeInStandard;
  animation-duration: 0.9s;
  animation-fill-mode: forwards;
  opacity: 0;
}

/* Staggered delays for a smooth entrance */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }

@media (max-width: 900px) {
  .animated-logos,
  .animated-testimonials {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .client-logo-card,
  .testimonial-box {
    max-width: 95vw;
    min-width: 0;
  }
}
