/* ==========================================================================
   ABOUT US - Dedicated Stylesheet
   Page: aboutus.html
   Theme: Nandalala Infotech Brand Theme
   - Navbar: White (#FFFFFF)
   - Hero background: Primary blue gradient (linear-gradient(135deg, #102C57, #235bf3))
   - Main headings: Dark navy (#0F172A)
   - Paragraphs: Slate (#475569)
   - Primary buttons: Secondary blue (#235bf3), Hover: Primary blue (#102C57)
   - Service cards / Cards: White (#FFFFFF)
   - Alternate sections: Light background (#F1F5F9)
   - Icons: Accent sky blue (#38BDF8)
   - Footer: Dark navy (#0F172A)
   ========================================================================== */

:root {
  --primary-blue: #102C57;
  --secondary-blue: #235bf3;
  --accent-sky-blue: #38BDF8;
  --dark-navy: #0F172A;
  --light-bg: #F1F5F9;
  --white: #FFFFFF;
  --body-text: #475569;
  --border-color: #E2E8F0;
  --hero-gradient: linear-gradient(135deg, #102C57 0%, #235bf3 100%);
  --accent-gradient: linear-gradient(135deg, #235bf3 0%, #38BDF8 100%);
}

/* ================= ABOUT US HERO HEADER ================= */
.about-hero-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  color: var(--body-text, #475569) !important;
  padding: 100px 20px 85px 20px;
  position: relative;
  overflow: hidden;
}

.about-hero-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--dark-navy, #0F172A) !important;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-hero-lead {
  font-size: 1.15rem;
  color: var(--body-text, #475569) !important;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-sky-blue, #38BDF8);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* About Us Clean Section */
.aboutus-clean {
  background: var(--white, #FFFFFF);
  padding: 80px 0 60px 0;
  color: var(--body-text, #475569);
}

.aboutus-tag {
  display: inline-block;
  background: rgba(35, 91, 243, 0.1);
  color: var(--secondary-blue, #235bf3);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid rgba(35, 91, 243, 0.25);
}

.aboutus-heading {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark-navy, #0F172A);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.aboutus-lead {
  font-size: 18px;
  color: var(--body-text, #475569);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.aboutus-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy, #0F172A);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.aboutus-subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-blue, #235bf3);
  border-radius: 2px;
}

.aboutus-text {
  font-size: 16px;
  color: var(--body-text, #475569);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* About Client Section (Alternate Section: Light background #F1F5F9) */
.clients-section {
  padding: 80px 0;
  background: var(--light-bg, #F1F5F9);
  border-top: 1px solid var(--border-color, #E2E8F0);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  overflow: hidden;
}

.client-title,
.clients-section .contact-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-navy, #0F172A) !important;
  margin-bottom: 50px;
}

/* Slider container */
.logo-slider {
  overflow: hidden;
  position: relative;
}

/* Moving track */
.logo-track {
  display: flex;
  gap: 60px;
  width: calc(250px * 24);
  animation: scroll 90s linear infinite;
}

/* Logos with white container so transparent/dark logos are 100% visible */
.logo-track img {
  height: 60px;
  width: auto;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #E2E8F0);
  opacity: 0.95;
  transition: all 0.3s ease;
}

.logo-track img:hover {
  filter: brightness(1.1);
  opacity: 1;
  transform: scale(1.08);
}

/* Infinite animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============ STATS SECTION (White Background) ============ */
.stats-section {
  padding: 80px 20px;
  background: var(--white, #FFFFFF);
  position: relative;
  overflow: hidden;
}

/* 2x2 Grid matching reference */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-blue, #235bf3);
  box-shadow: 0 16px 40px rgba(35, 91, 243, 0.15);
}

/* big outline number in the bottom-right background */
.stat-wm {
  position: absolute;
  right: 15px;
  bottom: -20px;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
  -webkit-text-stroke: 1.5px rgba(35, 91, 243, 0.2);
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.45s ease;
  pointer-events: none;
  user-select: none;
}

.stat-card:hover .stat-wm {
  transform: translateX(-8px) scale(1.06);
}

.stats-section .stat-card .stat-icon,
.stat-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  margin-bottom: 16px !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.stats-section .stat-card .stat-icon img,
.stat-icon img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
}

.stat-card:hover .stat-icon {
  transform: translateY(-4px) scale(1.12);
}

.stat-num {
  position: relative;
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark-navy, #0F172A);
  line-height: 1.1;
  letter-spacing: -0.02em;
  z-index: 2;
}

.stat-label {
  position: relative;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-text, #475569);
  line-height: 1.4;
  z-index: 2;
}

/* underline pill */
.stat-line {
  position: relative;
  display: block;
  height: 3.5px;
  width: 48px;
  border-radius: 3px;
  background: var(--gradient-accent, linear-gradient(90deg, #235bf3 0%, #38BDF8 100%));
  transition: width 0.4s ease;
  z-index: 2;
}

.stat-card:hover .stat-line {
  width: 90px;
}

/* entry animation */
.stats-section.show .stat-card {
  animation: statUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.stats-section.show .stat-card:nth-child(2) { animation-delay: 0.15s; }
.stats-section.show .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-section.show .stat-card:nth-child(4) { animation-delay: 0.45s; }

@keyframes statUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 480px;
  }
  .stat-card {
    padding: 28px 24px;
    min-height: 180px;
  }
  .stat-wm {
    font-size: 5rem;
    bottom: -15px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-section .stat-card { animation: none !important; }
  .stat-line { transition: none; width: 48px; }
}
