html {
  width: 100%;
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    position: relative;
  }
}

body {
  overflow-x: clip;
  width: 100%;
}

/* Scene System: Allow elements to overflow sections */
section {
  overflow: visible !important;
}

.logo-superqube {
  height: 48px;
}

.sq-mb {
  margin-bottom: calc(var(--base-h1) * 2) !important;
}

.how-we-can-help-section {
  z-index: 1;
  overflow: visible;
  background: transparent;
}

.bg-pattern-cubes {
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  z-index: -1;
  pointer-events: none;
}

.bg-pattern-cubes img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-content-overlay {
  z-index: 1;
}

.value-proposition-section {
  z-index: 1;
  overflow: visible;
  background: var(--SuperQubeBlue-L3);
}

.hero-section {
  padding: 10vh 0 0 0;
  z-index: 0;
  position: relative;
}

.hero-superqube {
  max-width: 100vw;
  position: relative;
  transform: translateY(0%);
  transition: transform 0.1s linear;
  pointer-events: none;
  will-change: transform;
}

/* Value Proposition Section */
.value-proposition-section {
  z-index: 1;
  overflow: visible;
  /* background handled inline or via utility now */
}

/* Restored detailed image positioning behavior */
.value-prop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

@media (min-width: 992px) {
  .value-prop-img {
    transform: translateX(-50%) scale(2) translateY(25%);
  }
}

.value-card {
  position: relative;
  background: color-mix(in srgb, var(--SuperQubeBlueBlack) 40%, transparent) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
  border: none !important;
  border-radius: calc(var(--icon-radius) + var(--gap-card)) !important;
  box-shadow:
    0 8px 32px var(--SuperQubeBlueBlack),
    inset 0 4px 20px color-mix(in srgb, var(--SuperQubeBlueBlack) 22%, transparent);
  transition: all 0.3s ease;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--icon-radius) + var(--gap-card)) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow:
    inset -10px -8px 0px -11px color-mix(in srgb, var(--SuperQubeBlueBlack) 100%, transparent),
    inset 0px -9px 0px -8px color-mix(in srgb, var(--SuperQubeBlueBlack) 30%, transparent);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

@media (min-width: 992px) {
  .hero-section .row {
    position: relative;
  }
}

/* Cards */
:root {
  --icon-radius: 0.5rem;
  --gap-card: 1.8rem;
  --header-height: 96px;
  /* 48px logo + 3rem (py-4) padding */
}

.card-body {
  padding: var(--gap-card) !important;
}

/* Advanced Glassmorphism for Cards */
.card.bg-light {
  position: relative;
  background: color-mix(in srgb, var(--SuperQubeBlueBlack) 40%, transparent) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 2px solid var(--SuperQubeBlue, #0b5cf9) !important;
  border-radius: calc(var(--icon-radius) + var(--gap-card)) !important;
  box-shadow:
    0 8px 32px var(--SuperQubeBlueBlack),
    inset 0 4px 20px color-mix(in srgb, var(--SuperQubeBlueBlack) 22%, transparent);
  transition: all 0.3s ease;
}

.card.bg-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border-radius: calc(var(--icon-radius) + var(--gap-card)) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow:
    inset -10px -8px 0px -11px color-mix(in srgb, var(--SuperQubeBlueBlack) 100%, transparent),
    inset 0px -9px 0px -8px color-mix(in srgb, var(--SuperQubeBlueBlack) 30%, transparent);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

.card.bg-light:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px color-mix(in srgb, var(--SuperQubeBlue) 30%, transparent),
    inset 0 4px 20px color-mix(in srgb, var(--SuperQubeBlue) 40%, transparent);
}

.card.bg-light .card-body {
  position: relative;
  z-index: 1;
  padding: var(--gap-card) !important;
}

.card-img {
  width: 100%;
  aspect-ratio: 1.618 / 1;
  overflow: hidden;
  display: flex;
  border-radius: var(--icon-radius) var(--icon-radius) 0 0 !important;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Key Insights Card - Vertical Layout */
.key-insight-card {
  flex-direction: column !important;
  overflow: hidden;
}

.key-insight-card .key-insight-img-wrapper {
  width: 100%;
  padding: var(--gap-card);
  padding-bottom: 0;
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.key-insight-card .key-insight-img-wrapper img {
  width: 64px;
  /* Icon size */
  height: 64px;
  object-fit: contain;
  position: relative;
  /* Reset absolute */
}

.key-insight-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 1rem !important;
}


/* Základní přechod pro header */

.header-transition {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background-color: transparent;
  /* Default transparent */
}

.header-solid {
  background-color: var(--SuperQubeBlueBlack, #010114) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ============================================================================
   LOGOS SWIPER SECTION (hunchads.com refined)
   ============================================================================ */

.logos-section {
  background: var(--SuperQubeBlueBlack);
  position: relative;
  overflow: hidden;
}

/* Linear timing for smooth continuous scroll */
.logos-swiper .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  -o-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}

/* Swiper container with shadow overlays */
.logos-swiper.with-shadow {
  overflow: hidden;
  height: 300px;
  /* Increased to 300px to prevent tooltip clipping (tooltip hangs ~60px below logo) */
  position: relative;
}

.logos-swiper.with-shadow::before,
.logos-swiper.with-shadow::after {
  position: absolute;
  height: 100%;
  width: 10%;
  top: 0;
  content: "";
  z-index: 5;
  pointer-events: none;
}

.logos-swiper.with-shadow::before {
  left: 0;
  background: linear-gradient(90deg, var(--sq-dark-bg, #0a0a0a) 0%, var(--sq-dark-bg, #0a0a0a) 14%, transparent 100%);
}

.logos-swiper.with-shadow::after {
  right: 0;
  background: linear-gradient(270deg, var(--sq-dark-bg, #0a0a0a) 0%, var(--sq-dark-bg, #0a0a0a) 14%, transparent 100%);
}

/* Swiper wrapper */
.logos-list.full-width {
  width: 100%;
}

/* Each slide - Fixed width from reference */
.swiper-slide.logos {
  width: 405px !important;
  margin-right: 12px;
  /* Matches reference grid-column-gap/margin */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Logo item container */
.slider-logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Removed padding to strictly follow width */
  gap: 15px;
  /* Space between badge and logo */
}

/* Logo image - uniform height */
.slider-logo {
  max-width: 180px !important;
  height: 100px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
  /* Force white color */
  opacity: 1;
  /* Default full opacity as requested */
  transition: all 0.3s ease;
}

/* Dim all logos when hovering the slider container */
.logos-swiper:hover .slider-logo {
  opacity: 0.3;
}

/* But keep the specific hovered logo fully visible */
.slider-logo-item:hover .slider-logo {
  filter: brightness(0) invert(1);
  /* Keep white on hover */
  opacity: 1 !important;
}

/* Logo link */
.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 100%;
}

/* Case Study badge */
.case-study-badge {
  position: relative;
  /* Changed from absolute to relative/static flow */
  top: auto;
  right: auto;
  z-index: 2;
  margin-bottom: 0;
  /* Handled by gap on container */
  align-self: flex-end;
  /* Align to the far right */
}

.case-study-badge>div {
  padding: 0.25rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--SuperQubeBlue, #0B5CF9);
  /* Fallback to white if var missing */
  background: var(--SuperQubeBlue-L-1, #060642);
  /* Fallback to blue */
  border: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.slider-logo-item:hover .case-study-badge>div {
  /* Optional: hover state change if desired, keeping consistent for now */
  background: var(--SuperQubeBlue-L3, #1E1ED7);
  color: var(--SuperQubeBlue-L10, #D9D9FF);
}

/* Hover tooltip (slides from bottom) */
.logo-hovered-item {
  position: absolute;
  bottom: -40px;
  /* Hidden initially */
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
  min-width: 200px;
}

.logo-hovered-item.bordered-item {
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--SuperQubeBlue, #0b5cf9);
  background: var(--SuperQubeBlue-L-1, #060642);
  border: 1px solid var(--SuperQubeBlue, #0b5cf9);
  border-radius: 1rem;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(11, 92, 249, 0.2);
}

.slider-logo-item:hover .logo-hovered-item {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  bottom: -60px;
  /* Position when visible */
}

/* Responsive */
@media (max-width: 991px) {
  .swiper-slide.logos {
    width: 280px !important;
  }

  /* Removed legacy right: 10% */
}

@media (max-width: 768px) {
  .logos-swiper.with-shadow {
    height: 160px;
  }

  /* Release fixed width on mobile for better flow */
  .swiper-slide.logos {
    width: auto !important;
    min-width: 160px;
    padding: 0 20px;
  }

  .slider-logo {
    max-width: 140px;
    height: 60px !important;
  }

  /* Removed legacy top/right offsets */
  .case-study-badge>div {
    font-size: 0.5rem;
    padding: 0.2rem 0.4rem;
  }

  /* Disable complicated hover effects on touch */
  .logo-hovered-item {
    display: none;
  }
}

/* Case Switcher Controls */
.case-study-controls {
  gap: 12px !important;
  /* Uniform gap between all circles */
}

/* Shared base for all circular controls */
.btn-circle-control,
.nav-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--SuperQubeBlueBlack, #010114);
  /* Pure black */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);

  /* Text styles */
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  /* Assuming Inter or similar */
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Hover effects */
.btn-circle-control:hover,
.nav-dot:hover {
  background: var(--SuperQubeBlueBlack);
  /* Subtle dark grey on hover */
  /* Removed lift effect as requested */
}

/* Active State for Numbers */
.nav-dot.active {
  background: var(--SuperQubeBlue-L3);
  /* Bright Blue */
  color: #FFFFFF;
  pointer-events: none;
  /* No click on active */
  cursor: default;
  transform: none;
  /* No hover lift for active */
}

/* Icon specific alignment - Double Arrow Animation */
.btn-circle-control .button-arrow-holder {
  width: 16px;
  height: 16px;
  /* Reset rotation here if needed, but handled inline for Prev */
}

/* Enable the same animation as Hero Button for the Circle Button */
.btn-circle-control:hover .button-arrow._1 {
  transform: translate3d(150%, 0, 0);
}

.btn-circle-control:hover .button-arrow._2 {
  transform: translate3d(0, 0, 0);
}

/* Animated Button Arrow */
.btn-golden-ratio {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.button-arrow-holder {
  position: relative;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Compact modifier for smaller buttons */
.btn-golden-ratio.compact {
  line-height: 1.5 !important;
  /* Force standard Bootstrap line-height */
  font-size: 1rem !important;
  /* Ensure standard text size if it was drifting */
  min-height: auto !important;
  /* Prevent min-height interference */
  display: inline-flex !important;
  /* Keep flex for alignment */
  align-items: center;
}

.btn-golden-ratio.compact .button-arrow-holder {
  width: 1em;
  height: 1em;
  transform: scale(0.75);
  margin-top: 2px;
  /* Slight optical adjustment if needed, or 0 */
  flex-shrink: 0;
  /* Prevent squishing */
}

.button-arrow {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  filter: brightness(0) invert(1);
  /* Force white arrow */
}

/* Default state: _1 is visible, _2 is hidden (waiting on Left) */
.button-arrow._1 {
  transform: translate3d(0, 0, 0);
}

.button-arrow._2 {
  transform: translate3d(-150%, 0, 0);
}

/* Hover state: _1 slides out to Right, _2 slides in */
.btn-golden-ratio:hover .button-arrow._1 {
  transform: translate3d(150%, 0, 0);
}

.btn-golden-ratio:hover .button-arrow._2 {
  transform: translate3d(0, 0, 0);
}

.collaboration-section {
  background: var(--SuperQubeBlueBlack, #010114) !important;
}

/* Super QuBE Stars Background */
#super-qube-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -30;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.star {
  position: absolute;
  top: 0;
  /* Start offscreen */
  left: 0;
  opacity: 1;
  /* Subtle visibility */
  pointer-events: none;
  will-change: transform;
}

/* Golden Ratio Sizes (Responsive) */
.star-sm {
  width: 3vw;
  filter: blur(3px);
}

.star-md {
  width: 5vw;
  filter: blur(2px);
}

/* 40 * 1.618 */
.star-lg {
  width: 8vw;
  filter: blur(1px);
}

/* SimpleQube Background (How We Can Help) */
#how-we-can-help {
  position: relative;
  z-index: 1;
  /* Establish stacking context */
  overflow: hidden;
  /* Prevent spillover */
}

.simple-qube-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  visibility: hidden !important;
}

.qube-float {
  position: absolute;
  opacity: 1;
  /* Subtle */
  width: 15vw;
  /* Responsive size base */
}

/* Positioning - Mobile First (Vertical Stack) */
.qube-float.q1 {
  top: 5%;
  left: -5%;
  /* Peek from left */
  width: 30vw;
}

.qube-float.q2 {
  top: 40%;
  right: -10%;
  /* Peek from right */
  width: 40vw;
}

.qube-float.q3 {
  bottom: 5%;
  left: -5%;
  width: 35vw;
}

/* Desktop Positioning (Horizontal Spread) */
@media (min-width: 992px) {
  .qube-float {
    width: 15vw;
    /* Smaller on desktop relative to screen */
    opacity: 1;
  }

  .qube-float.q1 {
    top: 25%;
    left: 10%;
    width: 12vw;
  }

  .qube-float.q2 {
    top: 35%;
    right: 5%;
    width: 18vw;
  }

  .qube-float.q3 {
    top: auto;
    bottom: 5%;
    left: 25%;
    width: 10vw;
  }
}

/* 65 * 1.618 */

/* Case Studies Section */
.case-studies-section {
  background-color: var(--SuperQubeBlueWhite);
  padding: 100px 0;
}

.bento-grid-container {
  background: var(--SuperQubeBlueBlack);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 0;
  /* Use Grid Stack Method for stable height */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  /* Vertically center content */
  overflow: hidden;
  /* Keep overflow hidden for animations */
}

@media (min-width: 992px) {
  .bento-grid-container {
    padding: 0;
  }
}

.case-study-slide {
  /* Stack all slides in the same cell */
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;

  /* Layout */
  padding: 30px;

  /* Visibility Control */
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 992px) {
  .case-study-slide {
    padding: 80px;
  }
}

.case-study-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
  position: relative;
  /* Default back to relative if needed, but in grid cell it doesn't matter much unless using top/left */
}

.bento-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  /* Responsive padding: 40px base, varies on lg/xl */
  /* Glassmorphism subtle */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bg-gradient-to-t-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  height: 50%;
}

/* Footer Styles */
.footer-section {
  background-color: var(--SuperQubeBlueBlack, #010114);
  font-size: 0.9rem;
}

.footer-heading {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Interactive Solution Section */
.solution-container {
  display: flex;
  width: 100%;
  gap: 12px;
  /* Small gap between cards */
  height: 60vh;
  /* approximate 4:5 ratio for active card on desktop */
  min-height: 500px;
}

.solution-expand-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  /* Initial State (Inactive) corresponds to col-2 approx behavior in flex */
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Changed from flex-end */
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Hide inline bg image so we can control opacity/blur via .solution-bg-base */
  background-color: rgba(1, 1, 20, 0.3) !important;
  background-image: none !important;
}

.solution-expand-card.active {
  /* Active State corresponds to col-4 approx */
  flex: 4;
}

.solution-card-header {
  display: flex;
  flex-direction: column-reverse;
  /* Arrow first (top), Title second (bottom) */
  justify-content: flex-start;
  align-items: stretch;
  /* Allow children to handle their own cross-axis alignment */
  width: 100%;
  position: relative;
  z-index: 2;
  gap: 1rem;
  /* Spacing between Title and Arrow */
}

.solution-expand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dark overlay (0.5 opacity effect) + Gradient for text */
  background-color: rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  transition: background-color 0.5s ease;
}

.solution-expand-card.active::before {
  background-color: transparent;
  /* Removed opacity as requested */
}

/* Base Background Image Layer */
.solution-bg-base {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  /* Above parent bg, below ::before (overlay) */
  transition: opacity 0.5s ease, filter 0.5s ease;
  pointer-events: none;
  /* Inactive State Visuals */
  opacity: 0.4;
  filter: blur(10px);
}

.solution-expand-card.active .solution-bg-base {
  opacity: 1;
  filter: none;
}

.solution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--SuperQubeBlue-L-1);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.solution-expand-card.active .solution-overlay {
  opacity: 0.5;
}

/* Inactive Centered Icon styling */
.solution-inactive-icon-center {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.solution-inactive-icon-center img {
  width: 240px;
  height: auto;
  display: block;
}

.solution-expand-card.active .solution-inactive-icon-center {
  opacity: 0;
}




.solution-expand-card h3,
.solution-expand-card h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  align-self: flex-start;
  /* Ensure Title stays Left */
}

.solution-expand-card.active h3,
.solution-expand-card.active h2 {
  font-size: 2.2rem;
  color: #fff;
}



/* Visible only on active card */
.solution-expand-card .solution-arrow-holder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-expand-card.active .solution-arrow-holder {
  opacity: 1;
}

/* Arrow Loop Animation - Smoother 1.2s transition */
/* 5s loop: 3.8s wait (0-76%), 1.2s move (76-100%) */
@keyframes arrowLoop1 {

  0%,
  76% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(150%, 0, 0);
  }
}

@keyframes arrowLoop2 {

  0%,
  76% {
    transform: translate3d(-150%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.solution-arrow-holder {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  /* Spacing from (visual) top edge */
  align-self: flex-end;
  /* Ensure Arrow stays Right */
}

.arrow-loop-1 {
  animation: arrowLoop1 5s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

.arrow-loop-2 {
  animation: arrowLoop2 5s infinite cubic-bezier(0.19, 1, 0.22, 1);
  transform: translate3d(-150%, 0, 0);
  /* Initial state matching keyframe 0% */
}

/* Inactive Icon Styles */
.solution-bottom-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}

.solution-inactive-icon {
  position: relative;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  /* Constant spacing */
  z-index: 2;
  /* Removed margin-bottom from transition to prevent jitter */
}

.solution-expand-card.active .solution-inactive-icon {
  opacity: 1;
  /* Keep visible */
  transform: none;
  pointer-events: none;
  margin-bottom: 1.5rem;
  /* Keep constant */
}

/* Card Content (Text) */
.solution-expand-card .card-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  /* When becoming inactive: Hide quickly */
  transition: opacity 0.2s ease, max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.solution-expand-card .card-content p {
  margin: 0;
  /* Prevent default margins from causing jumps */
}

.solution-expand-card.active .card-content {
  opacity: 1;
  max-height: 500px;
  /* Delay max-height to let width stabilize first */
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, opacity 0.4s ease 0.3s;
}

/* Scoped Styles for Index Page (How We Can Help) */
.how-we-can-help-section .solution-card-header {
  align-items: center;
}

.how-we-can-help-section .solution-expand-card {
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.how-we-can-help-section .solution-expand-card:hover {
  box-shadow:
    0 12px 40px color-mix(in srgb, var(--SuperQubeBlue) 30%, transparent),
    inset 0 4px 20px color-mix(in srgb, var(--SuperQubeBlue) 40%, transparent);
}

.how-we-can-help-section .solution-expand-card h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.how-we-can-help-section .solution-expand-card .solution-arrow-holder {
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}

.how-we-can-help-section .solution-expand-card.active .solution-arrow-holder {
  transform: scale(2.618);
  margin-right: 1.2rem;
}

@media (max-width: 991px) {
  .solution-container {
    flex-direction: column;
    height: auto;
  }

  .solution-expand-card {
    height: 450px;
    flex: none;
    width: 100%;
  }
}

.footer-link {
  color: var(--sq-on-dark);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: #fff;
}

.social-icon {
  color: var(--sq-on-dark);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Refactored Inline Styles */
.z-header {
  z-index: 3000 !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

.bg-sq-blue-l3-solid {
  background-color: var(--SuperQubeBlue-L3) !important;
}

#results {
  background-color: var(--SuperQubeBlueWhite) !important;
  color: var(--sq-on-light) !important;
}

#results h2,
#results .lead {
  color: var(--sq-on-light) !important;
}

.pb-dynamic-2x {
  padding-bottom: calc(var(--base-h1) * 2) !important;
}

.value-prop-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bento-card-tall {
  min-height: 450px;
}

.icon-logo-sm {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.icon-logo-md {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* CTA Section Styles */
.cta-section {
  background-color: var(--SuperQubeBlue-L3);
}

.speech-bubble-card {
  aspect-ratio: 4 / 5;
  background-color: var(--SuperQubeBlueWhite);
  border-radius: 24px;
  position: relative;
  width: 100%;
  max-width: 400px;
  /* Limit width if needed */
  margin: 0 auto;
  z-index: 10;
  overflow: visible !important;
}

.speech-bubble-tail {
  position: absolute;
  bottom: -34px;
  left: 50%;
  width: 32px;
  height: 50px;
  background-color: var(--SuperQubeBlueWhite);
  -webkit-mask-image: url(../img/icons/tail.svg);
  mask-image: url(../img/icons/tail.svg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 10;
  transform: translateX(-50%) rotate(-90deg);
}

/* Rounded Triangle variation - requires clip-path or complex borders, sticking to simple border triangle for robustness first, 
   or using an SVG/image for the tail if user wants specific rounded look. 
   User said "triangle in bottom right". */

.cta-mascot-img {
  width: 100%;
  height: auto;
}

@media (min-width: 1200px) {
  .cta-mascot-img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 130%;
    width: auto;
    max-width: none;
    z-index: 1;
    margin-left: auto;
    margin-right: -70px;
  }

  .speech-bubble-card {
    transform: translateY(-3rem);
    margin-left: -150px;
    margin-right: auto;
  }

  .speech-bubble-tail {
    left: -25px;
    bottom: 66%;
    transform: none;
  }
}

/* Chat UI Styles */
.chat-ui-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chat-message {
  background-color: #d1d1d1;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #000;
  text-align: left;
  line-height: 1.4;
}

.chat-option-btn {
  background-color: var(--SuperQubeBlue);
  color: white;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  text-decoration: none !important;
  border: none;
  transition: opacity 0.2s;
  font-weight: 500;
}

.chat-option-btn:hover {
  color: white;
  opacity: 0.9;
}

/* Chat Option Arrow Animation */
.chat-option-btn:hover .button-arrow._1 {
  transform: translate3d(150%, 0, 0);
}

.chat-option-btn:hover .button-arrow._2 {
  transform: translate3d(0, 0, 0);
}

/* Chat Input Area */
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.chat-input-text {
  background-color: #d1d1d1;
  border-radius: 12px;
  padding: 12px 20px;
  flex-grow: 1;
  color: #000;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  /* Slightly more rounded for square look */
  background-color: var(--SuperQubeBlue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-send-btn:hover {
  opacity: 0.9;
}

.chat-send-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  /* White icon */
  position: relative;
  top: 0.5px;
  left: -1px;
}

@media (min-width: 2700px) {
  .col-sq-bigboy-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
}

/* Footer Video Strip */
.footer-video-strip {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.footer-video-strip::-webkit-scrollbar {
  height: 4px;
}

.footer-video-strip::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.footer-video-item {
  width: 200px;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.footer-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-color: #000;
  transition: transform 0.2s, filter 0.2s;
  height: auto;
  /* Override fixed height */
}

.footer-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-video-item:hover .footer-video-thumb {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.footer-video-item:hover .footer-video-thumb img {
  opacity: 1;
}

.footer-video-title {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: var(--sq-on-dark);
  opacity: 0.6;
  text-decoration: none;
  line-height: 1.3;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-video-item:hover .footer-video-title {
  opacity: 1;
  color: #fff;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #010114;
  z-index: 4000;
  /* Above header (3000) */
  display: none;
  /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* Burger Button */
.burger-btn {
  width: 42px;
  /* Match Get Solution button height */
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* Slightly reduced gap */
  background-color: var(--SuperQubeBlue);
  /* Match Get Solution button */
  border-radius: 50%;
  /* Circle */
  border: none;
  cursor: pointer;
  z-index: 4001;
  /* Above overlay */
  padding: 0;
  transition: background-color 0.3s ease;
}

.burger-btn:hover {
  background-color: var(--SuperQubeBlue-L3);
  /* Darker on hover */
}

.burger-line {
  width: 20px;
  /* Adjusted for smaller button */
  height: 2px;
  background-color: var(--sq-on-dark, #ffffff);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Burger Animation State */
.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Close Button Specifics */
.menu-close-btn .burger-line {
  position: absolute;
  /* Stack lines for X */
  transform-origin: center;
}

.menu-close-btn .cross-1 {
  transform: rotate(45deg);
}

.menu-close-btn .cross-2 {
  transform: rotate(-45deg);
}

/* Ensure overlay has higher z-index than burger button to capture clicks? 
   Actually, per request: "close button... inside that menu". 
   If overlay is z-4000, and burger is z-4001, burger sits on top.
   But we want a NEW button inside. 
   We will hide original burger when open, or just ensure opacity/pointer-events handled.
   Let's ensure close button is visible on top of overlay.
*/
.menu-close-btn {
  z-index: 4002;
  background-color: var(--SuperQubeBlue);
  /* Explicitly set again or inherit */
}

/* Hide original burger when menu is open to prevent double button visual if they overlap perfectly */
body.menu-open #burger-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Mobile Menu Links */
.mobile-nav-link {
  text-decoration: none !important;
  display: block;
  width: fit-content;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-link:hover {
  transform: translateX(20px);
  opacity: 0.8;
}

/* Ensure container takes full height for vertical centering calculation */
#mobile-menu-overlay {
  overflow-y: auto;
  /* Allow scrolling if content is too tall */
}

@media (min-width: 992px) {
  .bento-card {
    padding: 20px;
  }
}

@media (min-width: 1200px) {
  .bento-card {
    padding: 30px;
  }
}

@media (min-width: 1400px) {
  .bento-card {
    padding: 40px;
  }
}

/* Index Case Study Slide Cards */
.case-study-slide .bento-card {
  background-color: var(--SuperQubeBlue-L-1);
}

/* Button Reveal Animation */
.btn-reveal {
  gap: 0 !important;
  /* Override btn-golden-ratio gap */
  flex-direction: column;
  /* Stack text vertically */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-reveal .reveal-text {
  max-width: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin-left: 0;
  margin-top: 0;
  line-height: normal;
  /* Removed overrides to inherit bold from parent */
  text-transform: uppercase;
  /* User request: all caps */
}

.btn-reveal:hover .reveal-text {
  max-width: none;
  max-height: 30px;
  /* Adjust to fit text height */
  opacity: 1;
  margin-left: 0;
  margin-top: 4px;
  /* Spacing */
}

@media (min-width: 992px) {
  .btn-reveal {
    padding: 20px !important;
  }

  .btn-reveal:hover .reveal-text {
    max-height: 50px !important;
    /* Allow 2 lines (CASE / STUDY) below VIEW */
  }

  /* Padding removed to be edge-to-edge */
}

/* Button Reveal Animation */
.btn-reveal {
  border-radius: 0 !important;
  /* User request: no radius */
}

.case-study-overlay {
  padding: 0 !important;
  /* Edge to edge */
}

/* =========================================
   Filter Section (Case Studies)
   ========================================= */

.filter-btn {
  border: 2px solid var(--SuperQubeBlue);
  /* User request: border 2, blue */
  color: #000 !important;
  /* Fixed: hardcoded dark */
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  background: transparent;
  /* Transparent bg to see border */
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn.active {
  background-color: #000;
  /* Fixed: hardcoded dark */
  color: white !important;
  border-color: #000;
}

.filter-btn:hover:not(.active) {

  background-color: var(--SuperQubeBlue);
  /* Light gray hover */
  border-color: var(--SuperQubeBlue);
  color: var(--SuperQubeBlueWhite) !important;
}

/* Case Study Static (The dark container) */
.case-study-static {
  background-color: var(--SuperQubeBlueBlack);
  border-radius: 40px;
  padding: 40px;
  /* Base padding */
  margin-bottom: 3rem;
  /* Ensure spacing between cases */
}

@media (min-width: 992px) {
  .case-study-static {
    padding: 80px;
    /* Larger padding on desktop */
  }
}

/* Remove inner card background to blend with container */
/* Remove inner card background to blend with container */
.case-study-static .bento-card {
  background-color: var(--SuperQubeBlue-L-1);
  /* Was var(--SuperQubeBlueBlack) */
}

/* Hover Reveal Image */
.img-hover-reveal {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.bento-card:hover .img-hover-reveal,
.bento-card.scroll-active .img-hover-reveal,
.bento-card-tall.scroll-active .img-hover-reveal {
  opacity: 1;
}

.bento-card img:not(.img-hover-reveal) {
  z-index: 0;
}

/* Ensure overlay stays on top */
.case-study-overlay {
  z-index: 2;
}

/* Layering for Case Studies Avatar */
#hero {
  position: relative;
  z-index: 20;
}

/* Allow interaction with elements behind the container (like mascots) */
#hero .container,
#hero .row {
  pointer-events: none;
}

/* Restore interaction for content */
#hero .col-12,
#hero .col-lg-8,
#hero .col-lg-4,
#hero .col-md-6,
#hero a,
#hero button {
  pointer-events: auto;
}

#filters {
  position: relative;
  z-index: 10;
}

/* Local stars for avatar */
.avatar-stars-container {
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 400px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.avatar-stars-container .star {
  position: absolute;
  opacity: 0.6;
  animation: floatUp 15s linear infinite;
}

.avatar-stars-container .star-sm {
  width: 10px;
  left: 20%;
  animation-duration: 20s;
}

.avatar-stars-container .star-md {
  width: 16px;
  left: 50%;
  animation-duration: 15s;
}

.avatar-stars-container .star-lg {
  width: 24px;
  left: 80%;
  animation-duration: 12s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-300px);
    opacity: 0;
  }
}

/* Avatar in Hero Grid */
.pplustop {
  position: relative;
  bottom: 200px;
}

.hero-avatar-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  /* Zajistí, že wrapper má výšku i když je obrázek absolutní */
  display: block;
  z-index: 10;
}

.hero-avatar-wrapper .hero-avatar-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  /* PŘESNÉ ZAROVNÁNÍ NA PIXELY */
  /* Měňte hodnotu bottom pro posun nahoru/dolů */
  bottom: -353px;

  width: auto;
  height: auto;
  max-width: none;
  /* Nastavení velikosti obrázku pro detailní kontrolu */
  max-height: 130%;

  object-fit: contain;
  z-index: 10;
  pointer-events: none;

  /* Volitelně: CSS maska pro plynulý fade do ztracena dole */
  /* Odkomentujte pokud chcete gradient: */
  /* -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
  /* mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
}

/* RESPONZIVNÍ CHOVÁNÍ (Breakpoints) */

/* Pro tablety a malé desktopy (md/lg) */
@media (min-width: 992px) {
  .hero-avatar-wrapper .hero-avatar-img {
    bottom: -494px;
    /* Úprava pro desktop */
    max-height: 140%;
    left: 10%;
  }
}

/* Pro velké desktopy (xl) */
@media (min-width: 1200px) {
  .hero-avatar-wrapper .hero-avatar-img {
    bottom: -538px;
    /* Úprava pro velké monitory */
    max-height: 150%;
  }
}

/* Pro velké desktopy (xxl) */
@media (min-width: 1400px) {
  .hero-avatar-wrapper .hero-avatar-img {
    bottom: -646px;
    /* Úprava pro velké monitory */
    max-height: 200%;
    left: 55%;
  }
}

/* Pro velké desktopy (xxxl) */
@media (min-width: 2700px) {
  .hero-avatar-wrapper .hero-avatar-img {
    bottom: -782px;
    /* Úprava pro velké monitory */
    max-height: 250%;
    left: 100%;
  }
}

/* Stars within avatar wrapper */
.hero-avatar-wrapper .avatar-stars-container {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Result Card */
.result-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: var(--card-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Ensure mascots are interactive */
.mascot-element {
  pointer-events: auto !important;
  cursor: pointer;
}

/* PROJECT TIMELINE SECTION */
.project-timeline-section {
  background-color: var(--SuperQubeBlueWhite);
  overflow: hidden;
  /* Ensure content doesn't spill out */
}

.timeline-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0;
}

.timeline-track {
  position: relative;
  width: 96px;
  /* height: 1040px; removed for dynamic calculation */
  background: #000;
  /* Black background (podklad) */
  border-radius: 48px;
  /* Rounded all corners */
}

.timeline-circle {
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: -40px;
  /* Half of 80px width */
  width: 80px;
  height: 80px;
  background-color: #E0D9FF;
  /* Light Lavender fill */
  border: none;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  /* Centering for icon */
  justify-content: center;
  align-items: center;
}

.timeline-icon {
  width: 50%;
  height: 50%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-text-item {
  position: absolute;
  width: 200px;
  opacity: 0;
  transform: translateY(-50%);
  transition: all 0.5s ease;
}

.timeline-text-item.active {
  opacity: 1;
}

.timeline-text-item.right {
  left: 100%;
  margin-left: 60px;
  /* Space from track */
  text-align: left;
}

/* Stat Card Arrow Background */
.stat-card-arrow-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -60%;
  bottom: -50%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.timeline-text-item.left {
  right: 100%;
  margin-right: 60px;
  /* Space from track */
  text-align: right;
}

.timeline-text-item h2 {
  color: var(--SuperQubeBlueBlack);
}

.timeline-text-item span {
  color: var(--SuperQubeBlue);
}

@media (min-width: 992px) {
  .timeline-text-item {
    width: 300px;
    /* Wider for desktop text */
  }

  .timeline-text-item h2 {
    font-size: 2rem !important;
    /* Override .h5 bootstrap class */
  }

  .timeline-text-item span {
    font-size: 1.1rem !important;
    /* Override .small bootstrap class */
  }
}

/* Removed redundant .value-prop-img declaration - consolidated at top of file */

/* Testimonial Card */
.testimonial-card {
  padding: 80px;
  border-radius: 40px;
  background-color: var(--SuperQubeBlue-L3);
  color: var(--sq-on-dark);
}

/* Challenges and Solutions Section */
.challenges-solutions-section {
  background-color: var(--SuperQubeBlueWhite);
  padding: 12rem 0 !important;
  margin-top: 3rem !important;
  margin-bottom: 0 !important;
}

/* Bento Card Widget */
.sq-bento-card {
  background-color: var(--SuperQubeBlueWhite);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  height: 100%;
  /* Ensure cards stretch to full height of column */
}

.text-shadow {
  text-shadow: 0 0 5px var(--SuperQubeBlue-L-1), 0 0 10px var(--SuperQubeBlue-L-1);
}

/* =========================================
   Mobile Optimization (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Reduce global section spacing */
  .case-studies-section,
  .challenges-solutions-section,
  .value-proposition-section,
  .how-we-can-help-section,
  .logos-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Reduce card padding */
  .bento-card,
  .solution-expand-card,
  .value-card .card-body,
  .sq-bento-card,
  .testimonial-card,
  .case-study-static {
    padding: 20px !important;
  }

  /* Hero Section Spacing */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  /* Utility Spacing Overrides */
  .sq-mb {
    margin-bottom: 3rem !important;
  }

  /* Challenges & Solutions specifics */
  .challenges-solutions-section {
    margin-top: 0 !important;
  }

  /* Sticky Controls for Case Studies */
  .sticky-mobile-controls {
    position: fixed !important;
    top: 96px;
    /* Height of header */
    left: 0;
    width: 100%;
    background-color: var(--SuperQubeBlueWhite);
    z-index: 2900;
    /* Below header (3000) but above content */
    padding: 1rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }

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

/* Expanding Cards Mobile/Tablet Optimization (<992px) */
@media (max-width: 991px) {
  .solution-container {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .solution-expand-card {
    width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 20px;
    min-height: auto !important;
    /* Let content dictate height */
  }

  .solution-expand-card .card-content {
    max-height: none !important;
    /* Ensure all content shows */
    opacity: 1 !important;
  }

  .solution-expand-card .solution-bg-base {
    opacity: 1 !important;
    filter: none !important;
  }

  .solution-expand-card .solution-overlay {
    opacity: 0.5 !important;
  }

  .solution-expand-card .solution-arrow-holder {
    opacity: 1 !important;
  }

  .solution-expand-card .solution-inactive-icon-center {
    opacity: 0 !important;
  }
}