@media (max-width: 767px) {
  :root {
    --heading-size: 3rem;
    --subheading-size: 1.5rem;
    --awards-heading-font: 2rem;
  }
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 10px 0;
  }
  .hero-section {
    padding-bottom: 3rem;
  }
  .shape-2 {
    display: none;
  }
  .hero-text {
    text-align: center;
  }
  .masonry-grid {
    column-count: 2;
  }
  .hero-heading {
    font-size: var(--heading-size);
  }
  .image-container {
    padding: 4rem;
  }
  .mission-img {
    display: none;
  }
  .image-heading {
    text-align: center;
    font-weight: 600;
  }
  .explore-button {
    display: flex;
    justify-content: center;
  }
  .text {
    font-size: 1em;
  }
  .hero-button {
    padding: 7px 20px;
  }
  #team .heading {
    font-size: 2.5rem;
  }

  #team h2 {
    font-size: 1.5rem;
  }

  #team p {
    font-size: 0.95rem;
  }

  .gallery-hero .subheading {
    font-size: 1rem;
  }
}
@media (max-width: 991px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .gallery-hero .heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .logo-img {
    width: 38px;
    height: 38px;
  }
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    right: -100%;
  }
  .about-us-section h2 {
    text-align: center;
  }
  .services {
    overflow-x: hidden !important;
  }
}

/* Tablet (≤ 991px) */
@media (max-width: 991.98px) {
  .footer-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .footer-col {
    margin-bottom: 0.3rem;
  }
}

/* Mobile Landscape (≤ 767px) */
@media (max-width: 767.98px) {
  .footer-main .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col {
    width: 100%;
    text-align: center;
  }
  .footer-col.links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .footer-col.links ul li {
    margin: 0;
  }
  .footer-col.contact ul li {
    justify-content: center;
  }
  .footer-socials {
    display: flex;
    justify-content: center;
  }
  .invisalign-info {
    text-align: center;
    padding: 0px;
  }
  .invisalign-heading {
    font-size: 2.5rem;
  }

  .invisalign-subtext {
    font-size: 1rem;
  }

  .invisalign-description {
    font-size: 1rem;
  }

  .invisalign-info img {
    max-width: 250px;
  }

  .qr-img {
    max-width: 150px;
  }

  .try-btn {
    padding: 1rem 2rem;
  }
}

/* Mobile Portrait (≤ 575px) */
@media (max-width: 575.98px) {
  .footer-col h4 {
    font-size: 1.2rem;
  }
  .footer-col p,
  .footer-col li {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .footer-socials a {
    font-size: 1.4rem;
    margin: 0 0.5rem;
  }
  .footer-bottom p.small {
    font-size: 0.8rem;
  }
  .footer-main,
  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .whatsapp-live {
    display: none;
  }

  .popup-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #25d366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 999;
  }

  /* Inner content to manage layout nicely */
  .popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .popup-content i {
    font-size: 22px;
  }
  /* "Book Now" Button */
  .popup-book-now {
    background: #ffffff;
    color: #5c6bc0;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s, color 0.3s;
  }
  /* Close button */
  .popup-close {
    position: absolute;
    top: -15px;
    right: 6px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
  }
  /* Hover effect */
  .popup-book-now:hover {
    background: #3f51b5;
    color: #ffffff;
  }

  /* Show Animation */
  .popup-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: pulse 1.5s infinite;
  }

  /* Pulse Animation */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
  }
}
