/* Skills Section */
#skills {
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  text-align: center;
  width: 100%;
}

#skills h2 {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--primary-color);
}

.skills-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-content: center;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skill {
  background: var(--bg-dark-alt);
  box-shadow: 0 2px 8px var(--shadow-minimal);
  padding: 28px 20px 24px 20px;
  min-width: 0;
  width: 100%;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 5px solid var(--primary-color);
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.skill.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill:hover {
  transform:  scale(1.1);
  border-color: var(--accent-gold-hover);
  box-shadow: 0 8px 16px var(--shadow-medium);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.skill-name {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
  font-weight: bold;
}

.skill-details {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  text-align: left;
  font-weight: bold;
}

.skill-details li {
  font-size: 1.08em;
  margin-bottom: 8px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 4px solid var(--accent-gold);
  background-color: var(--text-white);
  padding: 5px;
  transition: border-color 0.3s ease;
  object-fit: contain;
  box-shadow: 0 2px 8px var(--shadow-faint);
}

.skill-icon:hover {
  border-color: var(--accent-gold-hover);
}
