body {
  font-family: "Poppins", sans-serif;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1; /* pushes footer to bottom */
}

/* Navbar gradient */
.navbar {
  background: linear-gradient(
    120deg,
    #ff3b5c,
    #ff6ec4,
    #7873f5,
    #42e695,
    #fbc531
  );
  background-size: 400% 400%;
  animation: rainbowShift 14s ease infinite;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: all 0.4s ease;
}
@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(120deg, #ff3b5c, #ff6ec4, #7873f5, #42e695, #fbc531);
  background-size: 400% 400%;
  animation: rainbowShift 14s ease infinite;
  box-shadow: 0 0 8px rgba(255,59,92,0.6), 0 0 16px rgba(120,115,245,0.35);
  z-index: 10002; /* ensure progress is above navbar */
  transition: width 0.2s ease;
  pointer-events: none;
}

/* Brand */
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Links */
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 15px;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffe600 !important;
  text-shadow: 0 0 6px #7372a7, 0 0 15px #cfd520;
}

/* Dropdown menu */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: none;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.dropdown-item {
  font-weight: 500;
  border-radius: 6px;
  transition: 0.3s;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, #ff7a8a, #ff3b5c);
  color: #fff;
}

/* Submenu */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.3rem;
}
.dropdown-submenu > a::after {
  content: "\25B6"; /* triangle */
  float: right;
  margin-left: 0.3rem;
  font-size: 0.75rem;
  color: #ff3b5c;
}

/* Fix submenu visibility */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-menu .dropdown-submenu > .dropdown-menu {
  display: none;
  position: absolute;
  border-radius: 10px;
}

/* Search bar */
.search-bar input {
  border-radius: 20px;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
}

/* Social icons */
.social-icons a {
  color: #fff;
  margin-left: 10px;
  font-size: 1.1rem;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #ffe3e3;
  text-shadow: 0 0 6px #ff3b5c;
}

/* Mobile */
.navbar-toggler {
  border: none;
  font-size: 1.8rem;
  color: #fff;
}

/* Back to top */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b5c, #ff6ec4, #7873f5);
  background-size: 200% 200%;
  animation: rainbowShift 6s linear infinite;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  display: none; /* hidden by default; JS should add .visible */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10003;
  transition: transform 0.3s ease, opacity 0.15s ease;
  opacity: 0;
  pointer-events: none;
}

/* Helper class for JS: add/remove this class to show/hide the button */
#scrollTopBtn.visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}


/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  margin-top: auto;
}
footer h5,
footer h6 {
  font-weight: 700;
  margin-bottom: 15px;
}
footer p,
footer li,
footer a {
  font-size: 0.95rem;
}
footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #ffcc70 !important;
}
footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  transition: all 0.3s ease;
}
footer .social-icons a:hover {
  color: #ffcc70;
  transform: scale(1.1);
}
footer .newsletter input {
  border-radius: 25px 0 0 25px;
  border: none;
  padding: 10px 15px;
}
footer .newsletter button {
  border-radius: 0 25px 25px 0;
  border: none;
  padding: 10px 20px;
  background: #ff3b5c;
  color: #fff;
  font-weight: 600;
}
footer .newsletter button:hover {
  background: #42e695;
}
footer .footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
} 
/* end footer */

main {
  flex: 1; /* pushes footer to bottom */
}

/* Navbar gradient */
.navbar {
  background: linear-gradient(
    120deg,
    #ff3b5c,
    #ff6ec4,
    #7873f5,
    #42e695,
    #fbc531
  );
  background-size: 400% 400%;
  animation: rainbowShift 14s ease infinite;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: all 0.4s ease;
}
@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(120deg, #ff3b5c, #ff6ec4, #7873f5, #42e695, #fbc531);
  background-size: 400% 400%;
  animation: rainbowShift 14s ease infinite;
  box-shadow: 0 0 8px rgba(255,59,92,0.6), 0 0 16px rgba(120,115,245,0.35);
  z-index: 10002; /* ensure progress is above navbar */
  transition: width 0.2s ease;
  pointer-events: none;
}

/* Brand */
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Links */
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 15px;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffe600 !important;
  text-shadow: 0 0 6px #7372a7, 0 0 15px #cfd520;
}

/* Dropdown menu */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: none;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.dropdown-item {
  font-weight: 500;
  border-radius: 6px;
  transition: 0.3s;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, #ff7a8a, #ff3b5c);
  color: #fff;
}

/* Submenu */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.3rem;
}
.dropdown-submenu > a::after {
  content: "\25B6"; /* triangle */
  float: right;
  margin-left: 0.3rem;
  font-size: 0.75rem;
  color: #ff3b5c;
}

/* Fix submenu visibility */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-menu .dropdown-submenu > .dropdown-menu {
  display: none;
  position: absolute;
  border-radius: 10px;
}

/* Search bar */
.search-bar input {
  border-radius: 20px;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
}

/* Social icons */
.social-icons a {
  color: #fff;
  margin-left: 10px;
  font-size: 1.1rem;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #ffe3e3;
  text-shadow: 0 0 6px #ff3b5c;
}

/* Mobile */
.navbar-toggler {
  border: none;
  font-size: 1.8rem;
  color: #fff;
}

/* Back to top */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b5c, #ff6ec4, #7873f5);
  background-size: 200% 200%;
  animation: rainbowShift 6s linear infinite;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  display: none; /* hidden by default; JS should add .visible */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10003;
  transition: transform 0.3s ease, opacity 0.15s ease;
  opacity: 0;
  pointer-events: none;
}

/* Helper class for JS: add/remove this class to show/hide the button */
#scrollTopBtn.visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}

/* Dark overlay */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
/* .Team Section banner */

.a4techit-banner {
  position: relative;
  overflow: hidden;
}

.a4techit-banner img {
  height: 750px; /* adjust height */
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
}
.banner-overlay h1 {
  font-size: 2.5rem;
}
.banner-overlay p {
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .a4techit-banner img {
    height: 220px;
  }
  .banner-overlay h1 {
    font-size: 1.6rem;
  }
  .banner-overlay p {
    font-size: 1rem;
  }
}
/* END OF BANER */
/* Product Section */

    .filter-btns { margin-bottom: 30px; text-align: center; }
    .filter-btns button {
      margin: 5px; padding: 8px 20px; border: none; border-radius: 30px;
      background: linear-gradient(45deg,#ff416c,#ff4b2b,#1e3c72,#2a5298);
      background-size: 300% 300%; animation: rainbowShift 10s ease infinite;
      color: #fff; font-weight: 600; transition: all 0.3s;
    }
    .filter-btns button.active,.filter-btns button:hover { 
      box-shadow: 0 5px 15px rgba(0,0,0,0.3); transform: scale(1.05); 
    }
    .product-card {
      border: none; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      overflow: hidden; transform: scale(0.95); transition: all 0.3s ease-in-out;
      opacity: 0; display: none;
    }
    .product-card.visible { opacity: 1; transform: scale(1); display: block; }
    .product-card img { height: 200px; object-fit: cover; border-bottom: 5px solid transparent; transition: border-color 0.4s; }
    .product-card:hover img { border-color: #ff416c; }
    .btn-gradient { 
      background: linear-gradient(45deg,#ff416c,#ff4b2b,#1e3c72,#2a5298);
      background-size: 300% 300%; animation: rainbowShift 8s ease infinite; 
      color: #fff; border: none; font-weight: 600; 
    }
    .btn-gradient:hover { opacity: .9; color: #fff; }
    @keyframes rainbowShift {
      0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}
    }
    #backToTop { 
      position: fixed; bottom: 20px; right: 20px; 
      background: linear-gradient(45deg,#ff416c,#2a5298);
      color: #fff; border: none; padding: 12px 16px; border-radius: 50%; 
      font-size: 20px; display: none; cursor: pointer; z-index: 9999; 
    }
    .card-title i { margin-right: 8px; }
    .card-text { min-height: 60px; }
/* End Product Section */