.tech-stack {
  margin: 56px 0;
  text-align: center;
}

.tech-stack h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
}

.tech-stack .desc {
  color: #9fb2bd;
  font-size: .92rem;
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.5;
}

.tech-stack h2 i {
  color: var(--accent, #2ec4b6);
  font-size: 1.35em;
  filter: drop-shadow(0 0 6px rgba(46,196,182,.35));
  animation: glowSoft 4.2s cubic-bezier(.25,.1,.25,1) infinite;
  will-change: filter, transform, opacity;
}

@keyframes glowSoft {
  0%   { transform: translateY(0) scale(1);    opacity: .96; filter: drop-shadow(0 0 5px rgba(46,196,182,.30)); }
  25%  { transform: translateY(-0.5px) scale(1.01); opacity: .98; filter: drop-shadow(0 0 7px rgba(46,196,182,.40)); }
  50%  { transform: translateY(0) scale(1.015); opacity: 1;   filter: drop-shadow(0 0 9px rgba(46,196,182,.48)); }
  75%  { transform: translateY(-0.5px) scale(1.01); opacity: .98; filter: drop-shadow(0 0 7px rgba(46,196,182,.40)); }
  100% { transform: translateY(0) scale(1);    opacity: .96; filter: drop-shadow(0 0 5px rgba(46,196,182,.30)); }
}

.tech-stack h2 i:hover {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(46,196,182,.55));
  transition: transform .3s ease, filter .3s ease;
}

.tech-stack .desc {
  color: #9fb2bd;
  font-size: .92rem;
  max-width: 680px;   
  margin: 0 auto 22px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .tech-stack h2 i { animation: none !important; }
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 750px;       
  margin: 0 auto;
  gap: 16px;
  justify-items: center;
}

.stack-item {
  background: rgba(14,18,20,0.9);
  border: 1px solid rgba(46,196,182,0.15);
  border-radius: 12px;
  padding: 10px 8px;
  max-width: 130px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: #d7f9f9;
  transition: all .25s ease;
  box-shadow: 0 0 6px rgba(46,196,182,0.09);
}

.stack-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 3px rgba(46,196,182,0.25));
}

.stack-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent,#2ec4b6);
  box-shadow: 0 0 12px rgba(46,196,182,0.22);
}

@media (max-width: 850px){
  .stack-grid { max-width: 500px; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); }
}
@media (max-width: 560px){
  .stack-grid { max-width: 100%; grid-template-columns: repeat(3, 1fr); }
}


