/* ==========================================================================
   ALL CORE SOLUTION - Responsive Media Queries & Mobile App Bottom Bar
   ========================================================================== */

/* Force prevent horizontal scrollbar on body & html across all viewports */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* Base mobile bottom bar desktop state (hidden on wide screens) */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .services-grid, .products-grid, .industries-grid, .clients-category-grid, .work-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  /* Prevent content overlap with fixed bottom navigation bar */
  body {
    padding-bottom: 75px !important;
  }

  .top-bar {
    overflow-x: hidden;
  }

  .top-info-list {
    display: none;
  }

  .hero-grid, .about-grid, .why-us-grid, .step02-grid, .step04-grid, .step05-grid, .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .service-detail-grid {
    padding: 2.5rem 0 !important;
  }

  .hero-form-card {
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  .service-hero {
    padding: 3.5rem 0 2.5rem 0 !important;
  }

  .service-hero h1 {
    font-size: 2.1rem !important;
  }

  .step02-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .step02-metric-card:nth-child(2)::after {
    display: none;
  }

  .hero-visual-container {
    min-height: 360px;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  /* Scale wheel to fit mobile width without overflowing */
  .hero-hub-wheel {
    width: 290px;
    height: 290px;
  }

  .hub-center-logo {
    width: 100px;
    height: 100px;
  }

  .hub-center-logo img {
    height: 36px;
  }

  .hub-node {
    width: 85px;
    height: 48px;
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
  }

  .hub-node i {
    font-size: 1rem;
  }

  /* Scaled node offsets for 290px mobile wheel */
  .hub-node.node-1 { top: -22px; left: calc(50% - 42.5px); }
  .hub-node.node-2 { top: 48px; right: -22px; }
  .hub-node.node-3 { bottom: 48px; right: -22px; }
  .hub-node.node-4 { bottom: -22px; left: calc(50% - 42.5px); }
  .hub-node.node-5 { bottom: 48px; left: -22px; }
  .hub-node.node-6 { top: 48px; left: -22px; }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Completely remove toggle / hamburger button */
  .mobile-toggle {
    display: none !important;
  }

  /* Hide desktop header menu links on mobile */
  .nav-menu {
    display: flex;
    gap: 0.75rem;
  }
  
  .nav-menu .nav-link {
    display: none;
  }

  /* FIXED STICKY APP-LIKE MOBILE BOTTOM NAVIGATION BAR */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 66px !important;
    background: rgba(5, 8, 17, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--color-border) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.25rem !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: var(--trans-fast);
    position: relative;
  }

  .bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--color-primary);
  }

  .bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.8));
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 32px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 0 0 4px 4px;
    box-shadow: var(--glow-cyan);
  }

  /* Reposition floating WhatsApp button above the bottom navigation bar */
  .floating-whatsapp {
    bottom: 5.25rem !important;
    right: 1.25rem !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 1.75rem !important;
  }
  
.step01-title {
    width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto 40px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}
}

@media (max-width: 768px) {
  .services-grid, .products-grid, .industries-grid, .features-list-grid, .clients-category-grid, .tech-stack-grid, .work-cards-grid, .step04-cards-wrapper, .step05-checklist-grid {
    grid-template-columns: 1fr;
  }
  .step02-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-hub-wheel {
    transform: scale(0.85);
  }
  .hub-center-logo img{
     height: 68px;
  width: auto;
  }
  .hub-center-tag
{
display:none;
}

.step01-title {
    width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto 40px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}
}

@media (max-width: 480px) {
  .step02-metrics-row {
    grid-template-columns: 1fr;
  }
  .step02-metric-card::after {
    display: none !important;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.6rem;
  }
  .bottom-nav-item span {
    font-size: 0.65rem;
  }
  .hero-hub-wheel {
    transform: scale(0.78);
  }
  .service-hero {
    padding: 2.5rem 0 2rem 0 !important;
  }
  .service-hero h1 {
    font-size: 1.55rem !important;
  }
  .service-hero p {
    font-size: 0.95rem !important;
  }
  
.step01-title {
    width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto 40px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}
}
