/* === Responsive adjustments for all devices === */

/* Navbar and header */
@media (max-width: 992px) {
  .navbar-brand img {
    width: 180px !important;
    height: auto;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }

  .navbar-toggler {
    border: none;
    outline: none;
  }

  .navbar-toggler-icon {
    background-color: #fff;
    border-radius: 4px;
  }

  #google_translate_wrapper {
    margin: 10px auto;
    display: block;
  }
}

/* How It Works and QR Code sections */
@media (max-width: 768px) {
  .how-card {
    margin-bottom: 20px;
  }

  .how-card .card-body {
    padding: 20px;
  }

  #qrCodeContainer {
    width: 80% !important;
    margin: 0 auto;
  }

  #qrCodeTitle {
    font-size: 1.1rem;
  }

  .social a i {
    font-size: 1.8rem;
  }
}

/* QR container general size control */
#qrCodeContainer {
  max-width: 280px;
  width: 100%;
  margin: auto;
}
@media (max-width: 576px) {
  #qrCodeContainer {
    max-width: 220px;
  }
}

/* Share icons spacing */
@media (max-width: 576px) {
  .social a {
    margin: 8px;
  }
}

/* Back-to-top button touch spacing */
@media (max-width: 768px) {
  #back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Optional smoother animation tweak for mobile */
@media (max-width: 768px) {
  #rotateImage {
    animation: rotateIn 10s ease-in-out;
  }
}
