/* ==========================================================================
   CloudConverge replica — desktop-first stylesheet
   Sections: tokens/fonts/base, buttons, header + mega menus, mobile menu,
   hero, intro, services, differentiate, projects, clients, case slider,
   engagement, stats, footer (contact/main/bottom), utilities.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --color-primary: #1e4ec4;
  --color-primary-light: #6db0fe;
  --color-heading: #1d1a4e;
  --color-dark: #14255b;
  --color-dark-2: #13255b;
  --color-body: #191919;
  --color-bg-light: #f7fbff;
  --color-muted: #a5aec2;
  --color-border-dark: #354679;
  --shadow-card: 0px 14px 46px 0px rgba(0, 26, 87, 0.08);
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Poppins", sans-serif;
  --container: 1140px;
  --container-wide: 1600px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-body);
  background: #fff;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  text-transform: capitalize;
  margin: 0;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 15px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: 32px;
  line-height: 42px;
  text-align: center;
}
.section-title.light {
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  padding: 10px 26px;
  border: 0;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-lift:hover {
  box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}
.btn-header {
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  padding: 14px 22px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.11);
}

.link-more {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  padding: 15px 0;
  transition: color 0.3s;
}
.link-more:hover {
  color: var(--color-primary);
}
/* underline sweeps in from the left on hover (reference "hover-style-two") */
.link-more::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s cubic-bezier(0.04, 0.11, 0.6, 0.97);
}
.link-more:hover::after {
  transform: scaleX(1);
  transition-delay: 0.34s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 68px;
}
.header-logo {
  display: inline-flex;
  flex-shrink: 0;
}
.header-logo img {
  width: 176px;
  height: 47px;
}
.site-header .logo-dark {
  display: none;
}

.main-nav {
  margin-left: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
}
.menu-item > a {
  display: inline-flex;
  align-items: center;
  /* gap: 6px; */
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  text-transform: capitalize;
  color: #fff;
  padding: 20px 0 20px 40px;
  transition: color 0.3s;
}
.menu-item > a .chev {
  transition: transform 0.3s;
}
.menu-item:hover > a .chev,
.menu-item.is-open > a .chev {
  transform: rotate(180deg);
}

.header-cta {
  margin-left: 60px;
  flex-shrink: 0;
}

/* Sticky state */
.site-header.is-sticky {
  position: fixed;
  background: #fff;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.08); */
  animation: headerSlideDown 0.4s ease;
}
@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.site-header.is-sticky .menu-item > a {
  color: #000;
}
.site-header.is-sticky .logo-light {
  display: none;
}
.site-header.is-sticky .logo-dark {
  display: block;
}

/* Hamburger (hidden on desktop) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 5px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.site-header.is-sticky .mobile-toggle span {
  background: #000;
}

/* ---------- Mega panels ---------- */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-25px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
}
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0;
}

/* About / Products panels: gray intro rail + cards on white */
.mega-about-grid,
.mega-products-grid {
  display: flex;
}
.mega-intro {
  position: relative;
  flex: 0 0 33%;
  background: #f7f7f5;
  border-right: 1px solid #e9e9e9;
  padding: 48px 50px;
}
/* the gray rail bleeds to the viewport's left edge on wide screens */
.mega-intro::before,
.mega-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background: #f7f7f5;
}
.mega-intro p {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-body);
}
.mega-intro .mega-links {
  margin-top: 20px;
}
.mega-intro .mega-links li a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding: 10px 0;
  transition: color 0.3s;
}
.mega-intro .mega-links li a:hover {
  color: var(--color-heading);
}

.mega-about-grid > .mega-card,
.mega-products-grid > .mega-card {
  flex: 1;
  margin: 52px 40px 40px;
}
/* Products has only two cards — an empty third track keeps card widths
   identical to the About panel, as on the reference */
.mega-products-grid::after {
  content: "";
  flex: 1;
  margin: 0 40px;
}

.mega-card {
  display: block;
}
.mega-card-img {
  display: block;
  overflow: hidden;
}
.mega-card-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}
.mega-card:hover .mega-card-img img {
  filter: grayscale(0);
}
.mega-card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #696969;
  margin: 20px 0 10px;
  transition: color 0.3s;
}
.mega-card:hover .mega-card-title {
  color: var(--color-body);
}
.mega-card:hover .mega-card-text {
  color: var(--color-body);
}
.mega-card-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #808080;
}
.mega-card-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  color: #b0b0b0;
  margin-top: 14px;
  transition: color 0.3s;
}
.mega-card:hover .mega-card-more {
  color: var(--color-primary);
}

/* Services mega: gray tab rail + category content + case cards */
.mega-services-grid {
  display: flex;
}
.mega-tabs {
  position: relative;
  flex: 0 0 33%;
  display: flex;
  flex-direction: column;
  background: #f7f7f5;
  border-right: 1px solid #e9e9e9;
  padding: 42px 32px 42px 50px;
}
.mega-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-body);
  background: transparent;
  border: 0;
  padding: 23px 0;
  transition: color 0.3s;
}
.mega-tab .tab-arrow {
  flex-shrink: 0;
}
.mega-tab:hover,
.mega-tab.is-active {
  color: var(--color-primary);
}

.mega-tab-panels {
  flex: 1;
  padding: 45px 52px;
}
.mega-tab-panel {
  display: none;
}
.mega-tab-panel.is-active {
  display: flex;
  gap: 28px;
}
.mega-cat {
  flex: 1.35;
  min-width: 0;
  margin-right: 40px;
}
.mega-cat-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
  color: #000;
}
.mega-cat-sub {
  font-size: 14px;
  line-height: 22px;
  color: #666;
  margin: 8px 0 24px;
}
.mega-tab-panel .mega-links li a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding: 9px 0;
  transition: color 0.3s;
}
.mega-tab-panel .mega-links li a:hover {
  color: var(--color-heading);
}
.mega-tab-panel .mega-cases {
  display: flex;
  flex: 2;
  gap: 30px;
  align-items: flex-start;
}
.mega-tab-panel .mega-cases .mega-card {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   MOBILE MENU (off-canvas)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 1099;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.82, 0.55);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 15px;
  border-bottom: 1px solid #eee;
}
.mobile-menu-header img {
  width: 90px;
  height: auto;
}
.mobile-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  background: transparent;
  border: 0;
  padding: 5px;
  color: #000;
}
.mobile-menu nav {
  padding: 15px;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  opacity: 0;
  transition: opacity 0.35s;
}
.mobile-overlay.is-visible {
  opacity: 1;
}

.mobile-nav .m-item {
  position: relative;
  border-bottom: 1px solid #eee;
}
.mobile-nav .m-item:last-child {
  border-bottom: 0;
}
.mobile-nav .m-item > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 28px;
  color: #000;
  padding: 10px 40px 10px 0;
}
.m-sub-toggle {
  position: absolute;
  top: 10px;
  right: 0;
  width: 32px;
  height: 28px;
  background: transparent;
  border: 0;
}
.m-sub-toggle::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(45deg) translate(-2px, -2px);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.m-sub-toggle[aria-expanded="true"]::before {
  border-color: var(--color-primary);
  transform: rotate(-135deg) translate(-2px, -2px);
}
.m-sub {
  display: none;
  padding-left: 12px;
}
.m-sub.is-open {
  display: block;
}
.m-sub a {
  font-size: 15px;
}
/* nested groups inside an expanded item are always shown, without dividers */
.m-sub .m-sub {
  display: block;
  padding-left: 14px;
}
.m-sub .m-item,
.m-sub .m-group {
  border-bottom: 0;
}
.m-group > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: #000;
  padding: 8px 0 4px;
}
.m-sub .m-sub a {
  padding: 5px 0;
  line-height: 24px;
}
.m-cta {
  margin-top: 25px;
  width: 100%;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: url("../assets/images/banner-home-12.avif") top center / cover
    no-repeat;
  padding: 68px 20px 0;
  min-height: 720px;
  display: flex;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #1b1b1b;
  opacity: 0.7;
}
.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-content {
  width: 70%;
  margin-left: 30%;
  padding: 150px 10px 0;
  animation: heroSlideDown 1s ease 0.5s both;
}
@keyframes heroSlideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-typed {
  position: relative;
  color: #fff;
  font-size: 52px;
  line-height: 52px;
  height: 72px;
  min-height: 72px;
}
.typed-text {
  display: inline-block;
  font-size: 62px;
  line-height: 62px;
  min-height: 72px;
  color: #fff;
  font-weight: 700;
}
.typed-cursor {
  color: #fff;
  font-size: 62px;
  line-height: 62px;
  font-weight: 700;
  animation: blink 1s ease infinite;
}
@keyframes blink {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.hero-title {
  color: #fff;
  font-size: 35px;
  line-height: 45px;
  margin-top: 20px;
  padding-bottom: 35px;
}
.hero-subtitle {
  color: #fff;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding-right: 150px;
  margin-bottom: 20px;
}
.hero-btn-wrap {
  margin: 50px 0 10px;
}
.hero-btn-wrap .btn {
  padding: 11px 25px;
  min-width: 160px;
}

.hero-iso {
  padding: 40px 0 40px;
}
.hero-iso img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
  background: var(--color-bg-light);
  padding-top: 60px;
}
.intro-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.intro-title {
  font-size: 32px;
  line-height: 50px;
  max-width: 76%;
  margin: 0 auto 20px;
}
.intro-text {
  font-family: 'DM Sans', sans-serif;
  max-width: 94%;
  margin: 0 auto;
  padding-bottom: 30px;
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.services {
  background: var(--color-bg-light);
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}
.services-container {
  display: flex;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  width: 25%;
  background: #fff;
  border-top: 4px solid #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  margin: 0 15px;
  padding-bottom: 10px;
  text-align: center;
  transition:
    transform 0.4s cubic-bezier(0.2, 0, 0.3, 1),
    border-color 0.3s;
}
.service-card:hover {
  border-top-color: var(--color-primary);
  transform: translate3d(0, -5px, 0);
}
/* once the scroll-reveal has finished, restore the card's own hover
   transition and let the lift win over .reveal.is-visible */
.service-card.is-visible {
  transition:
    transform 0.4s cubic-bezier(0.2, 0, 0.3, 1),
    border-color 0.3s,
    opacity 0.6s ease;
}
.service-card.is-visible:hover {
  transform: translate3d(0, -5px, 0);
}
.service-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 30px 35px 10px;
}
.service-media {
  padding: 12px 30px 0;
}
.service-media img {
  display: block;
  margin: 0 auto;
  border-radius: 5px 5px 5px 5px;
}
.service-text {
  padding: 15px 35px 0;
  flex-grow: 1;
}
.service-card .link-more {
  align-self: center;
}

/* ==========================================================================
   DIFFERENTIATE
   ========================================================================== */
.differentiate-head {
  background: var(--color-dark) url("../assets/images/shape-for-service.png")
    70% 0 / contain no-repeat;
  padding: 100px 0 0;
}
.differentiate-head .section-title {
  padding-bottom: 20px;
}
.differentiate {
  background: var(--color-dark);
  padding: 29px 0 111px;
}
.differentiate-grid {
  display: flex;
}
.diff-col {
  width: 33.333%;
  padding: 0 10px;
}
.diff-box {
  text-align: center;
  padding: 20px;
  margin-bottom: 25px;
}
.diff-icon {
  display: block;
}
.diff-icon img {
  width: 48px;
  height: 48px;
}
.diff-icon-img {
  display: block;
  margin-top: 25px;
}
.diff-icon-img img {
  width: 54px;
  height: auto;
}
.diff-title {
  font-size: 20px;
  color: #fff;
  text-transform: none;
  margin: 15px 0 10px;
}
.diff-text {
  color: var(--color-muted);
  font-size: 16px;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RECENT PROJECTS
   ========================================================================== */
.projects {
  padding: 110px 0 60px;
}
.projects .section-title {
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
}
.projects-grid > li {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 16px;
  margin: 15px 0;
}
.case-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 600px;
  position: relative;
  padding: 30px 30px 18px;
  color: #fff;
  overflow: hidden;
  border-radius: 5px;
  backface-visibility: hidden;
  transition: all 0.25s cubic-bezier(0.32, 0.55, 0.79, 0.49);
}
.case-card:hover {
  z-index: 2;
  transform: scale(1.06);
}
.case-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom left,
    rgba(30, 78, 196, 0) 0%,
    #1e4ec4 100%
  );
  opacity: 0;
  transition: 300ms opacity linear;
}
.case-card:hover::after {
  opacity: 0.9;
}
.case-card > * {
  z-index: 1;
}
.case-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 0;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 200ms linear;
}
.case-card:hover img {
  transform: scale(1.05);
}
.case-arrow {
  display: inline-block;
  color: #fff;
  transform: translate(0, 20px);
  transition:
    300ms opacity linear,
    300ms transform ease-in-out;
}
.case-arrow svg {
  fill: currentColor;
}
.case-card:hover .case-arrow {
  transform: translate(0, -10px);
  transition-delay: 200ms;
}
.case-title {
  font-size: 20px;
  line-height: 30px;
  color: #fff;
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(9ex);
  transition:
    300ms opacity linear,
    300ms transform ease-in-out;
}
.case-text {
  color: #fff;
  padding-bottom: 3px;
  opacity: 0;
  transform: translateY(9ex);
  transition:
    300ms opacity linear,
    300ms transform ease-in-out;
}
.case-card:hover .case-title,
.case-card:hover .case-text {
  transform: none;
  opacity: 1;
}
.case-more {
  position: relative;
  align-self: flex-start;
  text-transform: capitalize;
  color: #fff;
  opacity: 0;
  transform: translate(0, 50px);
  transition:
    300ms opacity linear,
    300ms transform ease-in-out;
}
.case-card:hover .case-more {
  opacity: 1;
  transform: translate(0, 0);
}
.case-more-u {
  position: relative;
}
.case-more-u::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
}
.case-more:hover .case-more-u::after {
  width: 100%;
}

/* ==========================================================================
   CLIENT LOGOS
   ========================================================================== */
.clients {
  padding-top: 45px;
  margin-bottom: 90px;
}
.clients .section-title {
  padding-bottom: 30px;
  margin-bottom: 50px;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
}
.client-logo {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 45px;
}
.client-logo img {
  width: 144px;
  height: 61px;
  object-fit: contain;
}
.clients-more {
  text-align: center;
  margin-top: 50px;
}

/* ==========================================================================
   CASE STUDY SLIDER
   ========================================================================== */
.case-slider {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
}
.case-slides {
  position: absolute;
  inset: 0;
}
.case-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom left;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}
.case-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}
.case-slide.is-leaving {
  opacity: 1;
  transform: translateX(-100%);
}
.case-slider-container {
  position: relative;
  display: flex;
}
.case-captions {
  position: relative;
  width: 40.702%;
  margin: 0 15px;
  min-height: 482px;
}
.case-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.case-caption.is-active {
  opacity: 1;
}
.case-caption img {
  width: 326px;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   ENGAGEMENT MODELS
   ========================================================================== */
.engagement {
  margin-top: -70px;
  padding-bottom: 48px;
  position: relative;
  z-index: 2;
}
.engagement-grid {
  display: flex;
}
.engagement-cards {
  display: flex;
  width: 50.668%;
}
.eng-col {
  width: 50%;
  padding: 0 15px;
}
.eng-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 54px 35px 50px 43px;
  margin-bottom: 30px;
  transition: background 0.3s;
}
.eng-icon {
  display: block;
  margin-bottom: 16px;
}
.eng-icon img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease-in-out;
}
/* reference "moving-icon-left-right": icon slides left when the card is hovered */
.eng-card:hover .eng-icon img {
  transform: translate3d(-10px, 0, 0);
}
.eng-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding-bottom: 8px;
  transition: color 0.3s;
}
.eng-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-heading);
  transition: color 0.3s;
}
/* white cards invert to dark on hover (as on the reference) */
.eng-card:not(.eng-card--dark):hover {
  background: var(--color-dark-2);
}
.eng-card:not(.eng-card--dark):hover .eng-icon img {
  filter: brightness(0) invert(1);
}
.eng-card:not(.eng-card--dark):hover .eng-title,
.eng-card:not(.eng-card--dark):hover .eng-text {
  color: #fff;
}
/* alternating dark cards (Agile Projects, Dedicated Team) */
.eng-card--dark {
  background: var(--color-dark-2);
}
.eng-card--dark .eng-title,
.eng-card--dark .eng-text {
  color: #fff;
}

.engagement-info {
  width: 49.332%;
  margin-top: 164px;
  padding: 0 15px 0 68px;
}
.eng-heading {
  font-size: 32px;
  padding-bottom: 20px;
}
.engagement-info p {
  color: var(--color-body);
  padding: 0 10px 21px 0;
}
.eng-btn-wrap {
  margin-top: 16px;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-head {
  background: var(--color-bg-light);
  padding: 100px 10px 0;
}
.stats-head .section-title {
  padding-bottom: 0;
}
.stats {
  background: var(--color-bg-light);
  padding: 20px 10px 60px;
}
.stats-grid {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
}
.stat-box {
  width: 33.333%;
}
.stat-card {
  padding: 50px 30px;
  text-align: center;
}
.stat-counter {
  display: flex;
  flex-direction: column-reverse;
}
.stat-label {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
.stat-number-wrap {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
}
.stat-spacer {
  width: 44px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto;
}
.stat-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: #54595f;
}

/* ==========================================================================
   FOOTER — contact / form
   ========================================================================== */
/* main footer and bottom bar span the full width with no centering margins
   (the contact/form section above them stays boxed) */
.footer-main .container,
.footer-bottom .container {
  max-width: 100%;
  margin: 0;
}
.footer-contact {
  position: relative;
  background: url("../assets/images/hm1-form-bg-3.avif") top center / cover
    no-repeat fixed;
  border-bottom: 1px solid var(--color-border-dark);
  padding: 120px 0;
}
.footer-contact-overlay {
  position: absolute;
  inset: 0;
  background: #13255bd1;
}
.footer-contact-grid {
  position: relative;
  display: flex;
  align-items: center;
}
.fc-info {
  width: 50%;
  padding: 0 10px;
}
.fc-heading {
  color: #fff;
  font-size: 32px;
  padding-bottom: 20px;
}
.fc-box {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.fc-box:last-child {
  border-bottom: 0;
}
.fc-icon {
  color: #fff;
  flex-shrink: 0;
  margin-top: 5px;
}
.fc-box-title {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  line-height: 42px;
}
.fc-box-text {
  color: #fff;
  font-size: 16px;
}
.fc-box-text a {
  color: var(--color-muted);
  text-decoration: underline;
}
.fc-box-text a:hover {
  color: var(--color-primary-light);
}

.fc-form-card {
  width: 50%;
  background: #fff;
  border-top: 5px solid var(--color-primary);
  border-radius: 4px;
  margin-left: 100px;
  padding: 40px 60px 50px;
}
.fc-eyebrow {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  padding-bottom: 12px;
}
.fc-form-heading {
  font-size: 32px;
  padding-bottom: 20px;
}

.contact-form .form-field {
  margin-bottom: 25px;
}
.contact-form .form-submit {
  margin-top: 10px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 26px;
  color: var(--color-body);
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  border-radius: 3px;
  padding: 0 14px;
  height: 50px;
}
.contact-form textarea {
  height: 120px;
  padding: 10px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.contact-form input.has-error,
.contact-form textarea.has-error {
  border-color: #d63637;
}
.field-error {
  display: block;
  color: #d63637;
  font-size: 13px;
  line-height: 18px;
  min-height: 0;
}
/* hide number input spinners to match the reference form */
.contact-form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.contact-form input[type="number"]::-webkit-outer-spin-button,
.contact-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.btn-submit {
  font-size: 15px;
  font-weight: 500;
  padding: 14px 46px;
  line-height: 20px;
  cursor: pointer;
}
.btn-submit:hover {
  background: #1740a3;
}
.form-success {
  margin-top: 15px;
  color: #1a7d36;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER — main
   ========================================================================== */
.footer-main {
  background: var(--color-dark-2);
  padding: 68px 60px 45px;
}
.footer-columns {
  display: flex;
}
.f-col {
  padding: 10px 40px 10px 10px;
}
.f-col-brand {
  width: 28%;
  padding-right: 60px;
}
.f-col:nth-child(2) {
  width: 28%;
}
.f-col:nth-child(3) {
  width: 24%;
  padding-top: 58px;
}
.f-col:nth-child(4) {
  width: 20%;
  padding-right: 0;
}

.f-logo {
  display: inline-block;
  margin: 0 0 20px;
}
.f-logo img {
  width: 145px;
  height: auto;
}
.f-about {
  color: #fff;
  text-align: justify;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.f-heading {
  color: #fff;
  font-size: 22px;
  padding-bottom: 15px;
}
.f-heading-iso {
  font-size: 20px;
  text-transform: none;
  padding-bottom: 25px;
}
.f-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 45px;
  align-items: center;
}
.f-partners img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
}

.f-group {
  padding-bottom: 12px;
}
.f-group-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.f-links li a {
  position: relative;
  display: inline-block;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 30px;
  padding-left: 14px;
  transition: color 0.3s;
}
.f-links li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.f-links li a:hover {
  color: var(--color-primary-light);
}
.f-links {
  padding-bottom: 10px;
}

.f-address {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 20px;
}
.f-address strong {
  color: #fff;
}
/* Delhi → Noida gap matches the USA → INDIA block gap */
.f-addr-block {
  display: block;
  margin-top: 20px;
}
.f-address .f-country {
  text-decoration: underline;
}
.f-address-usa {
  color: #fff;
}
.f-contact-links {
  color: #fff;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.f-contact-links a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}
.f-contact-links a:hover {
  color: var(--color-primary-light);
}
.f-social {
  display: flex;
  gap: 24px;
}
.f-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
}
.f-social-link svg {
  fill: currentColor;
}
.f-social-link:hover {
  color: var(--color-primary-light);
}

/* ==========================================================================
   FOOTER — bottom bar
   ========================================================================== */
.footer-bottom {
  background: var(--color-dark-2);
  border-top: 1px solid #263b6d;
  padding: 0 100px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: none;
}
.copyright {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
  max-width: 44%;
  padding: 27px 0;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 46%;
  padding: 27px 0;
}
.legal-links li {
  margin: 0 0 0 16px;
}
.legal-links li a {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
}
.legal-links li a:hover {
  color: var(--color-primary-light);
}

/* ==========================================================================
   Scroll-reveal + reduced motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   INNER PAGES — banner + breadcrumb (shared pattern)
   ========================================================================== */
.inner-banner {
  position: relative;
  height: 375px;
  background: url("../assets/images/teamphoto-about.webp") center center / cover
    no-repeat;
}
.inner-banner-overlay {
  position: absolute;
  inset: 0;
  /* background: #1d1a4e; */
  /* opacity: 0.05; */
}
.breadcrumb-bar {
  background: #fbfbfb;
  padding: 10px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb-list li {
  font-size: 14px;
  color: #6d6d6d;
}
.breadcrumb-list a {
  color: var(--color-heading);
}
.breadcrumb-list a:hover {
  color: var(--color-primary);
}
.breadcrumb-sep {
  display: inline-flex;
  color: #6d6d6d;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-intro {
  padding-top: 70px;
}
.about-title {
  font-size: 45px;
  line-height: normal;
  text-align: center;
}
.about-subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: normal;
  color: #191919;
  text-align: center;
  /* max-width: 1040px; */
  margin: 12px auto 0;
  font-weight: 400;
}
.about-divider {
  border: 0;
  border-top: 1px solid #000;
  margin: 15px 0;
  margin-top: 45px;
}

.about-mission {
  padding: 8px 0 0;
}
.about-mission-grid {
  display: flex;
  align-items: center;
}
.about-mission-text {
  width: 57%;
  padding-right: 60px;
}
.about-mission-text p {
  margin-bottom: 20px;
}
.about-focus-list {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 28px;
  color: var(--color-heading);
  margin-bottom: 20px;
}
.about-mission-media {
  width: 43%;
  text-align: center;
}

.about-ceo {
  padding: 120px 0 112px;
}
.about-ceo-grid {
  display: flex;
  /* align-items: center; */
}
.about-ceo-media {
  width: 43%;
  padding: 0 15px 0 0;
}
.about-ceo-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.about-ceo-caption {
  border-bottom: 1px solid #e1e4ec;
  padding-bottom: 26px;
  text-align: center;
}
.about-ceo-name {
  font-size: 16px;
  line-height: 26px;
  margin-top: 20px;
}
.about-ceo-name span {
  font-weight: 600;
}
.about-ceo-text {
  width: 57%;
  padding-left: 60px;
  margin: 0 15px 0 15px;
}
.about-ceo-heading {
  font-size: 32px;
  line-height: 42px;
  padding: 0 0 20px 0;
}
.about-ceo-text p {
  margin-bottom: 20px;
}

.about-different {
  background: #f4f4f4;
  padding: 60px 0;
}
.about-different-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-different-title {
  font-size: 26px;
  line-height: 36px;
}
.about-services-btn {
  padding: 14px 36px;
  font-weight: 600;
  font-family: var(--font-body);
}
.about-different-grid {
  display: flex;
  padding-top: 40px;
}
.about-diff-item {
  width: 25%;
  padding: 0 15px 0 0;
}
.about-diff-item + .about-diff-item {
  padding-left: 15px;
}
.about-diff-icon {
  display: block;
}
.about-diff-icon img {
  width: 55px;
  height: 55px;
}
.about-diff-title {
  font-size: 17px;
  line-height: 27px;
  color: var(--color-heading);
  padding: 12px 0 8px;
}
.about-diff-text {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 26px;
  padding-right: 15px;
  font-weight: 400;
}

.about-why {
  padding: 120px 0 195px;
}
.about-why-grid {
  display: flex;
  /* align-items: center; */
}
.about-why-text {
  width: 50%;
  padding-right: 15px;
}
.about-why-title {
  font-size: 32px;
  line-height: 42px;
  padding-bottom: 31px;
}
.about-why-item {
  background: url("../assets/images/right-icon.png") top left no-repeat;
  margin-bottom: 25px;
}
.about-why-item:last-child {
  margin-bottom: 0;
}
.about-why-item-title {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-heading);
  margin-top: -8px;
  padding: 0 0 8px 20px;
}
.about-why-item-text {
  padding-right: 10px;
}
.about-why-media {
  width: 50%;
  padding-left: 15px;
}
.about-why-media img {
  width: 485px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ========================================================================== 
   WORK CULTURE PAGE
   ========================================================================== */
.workculture-banner {
  display: flex;
  align-items: center;
  height: 380px;
  background-image: url("../assets/images/office-working-header.webp");
}
.workculture-banner-inner { width: 100%; max-width: 1400px; }
.workculture-banner h1 { color: #fff; font-size: 45px; line-height: 50px; }
.workculture-breadcrumb .container { padding-right: 10px; padding-left: 10px; }
.workculture-breadcrumb-list { gap: 16px; }
.workculture-breadcrumb-list li { color: #191919; }
.workculture-breadcrumb-list a { color: #000; }
.workculture-breadcrumb-step { display: flex; align-items: center; gap: 19px; }
.workculture-breadcrumb-step svg { flex: 0 0 6px; color: #6d6d6d; }
.workculture-intro { padding: 60px 0 0; }
.workculture-intro-grid { display: flex; align-items: flex-start; max-width: 1170px; }
.workculture-copy { width: 75%; padding: 25px 15px 0; }
.workculture-copy h2 { font-size: 26px; line-height: 36px; margin-bottom: 15px; }
.workculture-copy p { width: calc(100% - 10px); font-family: var(--font-body); font-size: 16px; line-height: 26px; }
.workculture-checks { margin: 16px 0; }
.workculture-checks li { position: relative; padding-left: 23px; margin-bottom: 8px; }
.workculture-checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-primary); font-weight: 600; }
.workculture-perks { width: 25%; padding: 0 15px; }
.workculture-perk { margin-bottom: 2px; padding: 12px 20px; border-radius: 4px; background: #f4f4f4; color: var(--color-heading); font-family: var(--font-heading); font-size: 15px; font-weight: 500; line-height: 23px; }
.resume-card { margin-top: 40px; padding: 45px 35px; border-radius: 4px; color: #fff; background: url("../assets/images/submit-your-resume-bg.webp") center right / auto no-repeat; }
.resume-card h3 { color: #fff; font-size: 17px; line-height: 27px; padding-bottom: 8px; margin-bottom: 20px; }
.resume-card p { color: #fff; font-size: 16px; line-height: 26px; text-align: justify; padding-bottom: 11px; margin-bottom: 20px; }
.resume-card a { display: block; color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 26px; }
.workculture-gallery { padding: 28px 0 60px; }
.workculture-gallery-inner { width: min(885.5px, calc(75% - 14.5px)); margin-left: max(15px, calc((100% - 1170px) / 2)); margin-right: auto; }
.workculture-gallery h2 { font-size: 40px; line-height: 50px; margin: 0 0 10px 15px; }
.workculture-feature { display: grid; grid-template-columns: 50% 50%; align-items: center; margin-bottom: 30px; }
.workculture-feature img { width: 404px; max-width: calc(100% - 15px); border-radius: 4px; margin-left: 15px; }
.media-shift-left img { transition: transform 0.3s ease-in-out; }
.media-shift-left:hover img { transform: translateX(-10px); }
.workculture-feature > div { margin-left: 25px; }
.workculture-feature h3 { font-size: 20px; line-height: 27px; }
.workculture-feature p { width: calc(100% - 20px); color: #191919; margin-top: 10px; }
