.brand-section {
  overflow: hidden;
  padding: 40px 0;
  background: #f8f9fc;
}

/* Reduce gap between rows */
.slider {
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 60px;
  width: max-content;
}

/* Uniform logo sizing */
.logo {
  width: 170px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
}

/* Left moving */
.slider-left .slider-track {
  animation: scrollLeft 35s linear infinite;
}

/* Right moving */
.slider-right .slider-track {
  animation: scrollRight 35s linear infinite;
}

/* Keyframes */
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}




.brand-row::before,
.brand-row::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.brand-row::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fc, transparent);
}

.brand-row::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fc, transparent);
}

/* Smooth transition */
.logo img {
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
  transition: filter 0.4s ease, transform 0.3s ease;
}

/* Greyscale on hover */
.logo img:hover {
  filter: grayscale(100%);
  transform: scale(1.05);
}


/* Pause animation on hover */
.slider:hover .slider-track {
  animation-play-state: paused;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

  .logo {
    width: 110px;   /* smaller logo box */
    height: 70px;
  }

  .logo img {
    max-height: 55px;  /* smaller logo image */
  }

  .slider-track {
    gap: 35px;  /* reduce space between logos */
  }

}





.portfolio-section {
  text-align: center;
  padding: 80px 20px;
  background: #f8f9fc;
}

/* BIG BACKGROUND HEADING */
.big-heading {
  font-size: 120px;
  font-weight: 800;
  opacity: 0.05;
  margin-bottom: -40px;
  animation: floatText 6s ease-in-out infinite alternate;
}

/* Floating animation */
@keyframes floatText {
  from { transform: translateY(0px); }
  to   { transform: translateY(15px); }
}

.main-heading {
  font-size: 32px;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 15px;
  line-height: 1.4;
}

.main-heading span {
  color: #0057ff;
}

.subheading {
  font-size: 18px;
  margin-bottom: 25px;
  color: #666;
}

/* CTA BUTTON */
.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #0057ff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 50px;
}

.cta-btn:hover {
  background: #003fcc;
  transform: translateY(-3px);
}

.bottom-cta {
  margin-top: 50px;
}


/* BUTTON STYLE */
.tech-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #0057ff;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.tech-btn:hover {
  background: #003fcc;
  transform: translateY(-3px);
}

/* TECH ITEM */
.tech-item {
  background: #fff;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.tech-item img {
  max-height: 45px;
  transition: 0.4s ease;
}

/* Hover Card Effect */
.tech-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* TECH NAME (Hidden Initially) */
.tech-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

/* SHOW ON HOVER */
.tech-item:hover .tech-name {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: Slight Icon Scale on Hover */
.tech-item:hover img {
  transform: scale(1.1);
}