/*--------------------------------------------------------------
# Antbuild Software Pvt Ltd — Responsive & Cross-Platform System
# Breakpoints: 1440px, 1200px, 991px (Tablet), 768px (Phablet), 576px (Mobile), 390px (Small Mobile)
--------------------------------------------------------------*/

/* Core Global Viewport Reset */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hide Mobile Drawer and Toggle Button by Default on Desktop ( > 991px ) */
.mobile-nav,
.mobile-nav-toggle {
  display: none !important;
}

/* Touch-Friendly Targets for Mobile & Webkit Devices */
button, 
input, 
select, 
textarea, 
.btn-brand-primary, 
.btn-brand-secondary, 
.nav-menu a, 
.mobile-nav a {
  touch-action: manipulation;
}

/* Responsive Table Wrapper */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Breakpoint 1200px — Laptop / Desktop Scaling */
@media (max-width: 1200px) {
  .nav-menu ul {
    gap: 16px;
  }
}

/* Breakpoint 991px — Tablet & Mobile Navigation Mode */
@media (max-width: 991px) {
  body {
    padding-top: 80px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  /* Hamburger Toggle Button */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary-light, #e6f4f8);
    border: 1px solid rgba(0, 122, 165, 0.2);
    border-radius: 8px;
    color: var(--color-primary, #007AA5);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus {
    background: var(--color-primary, #007AA5);
    color: #ffffff;
    outline: none;
  }

  .nav-menu {
    display: none !important;
  }

  /* Mobile Navigation Slide-Over Drawer */
  .mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 9999;
    padding: 24px 20px;
    overflow-y: auto;
    display: none !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--color-border, #e2e8f0);
    animation: mobileNavFade 0.25s ease-in-out forwards;
  }

  @keyframes mobileNavFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav li {
    width: 100%;
  }

  .mobile-nav a {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    min-height: 44px;
  }

  .mobile-nav a:hover,
  .mobile-nav li.active > a {
    background: var(--color-primary-light, #e6f4f8);
    color: var(--color-primary, #007AA5);
    border-color: rgba(0, 122, 165, 0.3);
    font-weight: 700;
  }

  body.mobile-nav-active {
    overflow: hidden !important;
  }

  body.mobile-nav-active .mobile-nav,
  .mobile-nav.active {
    display: block !important;
  }

  /* Marquee overlay width on tablets */
  .marquee-container::before,
  .marquee-container::after {
    width: 60px;
  }
}

/* Breakpoint 768px — Medium Mobile & Phablets */
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .page-hero {
    padding: 110px 0 45px 0;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  /* Disable fixed negative offsets on hero floating cards to prevent screen overflow */
  .floating-card {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 12px 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: none !important;
  }

  .hero-product-wrap {
    margin-top: 24px;
  }

  /* Marquee shadow overlay width adjustment */
  .marquee-container::before,
  .marquee-container::after {
    width: 24px;
  }

  /* Client Marquee track card sizing */
  .client-brand-card {
    padding: 8px 16px;
  }
  .client-brand-card span {
    font-size: 13px;
  }

  /* Process steps and CTA banners */
  .cta-banner {
    padding: 50px 20px;
    border-radius: 16px;
    margin-bottom: 50px;
  }

  .cta-banner h2 {
    font-size: 28px;
  }

  .cta-banner p {
    font-size: 16px;
  }
}

/* Breakpoint 576px — Small Mobile Phones (Portrait) */
@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title p {
    font-size: 14px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 15px;
  }

  /* Full Width Stacked Brand Buttons on Mobile */
  .btn-brand-primary,
  .btn-brand-secondary,
  .btn-brand-outline-light {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 12px;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  .card-custom {
    padding: 20px 16px;
  }

  .brand-name {
    font-size: 18px;
  }
  .brand-name span {
    font-size: 10px;
  }
  .brand-logo-img, .brand-logo-icon {
    width: 34px;
    height: 34px;
  }

  .contact-info-box,
  .contact-form-wrap {
    padding: 24px 16px;
  }
}

/* Breakpoint 390px — Extra Small Screens (iPhone SE, Small Android) */
@media (max-width: 390px) {
  .section-title h2 {
    font-size: 22px;
  }

  .page-hero h1 {
    font-size: 23px;
  }

  .eyebrow-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

