/* ── Technology Stack (Premium Tech Wall) ── */
.v2-tech-stack-premium { 
  background: #ffffff; 
  height: 100vh; /* Fixed height for perfect fit */
  min-height: 600px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  position: relative;
  padding: 40px 0;
}

.v2-tech-wall-container {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Precise gap */
  padding: 20px 0;
  width: 100%;
  position: relative;
}

/* Marquee Logic (Seamless Infinite Cycle) */
.v2-tech-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Faded edges for depth */
.v2-tech-marquee::before,
.v2-tech-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.v2-tech-marquee::before { left: 0; background: linear-gradient(to right, #ffffff, transparent); }
.v2-tech-marquee::after { right: 0; background: linear-gradient(to left, #ffffff, transparent); }

.v2-tech-marquee-content {
  display: flex;
  width: max-content;
  gap: 40px; /* Exact gap maintained between all items including loop point */
  will-change: transform;
}

.v2-tech-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px; 
  height: 150px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  flex-shrink: 0; /* Prevent squishing */
}

.v2-tech-box:hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 20px 40px rgba(23, 81, 145, 0.12);
  border-color: var(--v2-primary);
  z-index: 10;
}

.v2-tech-box i {
  font-size: 3.8rem;
  margin-bottom: 10px;
}

.v2-tech-box span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
}

/* Animations (Mathematical Loop) */
.anim-scroll-left {
  animation: loop-left 40s linear infinite;
}

.anim-scroll-right {
  animation: loop-right 40s linear infinite;
}

@keyframes loop-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 20px)); } /* -50% plus half the gap for perfect alignment */
}

@keyframes loop-right {
  0% { transform: translateX(calc(-50% - 20px)); }
  100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .v2-tech-stack-premium { height: auto; min-height: auto; padding: 60px 0; }
  .v2-tech-box { width: 110px; height: 110px; border-radius: 18px; }
  .v2-tech-box i { font-size: 2.8rem; }
}
