#skills {
  width: 100%;
  padding: 6rem 1rem;
  text-align: center;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: var(--font-base);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

.skills-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.skills-title,
.skills-slider-title {
  font-family: var(--font-sec);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3rem;
  position: relative;
}

.skills-slider-title {
  font-size: 2.5rem;
}

.skills-slider-title::after,
.skills-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 0.5rem auto 0 auto;
  border-radius: calc(var(--border-radius)/2);
}

/* Skills Grid */
.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
}

/* Individual Skill Bar */
.skill-bar {
  position: relative;
  width: 120px;
  max-width: 120px;
  height: 300px;
  background: var(--color-body-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}

/* Fill of skill bar */
.skill-bar .bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0; /* GSAP vult deze */
  background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Labels */
.bar-label {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  pointer-events: none;
}

.bar-label .percent {
  display: block;
  font-size: 1.5rem;
  opacity: 0; /* GSAP fade-in */
  transform: translateY(10px);
}

.bar-label .name {
  display: block;
  font-size: 1rem;
  opacity: 0; /* GSAP fade-in */
  transform: translateY(10px);
}

/* Optional: sparkle effect */
.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
}

/* Responsive */
@media (max-width: 992px) {
  .skills-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .skill-bar {
    width: 80px;
    height: 220px;
  }

  .skills-slider-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .skill-bar {
    width: 60px;
    height: 180px;
  }

  .bar-label .percent {
    font-size: 1.2rem;
  }

  .bar-label .name {
    font-size: 0.9rem;
  }
}
