/* ===== Base Styles ===== */
:root {
  --primary-color: #4e42d4;
  --primary-dark: #3a31a0;
  --primary-light: #7a70e9;
  --secondary-color: #ff6b6b;
  --accent-color: #00c9a7;
  --text-dark: #333333;
  --text-light: #777777;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --bg-gradient: linear-gradient(135deg, #4e42d4 0%, #6d64e8 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;
  --font-primary: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 10px;
  position: relative;
  padding: 0 10px;
}

.section-subtitle:before,
.section-subtitle:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--primary-color);
}

.section-subtitle:before {
  left: -30px;
}

.section-subtitle:after {
  right: -30px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(78, 66, 212, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a31a0 0%, #4e42d4 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(78, 66, 212, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-3px);
}

/* ===== Navigation ===== */
/* ===== Navigation ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

#navbar.sticky {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

#navbar.hide {
  transform: translateY(-100%);
}

.nav-container {
  width: 90%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  height: auto;
}

.logo img {
  height: 78px;
  border-radius: 0;
  filter: none;
  transition: var(--transition-fast);
  box-shadow: none;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 6px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 70%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Burger menu for mobile */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 5px;
  transition: var(--transition-fast);
  border-radius: 3px;
  position: static;
}

@media screen and (max-width: 768px) {
  #navbar {
    padding: 12px 0;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 18px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.5s forwards;
    animation-delay: calc(0.1s * var(--i));
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .burger {
    display: block;
    z-index: 1001;
  }
  
  .burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* ===== Hero Section ===== */
.clients-hero {
  height: 10vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('pagebackground.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  padding-top: 80px;
}

.clients-hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('pattern-bg.png') repeat;
  opacity: 0.1;
}

.clients-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.clients-hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-white);
  opacity: 0.8;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
  }
}

/* ===== Featured Clients Section ===== */
.featured-clients {
  background-color: var(--bg-light);
}

.featured-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

.featured-logo {
  position: relative;
  height: 150px;
  background-color: var(--text-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.featured-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: all var(--transition-fast);
}

.logo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(78, 66, 212, 0.9);
  color: var(--text-white);
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition-fast);
}

.featured-logo:hover .logo-overlay {
  transform: translateY(0);
}

.logo-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* ===== Clients Showcase Section ===== */
.clients-showcase {
  background-color: var(--text-white);
}

.clients-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid var(--text-light);
  border-radius: 30px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-height: 800px;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.clients-grid.expanded {
  max-height: 5000px;
}

.client-card {
  perspective: 1000px;
  height: 180px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.client-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.client-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.client-card:hover .client-card-inner {
  transform: rotateY(180deg);
}

.client-card-front,
.client-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.client-card-front {
  background-color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.client-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.client-card-back {
  background: var(--bg-gradient);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transform: rotateY(180deg);
  box-shadow: var(--shadow-sm);
}

.client-card-back h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.view-more-container {
  text-align: center;
  margin-top: 40px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.view-more-btn i {
  transition: transform var(--transition-fast);
}

.view-more-btn:hover i {
  transform: translateY(3px);
}

/* ===== Client Logos Marquee ===== */
.client-logos-marquee {
  background-color: var(--bg-light);
  overflow: hidden;
  padding: 60px 0;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 30px 0;
}

.marquee-wrapper.reverse .marquee-container {
  animation-direction: reverse;
}

.marquee-container {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  margin: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 15px;
  transition: all var(--transition-fast);
}

.marquee-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.marquee-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

@keyframes marquee {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

/* ===== Testimonials Section ===== */
.client-testimonials {
  background-color: var(--text-white);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 20px;
}

.testimonial-content {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.testimonial-content p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.testimonial-info p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  font-style: normal;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* ===== Success Metrics Section ===== */
.success-metrics {
  background-color: var(--bg-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.metric-card {
  background-color: var(--text-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-white);
  font-size: 28px;
}

.metric-card h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.metric-card p {
  font-size: 16px;
  color: var(--text-light);
}

/* ===== Partnership CTA Section ===== */
.partnership-cta {
  background: var(--bg-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(5px);
}

.footer-links i {
  font-size: 12px;
  color: var(--primary-color);
}

.newsletter-form {
  position: relative;
  margin-top: 20px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  border-radius: var(--border-radius-md);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-family: var(--font-primary);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-button:hover {
  background-color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a {
  color: var(--primary-light);
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(78, 66, 212, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-element.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  .section-header h2 {
      font-size: 32px;
  }
  
  .clients-hero h1 {
      font-size: 42px;
  }
  
  .featured-logos {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  section {
      padding: 60px 0;
  }
  
  .nav-container {
      height: 70px;
  }
  
  .logo img {
      height: 35px;
  }
  
  .clients-hero {
      min-height: 500px;
  }
  
  .clients-hero h1 {
      font-size: 36px;
  }
  
  .clients-hero p {
      font-size: 16px;
  }
  
  .hero-stats {
      gap: 30px;
  }
  
  .stat-number {
      font-size: 36px;
  }
  
  .featured-logo {
      height: 130px;
  }
  
  .metric-card h3 {
      font-size: 30px;
  }
}

@media (max-width: 768px) {
  .burger {
      display: block;
  }
  
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background-color: var(--bg-dark);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
      transition: right var(--transition-fast);
      z-index: 1000;
  }
  
  .nav-links.active {
      right: 0;
  }
  
  .clients-hero {
      min-height: 450px;
  }
  
}