/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-card {
  background: #020617;
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
}

.skill-card span {
  color: var(--gray);
  font-size: 0.9rem;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(79,70,229,0.3);
}

/* ---------- MODAL ---------- */
.skill-modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #020617;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: scaleIn 0.3s ease;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--gray);
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
