/* ==========================================
   MOBILE MENU STYLING (Figma Match)
   ========================================== */
@media (max-width: 991px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 75vh;
    background-color: #4A4363 !important;
    /* z-index: 2000; */
    transition: right 0.3s ease;
    padding: 2rem 2rem;
    overflow-y: auto;
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-brand-name {
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    /* letter-spacing: 1px; */
    text-transform: uppercase;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .mobile-menu-links {
    list-style: none;
    /* padding: 0; */
    margin-top: 2rem;
    text-align: left;
  }

  .mobile-menu-links li {
    /* margin-bottom: 2rem; */
  }

  .mobile-menu-links li a {
    display: block;
    font-family: "Afacad", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    transition: color 0.3s ease;
  }

  .mobile-menu-links li a:hover {
    color: #00B4BD;
  }
}

@media (max-width: 768px) {
  .tile.img-fluid {
    width: 100% !important;
    /* max-width: 340px !important; */
    /* height: auto !important; */
    margin-left: 10px !important;
  }

  .tile {
    min-height: 0 !important;
  }

  h3.highlight-case.title.text-start.mt-0.text-white {
    padding-left: 0px !important;
  }

  .solutions-home {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .section-titles {
    white-space: pre-line !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .learn-case-btn {
    /* display: block !important; */
    text-align: left !important;
    margin-left: -165px !important;
    margin-top: 20px !important;
  }

  .highlight-case {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .solutions-home {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .hero-badges-mobile {
    margin-top: 50px !important;
    margin-left: 50px !important;
  }

  .hero-title .big-text {
    text-align: left !important;
    margin-left: 0.5rem !important;
  }

  section#journey {
    /* padding-top: 10px !important; */
    z-index: 9;
    top: -134px;
  }
}

/* Color for the animated roles */
.text-peach {
  color: white !important;
}

.typed-cursor {
  font-weight: 200;
  color: inherit;
}

a.btn-get-started:hover {
  background-color: #00B4BD !important;
  color: #ffffff !important;
  border-color: #00B4BD !important;
}

@media (min-width: 992px) {
  .solution-cards {
    margin-top: 6rem;
  }

  .journey-section {
    margin-top: 5rem;
  }
}

/* Mobile Case Cards Styles */
@media (max-width: 991px) {
  .case-card-mobile {
    background: #231f3a;
    border: 1.5px solid #fff;
    border-radius: 18px;
    width: 90vw;
    max-width: 100%;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.07);
  }

  .case-card-inner-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .case-card-title-mobile {
    color: #fff;
    font-family: 'Poppins', 'Afacad', Arial, sans-serif;
    font-size: 1.30rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.1rem;
    line-height: 1.2;
    text-align: start;
  }

  .case-card-img-mobile {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 991px) {
  .about-section .section-title {
    text-align: left !important;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --pc1: #8df9c3;
  --pc2: #F9AC8D;
  --pc3: #8df9c3;
  --pc4: #4A4363;
  --bg-primary: #4048D1;
  --bg-dark: #262138;
  --accent-teal: #00B4BD;
  --text-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Afacad", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-white);
  padding-top: 80px;
  /* Offset for fixed header */
}

a {
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.3s ease;
}

/* a:hover {
  color: #ddd;
} */

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
.title,
.hero-title,
.section-title,
.section-Title,
.solutions-tag,
.tagline {
  font-family: "Unbounded", sans-serif;
}

.tagline {
  font-size: 1vw;
}

/* Auto-type animation text */
.auto-type {
  font-size: clamp(0.8rem, 0.9vw, 1rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.1 !important;
  display: inline-block;
}

/* ==========================================================================
   3. TRANSPARENT HEADER & NAVIGATION - FIGMA PERFECT
   ========================================================================== */


/* Mobile Header - Keep existing mobile styles */
@media (max-width: 991px) {

  /* Bring up ABOUT US section in mobile view */
  #about,
  .about-section {
    margin-top: -5px !important;
    padding-top: 0 !important;
    padding-left: 20px !important;
  }

  .site-header {
    background-color: #4845E4;
    padding: 1rem 1.5rem;
  }
}

/* Mobile Logo */
.mobile-logo {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* Left Navigation Links */
.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: Poppins, sans-serif;
  color: #fff;
}

.header-nav a:hover {
  color: #00B4BD;
  font-size: 20px;
  font-weight: 400;
}


/* The Header Logo itself (hidden initially, destination for animation) */
#header-logo {
  width: 70px;
  height: auto;
  opacity: 0;
  /* Invisible but takes up space */
}

.icon-arrow {
  width: 40px;
  height: 40px;
  background-color: #0E00BF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.icon-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   4. HERO SECTION - FIGMA PERFECT
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 20px 50px;
}

/* Hero Logo Container */
#hero-logo-container {
  margin-bottom: 2rem;
}

/* Main Title */
.hero-title {
  line-height: 1.1;
  margin-bottom: 3rem;
  width: 100%;
}

.hero-title .small-text {
  display: block;
  font-size: 5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  text-transform: none;
  /* margin-left: 2rem; */
}

.hero-title .big-text {
  text-transform: uppercase;
  margin-left: 0px !important;
}

/* Desktop - align "We are" to left */
@media (min-width: 992px) {
  .hero-title {
    text-align: left;
    padding-left: 5vw;
  }

  .about-text {
    font-size: 20px !important;
    font-family: 'Poppins', sans-serif !important;
  }

  .solutions-home {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    margin-top: -18px !important;
  }

  .jcard-home.active .stageno-home,
  .jcard-home:hover .stageno-home {
    display: none !important;
  }

  .jcard-home.active .stageno-home,
  .jcard-home.active .jcard-home-title {
    display: none !important;
  }

  .jcard-home.active .jimg,
  .jcard-home.active .stageno-home {
    display: none !important;
  }

  .jcard-home.active .jcard-home-text {
    display: block !important;
  }

  .stageno-home {
    display: none !important;
  }
}



.hero-title .big-text {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Unbounded", sans-serif;
  margin-left: 2rem;
}

.hero-badges-desktop {
  flex-direction: column;
  align-items: flex-start;
  padding-left: 135px;
  margin-top: -18px;
  /* Pull up to overlap bottom-left of text */
  position: relative;
  z-index: 10;
}

.badge-desktop {
  color: #F9AC8D;
  border: 1px solid #F9AC8D;
  background-color: transparent;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 24px);
  padding: 0.5em 1.8em;
  border-radius: 50px;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.3s ease;
}

.badge-desktop:hover {
  background-color: rgba(249, 172, 141, 0.1);
  transform: scale(1.05);
}

.hero-badges-desktop .badge-desktop:nth-child(1) {
  transform: rotate(0deg);
  margin-left: 0;
  /* margin-bottom: 5px; */
}

.hero-badges-desktop .badge-desktop:nth-child(2) {
  transform: rotate(0deg);
  margin-left: 60px;
}

.hero-badges-desktop .badge-desktop:nth-child(3) {
  transform: rotate(11deg);
  margin-left: -15px;
  margin-top: 5px;
}

.hero-badges-mobile {
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 20px;
}

.badge-mobile {
  color: #F9AC8D;
  border: 1px solid #F9AC8D;
  background-color: transparent;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 100px;
  white-space: nowrap;
  display: inline-block;
}

.hero-badges-mobile .badge-mobile:nth-child(1) {
  transform: rotate(0deg);
  margin-left: 0;
  margin-bottom: 2px;
  margin-top: -50px;
}

.hero-badges-mobile .badge-mobile:nth-child(2) {
  transform: rotate(2deg);
  margin-left: 45px;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .badge-mobile {
    font-family: Poppins;
    font-weight: 400;
    font-size: 18.43px;
  }
}

.hero-badges-mobile .badge-mobile:nth-child(3) {
  transform: rotate(12deg);
  margin-left: -1px;
  margin-top: -1px;
}


.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 1999;
  transition: all 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  padding: 10px !important;
  margin-top: 72px;
}

.mobile-menu-links li a {
  display: block;
  font-size: 1.5rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  position: absolute;
  top: 15px;
  right: 20px;
}

/* ==========================================
   DISCOVER BUTTON (Desktop)
   ========================================== */

/* 1. Positioning Container */
.discover-container {
  position: absolute;
  bottom: -75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  justify-content: center;
}

/* 2. The Link Wrapper */
.discover-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Hover Animation (Bobbing effect) */
/* .discover-btn:hover {
  transform: translateY(5px);
} */

/* 3. "Discover" Text */
.discover-text {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

/* 4. The Peach Circle Icon */
.discover-icon {
  width: 36px;
  height: 36px;
  background-color: #F9AC8D;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.discover-btn:hover .discover-icon {
  background-color: #ffbd9e;
}

/* 5. SVG Arrow Styling */
.discover-icon svg {
  stroke: #ffffff;
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   4. COMPONENTS (Buttons, Badges, Cards)
   ========================================================================== */
/* Pills / Buttons */
.pill {
  border: 1px solid #fff;
  border-radius: 50px;
  padding: 0.5vw 1.5vw;
  font-size: clamp(14px, 1.1vw, 18px);
  cursor: pointer;
  display: inline-block;
  background: transparent;
  color: white;
  font-family: Poppins, sans-serif;
}

.pill:hover {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
  color: white;
  font-family: Poppins, sans-serif;
}

/* Learn More Button */
.learn-more-btn {
  border: 1px solid #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 400 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif !important;
}

.learn-more-btn:hover {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
  color: white;
}

.learn-more-icon {
  transition: transform 0.3s ease;
}

.learn-more-btn:hover .learn-more-icon {
  transform: translate(2px, -2px);
}


.header-actions {
  /* display: flex; */
  align-items: center;
  gap: 1rem;
}

/* ==========================================
   SOLUTION CARD IMAGE TOGGLE
   ========================================== */

/* Smooth transition for image swap */
.solution-card-toggle-image {
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}

/* Desktop: Hover effect wrapper */
@media (min-width: 769px) {
  .solution-card-image-wrapper {
    cursor: pointer;
  }
}

/* Mobile: Visual feedback for tap/active state */
@media (max-width: 768px) {
  .solution-card-toggle-image.active {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }
}

/* ==========================================
   BADGES - FIGMA ALIGNMENT (Stacked & Staggered)
   ========================================== */

/* 1. Container - Left Aligned */
.keywords-section {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.keywords {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* 2. Shared Badge Style (Peach Color) */
.badge {
  color: #F9AC8D !important;
  border: 2px solid #F9AC8D !important;
  background-color: transparent !important;

  font-family: "Afacad", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  padding: 0.6em 2.2em;
  border-radius: 100px;

  white-space: nowrap;
  display: inline-block;
  transition: all 0.3s ease;
}

.badge:hover {
  background-color: rgba(249, 172, 141, 0.15) !important;
}

/* 3. Exact Positioning - Horizontal Staggered Stack */

/* Top: "Insight Beyond" - Starts at left, rotated */
.bd1 {
  transform: rotate(-8deg);
  margin-left: -50px;
  margin-bottom: -15px;
  align-self: flex-start;
}

/* Middle: "Automation" - Center, slight rotation, overlaps */
.bd2 {
  transform: rotate(3deg);
  margin-left: 120px;
  margin-bottom: -15px;
  align-self: flex-start;
}

/* Bottom: "Cloud Architects" - Left again, strong rotation */
.bd3 {
  transform: rotate(-12deg);
  margin-left: -20px;
  margin-top: 0;
  align-self: flex-start;
}

/* Cards */
.solution-cards {
  background-color: var(--accent-teal);
  border-radius: 20px;
  height: 100%;
  min-height: 250px;
  padding: 2rem;
  /* transition: transform 0.3s; */
  cursor: pointer;
}



/* Ensure anchor links wrapping solution-cards are fully clickable */
a.text-decoration-none:has(.solution-cards) {
  display: block;
  height: 100%;
  cursor: pointer;
}

/* Mobile active state for solution cards */
@media (max-width: 768px) {
  .solution-cards.active {
    background-color: #00a0a8 !important;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 180, 189, 0.3);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
  }
}

.Scard {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Journey Cards */
.jcard-home {
  border: 1px solid var(--pc2);
  border-radius: 20px;
  padding: 2vw;
  text-align: left;
  background: transparent;
  transition: all 0.3s;
  cursor: default;
}

.jcard-home:hover {
  background-color: var(--bg-primary);
}

.jcard-home-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  margin-top: 1rem;
}

.jcard-home-text {
  font-size: 18px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-family: Poppins, sans-serif !important;
  padding-top: 20px;
}

.jcard-home:hover .jcard-home-text {
  opacity: 1;
  height: auto;
  margin-top: 1rem;
  font-family: Poppins, sans-serif !important;

}

.jcard-home-title {
  font-size: 28px !important;
  font-family: Poppins, sans-serif !important;
}

.jcard-home:hover .jcard-home-title,
.jcard-home:hover .stageno-home {
  display: none;
}

a.pill.learn-case-btn.text-decoration-none {
  font-family: Poppins, sans-serif !important;
  margin-top: 20px;
}

/* ==========================================================================
   5. SECTIONS
   ========================================================================== */
.bgc {
  background-color: var(--bg-primary);
}

.content-pad {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 80vh;
  z-index: 1;
  margin-top: 100px !important;
}

.hero-logo {
  width: 35vw;
  max-width: 300px;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 2.25rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 70px;
  margin-top: 70px;
  font-family: Poppins, sans-serif !important;
}

/* Solutions */
.solutions-section {
  /* margin-top: -5rem; */
  /* Overlap effect */
  /* padding-top: 8rem; */
  position: relative;
  z-index: 2;
}

.solutions-tag {
  color: var(--pc2);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 3rem;
}

/* Journey */
.journey-section {
  background-color: var(--bg-dark);
  position: relative;
  padding-top: 375px !important;
}

/* About */
.about-section {
  background-color: var(--bg-dark);
  padding: 5rem 0;
}

/* Case Studies */
.case-study {
  background-color: var(--bg-dark);
  /* padding-bottom: 5rem; */
}

.fcase {
  border: 1px solid white;
  border-radius: 20px;
  background: transparent;
  transition: background 0.3s;
}

.fcase:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* CTA */
.cta-section {
  background-color: var(--bg-dark);
  padding: 5rem 0;
}

.cta-mod {
  background-color: var(--accent-teal);
  border-radius: 30px;
  padding: 3rem;
}

.cta-left {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 40px;
  color: #262138;
}

.cta-btn {
  border: 1px solid #000;
  color: #000;
}

a.pill.cta-btn.text-decoration-none {
  font-family: Poppins;
  font-weight: 400;
  font-size: 18px;
}

.cta-btn:hover {
  /* background-color: var(--bg-dark); */
  color: #000;
  border: 1px solid #000;
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* padding: 100px 0 !important; */
}


/* .fw-bold {
  font-size: 20px !important;
  font-family: Poppins, sans-serif !important;
} */

ul.list-unstyled {
  font-family: Poppins, sans-serif !important;
  font-size: 20px !important;
}

/* p.title.text-white.fw-bold.h3 {
  font-size: 57px !important;
  font-family: "Unbounded", sans-serif !important;
  font-weight: 500 !important;
} */

.footer p {
  font-size: 57px !important;
  font-weight: 500 !important;
  font-family: "Unbounded", sans-serif !important;
  line-height: 100% !important;
}

a.text-white.text-decoration-none {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 20px !important;
}

a.text-white.text-decoration-none:hover {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 20px !important;
}

/* Hiding Scrollbar utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Devices (Max width 991px - Covers Tablets & Phones) */
@media (max-width: 991px) {
  .auto-type {
    display: none !important;
  }

  .mobile-hero-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
  }

  .hero-logo {
    width: 50vw;
    margin-bottom: 2rem;
  }

  .keywords {
    flex-direction: column;
    gap: 15px;
  }

  .bd1,
  .bd2,
  .bd3 {
    transform: none;
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .badge {
    font-size: 14px;
    padding: 3px 16px;
  }

  .solution-cards {
    min-height: 200px;
  }

  /* Horizontal Scroll Containers on Mobile */
  .journey-section .row,
  .case-cards .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .journey-section .col-10,
  .case-cards .col-10 {
    flex: 0 0 85%;
    /* Cards take up 85% width on mobile */
  }

  .jcard-home {
    height: 350px;
    /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Reveal text always on mobile if wanted, or keep hover logic */
  .jcard-home .jcard-home-text {
    display: block;
    opacity: 0.8;
    height: auto;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .jcard-home .jcard-home-title {
    display: block;
  }

  .jcard-home:hover .stageno-home {
    display: block;
  }

  /* CTA Section Mobile */
  .cta-mod {
    padding: 2rem 1.5rem;
  }

  .cta-left {
    text-align: left;
    margin-bottom: 1rem;
  }

  /* Footer stacking */
  .footer-fx {
    text-align: left;
  }

  footer .footer-logo {
    text-align: center;
    margin-bottom: 2rem;
    margin-left: 105px;
  }

  .solutions-home {
    margin-top: -100px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 480px) {
  .content-pad {
    padding: 0px 10vw !important;
  }

  .tagline {
    font-size: 2rem;
  }

  .mobile-hero-title {
    font-size: 2.5rem;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 59%;
    margin: 0 auto;
  }

  .hero-desc br {
    display: none !important;
  }

  .about-text {
    font-size: 18px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    margin-top: -20px !important;
  }

  .justify-content-center.text-center.d-flex.gap-2.mt-4 {
    align-items: center !important;
  }

  .mobile-menu {
    width: 80%;
    height: 92vh;
  }

  .mobile-menu-header,
  .mobile-menu-links li a {
    border-bottom: none;
  }

  .mobile-menu-close {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {

  .about-section,
  .about-section * {
    text-align: left !important;
  }

  .hero-desc {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    margin-top: 60px !important;
  }

  .hero-desc br {
    display: none !important;
  }

  svg.wave-animation-svg {
    top: 180px !important;
  }

  path#wavePath {
    stroke-width: 55 !important;
  }

  .solutions-tag {
    font-size: 20px !important;
    font-weight: 500 !important;
    font-family: poppins, sans-serif !important;
    padding-left: 0px !important;
  }

  h2.section-title.text-start.ps-3 {
    font-size: 26px !important;
    padding: 0 !important;
  }

  h2.section-title.text-start.ps-3 br {
    display: none !important;
  }

  h3.Scard.text-start.py-2 {
    font-size: 33px !important;
  }

  .metrics-title.counter {
    font-size: 36px !important;
  }

  .section-title {
    font-size: 1.85rem !important;
    font-weight: 450 !important;
    padding-top: 50px !important;
  }

  .col-12.col-md-6.col-lg-4.p-3.mt-4 {
    padding: 0px !important;
    position: relative;
  }

  #about,
  .about-section {
    padding-left: 0px !important;
  }

  .about-section {
    padding: 5rem 0 0 !important
  }

  .row.text-center.py-4.align-items-center {
    padding-top: 0px !important;
  }

  .tile.img-fluid {
    margin-left: 0px !important
  }

  h3.highlight-case.title.text-right.mt-0.text-white {
    padding-left: 0px !important;
    margin: 30px 0 20px !important;
  }
}

/* ==========================================
   LOGO SCROLL ANIMATION STYLES
   ========================================== */

/* The moving logo during animation */
.logo-fixed {
  position: fixed !important;
  z-index: 2000;
  pointer-events: none;
}

/* Placeholder to keep layout stable */
.logo-placeholder {
  opacity: 0;
  visibility: hidden;
  display: block;
  width: 45vw;
  max-width: 500px;
}

/* ==========================================
   RESPONSIVE STYLES - SAME UI SCALING
   ========================================== */

@media (max-width: 1200px) {
  .hero-title .big-text {
    font-size: 5.5rem;
  }

  .header-nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .highlight-case {
    padding-left: 20px !important;
  }

  .btn-get-started {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .metrics-title {
    font-size: 2.2rem !important;
  }

  .mtext {
    font-size: 0.8rem !important;
  }

  /* Mobile tap hover effect for .jcard-home */
  .jcard-home.active {
    background: #4048D1 !important;
    border: 2px solid #F9AC8D !important;
    box-shadow: 0 4px 24px rgba(64, 72, 209, 0.18) !important;
    color: #fff !important;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
  }

  .jcard-home.active .jcard-home-title,
  .jcard-home.active .jcard-home-text {
    color: #fff !important;
  }

  .jcard-home.active .stageno-home {
    .jcard-home .stageno-home {
      display: none !important;
    }

    color: #F9AC8D !important;
  }

  .jcard-home.active .jimg {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg);
  }

  .hero-title .small-text {
    font-size: 2rem;
  }

  .hero-title .big-text {
    font-size: 4.5rem;
  }

  .logo-placeholder {
    width: 45vw;
  }
}

@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  /* Scale down header elements */
  .mobile-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  }

  .mobile-expanded {
    max-height: 1000px;
    /* Arbitrary large height for transition */
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
  }

  .header-nav ul {
    gap: 0.8rem;
  }

  .header-nav a {
    font-size: 0.8rem;
  }

  #header-logo {
    width: 45px;
  }

  .btn-get-started {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .ico {
    height: auto !important;
    width: auto !important;
  }

  .icon-arrow {
    width: 32px;
    height: 32px;
  }

  /* Hero section mobile - align left */
  .hero-section {
    align-items: center;
    text-align: center;
    margin-top: 60px !important;
    padding: 0px !important;
  }

  .hero-title {
    text-align: center;
  }

  /* Hero logo mobile - center and increase size */
  #hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo-placeholder {
    width: 70vw;
    max-width: none;
  }

  /* Scale down hero elements */
  .hero-title .small-text {
    font-size: 42px !important;
    text-align: center;
    margin-left: 0;
  }

  .hero-title .big-text {
    font-size: 40px !important;
    text-align: center !important;
    /* margin-left: 1rem; */
    margin-bottom: 0px !important;
  }

  /* Keep staggered look but scale down spacing */
  .bd2 {
    margin-left: 30px;
  }

  .bd3 {
    margin-left: 5px;
  }

  .badge {
    font-size: 14px;
    padding: 6px 16px;
  }

  /* Discover button mobile adjustments */
  .discover-container {
    bottom: -10px;
    margin-top: 50px !important;
  }

  .discover-text {
    font-size: 20px;
  }

  .discover-icon {
    width: 30px;
    height: 30px;
  }

  section#discB {
    min-height: 0px !important;
  }

  .discover-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {

  /* Minimal spacing for very small screens */
  .site-header {
    padding: 0.8rem 2%;
  }

  .header-nav ul {
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .hero-title .big-text {
    font-size: 1.8rem;
  }

  .badge {
    margin: 5px !important;
  }

  h3.Scard.text-start.py-2 {
    font-size: 39px !important;
    font-family: Poppins !important;
  }

  svg.wave-animation-svg {
    top: 50px !important;
  }

  .solutions-tag {
    margin-bottom: 1.5rem !important;
  }

  h2.section-titles {
    font-size: 26px !important;
    white-space: pre-line !important;
    line-height: 1.3 !important;
    text-align: left !important;
    /* padding: 0 65px; */
    width: 70%;
  }

  .col-10.col-md-5.col-lg-3 {
    padding: 0 23px !important;
  }

  .hamburger-line {
    width: 35px;
    height: 2px;
  }
}

/* ==================================================
   FOOTER STYLES - FULL EXTRACT FROM about.html
================================================== */

.footer ul li,
.footer a,
.contact-info li {
  font-size: 20px !important;
  line-height: 1.5;
}

img.img-fluid.mb-2.footer-logo {
  margin-left: 95px;
  margin-top: 30px;
}

@media (max-width: 480px) {

  .footer ul li,
  .footer a,
  .footer p {
    font-size: clamp(13px, 2.8vw, 16px);
  }
}

.footer-fx {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-bottom: 40px !important;
  padding-top: 40px !important;
}

@media only screen and (min-width: 601px) and (max-width: 950px) {
  .footer-fx {
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 1.5vw;
  }

  .footer-logo {
    width: 60% !important;
    text-align: center;
  }
}

@media (min-width: 1440px) {
  .footer-fx {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* MOBILE FOOTER STYLES (from about.html) */
@media (max-width: 768px) {
  .footer {
    background-color: #4d4aeb;
    padding: 40px 20px 32px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer p {
    font-size: 37px !important;
    margin: 10px 0 !important;
  }

  .footer ul li {
    font-size: 20px !important;
  }

  .footer a {
    font-size: 20px !important;
  }

  .footer-fx {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 4rem;
  }

  .footer-logo {
    width: 50% !important;
    text-align: center;
    padding: 0;
    margin-bottom: 40px;
  }

  .cpw {
    background-color: #0000bf;
    padding: 16px 20px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 20px !important;
    font-weight: 400;
    color: #fff;
    margin: 0;
    position: relative !important;
  }
}

/* LEGACY / OVERRIDE MOBILE FOOTER (from about.html lines 2012+) */
@media (max-width: 767px) {
  .footer {
    background-color: #4d4aeb;
    padding: 40px 20px 32px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-fx {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 4rem;
  }

  .footer-logo {
    width: 100%;
    text-align: center;
    padding: 0;
    margin-bottom: 40px;
  }

  .cpw {
    background-color: #0000bf;
    padding: 16px 20px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 20px !important;
    font-weight: 400;
    color: #fff;
    margin: 0;
    position: relative !important;
  }
}

/* NEW MOBILE FOOTER SYNC (Lines 4178-4245 of about.html) */
@media (max-width: 768px) {
  .footer-sync {
    background: #4048D1;
    padding: 48px 24px;
  }

  .footer-mobile {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  /* BRAND */
  .footer-brand img {
    width: 50%;
    margin-bottom: 12px;
  }

  .brand-name {
    font-family: "Unbounded", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin: 20px 0;
  }

  /* LINKS */
  .footer-links {
    list-style: none;
    padding: 0 50px;
    margin: 0;
    text-align: start;
  }

  .footer-links li {
    margin-bottom: 18px;
  }

  .footer-links a {
    font-family: Poppins, sans-serif;
    font-size: 20px !important;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    text-align: start;
  }

  /* CONTACT + LOCATION */
  .footer-contact p,
  .footer-location p {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: start;
    padding: 0 50px;
  }

  .footer-contact .label,
  .footer-location .label {
    font-weight: 500;
    margin-bottom: 16px;
  }
}

/* =======================================================
   DESKTOP OVERLAP & CARD SIZING (Figma Match)
   ======================================================= */

@media (min-width: 992px) {

  /* 1. Adjust the Blue Section (Solutions) */
  .solutions-section {
    background-color: #4048D1;
    /* Add padding to the bottom so the cards sit low inside the blue box initially */
    padding-bottom: 250px !important;
    position: relative;
    z-index: 2;
    /* Keep on top of the dark section */
  }

  /* 2. Push the Cards Down to Create Overlap */
  .solutions-section .row {
    margin-bottom: -550px !important;
    margin-top: 6rem !important;
    display: flex;
    align-items: stretch;
  }

  .journey-section {
    background-color: #262138;
    /* padding-top: 200px !important; */
    position: relative;
    z-index: 1;
  }

  .solution-cards {
    min-height: 100px !important;
    height: 70% !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 30px !important;
    padding: 40px !important;
    padding-top: 30px !important;
    margin-top: 100px !important;
  }

  .Scard {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
    margin-bottom: 20px;
    font-family: poppins, sans-serif !important;
  }

  .solution-cards p {
    font-size: 1.5rem !important;
  }



  .solutions-tag {
    font-family: "Poppins", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    /* padding-top: 100px !important; */
  }

  .section-title {
    font-size: 40px !important;
    font-weight: 500 !important;
    padding-top: 20px !important;
  }

  .solutions-home {
    font-family: "Poppins", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    /* margin-top: 150px !important; */
  }

  .section-titles {
    font-family: "Unbounded", sans-serif !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    margin-top: 30px !important;
  }

  .jcard-home {
    min-height: 280px !important;
  }

  .stageno-home {
    margin-top: 40px !important;
  }

  .journey-section .row {
    display: flex;
    justify-content: space-between;
  }

  .journey-section .col-lg-3 {
    flex: 0 0 23% !important;
    max-width: 23% !important;
  }

  .metrics-sub {
    position: relative;
  }

  .metrics-sub:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background-color: #00B4BD;
    opacity: 0.5;
  }

  @media (max-width: 991px) {
    .metrics-sub.col-6:nth-child(2)::after {
      display: none;
    }
  }

  .highlight-case {
    font-size: 2.6rem !important;
    padding-top: 100px !important;
    display: flex;
    flex-direction: column;
  }

  .highlight-line {
    display: block;
  }

  .solutions-section .col-lg-4.d-none.d-lg-block {
    height: auto;
    display: flex;
  }

  .solutions-section .col-lg-4.d-none.d-lg-block>div {
    width: 100%;
    height: 100%;
    position: relative;
  }

  #greencardpic {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
    object-fit: cover !important;
    border-radius: 30px !important;
    position: relative;
    top: 0 !important;
  }

  .solutions-section .pill {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    /* background-color: rgba(255, 255, 255, 0.2); */
    backdrop-filter: blur(10px);
    border: 1px solid white;
    padding: 12px 30px;
    width: auto;
    white-space: nowrap;
    z-index: 10;
    font-family: Poppins, sans-serif !important;
  }
}

/* Case study card text */
.ftext {
  font-size: 1.8rem;
  line-height: -1.8;
  font-weight: 500;
  text-align: start;
  font-family: Poppins, sans-serif;
}

@media (max-width: 768px) {
  .ftext {
    font-size: 1.1rem;
  }

  .solution-cards.d-flex.flex-column.justify-content-between {
    padding: 40px 39px !important;
  }

  /* .journey-section .col-10 {
    padding: 0px !important;
  } */
}

/* CTA section text */
.cta-right {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  font-family: Poppins, sans-serif;
}

@media (max-width: 768px) {
  .cta-right {
    font-size: 1.1rem;
  }

  .case-study .mt-4.pb-5 {
    padding-bottom: 0px !important;
  }

  div#strategy-card {
    margin-top: 35px !important;
  }
}

@media (max-width: 991px) {
  .solutions-section .col-lg-4.d-none.d-lg-block {
    /* display: block !important; */
    /* width: 100% !important; */
    padding: 0 !important;
  }

  #greencardpic {
    /* display: block !important; */
  }

  .solutions-section .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: -20px !important;
    position: relative;
    z-index: 10;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .solutions-section .col-4 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Reduce gap between cards on mobile */
  .solutions-section .col-12 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    /* 10px gap */
  }

  .solutions-section {
    background-color: #4048D1;
    /* padding-bottom: 220px !important;  */
    overflow: visible !important;
    z-index: 2;
  }

  /* Overlap Card Logic */
  .journey-section {
    background-color: #262138;
    position: relative;
    z-index: 1;
    padding-top: 240px !important;
  }

  @media (min-width: 992px) {
    .overlap-card {
      position: relative;
      top: 140px;
      /* Push card down to overlap */
      z-index: 10;
    }
  }

  @media (max-width: 991px) {
    .journey-section {
      padding-top: 100px !important;
    }

    .overlap-card {
      top: 0;
      margin-bottom: 20px;
    }
  }

  .solution-cards,
  #greencardpic {
    width: 100% !important;
    min-height: 480px !important;
    height: auto !important;
    border-radius: 30px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
  }

  .solution-cards {
    background-color: #00B4BD !important;
    /* Teal */
    padding: 40px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .Scard {
    font-family: "poppins", sans-serif !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    text-align: left !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
  }

  .solution-cards p {
    font-family: "Afacad", sans-serif !important;
    font-size: 17px !important;
    font-weight: 300 !important;
    margin: 0 !important;
  }

  .solution-cards .d-flex {
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .solution-cards .ico {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background-color: #0E00BF !important;
    border-radius: 50% !important;
    padding: 5px !important;
    margin: 0 !important;
  }

  .solutions-section .col-lg-4 .position-relative a.pill {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid white !important;
    font-size: 16px !important;
    padding: 12px 30px !important;
    width: auto !important;
    z-index: 5;
  }
}

@media (max-width: 768px) {

  .section-titles {
    font-size: 26px !important;
    white-space: pre-line !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .solution-cards.d-flex.flex-column.justify-content-between {
    width: 100% !important;
  }

  .solution-cards p {
    font-size: 17px !important;
    font-family: Poppins, sans-serif !important;
  }

  .solution-cards .ico {
    padding: 0px !important;
  }

  h2.section-titles {
    padding-left: 0px !important;
  }

  .solutions-section {
    padding-top: 30px !important;
  }

  .hero-content.w-100.ps-3 {
    padding-left: 0px !important;
  }
}

@media (max-width: 991px) {
  .jcard-home {
    min-height: 40px !important;
    border-radius: 30px !important;
    background: #262138 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 20px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .jcard-home-title {
    font-family: "Unbounded", sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  .jcard-home-text {
    font-size: 1rem !important;
    color: #fff !important;
    opacity: 0.8 !important;
    margin-top: 10px !important;
    text-align: left !important;
  }

  .jcard-home img {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
  }

  .stageno-home {
    font-size: 19px !important;
    color: #C5C5C5 !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }
}

@media (max-width: 991px) {

  .solution-cards,
  #greencardpic,
  .jcard-home {
    min-height: 240px !important;
    width: 260px !important;
  }

  .jcard-home-text {
    display: none !important;
    transition: opacity 0.3s;
  }

  .jcard-home.active .jcard-home-text {
    display: block !important;
    opacity: 1 !important;
  }
}

@media (min-width: 992px) {
  .jcard-home-text {
    display: block !important;
    opacity: 1 !important;
    transition: opacity 0.3s;
  }

  .jcard-home:hover .jcard-home-text {
    opacity: 1 !important;
    filter: drop-shadow(0 2px 8px rgba(64, 72, 209, 0.12));
  }
}

@media (max-width: 768px) {
  .jcard-home {
    width: 100% !important;
    padding: 20px 40px !important;
  }

  .jcard-home:hover .jcard-home-title,
  .jcard-home:hover .stageno-home {
    display: block !important;
  }

  .jcard-home .jcard-home-title {
    font-weight: 400 !important;
  }

  .journey-section .col-10,
  .case-cards .col-10 {
    padding: 0 30px !important;
  }

  .journey-section .row,
  .case-cards .row {
    gap: 0px !important;
  }

  .solutions-home {
    margin-top: 0px !important;
    padding-left: 0px !important;
    padding-bottom: 30px !important;
  }

  .about-section .solutions-home {
    margin-top: 80px !important;
    padding-left: 0px !important;
    padding-bottom: 30px !important;
  }

  .case-study .solutions-home {
    margin-top: 80px !important;
    padding-left: 0px !important;
    padding-bottom: 30px !important;
  }

  .about-section .section-title {
    padding: 20px 0px 50px !important
  }

  .about-text br {
    display: none !important;
  }

  .mtext {
    font-size: 13px !important;
  }

  a.pill.learn-case-btn.text-decoration-none {
    padding: 10px 20px !important;
    margin-right: 90px !important;
  }

  .case-card-title-mobile {
    font-size: 28px !important;
  }

  a.pill.view-all-btn.text-decoration-none {
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-family: Poppins !important;
  }

  a.pill.cta-btn.text-decoration-none {
    padding: 10px 20px !important;
    font-family: Poppins !important;
  }

  .col-10.col-md-5.col-lg-3 {
    padding: 0 23px !important;
  }
}


/* ==========================================
   MOBILE FIX — SOLUTION CARD FRONT, JOURNEY BACK
   EXACT FIGMA MATCH (≤768px)
   ========================================== */
@media (max-width: 768px) {

  /* Ensure solutions section stays in front (cards on top) */
  .solutions-section {
    position: relative;
    z-index: 20;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    /* Reset, using card margin instead */
  }

  /* Bring solution cards forward */
  .solutions-section .solution-cards {
    position: relative;
    z-index: 25;
  }

  /* Reset journey section movement */
  section#journey {
    position: relative;
    top: 0 !important;
    z-index: 10;
  }

  /* Ensure journey background stays behind */
  .journey-section {
    position: relative;
    z-index: 10;
    padding-top: 260px !important;
    margin-top: 55px !important;
    /* Padding accommodates the overlap */
  }

  /* Overlap Card Logic: Negative margin pulls parent height up, allowing card to hang */
  .overlap-card {
    position: relative;
    top: 0 !important;
    margin-bottom: -150px !important;
    /* Card hangs 150px below blue section */
  }
}

/* ==========================================
   PARALLAX TILE EFFECT
   ========================================== */
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
  /* Will take height of container */
  border-radius: 30px;
  display: block;
  /* Ensure it behaves like a block */
}

/* Specific fix for hero banners to ensure they scale correctly */
.hero-banner-tile {
  width: 100%;
  padding-bottom: 66%;
  /* Aspect ratio hack if needed, or rely on min-height */
  min-height: auto;
  /* Let content dictate or use specific height */
}

.tile .photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

@media (max-width: 768px) {
  .mobile-hide-photo .photo {
    display: none !important;
  }
}


@media (min-width: 769px) {
  .desktop-opacity-0 {
    opacity: 0 !important;
    pointer-events: none;
  }
}



/* ==========================================
   SMALL DEVICES (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {

  /* --- UI Alignment Match from 768px --- */
  .tile.img-fluid {
    width: 100% !important;
    /* margin-left: 10px !important; */
    margin: 0 0 40px;
  }

  .tile {
    min-height: 0 !important;
  }

  h3.highlight-case.title.text-start.mt-0.text-white {
    padding-left: 0px !important;
  }

  .solutions-home {
    text-align: left !important;
    /* padding-left: 18px !important; */
  }

  .section-titles {
    white-space: pre-line !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .learn-case-btn {
    text-align: left !important;
    margin-left: -165px !important;
    margin-top: 20px !important;
  }

  .highlight-case {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .hero-badges-mobile {
    margin-top: 50px !important;
    margin-left: 100px !important;
  }

  .hero-title .big-text {
    text-align: center !important;
    margin-left: 0.5rem !important;
    font-size: 38px !important;
  }

  section#journey {
    z-index: 9;
    top: -134px;
  }

  /* --- General Typography & Spacing --- */
  .hero-desc br,
  h2.section-titles br,
  .about-text br {
    display: none;
  }

  .hero-title .small-text {
    font-size: 30px !important;
  }

  h2.cta-left.text-start {
    font-size: 30px !important;
  }

  .cpw {
    font-size: 15px !important;
  }

  /* --- Spacing & Margins --- */
  .case-study .solutions-home {
    margin-top: 40px !important;
  }

  .case-cards.mt-5 {
    margin-top: 100px !important;
  }

  .cta-section {
    padding-top: 130px !important;
  }

  /* Force text alignment left for the mobile container */
  #case-studies .d-block.d-lg-none {
    text-align: left !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Reset button margins and ensure it doesn't stretch */
  a.pill.learn-case-btn.text-decoration-none {
    margin-right: 0px !important;
    margin-left: 0px !important;
    text-align: left !important;
    align-self: flex-start !important;
    font-size: 20px !important;
  }

  a.pill.view-all-btn,
  a.pill.learn-more-btn {
    font-size: 20px !important;
    font-family: 'Poppins', sans-serif !important;
  }

  a.pill.view-all-btn.text-decoration-none {
    font-size: 20px !important;
    font-family: 'Poppins', sans-serif !important;
  }

  .journey-section {
    padding-top: 230px !important;
  }

  .solution-cards.d-flex.flex-column.justify-content-between {
    padding: 40px 43px !important;
  }

  .jcard-home {
    padding: 34px 36px !important;
  }

  /* --- Mobile Menu Logic --- */
  div#mobileMenuSync {
    width: 90% !important;
  }

  /* --- Hero Badges Rotation --- */
  .hero-badges-mobile .badge-mobile:nth-child(3) {
    transform: rotate(8deg);
    margin-left: -1px;
    margin-top: -1px;
  }

  /* --- Case Studies Mobile --- */
  .mobile-hidden {
    display: none;
  }

  .case-card-mobile {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.5rem 2rem 1.2rem 2rem !important;
  }

  .case-card-title-mobile {
    padding: 0 49px 0 0 !important;
    font-size: 32px !important;
  }

  .case-card-img-mobile {
    height: 185px !important;
  }

  /* --- Customer Journey Interaction --- */
  /* Default State */
  .jcard-home {
    border: 1px solid #F9AC8D !important;
    background-color: #262138 !important;
    transition: all 0.3s ease-in-out;
  }

  /* Active State */
  .jcard-home.hover-active {
    background-color: #4048D1 !important;
    border-color: #4048D1 !important;
  }

  .jcard-home.hover-active .jcard-home-title,
  .jcard-home.hover-active .stageno-home,
  .jcard-home.hover-active .jcard-home-text {
    color: #ffffff !important;
  }

  /* Reveal Text on Active State */
  .jcard-home.hover-active .jcard-home-text {
    display: block !important;
    opacity: 1 !important;
  }

  /* Hide Title/Stage on Active State */
  .jcard-home.hover-active .stageno-home,
  .jcard-home.hover-active .jcard-home-title {
    display: none !important;
  }

  .jcard-home-title {
    font-size: 36px !important;
  }

  .jcard-home-text {
    font-size: 1.3rem !important;
  }

  .mtext {
    font-size: 16px !important;
  }

  h3.highlight-case.title.text-start.mt-0.text-white {
    font-size: 30px !important;
    padding: 0 0px 0 0 !important;
    text-align: left !important;
  }

  /* --- CTA Section (Ready to Engineer) --- */
  .cta-section .cta-mod {
    padding: 70px 30px !important;
    background-color: #00B4BD !important;
    border-radius: 30px !important;
  }

  h2.cta-left.text-start {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 40px !important;
    line-height: 1.1 !important;
    color: #262138 !important;
    /* Dark Navy text */
    margin-bottom: 20px !important;
    text-transform: uppercase;
  }

  h2.cta-left.text-start br {
    display: block !important;
  }

  .cta-right {
    font-size: 23px !important;
    font-family: 'Poppins', sans-serif !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
  }

  /* Get Started Button */
  a.pill.cta-btn.text-decoration-none {
    background: transparent !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    padding: 12px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    border-radius: 50px !important;
  }

  /* Override specific overrides if any */
  .hero-badges-mobile .badge-mobile:nth-child(3) {
    transform: rotate(8deg);
    margin-left: -1px;
    margin-top: -1px;
  }

  div#mobileMenuSync {
    width: 90% !important;
  }

  .tile.img-fluid {
    height: 245px !important;
  }

  .cpw {
    font-size: 15px !important;
  }

  .brand-name {
    font-size: 46px !important;
  }

  .row.py-5.mt-4 {
    margin-bottom: -1px !important;
  }

  .case-study .mt-4.pb-5 {
    margin-bottom: -1px !important;
  }
}

/* ==========================================
   ULTRA-SMALL DEVICES (max-width: 360px)
   ========================================== */
@media (max-width: 320px) {

  /* --- UI Alignment Match from 768px --- */
  .tile.img-fluid {
    width: 100% !important;
    margin-left: 10px !important;
  }

  .tile {
    min-height: 0 !important;
  }

  h3.highlight-case.title.text-start.mt-0.text-white {
    padding-left: 0px !important;
  }

  .solutions-home {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .section-titles {
    white-space: pre-line !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .learn-case-btn {
    text-align: left !important;
    margin-left: -165px !important;
    margin-top: 20px !important;
  }

  .highlight-case {
    text-align: left !important;
    padding-left: 18px !important;
  }

  .hero-badges-mobile {
    margin-top: 50px !important;
    margin-left: 50px !important;
  }

  .hero-title .big-text {
    text-align: center !important;
    margin-left: 0.5rem !important;
    font-size: 26px !important;

  }

  section#journey {
    z-index: 9;
    top: -134px;
  }

  .hero-title .small-text {
    font-size: 24px !important;
  }

  h2.section-titles {
    font-size: 22px !important;
  }

  .Scard {
    font-size: 22px !important;
  }

  .mtext {
    font-size: 13px !important;
  }

  h3.highlight-case.title.text-start.mt-0.text-white {
    font-size: 25px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .case-card-title-mobile {
    padding: 0 !important;
    font-size: 28px !important;
  }

  .case-card-mobile {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.5rem 1rem 1.2rem 1rem !important;
  }

  .case-card-img-mobile {
    height: 155px !important;
  }

  h2.section-titles {
    font-size: 26px !important;
  }

  .brand-name {
    font-size: 30px !important;
  }

  /* Adjust Padding to prevent overflow */
  .site-header {
    padding: 0.8rem 1rem !important;
  }

  .container-fluid.content-pad {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .solution-cards .d-flex {
    gap: 5px !important;
  }

  /* Buttons */
  .pill {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
  }

  /* Journey Cards Compact Mode */
  .jcard-home {
    padding: 30px !important;
  }

  h3.Scard.text-start.py-2 {
    font-size: 33px !important;
  }

  .jcard-home-title {
    font-size: 30px !important;
  }

  .solution-cards.d-flex.flex-column.justify-content-between {
    padding: 40px 24px !important;
  }

  .cta-right {
    font-size: 21px !important;
  }
}

/* Animations - Global */
.fade-in {
  animation: fadeInEffect 0.5s ease-in-out forwards;
}

@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}