/* Tech Stack nadpis a podnadpis */
.tech-stack__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.tech-stack__title-main {
  display: block;
  margin-bottom: 0.5rem;
}

.tech-stack__title-highlight {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.tech-stack__title-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 2px;
  opacity: 0.7;
  animation: underlineGrow 1s ease 0.5s forwards;
  transform: scaleX(0);
  transform-origin: left;
}

.tech-stack__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #c7d2fe;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.tech-stack__subtitle-text {
  color: #c7d2fe;
}

.tech-stack__subtitle-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Tech kategorie */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.tech-category:hover::before {
  opacity: 1;
}

.tech-category__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-align: center;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.tech-item:hover .tech-item__icon {
  transform: scale(1.1);
  filter: brightness(1.2) contrast(1.2);
}

.tech-item__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  filter: brightness(1.1) contrast(1.1);
  transition: all 0.3s ease;
}

.tech-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.3;
}

/* Animace při zobrazení */
.tech-category {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.tech-category:nth-child(1) { animation-delay: 0.6s; }
.tech-category:nth-child(2) { animation-delay: 0.7s; }
.tech-category:nth-child(3) { animation-delay: 0.8s; }
.tech-category:nth-child(4) { animation-delay: 0.9s; }

/* Responzivní design */
@media (max-width: 1200px) {
  .tech-categories {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tech-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .tech-category {
    padding: 1.5rem;
  }
  
  .tech-category__title {
    font-size: 1.375rem;
  }
  
  .tech-items {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .tech-item {
    padding: 0.75rem;
  }
  
  .tech-item__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }
  
  .tech-item__name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tech-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-item {
    padding: 0.5rem;
  }
  
  .tech-item__icon {
    width: 36px;
    height: 36px;
  }
  
  .tech-item__name {
    font-size: 0.8rem;
  }
}