@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
/* Universal Overflow Prevention - SELECTIVE */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* Prevent horizontal page scroll */
  overflow-y: auto; /* Allow vertical page scroll */
  max-width: 100vw;
}

body {
  overflow: hidden; /* Prevent horizontal page scroll */

  font-family: "Inter", sans-serif;
  max-width: 100%;
  background-color: #ffffff;
  color: #1e293b;
  margin: 0;
  padding: 0;
}
/* Container Overflow Prevention - HORIZONTAL ONLY */
.container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Section Overflow Prevention - HORIZONTAL ONLY */
section {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Main content wrapper - HORIZONTAL ONLY */
main {
  max-width: 100vw;
  /* Ensure main content starts below fixed header */
  padding-top: 0;
}

/* Smooth scroll padding for anchor links */
html {
  scroll-padding-top: 5rem; /* Default scroll offset for anchor links */
}

/* Section scroll padding for anchor navigation */
section[id] {
  scroll-margin-top: 5rem; /* Offset for anchor links to account for fixed header */
}

/* Header overflow prevention - HORIZONTAL ONLY */
header {
  max-width: 100vw;
}

/* Row and column overflow prevention - WIDTH ONLY */
.flex,
.grid,
[class*="flex"],
[class*="grid"] {
  max-width: 100%;
}

/* Image overflow prevention */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Video overflow prevention */
video {
  max-width: 100%;
  height: auto;
}

/* Text overflow prevention */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Prevent horizontal scrollbars on specific elements - WIDTH ONLY */
.hero-section,
.features-section,
.pricing-section,
.testimonials-section,
.faq-section,
.contact-section,
.clients-section {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Card and component overflow prevention - WIDTH ONLY */
[class*="card"],
[class*="bg-"],
[class*="rounded"] {
  box-sizing: border-box;
}

/* Table and form overflow prevention */
table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

form {
  max-width: 100%;
  overflow-x: hidden;
}

/* Navigation overflow prevention - WIDTH ONLY */
nav,
.navbar,
[class*="nav"] {
  max-width: 100vw;
}

/* Button group overflow prevention - BOX SIZING ONLY */
.btn-group,
[class*="button"],
[class*="btn"] {
  box-sizing: border-box;
}

/* Utility classes for overflow control */
.overflow-x-hidden {
  overflow-x: hidden !important;
}

.overflow-y-hidden {
  overflow-y: hidden !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.max-w-full {
  max-width: 100% !important;
}

.max-w-screen {
  max-width: 100vw !important;
}

/* Additional responsive utility classes */
.responsive-width {
  width: 100% !important;
  max-width: 100% !important;
}

.no-horizontal-overflow {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.safe-margin {
  margin-left: clamp(0.5rem, 2vw, 2rem) !important;
  margin-right: clamp(0.5rem, 2vw, 2rem) !important;
}

/* Fix for common TailwindCSS problematic classes */
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  margin-left: clamp(0.5rem, 1.5vw, 1.5rem) !important;
}

/* Responsive flex gap fixes */
.gap-4 {
  gap: clamp(0.5rem, 1vw, 1rem) !important;
}

.gap-8 {
  gap: clamp(1rem, 2vw, 2rem) !important;
}

/* Fix for button groups on mobile */
@media (max-width: 640px) {
  .flex.flex-col.sm\\:flex-row.gap-4 {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .flex.flex-col.sm\\:flex-row.gap-4 > * {
    width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
}

/* Mobile specific overflow prevention - SELECTIVE */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important; /* Only prevent horizontal scroll on page */
    max-width: 100vw !important;
  }

  /* Fix header overlap on mobile */
  #home {
    padding-top: calc(4rem + 2.5rem) !important; /* Header height + extra spacing */
    margin-top: 0 !important;
  }

  /* Fix header overlap for about section on mobile */
  #about {
    padding-top: calc(4rem + 2rem) !important; /* Header height + section spacing */
    padding-bottom: 2rem !important;
  }

  /* Fix statistics cards on mobile */
  .flex.flex-col.sm\\:flex-row.justify-between.items-center {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 0 0.5rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm {
    width: 100% !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  }

  /* Improve stat card icon sizing */
  .flex.items-center.justify-center.w-8.h-8 {
    width: 3rem !important;
    height: 3rem !important;
    margin-right: 1rem !important;
  }

  /* Improve stat card text sizing */
  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-lg {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-xs {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    margin-top: 0.25rem !important;
  }

  /* Icon sizing within stat cards */
  .fas.fa-building,
  .fas.fa-medal {
    font-size: 1.25rem !important;
  }

  /* Contact form fixes for mobile */
  #contact {
    padding-top: calc(4rem + 2rem) !important; /* Header clearance + section padding */
    padding-bottom: 2rem !important;
  }

  /* Contact section layout */
  #contact .grid.grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Form container height fixes */
  #contact .rounded-2xl.p-6.sm\\:p-8.h-full {
    height: auto !important;
    min-height: auto !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Contact form specific fixes */
  #contact-form {
    height: auto !important;
    min-height: auto !important;
  }

  #contact-form.space-y-4.flex-1.flex.flex-col.justify-between {
    flex: none !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
  }

  /* Form field fixes */
  #contact .form-input {
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    min-height: 2.75rem !important;
  }

  /* Textarea specific fixes */
  #contact textarea.form-input {
    min-height: 4rem !important;
    max-height: 6rem !important;
    resize: vertical !important;
  }

  /* Labels */
  #contact label {
    font-size: 0.8125rem !important;
    margin-bottom: 0.375rem !important;
    font-weight: 600 !important;
  }

  /* Select dropdown */
  #contact select.form-input {
    background-size: 16px !important;
    padding-right: 2.5rem !important;
  }

  /* Checkbox container */
  #contact .flex.items-start {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* GDPR text */
  #contact .text-xs.text-gray-700,
  #contact .text-xs.text-gray-500 {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  /* reCAPTCHA container */
  #contact .g-recaptcha {
    margin: 0.75rem 0 !important;
    transform: scale(0.85) !important;
    transform-origin: 0 0 !important;
  }

  /* Submit button */
  #contact button[type="submit"] {
    margin-top: 1rem !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
  }

  /* Contact info panel */
  #contact .space-y-4.flex-1 {
    flex: none !important;
    gap: 0.875rem !important;
  }

  #contact .space-y-4.flex-1 > * + * {
    margin-top: 0.875rem !important;
  }

  /* Contact info items */
  #contact .flex.items-start {
    align-items: flex-start !important;
  }

  /* Footer contact info alignment fix for mobile */
  footer .flex.items-center {
    align-items: center !important;
  }

  footer li.flex.items-center {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  /* Footer contact links - keep on single line */
  footer li.flex.items-center a {
    white-space: nowrap !important;
    display: inline !important;
  }

  /* Footer contact icons - ensure proper spacing */
  footer li.flex.items-center i {
    flex-shrink: 0 !important;
    margin-right: 0.75rem !important;
  }

  /* Force footer contact items to stay inline - more specific targeting */
  footer ul.space-y-4 li.flex.items-center {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  /* Ensure footer contact text doesn't wrap */
  footer ul.space-y-4 li.flex.items-center a,
  footer ul.space-y-4 li.flex.items-center span {
    display: inline-block !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
  }

  /* Override any conflicting Tailwind spacing */
  footer ul.space-y-4 li.flex.items-center i.fas {
    margin-right: 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
  }

  /* CRITICAL: Override the conflicting #contact .flex.items-start rule specifically for footer */
  footer #contact .flex.items-center,
  footer .flex.items-center {
    align-items: center !important;
  }

  /* Extra specific override for footer contact list items */
  footer div ul.space-y-4.text-gray-600 li.flex.items-center {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  #contact .flex-shrink-0.bg-blue-50 {
    padding: 0.5rem !important;
    width: 2rem !important;
    height: 2rem !important;
  }

  #contact .text-sm.font-semibold {
    font-size: 0.8125rem !important;
    margin-bottom: 0.25rem !important;
  }

  #contact .text-xs.text-gray-500 {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  /* Business hours section */
  #contact .border-t.border-gray-200 {
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
  }

  #contact .space-y-2 {
    gap: 0.375rem !important;
  }

  #contact .space-y-2 > * + * {
    margin-top: 0.375rem !important;
  }

  /* Clients section "Trusted by Leaders" fix for mobile */
  #clients .text-4xl.font-extrabold {
    font-size: 1.75rem !important; /* 28px - fits on one line */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  /* Solutions section mobile typography fixes */
  #solutions .inline-flex.items-center.bg-gradient-to-r {
    font-size: 0.75rem !important; /* 12px - compact badge */
    padding: 0.5rem 1rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  #solutions .text-2xl.sm\\:text-3xl.md\\:text-5xl.lg\\:text-6xl {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  #solutions .text-2xl.sm\\:text-3xl.md\\:text-5xl.lg\\:text-6xl .block {
    font-size: 1.5rem !important; /* 24px for "Made for Belgium" */
    margin-top: 0.5rem !important;
  }

  /* Ensure header has consistent height */
  header {
    min-height: 4rem !important;
  }

  header nav {
    min-height: 2rem !important;
    align-items: center !important;
  }

  header img {
    max-height: 2.5rem !important;
    width: auto !important;
  }

  .container,
  .mx-auto {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
  }

  /* Prevent wide elements on mobile - WIDTH CONTROL ONLY */
  .w-full,
  [class*="w-"],
  .max-w-none {
    max-width: 100vw !important;
  }

  /* Force responsive behavior on mobile */
  table {
    font-size: 0.875rem;
    overflow-x: scroll;
    display: block;
    width: 100%;
  }

  /* Prevent text overflow on mobile */
  .whitespace-nowrap {
    white-space: normal !important;
  }

  /* Additional mobile overflow fixes */
  .flex-nowrap {
    flex-wrap: wrap !important;
  }

  /* Prevent SVG overflow on mobile */
  svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix for mobile button overflow */
  .flex.flex-col.sm\\:flex-row {
    gap: 0.5rem !important;
  }

  .flex.flex-col.sm\\:flex-row > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Mobile navigation fixes */
  #mobile-menu {
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Mobile hero section fixes */
  #home .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #home .text-4xl.md\\:text-6xl {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
}

/* Additional overflow prevention - MINIMAL & SELECTIVE */
/* Prevent absolute/fixed positioned elements from causing horizontal overflow */
.absolute,
.fixed,
[class*="absolute"],
[class*="fixed"] {
  max-width: 100vw;
}

/* Fix for large decorative background elements that cause overflow */
.w-120,
.h-120,
[class*="w-120"],
[class*="h-120"] {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: min(120rem, 90vw) !important;
  height: min(120rem, 90vh) !important;
}

/* Fix for negatively positioned elements */
.-left-8,
[class*="-left-"] {
  left: clamp(-2rem, -2vw, -8px) !important;
}

.-right-8,
[class*="-right-"] {
  right: clamp(-2rem, -2vw, -8px) !important;
}

/* Specific fixes for decorative elements in hero section */
#home .absolute {
  width: min(30rem, 80vw) !important;
  height: min(30rem, 80vh) !important;
  max-width: 80vw !important;
  max-height: 80vh !important;
}

/* Ensure decorative circles don't cause overflow */
#home .absolute.bg-blue-100,
#home .absolute.bg-blue-200,
#home .absolute.bg-blue-300 {
  width: min(20rem, 60vw) !important;
  height: min(20rem, 60vh) !important;
}

/* Specific positioning for left-positioned decorative elements */
#home .absolute.-left-8 {
  left: clamp(-1rem, -2vw, -2rem) !important;
}

/* Specific positioning for right-positioned decorative elements */
#home .absolute.-right-8 {
  right: clamp(-1rem, -2vw, -2rem) !important;
}

/* Additional mobile-specific fixes for decorative elements */
@media (max-width: 768px) {
  #home .absolute {
    width: min(15rem, 70vw) !important;
    height: min(15rem, 50vh) !important;
    max-width: 70vw !important;
    max-height: 50vh !important;
  }

  #home .absolute.bg-blue-100,
  #home .absolute.bg-blue-200,
  #home .absolute.bg-blue-300 {
    width: min(12rem, 60vw) !important;
    height: min(12rem, 40vh) !important;
  }

  #home .absolute.-left-8 {
    left: clamp(-0.5rem, -1vw, -1rem) !important;
  }

  #home .absolute.-right-8 {
    right: clamp(-0.5rem, -1vw, -1rem) !important;
  }

  /* Mobile fixes for green badge and hero section overlaps */
  .hero-section .inline-flex.bg-green-100 {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 10 !important;
  }

  /* Fix for CRM page hero section spacing */
  .hero-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix for benefit cards grid on mobile */
  .hero-section .grid.grid-cols-1.sm\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Fix for pricing highlight card on mobile */
  .pricing-highlight {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Fix for dashboard mockup on mobile */
  .dashboard-mockup {
    margin-top: 2rem !important;
    transform: none !important;
  }

  /* Fix for any absolutely positioned green elements */
  .bg-green-400.rounded-full {
    position: relative !important;
    margin: 0.5rem auto !important;
  }

  /* Ensure proper spacing between sections on mobile */
  .hero-section + section,
  section + section {
    padding-top: 2rem !important;
  }

  /* Fix for feature cards grid responsive issues */
  .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Fix for benefit cards padding and spacing */
  .benefit-card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Fix for text wrapping and overflow on mobile */
  .whitespace-nowrap {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Fix for button groups on mobile */
  .flex.flex-col.sm\\:flex-row.gap-3,
  .flex.flex-col.sm\\:flex-row.gap-4 {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Fix for CTA buttons on mobile */
  .flex.flex-col.sm\\:flex-row.gap-3 > a,
  .flex.flex-col.sm\\:flex-row.gap-4 > a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Fix for hero titles font size on mobile */
  .text-xl.sm\\:text-2xl.md\\:text-4xl.lg\\:text-5xl.xl\\:text-6xl {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  /* Fix for dashboard mockup rotation on mobile */
  .dashboard-mockup .transform.rotate-0.sm\\:rotate-1.md\\:rotate-3 {
    transform: none !important;
  }

  /* Adjust scroll padding for mobile */
  html {
    scroll-padding-top: 4.5rem !important;
  }

  section[id] {
    scroll-margin-top: 4.5rem !important;
  }
}

/* Additional safety for very small mobile screens */
@media (max-width: 480px) {
  #home {
    padding-top: calc(4.5rem + 2rem) !important; /* Slightly more header height for small screens */
  }

  #about {
    padding-top: calc(4.5rem + 1.5rem) !important; /* Header height + section spacing */
    padding-bottom: 1.5rem !important;
  }

  /* Enhanced statistics cards for very small mobile */
  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm {
    padding: 0.875rem !important;
    border-radius: 0.875rem !important;
  }

  .flex.items-center.justify-center.w-8.h-8 {
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin-right: 0.875rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-lg {
    font-size: 1.375rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-xs {
    font-size: 0.8125rem !important;
  }

  /* About section typography for very small mobile */

  /* Adjust main heading for very small screens */
  #about .text-2xl.sm\\:text-3xl.md\\:text-5xl.font-extrabold {
    font-size: 1.625rem !important; /* 26px */
    line-height: 1.2 !important;
    padding: 0 0.25rem !important;
  }

  /* Subtitle paragraph */
  #about .text-base.sm\\:text-lg.text-gray-600 {
    font-size: 0.875rem !important; /* 14px */
    padding: 0 0.75rem !important;
  }

  /* Right panel content */
  #about .text-2xl.sm\\:text-3xl.font-bold {
    font-size: 1.375rem !important; /* 22px */
  }

  #about .backdrop-blur-md {
    padding: 1rem !important;
  }

  /* Contact form fixes for very small mobile */
  #contact {
    padding-top: calc(4.5rem + 1.5rem) !important;
    padding-bottom: 1.5rem !important;
  }

  /* Ultra-compact form layout */
  #contact .rounded-2xl.p-6.sm\\:p-8.h-full {
    padding: 0.75rem !important;
  }

  /* Tighter form spacing */
  #contact-form.space-y-4.flex-1.flex.flex-col.justify-between {
    gap: 0.75rem !important;
  }

  /* Smaller form fields */
  #contact .form-input {
    padding: 0.625rem !important;
    font-size: 0.8125rem !important;
    min-height: 2.5rem !important;
  }

  /* Compact textarea */
  #contact textarea.form-input {
    min-height: 3.5rem !important;
    max-height: 5rem !important;
  }

  /* Smaller labels */
  #contact label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }

  /* Compact reCAPTCHA */
  #contact .g-recaptcha {
    transform: scale(0.75) !important;
    margin: 0.5rem 0 !important;
  }

  /* Smaller submit button */
  #contact button[type="submit"] {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }

  /* Contact info adjustments */
  #contact .flex-shrink-0.bg-blue-50 {
    padding: 0.375rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  #contact .text-sm.font-semibold {
    font-size: 0.75rem !important;
  }

  #contact .text-xs.text-gray-500 {
    font-size: 0.6875rem !important;
  }

  /* Clients section for very small mobile */
  #clients .text-4xl.font-extrabold {
    font-size: 1.5rem !important; /* 24px - even more compact */
    line-height: 1.15 !important;
  }

  /* Solutions section for very small mobile */
  #solutions .inline-flex.items-center.bg-gradient-to-r {
    font-size: 0.6875rem !important; /* 11px - ultra compact */
    padding: 0.375rem 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #solutions .text-2xl.sm\\:text-3xl.md\\:text-5xl.lg\\:text-6xl {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.15 !important;
  }

  #solutions .text-2xl.sm\\:text-3xl.md\\:text-5xl.lg\\:text-6xl .block {
    font-size: 1.25rem !important; /* 20px */
    margin-top: 0.25rem !important;
  }

  header {
    min-height: 4.5rem !important;
  }

  header nav {
    min-height: 4.5rem !important;
  }

  header img {
    max-height: 2.25rem !important;
    width: auto !important;
  }

  /* Adjust scroll padding for very small mobile */
  html {
    scroll-padding-top: 5rem !important;
  }

  section[id] {
    scroll-margin-top: 5rem !important;
  }
}

/* Tablet specific improvements - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Fix header overlap and hero section improvements for tablets */
  #home {
    padding-top: calc(5rem + 4rem) !important; /* Header height + section padding */
    padding-bottom: 6rem !important;
  }

  /* Fix header overlap for about section on tablets */
  #about {
    padding-top: calc(5rem + 3rem) !important; /* Header height + section spacing */
    padding-bottom: 3rem !important;
  }

  /* Optimize statistics cards for tablets */
  .flex.flex-col.sm\\:flex-row.justify-between.items-center {
    flex-direction: row !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm {
    width: auto !important;
    flex: 1 !important;
    padding: 1.25rem !important;
    margin-bottom: 0 !important;
    border-radius: 1.25rem !important;
  }

  .flex.items-center.justify-center.w-8.h-8 {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin-right: 1.25rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-lg {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-xs {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-top: 0.375rem !important;
  }

  .fas.fa-building,
  .fas.fa-medal {
    font-size: 1.5rem !important;
  }

  /* About section typography for tablets */

  /* Section badge */
  #about .inline-block.px-6.py-2.text-sm.font-semibold {
    font-size: 0.9375rem !important; /* 15px */
    padding: 0.625rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Main heading */
  #about .text-2xl.sm\\:text-3xl.md\\:text-5xl.font-extrabold {
    font-size: 2.5rem !important; /* 40px */
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Subtitle paragraph */
  #about .text-base.sm\\:text-lg.text-gray-600 {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  /* Right panel heading */
  #about .text-2xl.sm\\:text-3xl.font-bold {
    font-size: 2rem !important; /* 32px */
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Right panel description */
  #about .text-sm.sm\\:text-base.text-gray-600 {
    font-size: 1rem !important; /* 16px */
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  /* Feature list items */
  #about .text-gray-800.font-semibold.text-sm.sm\\:text-base {
    font-size: 1.0625rem !important; /* 17px */
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
  }

  #about .text-gray-600.text-xs.sm\\:text-sm {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.5 !important;
  }

  /* Feature list spacing */
  #about .space-y-4 > * + * {
    margin-top: 1.75rem !important;
  }

  /* Feature icons */
  #about .fas.fa-cloud,
  #about .fas.fa-map-marker-alt,
  #about .fas.fa-headset {
    font-size: 1.125rem !important;
  }

  /* CTA buttons */
  #about .bg-blue-600,
  #about .hover\\:bg-blue-50 {
    font-size: 1rem !important; /* 16px */
    padding: 1rem 1.75rem !important;
    margin-bottom: 0 !important;
  }

  /* Layout adjustments */
  #about .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  #about .flex.flex-col.lg\\:flex-row {
    gap: 3rem !important;
  }

  #about .backdrop-blur-md {
    padding: 2rem !important;
    margin-top: 0 !important;
  }

  /* Contact form fixes for tablets */
  #contact {
    padding-top: calc(5rem + 3rem) !important;
    padding-bottom: 3rem !important;
  }

  /* Tablet layout adjustments */
  #contact .grid.grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    align-items: stretch !important;
  }

  /* Form container */
  #contact .rounded-2xl.p-6.sm\\:p-8.h-full {
    padding: 1.5rem !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Form spacing */
  #contact-form.space-y-4.flex-1.flex.flex-col.justify-between {
    gap: 1.25rem !important;
    flex: 1 !important;
    justify-content: space-between !important;
  }

  /* Form fields */
  #contact .form-input {
    padding: 0.875rem !important;
    font-size: 0.9375rem !important;
    min-height: 3rem !important;
  }

  /* Textarea */
  #contact textarea.form-input {
    rows: 4 !important;
    min-height: 5rem !important;
    max-height: 8rem !important;
  }

  /* Labels */
  #contact label {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* reCAPTCHA */
  #contact .g-recaptcha {
    transform: scale(0.95) !important;
    margin: 1rem 0 !important;
  }

  /* Submit button */
  #contact button[type="submit"] {
    padding: 1rem 2rem !important;
    font-size: 0.9375rem !important;
    margin-top: 1.25rem !important;
  }

  /* Contact info panel */
  #contact .space-y-4.flex-1 {
    gap: 1.125rem !important;
  }

  #contact .space-y-4.flex-1 > * + * {
    margin-top: 1.125rem !important;
  }

  /* Contact info items */
  #contact .flex-shrink-0.bg-blue-50 {
    padding: 0.625rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  #contact .text-sm.font-semibold {
    font-size: 0.9375rem !important;
    margin-bottom: 0.375rem !important;
  }

  #contact .text-xs.text-gray-500 {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
  }

  /* Business hours */
  #contact .border-t.border-gray-200 {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
  }

  /* Home section typography for tablets */
  #home .inline-block.px-3.py-2.sm\\:px-4.sm\\:py-2.text-xs.sm\\:text-sm {
    font-size: 0.9375rem !important; /* 15px */
    padding: 0.625rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  #home .text-2xl.sm\\:text-3xl.md\\:text-4xl.lg\\:text-5xl.xl\\:text-6xl {
    font-size: 3rem !important; /* 48px */
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
  }

  #home .text-sm.sm\\:text-base.md\\:text-lg.lg\\:text-xl {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  #home .bg-blue-600,
  #home .bg-transparent {
    font-size: 1rem !important; /* 16px */
    padding: 1rem 2rem !important;
  }

  /* Solutions section typography for tablets */
  #solutions .text-sm.font-semibold {
    font-size: 0.9375rem !important; /* 15px */
    padding: 0.75rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  #solutions .text-2xl.sm\\:text-3xl.md\\:text-5xl.lg\\:text-6xl {
    font-size: 3.5rem !important; /* 56px */
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
  }

  #solutions .text-base.sm\\:text-lg.md\\:text-xl {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  /* Solution cards typography */
  #solutions .text-xl.sm\\:text-2xl.font-bold {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  #solutions .text-sm.sm\\:text-base {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  #solutions .text-blue-600 {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 600 !important;
  }

  /* Services section typography for tablets */
  #services .text-3xl.sm\\:text-4xl {
    font-size: 2.5rem !important; /* 40px */
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
  }

  #services .text-base.sm\\:text-lg {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  /* Service cards */
  #services .text-xl.sm\\:text-2xl {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  #services .text-sm {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }

  /* Clients section typography for tablets */
  #clients .text-4xl {
    font-size: 2.5rem !important; /* 40px */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  #clients .text-center.max-w-xl.mx-auto {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
  }

  /* Footer typography for tablets */
  footer .text-sm.leading-relaxed {
    font-size: 1rem !important; /* 16px */
    line-height: 1.6 !important;
  }

  footer .text-sm.text-gray-500 {
    font-size: 0.9375rem !important; /* 15px */
  }

  footer .text-base.font-semibold {
    font-size: 1.125rem !important; /* 18px */
    margin-bottom: 1rem !important;
  }

  footer .text-sm.text-gray-600 {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }

  /* Navigation typography for tablets */
  header .nav-link {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
  }

  /* Mobile menu typography */
  #mobile-menu a {
    font-size: 1.125rem !important; /* 18px */
    padding: 1rem 1.5rem !important;
  }

  /* General container adjustments for tablets */
  .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Button improvements for tablets */
  .btn,
  button {
    font-size: 1rem !important;
    padding: 0.875rem 1.75rem !important;
  }

  /* Additional typography improvements for tablets */

  /* Card components */
  .card .text-lg {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.4 !important;
  }

  .card .text-base {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }

  .card .text-sm {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.4 !important;
  }

  /* Feature lists */
  .feature-list .text-base {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }

  .feature-list .text-sm {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.4 !important;
  }

  /* Icons within text */
  .fas,
  .far,
  .fab {
    font-size: 1.125rem !important;
  }

  /* Large icons */
  .text-2xl .fas,
  .text-3xl .fas,
  .text-4xl .fas {
    font-size: 1.5rem !important;
  }

  /* Badge elements */
  .badge,
  .pill {
    font-size: 0.875rem !important; /* 14px */
    padding: 0.5rem 1rem !important;
  }

  /* Quote/testimonial text */
  blockquote {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
  }

  /* Link typography */
  a {
    font-size: inherit !important;
  }

  /* CTA links */
  .cta-link {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
  }

  /* Table typography */
  table {
    font-size: 0.9375rem !important; /* 15px */
  }

  table th {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
  }

  table td {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.4 !important;
  }

  /* Form elements */
  input,
  textarea,
  select {
    font-size: 1rem !important; /* 16px */
    line-height: 1.4 !important;
  }

  label {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 600 !important;
  }

  /* Helper text */
  .help-text,
  .form-help {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.3 !important;
  }

  /* Error messages */
  .error-text {
    font-size: 0.875rem !important; /* 14px */
  }

  /* Success messages */
  .success-text {
    font-size: 0.9375rem !important; /* 15px */
  }

  /* Modal/popup typography */
  .modal .text-xl {
    font-size: 1.375rem !important; /* 22px */
  }

  .modal .text-base {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }

  /* Tooltip typography */
  .tooltip {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.3 !important;
  }

  /* Section spacing improvements for tablets */
  section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* Heading spacing */
  h1 {
    margin-bottom: 1.5rem !important;
  }

  h2 {
    margin-bottom: 1.25rem !important;
  }

  h3 {
    margin-bottom: 1rem !important;
  }

  h4,
  h5,
  h6 {
    margin-bottom: 0.75rem !important;
  }

  /* Paragraph spacing */
  p {
    margin-bottom: 1rem !important;
  }

  /* List spacing */
  ul,
  ol {
    margin-bottom: 1.25rem !important;
  }

  li {
    margin-bottom: 0.5rem !important;
  }

  /* Ensure header has consistent height */
  header {
    min-height: 5rem !important;
  }

  header nav {
    min-height: 5rem !important;
    align-items: center !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  header img {
    max-height: 3rem !important;
    width: auto !important;
  }

  /* Adjust scroll padding for tablets */
  html {
    scroll-padding-top: 5.5rem !important;
  }

  section[id] {
    scroll-margin-top: 5.5rem !important;
  }

  #home .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Better text sizing for tablets */
  #home h1 {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
  }

  #home p {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
  }

  /* Button improvements for tablets */
  #home .flex.flex-col.sm\\:flex-row {
    gap: 1.5rem !important;
    max-width: 28rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .flex.flex-col.sm\\:flex-row button,
  #home .flex.flex-col.sm\\:flex-row a {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    font-size: 1rem !important;
  }

  /* Customer testimonials improvements for tablets */
  #home .flex.flex-col.sm\\:flex-row.items-center.sm\\:items-center {
    gap: 1.5rem !important;
    justify-content: center !important;
  }

  #home .flex.-space-x-2.sm\\:-space-x-3 img {
    width: 3rem !important;
    height: 3rem !important;
  }

  /* Badge system improvements for tablets */
  .badges-wrapper {
    height: auto !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  .badge {
    position: static !important;
    width: 100% !important;
    height: 90px !important;
    padding: 1rem !important;
    animation: none !important;
    margin: 0 !important;
  }

  .badge i {
    font-size: 1.75rem !important;
  }

  .badge p:first-child {
    font-size: 0.8rem !important;
  }

  .badge p:last-child {
    font-size: 1.25rem !important;
  }

  #badge-sales,
  #badge-checkout,
  #badge-satisfaction,
  #badge-uptime {
    top: auto !important;
    left: auto !important;
    position: static !important;
    animation: none !important;
  }

  /* Belgium map sizing for tablets */
  #home img[alt="Belgium map"] {
    max-width: 24rem !important;
  }

  /* Background decorative elements for tablets */
  #home .absolute {
    width: min(25rem, 70vw) !important;
    height: min(25rem, 70vh) !important;
  }

  #home .absolute.bg-blue-100,
  #home .absolute.bg-blue-200,
  #home .absolute.bg-blue-300 {
    width: min(18rem, 50vw) !important;
    height: min(18rem, 50vh) !important;
  }
}

/* Large tablets and small desktops - 1024px to 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Fix header overlap and fine-tuning for large tablets */
  #home {
    padding-top: calc(5.5rem + 5rem) !important; /* Header height + section padding */
    padding-bottom: 7rem !important;
  }

  /* Fix header overlap for about section on large tablets */
  #about {
    padding-top: calc(5.5rem + 4rem) !important; /* Header height + section spacing */
    padding-bottom: 4rem !important;
  }

  /* Enhanced statistics cards for large tablets */
  .flex.flex-col.sm\\:flex-row.justify-between.items-center {
    gap: 2rem !important;
    padding: 0 1.5rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm {
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
  }

  .flex.items-center.justify-center.w-8.h-8 {
    width: 4rem !important;
    height: 4rem !important;
    margin-right: 1.5rem !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-lg {
    font-size: 2rem !important;
    font-weight: 900 !important;
  }

  .flex.items-center.rounded-2xl.p-3.bg-white.shadow-sm .text-xs {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
  }

  .fas.fa-building,
  .fas.fa-medal {
    font-size: 1.75rem !important;
  }

  /* Ensure header has consistent height */
  header {
    min-height: 5.5rem !important;
  }

  header nav {
    min-height: 5.5rem !important;
    align-items: center !important;
  }

  header img {
    max-height: 3.5rem !important;
    width: auto !important;
  }

  /* Adjust scroll padding for large tablets */
  html {
    scroll-padding-top: 6rem !important;
  }

  section[id] {
    scroll-margin-top: 6rem !important;
  }

  #home .flex.flex-col.lg\\:flex-row {
    gap: 3rem !important;
  }

  #home h1 {
    font-size: 4rem !important;
    margin-bottom: 2rem !important;
  }

  #home p {
    font-size: 1.25rem !important;
  }

  .badges-wrapper {
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }

  .badge {
    position: static !important;
    width: 100% !important;
    height: 100px !important;
    animation: none !important;
    margin: 0 !important;
  }

  #badge-sales,
  #badge-checkout,
  #badge-satisfaction,
  #badge-uptime {
    top: auto !important;
    left: auto !important;
    position: static !important;
    animation: none !important;
  }

  /* Contact form fixes for large tablets */
  #contact {
    padding-top: calc(5.5rem + 4rem) !important;
    padding-bottom: 4rem !important;
  }

  /* Large tablet layout */
  #contact .grid.grid-cols-1.lg\\:grid-cols-2 {
    gap: 2.5rem !important;
    max-height: none !important;
  }

  /* Form container */
  #contact .rounded-2xl.p-6.sm\\:p-8.h-full {
    padding: 2rem !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Form spacing */
  #contact-form.space-y-4.flex-1.flex.flex-col.justify-between {
    gap: 1.5rem !important;
  }

  /* Form fields */
  #contact .form-input {
    padding: 1rem !important;
    font-size: 1rem !important;
    min-height: 3.25rem !important;
  }

  /* Textarea */
  #contact textarea.form-input {
    min-height: 6rem !important;
    max-height: 10rem !important;
  }

  /* Labels */
  #contact label {
    font-size: 0.9375rem !important;
    margin-bottom: 0.625rem !important;
  }

  /* reCAPTCHA */
  #contact .g-recaptcha {
    transform: scale(1) !important;
    margin: 1.25rem 0 !important;
  }

  /* Submit button */
  #contact button[type="submit"] {
    padding: 1.125rem 2.25rem !important;
    font-size: 1rem !important;
    margin-top: 1.5rem !important;
  }

  /* Contact info */
  #contact .space-y-4.flex-1 {
    gap: 1.5rem !important;
  }

  #contact .space-y-4.flex-1 > * + * {
    margin-top: 1.5rem !important;
  }

  #contact .flex-shrink-0.bg-blue-50 {
    padding: 0.75rem !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  #contact .text-sm.font-semibold {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }

  #contact .text-xs.text-gray-500 {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
}

/* Wide screen fixes for very large displays */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home .absolute {
    width: min(40rem, 30vw) !important;
    height: min(40rem, 30vh) !important;
  }

  #home .absolute.bg-blue-100,
  #home .absolute.bg-blue-200,
  #home .absolute.bg-blue-300 {
    width: min(25rem, 25vw) !important;
    height: min(25rem, 25vh) !important;
  }
}

/* Ultra-wide screen fixes (4K and beyond) */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px !important;
  }

  #home .absolute {
    width: min(50rem, 25vw) !important;
    height: min(50rem, 25vh) !important;
  }

  #home .absolute.bg-blue-100,
  #home .absolute.bg-blue-200,
  #home .absolute.bg-blue-300 {
    width: min(30rem, 20vw) !important;
    height: min(30rem, 20vh) !important;
  }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {
  /* Force single column layout on very small screens */
  .grid.grid-cols-1.sm\\:grid-cols-2,
  .grid.grid-cols-2,
  .grid[class*="grid-cols-"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce padding on very small screens */
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Fix hero title size for very small screens */
  .text-xl.sm\\:text-2xl.md\\:text-4xl.lg\\:text-5xl.xl\\:text-6xl {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  /* Fix pricing cards on very small screens */
  .pricing-highlight {
    padding: 1rem !important;
    margin: 1rem 0 !important;
  }

  /* Fix button text size on very small screens */
  .py-4.px-8 {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
  }

  /* Fix feature cards on very small screens */
  .benefit-card {
    padding: 0.75rem !important;
  }

  /* Ensure green badges don't overflow on very small screens */
  .bg-green-100.rounded-full {
    max-width: 90vw !important;
    text-align: center !important;
  }

  /* Fix dashboard mockup on very small screens */
  .dashboard-mockup {
    max-width: 90vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Fix card text overflow on very small screens */
  .solutions-card li span,
  .feature-card li span,
  .benefit-card li span {
    word-break: break-word !important;
    hyphens: auto !important;
    overflow-wrap: break-word !important;
  }
}

/* Global card overflow fixes */
.solutions-card,
[class*="solution-card"],
[class*="feature-card"],
[class*="benefit-card"] {
  overflow: hidden !important;
  word-wrap: break-word !important;
}

/* Global list item text fixes */
.solutions-card li,
.feature-card li,
.benefit-card li,
ul li {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Fix for feature lists specifically */
.solutions-card ul li span,
.feature-card ul li span,
.benefit-card ul li span {
  word-break: break-word !important;
  hyphens: auto !important;
  line-height: 1.4 !important;
}

/* Ensure icons don't shrink in flex containers */
.solutions-card li i,
.feature-card li i,
.benefit-card li i,
ul li i.fas {
  flex-shrink: 0 !important;
}

/* Aggressive text overflow prevention for solution cards */
.bg-white.rounded-2xl ul li span,
div[class*="rounded-2xl"] ul li span {
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}

/* Force text to fit within card boundaries */
.bg-white.rounded-2xl ul,
div[class*="rounded-2xl"] ul {
  max-width: 100% !important;
  overflow: hidden !important;
}

.bg-white.rounded-2xl ul li,
div[class*="rounded-2xl"] ul li {
  max-width: 100% !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
}

/* Mobile specific aggressive text wrapping */
@media (max-width: 768px) {
  .bg-white.rounded-2xl ul li span,
  div[class*="rounded-2xl"] ul li span {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    max-width: calc(100% - 2rem) !important;
    display: block !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }
}

/* Extra aggressive mobile text fixes for very small screens */
@media (max-width: 480px) {
  .bg-white.rounded-2xl ul li span,
  div[class*="rounded-2xl"] ul li span {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    max-width: calc(100% - 1.5rem) !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }
}

/* Force all containers to be responsive - WIDTH CONTROL ONLY */
[class*="container"],
[class*="wrapper"],
[class*="content"] {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
.hero-bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("./images/fastcaisse-logo.png");
  background-size: cover;
  background-position: center;
}
.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.client-logo {
  filter: grayscale(100%);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.flip-card {
  perspective: 1000px;
  height: 260px;
  outline: none;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  background: transparent;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: none;
}
.flip-card-front {
  background: #f9fafb;
  color: #1e293b;
}
.flip-card-back {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  transform: rotateY(180deg);
}
@media (max-width: 767px) {
  #services .grid {
    gap: 1rem;
    justify-items: center;
  }
  #services .flip-card {
    max-width: 280px;
    height: 220px;
  }
  #services .flip-card-front,
  #services .flip-card-back {
    padding: 0.75rem;
  }
  #services .flip-card-front i,
  #services .flip-card-back i {
    font-size: 2rem;
  }
  #services .flip-card-front h3 {
    font-size: 1rem;
  }
  #services .flip-card-front p,
  #services .flip-card-back p {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }
}
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  z-index: 999;
  visibility: hidden;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.back-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}
.back-to-top:active {
  transform: translateY(0) scale(0.95);
}
.back-to-top i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.back-to-top:hover i {
  transform: translateY(-3px);
}
header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.nav-link {
  color: #1f2937;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  position: relative;
}
.nav-link:hover {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 50%;
}
.nav-link {
  @apply text-gray-700 hover:text-blue-600 text-sm font-medium transition-colors duration-200;
}
.nav-link.active,
#mobile-menu a.active {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}
.nav-link.active::after {
  width: 50%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background-color: rgba(37, 99, 235, 0.05);
  color: #2563eb;
  transform: translateX(4px);
}

.nav-dropdown-item i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
  opacity: 0.8;
}

.nav-dropdown-item:hover i {
  opacity: 1;
}

.nav-dropdown-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-price {
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 0.375rem;
  color: #2563eb;
}

.nav-dropdown-item:hover .nav-dropdown-price {
  background: #2563eb;
  color: white;
}

@media (max-width: 768px) {
  .nav-dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    min-width: auto;
    background: transparent;
  }

  .nav-dropdown-item {
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 0.5rem;
    border-bottom: none;
  }
}

.logo-text {
  color: #1f2937;
  font-weight: 800;
  letter-spacing: -0.025em;
}
#mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}
#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}
.form-input {
  transition: all 0.3s ease;
}
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}
footer .absolute.inset-0 {
  pointer-events: none;
}
/* Solution cards with ribbons - ensure proper overflow handling */
#solutions .relative {
  overflow: visible;
}

/* Corner ribbon styles */
.solutions-ribbon {
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .solutions-ribbon {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: top;
  }
  .flip-card,
  .client-logo {
    margin-bottom: 1.5rem;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  section {
    padding: 4rem 1.5rem;
  }
  h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .btn,
  button,
  [type="button"],
  [type="submit"] {
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
  }
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
#loader:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}
#loader:not(.hidden) ~ header,
#loader:not(.hidden) ~ footer {
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s,
    opacity 0.3s ease-in-out;
}
#loader.hidden ~ header,
#loader.hidden ~ footer {
  visibility: visible;
  opacity: 1;
}
.animate-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body.loader-active {
  overflow: hidden;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.badges-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  pointer-events: none;
}
.badge {
  position: absolute;
  width: 180px;
  height: 80px;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-width: 1px;
  border-style: solid;
  z-index: 20;
  cursor: default;
}
#badge-sales {
  top: 10px;
  left: 10%;
  border-color: #93c5fd;
  animation: float-path1 8s ease-in-out infinite;
}
#badge-checkout {
  top: 10px;
  left: 60%;
  border-color: #86efac;
  animation: float-path2 7.5s ease-in-out infinite;
}
#badge-satisfaction {
  top: 120px;
  left: 10%;
  border-color: #fde68a;
  animation: float-path3 9s ease-in-out infinite;
}
#badge-uptime {
  top: 120px;
  left: 60%;
  border-color: #c4b5fd;
  animation: float-path4 7s ease-in-out infinite;
}
#badge-sales i {
  color: #3b82f6;
  font-size: 1.5rem;
  flex-shrink: 0;
}
#badge-checkout i {
  color: #22c55e;
  font-size: 1.5rem;
  flex-shrink: 0;
}
#badge-satisfaction i {
  color: #ca8a04;
  font-size: 1.5rem;
  flex-shrink: 0;
}
#badge-uptime i {
  color: #7c3aed;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.badge p {
  margin: 0;
}
.badge p:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
}
.badge p:last-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}
@keyframes float-path1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(8px, -6px) scale(1.05);
  }
  50% {
    transform: translate(16px, 0) scale(1);
  }
  75% {
    transform: translate(8px, 6px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes float-path2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-8px, 8px) scale(0.95);
  }
  50% {
    transform: translate(-16px, 0) scale(1);
  }
  75% {
    transform: translate(-8px, -8px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes float-path3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(10px, 10px) scale(1.03);
  }
  40% {
    transform: translate(12px, -10px) scale(1);
  }
  60% {
    transform: translate(6px, -12px) scale(0.97);
  }
  80% {
    transform: translate(-3px, -3px) scale(1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes float-path4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-10px, -10px) scale(1.04);
  }
  50% {
    transform: translate(-15px, -5px) scale(1);
  }
  75% {
    transform: translate(-10px, 8px) scale(0.96);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@media (max-width: 767px) {
  #home .absolute.inset-0 > div,
  #about .absolute.inset-0 > div {
    display: none;
  }
  .badges-wrapper {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    pointer-events: auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  .badge {
    position: static !important;
    max-width: 100%;
    width: 100%;
    height: 60px;
    padding: 0.5rem;
    animation: none !important;
    cursor: default;
    margin: 0;
    border-width: 1px;
  }
  #badge-sales,
  #badge-checkout,
  #badge-satisfaction,
  #badge-uptime {
    border-color: inherit;
    top: auto !important;
    left: auto !important;
  }
  .badge i {
    font-size: 1.25rem !important;
  }
  .badge p:first-child {
    font-size: 0.65rem;
  }
  .badge p:last-child {
    font-size: 1rem;
  }
  .swiper {
    max-width: 100%;
    overflow: hidden;
  }
  .swiper-slide {
    max-width: 100%;
    flex-shrink: 0;
  }
  .client-logo {
    max-width: 100%;
    width: auto;
    height: 80px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 32px;
    height: 32px;
    margin: 0 8px;
  }
  #contact .rounded-2xl.overflow-hidden {
    max-width: 100%;
    overflow: hidden;
  }
  #contact iframe {
    max-width: 100%;
    width: 100%;
    height: 300px;
  }
  @media (max-width: 767px) {
    #contact iframe {
      height: 250px;
    }
  }
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .container,
  section,
  div,
  img,
  iframe {
    max-width: 100%;
    box-sizing: border-box;
  }
  [class*="absolute"],
  [class*="fixed"] {
    max-width: 100%;
    left: 0;
    right: 0;
  }
}
.swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.nav-link {
  color: #1e293b;
}
.nav-link:hover {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}
.nav-link::after {
  background: #2563eb;
}
.logo-text {
  color: #2563eb;
}
.form-input,
.form-textarea,
.form-select {
  background-color: #ffffff;
  color: #1e293b;
}
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.back-to-top {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: white;
}
.back-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb; /* gray-200 */
  border-top: 4px solid #2563eb; /* blue-600 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (max-width: 767px) {
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  #about .container {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  #about {
    padding-left: 0;
    padding-right: 0;
  }
  #about .flex {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }
  #about .text-center {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #about h2 {
    font-size: 2rem;
    line-height: 2.25rem;
  }
  #about p {
    font-size: 1rem;
  }
  #about .rounded-2xl.overflow-hidden {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  #about img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  #about .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #about .grid > div {
    padding: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  #about {
    padding: 1.5rem;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  #about .flex-col.sm\:flex-row {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #about .flex-col.sm\:flex-row a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  #about .space-y-6 > div {
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  #about .absolute.inset-0 {
    display: none;
  }
}
@media (max-width: 767px) {
  #contact .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #contact .grid {
    gap: 1.5rem;
  }
  #contact .rounded-2xl {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  #contact .form-input,
  #contact .form-input:focus {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  #contact textarea {
    min-height: 80px;
  }
  #contact .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }
  #contact .flex.items-start {
    align-items: center;
  }
  /* Fix footer contact items alignment on mobile */
  footer #contact .flex.items-center,
  footer .flex.items-center {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  footer .flex.items-center a,
  footer .flex.items-center span {
    white-space: nowrap !important;
    display: inline !important;
    vertical-align: middle !important;
  }

  /* Ultra-specific fix for footer contact items - override everything */
  footer li.flex.items-center {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    line-height: 1 !important;
  }

  footer li.flex.items-center * {
    display: inline !important;
    vertical-align: middle !important;
    line-height: inherit !important;
  }

  footer li.flex.items-center i {
    display: inline-flex !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
  }
  #contact .flex.items-start .ml-3,
  #contact .flex.items-start .ml-2 {
    font-size: 0.75rem;
  }
  #contact .space-y-4 > div {
    align-items: center;
  }
  #contact iframe {
    height: 250px;
  }
}
.client-logo {
  max-width: 100px;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.client-logo:hover,
.client-logo:focus {
  transform: scale(1.1);
  outline: none;
}
@media (max-width: 640px) {
  #about {
    flex-wrap: wrap !important; /* stack items on small screens */
  }
  #about > div {
    padding: 0.5rem;
    min-width: 100% !important;
    width: 100% !important;
  }
  #about .w-10 {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
  }
  #about i {
    font-size: 1.5rem !important;
  }
  #about p.text-xl {
    font-size: 1.125rem;
    line-height: 1.25rem;
  }
  #about p.text-xs {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  footer .flex.md\:flex-row {
    align-items: center;
    justify-content: center;
  }
  footer .form-input {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }
  footer button[type="submit"] {
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
  }
  footer .flex.space-x-4 {
    justify-content: start;
    margin-top: 0.5rem;
  }
}

/* Enhanced loader with blur effect */
#loader.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* Loader content container for centered spinner */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Enhanced spinner */
.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb; /* gray-200 */
  border-top: 4px solid #2563eb; /* blue-600 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Blur effect for elements during loading */
.loading-blur {
  filter: blur(2px);
  transition: filter 0.3s ease;
}

/* Ensure header and footer remain visible but with blur effect */
#loader:not(.hidden) ~ header,
#loader:not(.hidden) ~ footer {
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10000 !important;
}

/* Override any existing loader styles */
#loader[data-preserve-header-footer="true"] {
  z-index: 9999;
}

/* Ensure spinner is properly centered */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Prevent scrolling during loading */
body.loading {
  overflow: hidden;
}

/* Ensure loader is hidden when not needed */
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Mobile header controls layout - Language switcher beside toggle */
@media (max-width: 767px) {
  /* Container for mobile controls */
  .md\:hidden.flex.items-center.gap-3 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important; /* Reduce gap between language switcher and menu toggle */
  }

  /* Language switcher button styling */
  #mobileLangToggle {
    padding: 0 !important;
    margin-right: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Menu toggle button styling */
  #menu-toggle {
    padding: 0rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ensure language menu appears properly */
  #mobileLangMenu {
    right: auto !important;
    left: 0 !important;
    top: 100% !important;
    margin-top: 0.5rem !important;
  }
  /* Target the logo image in the header */
  header img {
    max-height: 3.5rem !important; /* Increase height for mobile */
    width: auto !important;
    transform: scale(1.2) !important; /* Add a slight scale effect */
    transform-origin: left center !important; /* Scale from left side */
    margin-right: 1rem !important; /* Add some space to the right */
    transition: all 0.3s ease !important; /* Smooth transition */
  }

  /* Ensure the logo container has enough space */
  header .flex.items-center.gap-4 {
    flex: 1 !important;
    justify-content: flex-start !important;
  }

  /* Adjust header height to accommodate larger logo */
  header nav {
    min-height: 4.5rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Ensure mobile controls stay properly aligned */
  .md\:hidden.flex.items-center.gap-3 {
    margin-left: auto !important;
  }
}

/* Even larger logo for very small mobile screens */
@media (max-width: 374px) {
  header img {
    max-height: 3rem !important; /* Slightly smaller on very small screens */
    transform: scale(1.15) !important; /* Slightly reduced scale */
  }
}

/* FC Resto Certified POS Section - Mobile & Large Screen Fixes */
/* Apply to all certified POS sections in all language versions */
section.bg-gradient-to-br.from-gray-50.to-blue-50 {
  overflow: hidden;
}

/* Large Screen Optimizations (Desktop/Wide screens) */
@media (min-width: 1280px) {
  /* Certified POS Section for large screens */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .container {
    max-width: 1280px !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 1.25rem !important;
    line-height: 1.75 !important;
    max-width: 65ch !important;
    margin: 0 auto 2rem !important;
  }

  /* Better grid layout on large screens */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    padding: 0 2rem !important;
  }

  /* Adjust card spacing on large screens */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.p-4.rounded-xl {
    padding: 1.5rem !important;
  }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  /* Certified POS Section mobile optimization */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 {
    padding: 2rem 0 !important;
  }

  /* Badge styling on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 span.inline-block {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Title optimization for mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem !important;
    word-wrap: break-word !important;
  }

  /* Description text on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    padding: 0 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Container adjustments */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .container {
    padding: 0 1rem !important;
  }

  /* Card container on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .max-w-5xl {
    margin: 0 1rem !important;
    border-radius: 0.75rem !important;
  }

  /* Inner card styling */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-gradient-to-r.from-blue-600 {
    padding: 1px !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.rounded-xl {
    padding: 1.25rem !important;
    border-radius: 0.625rem !important;
  }

  /* Section subtitle on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 h3 {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    padding: 0 0.5rem !important;
  }

  /* Grid layout for mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid {
    gap: 0.75rem !important;
    padding: 0 1rem !important;
  }

  /* Feature cards on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.p-4.rounded-xl {
    padding: 0.875rem !important;
    border-radius: 0.5rem !important;
  }

  /* Icon containers on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-blue-600.p-2 {
    padding: 0.5rem !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    margin-right: 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-blue-600.p-2 i {
    font-size: 0.875rem !important;
  }

  /* Feature titles on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 h4 {
    font-size: 0.9375rem !important;
    margin-bottom: 0.375rem !important;
    line-height: 1.3 !important;
  }

  /* Feature descriptions on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-gray-700.text-sm {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
  }

  /* Flex layout optimization */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start {
    align-items: flex-start !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start > div:first-child {
    flex-shrink: 0 !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start > div:last-child {
    flex: 1 !important;
    min-width: 0 !important;
  }

  /* Bottom stats section if present */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-3 {
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    padding: 0 1rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-2xl {
    font-size: 1.25rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-gray-600:not(.text-sm) {
    font-size: 0.625rem !important;
  }
}

/* Very small screens (max-width: 375px) */
@media (max-width: 375px) {
  section.bg-gradient-to-br.from-gray-50.to-blue-50 {
    padding: 1.5rem 0 !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 1.25rem !important;
    padding: 0 0.5rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 0.875rem !important;
    padding: 0 0.5rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h3 {
    font-size: 1rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h4 {
    font-size: 0.875rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-gray-700.text-sm {
    font-size: 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .max-w-5xl {
    margin: 0 0.5rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.p-4.rounded-xl {
    padding: 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-blue-600.p-2 {
    min-width: 2rem !important;
    height: 2rem !important;
    padding: 0.375rem !important;
  }
}

/* Tablet/Medium screens (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1023px) {
  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 2rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 1.125rem !important;
  }

  /* Maintain 2-column grid on tablets */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Ultra-wide screens (min-width: 1920px) */
@media (min-width: 1920px) {
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .container {
    max-width: 1536px !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 3rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 1.375rem !important;
    max-width: 70ch !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-1.md\\:grid-cols-2 {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
}
