html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Webkit Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(27, 107, 62, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 107, 62, 0.6);
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Slow zoom for background slides */
.scale-102-zoom {
  animation: slowZoom 10s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

/* Pulse on budget items */
.badge-bounce {
  animation: bounceBadge 0.3s ease-out;
}

@keyframes bounceBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

/* Micro-blurs and drawer hardware acceleration fallback */
.backdrop-blur-xs {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

aside {
  will-change: transform;
}

/* Preloader Disabled for instant reliable site opening */
#loader {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Ambient Radial Glow behind the Logo */
#loader-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0) 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Shine Sweep Overlay */
#loader-logo-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
}



/* Three.js Container styling */
#threejs-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Swup Fade transitions fallback (useful for containers that aren't morphed) */
.transition-fade {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(15px);
}

/* Partner Logo Grayscale-to-Color hover effect (Only on desktop to avoid sticky touch states on mobile) */
@media (hover: hover) {
  .partner-card img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }

  .partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
}

@media (hover: none) {
  .partner-card img {
    filter: grayscale(0%);
    opacity: 0.85;
  }
}

/* --- MOBILE SPECIFIC UX & PREMIUM STYLING --- */

/* Optimize section paddings on mobile to avoid giant empty gaps */
@media (max-width: 767px) {
  .home-page-section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  #hero-banner.home-page-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #banner-slider {
    height: 500px !important;
  }

  /* Prevent extremely large hero text on small viewports and reduce gaps */
  #slide-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  #slide-tagline {
    font-size: 9px !important;
    padding: 0.2rem 0.4rem !important;
    margin-bottom: 0.5rem !important;
  }

  #slide-description {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  /* Ensure hero buttons fit side-by-side without wrapping to full rows */
  #slide-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  #slide-cta,
  #slide-whatsapp {
    width: auto !important;
    flex: 0 1 auto !important;
    justify-content: center;
    padding: 0.5rem 0.85rem !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
}

/* Premium styling for mobile menu list items */
#mobile-category-list a {
  transition: background-color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

#mobile-category-list a:active {
  background-color: rgba(34, 197, 94, 0.15);
  padding-left: 1rem;
}

/* Smooth modal details styling on mobile to prevent clipping and nesting issues */
@media (max-width: 767px) {

  #product-modal-root .bg-white,
  #article-modal-root .bg-white {
    max-height: 85vh !important;
    border-radius: 1.25rem !important;
  }

  #modal-carousel-root {
    min-height: 240px !important;
    height: 240px !important;
  }

  /* Tighten form fields on mobile contact and careers forms and prevent iOS auto-zoom */
  form input,
  form textarea,
  form select {
    font-size: 16px !important;
    padding: 0.65rem 0.75rem !important;
  }
}

/* --- TABLET, IPAD & NOTEBOOK RESPONSIVE HERO DESIGN --- */

/* Medium Tablets & iPad Portrait (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  #banner-slider {
    height: 520px !important;
  }

  #slide-title {
    font-size: 2.75rem !important;
    /* Elegant 44px text size for iPad */
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }

  #slide-description {
    font-size: 0.95rem !important;
    /* 15.2px */
    margin-bottom: 1.5rem !important;
    max-width: 90% !important;
  }
}

/* Notebooks & Small Laptops (1025px to 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  #banner-slider {
    height: 560px !important;
  }

  #slide-title {
    font-size: 3.25rem !important;
    /* Beautifully scaled 52px text size for notebooks */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  #slide-description {
    font-size: 1.05rem !important;
    /* 16.8px */
    margin-bottom: 1.75rem !important;
    max-width: 85% !important;
  }
}

#banner-slider {
  height: 620px !important;
}

#slide-title {
  font-size: 3.25rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
}

#slide-description {
  font-size: 1.05rem !important;
  margin-bottom: 1.75rem !important;
  max-width: 85% !important;
}

/* Premium Glassmorphic Hero Card style */
#slide-content-card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#slide-content-card:hover {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 50px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}