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);
}

/* about section */
.about-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-title {
  font-weight: 700;
  font-size: 2.5rem;
  background: linear-gradient(45deg, #0d6efd, #20c997);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text {
  font-size: 1.05rem;
  margin-top: 15px;
  line-height: 1.7;
}

.highlight {
  font-weight: 600;
  color: #0d6efd;
}

.read-btn {
  background: linear-gradient(45deg, #0d6efd, #20c997);
  color: #fff;
  padding: 12px 32px;
  margin-top: 25px;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.read-btn:hover {
  background: linear-gradient(45deg, #20c997, #0d6efd);
  transform: translateY(-3px) scale(1.05);
}

/* Glassmorphism Card for Image */
.about-img-container {
  position: relative;
  max-width: 450px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-img-container img {
  width: 100%;
  border-radius: 12px;
}

/* Floating service icons */
.service-icon {
  position: absolute;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.service-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon-erp {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  top: -10%;
  left: -15%;
  animation-delay: 0s;
}

.icon-web {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  top: 5%;
  right: -18%;
  animation-delay: 1s;
}

.icon-app {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  bottom: 25%;
  left: -20%;
  animation-delay: 2s;
}

.icon-cloud {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
  bottom: -5%;
  right: -15%;
  animation-delay: 3s;
}
.icon-ai {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  top: 40%;
  right: -15%; /* shifted from -28% to -15% */
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* Responsive Fixes */
@media (max-width: 992px) {
  .service-icon {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
  .icon-erp {
    top: -8%;
    left: -5%;
  }
  .icon-web {
    top: -5%;
    right: -8%;
  }
  .icon-app {
    bottom: 15%;
    left: -5%;
  }
  .icon-cloud {
    bottom: -5%;
    right: -5%;
  }
  .icon-ai {
    top: 30%;
    right: -10%;
  }
}

@media (max-width: 576px) {
  .about-title {
    font-size: 2rem;
  }
  .about-text {
    font-size: 1rem;
  }
  .service-icon {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}
/* end about section */

/* Services start */
.services-section {
  padding: 70px 0;
}

.services-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #36d1dc, #5b86e5, #f7971e, #ff6a00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  text-align: left;
  height: 100%;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 0;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -2px; /* extend beyond the card to show gradient border */
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5, #42e695, #fbc531);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-icon-2 {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbcaca;
  font-size: 20px;
  flex-shrink: 0;
}

.service-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.btn-view {
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: #fff;
  padding: 12px 32px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-view:hover {
  background: linear-gradient(135deg, #20c997, #0d6efd);
  transform: scale(1.05);
}

/* 🎨 Gradient Variations */
.service-color-1 .service-icon-2 {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}
.service-color-2 .service-icon-2 {
  background: linear-gradient(135deg, #43cea2, #185a9d);
}
.service-color-3 .service-icon-2 {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}
.service-color-4 .service-icon-2 {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.service-color-5 .service-icon-2 {
  background: linear-gradient(135deg, #ff6a00, #ee0979);
}
/* end services */

/* 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 */
.team-section { padding:80px 0; text-align:center; }
    .team-section h2 { font-weight:700; margin-bottom:40px; color:#333; }

    .team-card {
      background:#fff; border-radius:15px; padding:20px;
      box-shadow:0 6px 20px rgba(0,0,0,0.08);
      transition:.3s;
    }
    .team-card:hover { transform:translateY(-8px); }

    .team-card img {
      width:140px; height:140px;
      object-fit:cover; border-radius:50%;
      border:4px solid #42e695;
      margin-bottom:15px;
      transition:.3s;
    }
    .team-card:hover img { border-color:#ff3b5c; }

    .team-info h5 { font-weight:700; margin:5px 0; }
    .team-info span { font-size:.9rem; color:#777; }

    .social-links a {
      color:#555; font-size:1.1rem; margin:0 6px;
      transition:.3s;
    }
    .social-links a:hover { color:#ff3b5c; }

    .more-btn {
      margin-top:10px;
      background:#ff3b5c; color:#fff;
      font-size:.85rem; padding:6px 14px;
      border-radius:20px; border:none;
      transition:.3s;
    }
    .more-btn:hover { background:#42e695; color:#fff; }

    /* Filter buttons */
    .filter-btns { margin-bottom:30px; }
    .filter-btns button {
      border:none; padding:8px 18px; margin:0 5px;
      border-radius:20px; background:#ff3b5c; color:#fff;
      transition:.3s;
    }
    .filter-btns button:hover,
    .filter-btns button.active { background:#42e695; }

    /* Modal */
    .modal-footer {
      display:flex; justify-content:space-between; align-items:center;
    }
    .modal-footer button {
      border:none; background:#ff3b5c; color:#fff;
      padding:6px 14px; border-radius:20px;
    }
    .modal-footer button:hover { background:#42e695; }



 .hero {
      background: linear-gradient(120deg,#ff416c,#ff4b2b,#1e3c72,#2a5298);
      background-size: 300% 300%;
      animation: gradientShift 15s ease infinite;
      color: #fff;
      padding: 120px 20px;
      text-align: center;
    }
    .hero h1 { font-size: 3rem; font-weight: 700; }
    .hero p { font-size: 1.2rem; }

    @keyframes gradientShift {
      0%{background-position:0% 50%}
      50%{background-position:100% 50%}
      100%{background-position:0% 50%}
    }

    /* Counters */
    .counter-box {
      background: #fff;
      border-radius: 15px;
      padding: 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      text-align: center;
    }
    .counter-box i {
      font-size: 40px;
      margin-bottom: 15px;
      background: linear-gradient(45deg,#ff416c,#2a5298);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
    .counter-number {
      font-size: 2rem;
      font-weight: 700;
    }

    /* Accordion */
    .accordion-button:not(.collapsed) {
      background: linear-gradient(45deg,#ff416c,#2a5298);
      color: #fff;
    }

    