/* Responsive Styles */

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    font-size: 0.8rem;
  }
  .section-heading {
    font-size: 2rem;
  }
  .get-quote-btn {
    margin-top: 15px;
  }
  .hero p {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
  header {
    margin-bottom: 0px;
  }

  .navbar .logo a img {
    height: 40px;
  }

  .title-heading .para-desc {
    font-size: 16px;
  }

  .section-title .title {
    font-size: 24px !important;
  }

  #scrollToTop {
    bottom: 20px; /* Adjust bottom margin for smaller screens */
    right: 20px; /* Ensure button is fully visible */
    width: 45px; /* Slightly smaller size for mobile */
    height: 45px;
  }

  .js-sub-menu {
    padding-left: 0px !important;
  }
  .top-header .container {
    /* flex-direction: column; */
    text-align: center;
  }

  .links {
    padding-left: 0px !important;
  }

  .top-header {
    position: relative;
  }

  .top-header .contact-info-top-header,
  .top-header .social-icons {
    margin-bottom: 10px;
  }
  .contact-info .info-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .contact-section form {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .contact-info-top-header {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }

  .contact-info-top-header span:nth-child(2) {
    display: none;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-info span:nth-child(2) {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .social-icons {
    justify-content: center;
  }

  .hero {
    height: 60vh;
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    /* flex-direction: column; */
    gap: 10px;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about h2 {
    font-size: 28px;
  }

  .about p {
    font-size: 16px;
  }

  .about-content .image {
    margin-top: 20px;
  }

  /* Position icons for mobile */
  .reactor,
  .magnet,
  .sensor {
    position: relative;
    top: 0;
    transform: translateX(0);
  }
  .tabs {
    justify-content: flex-start; /* Ensure tabs start from the left */
    padding-left: 15px; /* Add padding to ensure first tab is fully visible */
  }

  .product-grid {
    grid-template-columns: 1fr !important; /* 1 item per row */
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr !important; /* 1 item per row on small screens */
  }
}

/* Tablet (>=768px and < 1024px) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
  }
}

@media (max-width: 480px) {
}

@media (max-width: 920px) {
  #faq-section .row {
    flex-direction: column-reverse;
  }

  #faq-section .col-lg-6 {
    margin-bottom: 30px;
  }

  nav {
    top: 0px;
  }

  nav .navbar {
    max-width: 100%;
    padding: 0 25px;
  }

  nav .navbar .logo a {
    font-size: 22px;
  }
  nav .navbar .links li {
    padding: 0 10px;
    white-space: nowrap;
  }
  nav .navbar .links li a {
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  nav {
    position: relative;
  }
  .navbar .fa-bars {
    display: block;
  }
  nav .navbar .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    display: block;
    max-width: 300px;
    width: 100%;
    background: #3e8da8;
    line-height: 40px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
  }
  .navbar .nav-links .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-logo .logo-name {
    font-size: 25px;
    color: #fff;
  }
  .sidebar-logo i,
  .navbar .fa-bars {
    font-size: 25px;
    color: var(#002855);
  }
  nav .navbar .links {
    display: block;
    margin-top: 20px;
  }
  nav .navbar .links li .arrow {
    line-height: 40px;
  }
  nav .navbar .links li {
    display: block;
  }
  nav .navbar .links li .sub-menu {
    position: relative;
    top: 0;
    box-shadow: none;
    display: none;
  }
  nav .navbar .links li .sub-menu li {
    border-bottom: none;
    padding: 0px 10px;
  }
  .navbar .links li .sub-menu .more-sub-menu {
    display: none;
    position: relative;
    left: 0;
  }
  .navbar .links li .sub-menu .more-sub-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .links li:hover .htmlcss-arrow,
  .links li:hover .fa-angle-down {
    transform: rotate(0deg);
  }
  .navbar .links li .sub-menu .more-sub-menu {
    display: none;
  }
  .navbar .links li .sub-menu .more span {
    /* background: red; */
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
  }

  .links li .sub-menu .more:hover .more-sub-menu {
    display: none;
  }
  nav .navbar .links li:hover .htmlCss-sub-menu,
  nav .navbar .links li:hover .js-sub-menu {
    display: none;
  }
  .navbar .nav-links.show1 .links .htmlCss-sub-menu,
  .navbar .nav-links.show3 .links .js-sub-menu,
  .navbar .nav-links.show2 .links .more .more-sub-menu {
    display: block;
  }
  .navbar .nav-links.show1 .links .htmlcss-arrow,
  .navbar .nav-links.show3 .links .fa-angle-down {
    transform: rotate(180deg);
  }
  .navbar .nav-links.show2 .links .more-arrow {
    transform: rotate(90deg);
  }
}
@media (max-width: 370px) {
  nav .navbar .nav-links {
    max-width: 100%;
  }
}
