/* ==========================================================================
   M.A. INFRA PROJECT - Responsive Rules & Breakpoints
   Desktop (1440px+), Laptop (1024px), Tablet (768px), Mobile (480px)
   ========================================================================== */

/* Global Edge Guard */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Large Desktop Adjustments */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 3.8rem;
  }

  .container {
    padding: 0 32px;
  }
}

/* Laptop & Medium Screens (Max 1200px) */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Tablet Screens (Max 992px) */
@media (max-width: 992px) {
  .top-bar-info {
    font-size: 0.75rem;
    gap: 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-floating-cards {
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-card:nth-child(2), .floating-card:nth-child(3) {
    margin-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-height: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger Navigation Drawer Toggle */
  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgb(255 255 255 / 98%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(245, 130, 32, 0.25);
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 100px 24px 40px 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1004;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
    border-radius: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.05rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link.active {
    border-color: var(--color-orange);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .top-bar-gstin {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subheading {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner h2 {
    font-size: 1.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .exp-badge {
    padding: 12px 18px;
    bottom: 15px;
    right: 15px;
  }

  .exp-badge .number {
    font-size: 2rem;
  }
}

/* Small Mobile Screens (Max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .top-bar-content {
    justify-content: center;
  }

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

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .about-tabs {
    flex-wrap: wrap;
  }
}
