/* Hint */
.tech-hint {
  text-align: center;
  font-size: 0.5rem;
  color: #00000066;
  margin-bottom: 1rem;
  transition: opacity 0.5s;
}

.tech-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Content */
.tech-description {
  margin: 0 4rem;
}

#fw3 h1 {
  text-align: center;
  word-break: break-word;
}

@media screen and (min-width: 600px) {
  .tech-description {
    margin: 0 8rem;
  }
}

@media screen and (min-width: 1000px) {
  .tech-description {
    /*margin: 0 20rem;*/
  }
}

.tech-group {
  margin-bottom: 3rem;
}

.tech-group h2 {
  font-size: 2rem;
  color: #000000CC;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.tech-tag {
  font-size: 1.4rem;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  background-color: #00000015;
  color: #000000CC;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: 1px solid #00000030;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  user-select: none;
  position: relative;
  overflow: hidden;
  animation: pulse-tag var(--total-duration, 5s) ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

@keyframes pulse-tag {
  0%, 100% {
    transform: scale(1);
  }
  5% {
    transform: scale(1.08);
  }
  10% {
    transform: scale(1);
  }
}

.tech-tag:hover {
  background-color: #00000030;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tech-tag:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tech-tag-icon {
  font-size: 0.85em;
  margin-left: 0.4rem;
  opacity: 0.45;
}

/* Shimmer */
.tech-tag.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer-slide 0.8s ease-in-out forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

@keyframes shimmer-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Modal */
.tech-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tech-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tech-modal {
  background: #D9D7D2;
  border-radius: 10px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  margin: 0 1.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.tech-modal-overlay.active .tech-modal {
  transform: translateY(0);
}

.tech-modal h2 {
  font-size: 2.2rem;
  color: #000000DD;
  margin-bottom: 1.5rem;
}

.tech-modal p {
  font-size: 1.5rem;
  color: #000000BB;
  line-height: 1.8;
}

.tech-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #000000AA;
  line-height: 1;
}

.tech-modal-close:hover {
  color: #000000;
}
