/* ==========================================
   TECH STACK GRID - CSS STYLES
   ========================================== */

.tech-stack-section {
  background: linear-gradient(135deg, #05020d 0%, #070313 100%);
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
}

.tech-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--dt-border-light);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Tracking Mouse Radial Glow */
.tech-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(139, 92, 246, 0.15),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.tech-card:hover .tech-glow {
  opacity: 1;
}

.tech-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dt-accent-purple);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon-wrapper {
  transform: scale(1.1);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.tech-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dt-text-light);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--dt-text-light-muted);
  position: relative;
  z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .tech-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
