/* ==========================================================================
   Responsive Breakpoints & Media Queries (Full Mobile Viewport Optimization)
   ========================================================================== */

/* Global Mobile Fix: Prevent any element from exceeding viewport */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-layout-grid,
  .about-home-grid,
  .contact-duo-grid,
  .lms-hero-grid,
  .drm-layout-grid,
  .game-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .grid-4,
  .team-grid-4-col,
  .case-studies-grid,
  .portal-features-grid,
  .lms-pricing-grid,
  .interactive-sim-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .workflow-arrow-connector {
    display: none;
  }

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

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .services-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .mock-test-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5,
  .parent-whatsapp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-gradient {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 42px 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-container {
    height: 64px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .brand-logo img {
    height: 38px;
    max-width: 160px;
  }

  .hero-wrapper {
    padding: 2rem 0 1.75rem 0;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-main-heading {
    font-size: 1.95rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .hero-btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .services-card-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .team-grid-4-col,
  .case-studies-grid,
  .modules-grid,
  .portal-features-grid,
  .lms-hero-grid,
  .drm-layout-grid,
  .mock-test-grid,
  .parent-whatsapp-grid,
  .lms-pricing-grid,
  .interactive-sim-grid,
  .game-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .workflow-track {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .how-it-works-flow {
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-row-3,
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .about-photo-wrapper {
    height: 240px;
  }

  .cta-banner-gradient {
    padding: 1.75rem 1.25rem;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .floating-whatsapp {
    display: none !important;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-main-heading {
    font-size: 1.75rem;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
