/* Futuristic Tech Cards - Holographic Style */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.tech-grid--portfolio {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tech-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 25px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translate3d(0, 0, 0);
}

.tech-card--large {
  padding: 30px;
  min-height: 280px;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    transparent 0%,
    rgba(255,255,255,0.1) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 70%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.tech-card:hover::before {
  opacity: 1;
  animation: holographicShift 3s linear infinite;
}

.tech-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5),
              0 0 20px rgba(255,255,255,0.1);
}

/* Corner accent */
.tech-card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-top: 2px solid rgba(255,255,255,0.3);
  border-right: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-card__corner {
  width: 70px;
  height: 70px;
  border-color: rgba(255,255,255,0.6);
}

/* Scan line effect */
.tech-card__scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.6) 50%,
    transparent 100%
  );
  transform: translateY(0);
  animation: scanLine 4s linear infinite;
  opacity: 0.3;
}

.tech-card:hover .tech-card__scanline {
  opacity: 0.8;
  animation-duration: 2s;
}

/* Icon */
.tech-card__icon {
  font-size: 40px;
  margin-bottom: 15px;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Glitch text */
.tech-card__glitch {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  font-family: 'Roboto', monospace;
}

.tech-card:hover .tech-card__glitch {
  animation: glitch 0.5s infinite;
}

/* Title */
.tech-card__title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

/* Metrics */
.tech-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: 'Roboto', monospace;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.metric__label {
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.metric__value {
  color: #cccccc;
  font-weight: 400;
  text-align: right;
}

/* Tags */
.tech-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999999;
  font-family: 'Roboto', sans-serif;
  transition: all 0.2s ease;
}

.tech-card:hover .tag {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #cccccc;
}

/* Link */
.tech-card__link {
  display: inline-block;
  margin-top: 15px;
  color: #aaaaaa;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Roboto', monospace;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.tech-card__link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Status badge */
.tech-card__status {
  margin-top: 15px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-left: 2px solid rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbbbbb;
  font-family: 'Roboto', monospace;
}

/* Content section link */
.content-section__link {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.content-section__link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Animations */
@keyframes holographicShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(300px);
  }
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                 -0.025em -0.05em 0 rgba(0,255,0,0.75),
                 0.025em 0.05em 0 rgba(0,0,255,0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                 -0.025em -0.05em 0 rgba(0,255,0,0.75),
                 0.025em 0.05em 0 rgba(0,0,255,0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75),
                 0.025em 0.025em 0 rgba(0,255,0,0.75),
                 -0.05em -0.05em 0 rgba(0,0,255,0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75),
                 0.025em 0.025em 0 rgba(0,255,0,0.75),
                 -0.05em -0.05em 0 rgba(0,0,255,0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75),
                 0.05em 0 0 rgba(0,255,0,0.75),
                 0 -0.05em 0 rgba(0,0,255,0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75),
                 0.05em 0 0 rgba(0,255,0,0.75),
                 0 -0.05em 0 rgba(0,0,255,0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255,0,0,0.75),
                 -0.025em -0.025em 0 rgba(0,255,0,0.75),
                 -0.025em -0.05em 0 rgba(0,0,255,0.75);
  }
}

/* Category-specific accents */
.tech-card[data-category="creative"]:hover {
  border-color: rgba(170,170,170,0.5);
}

.tech-card[data-category="knowledge"]:hover {
  border-color: rgba(136,136,136,0.5);
}

.tech-card[data-category="mobile"]:hover {
  border-color: rgba(187,187,187,0.5);
}

.tech-card[data-category="web"]:hover {
  border-color: rgba(204,204,204,0.5);
}

.tech-card[data-category="iot"]:hover {
  border-color: rgba(153,153,153,0.5);
}

/* Responsive */
@media only screen and (max-width: 1000px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-card {
    padding: 20px;
  }

  .tech-card--large {
    padding: 25px;
    min-height: auto;
  }

  .tech-card__icon {
    font-size: 32px;
  }

  .tech-card__title {
    font-size: 16px;
  }
}

/* Animation delays for staggered entrance */
.tech-card:nth-child(1) {
  animation: cardFadeIn 0.6s ease-out 0.1s backwards;
}

.tech-card:nth-child(2) {
  animation: cardFadeIn 0.6s ease-out 0.2s backwards;
}

.tech-card:nth-child(3) {
  animation: cardFadeIn 0.6s ease-out 0.3s backwards;
}

.tech-card:nth-child(4) {
  animation: cardFadeIn 0.6s ease-out 0.4s backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
