.skillcard {
    border: white solid 2px;
    border-radius: 10px;
    min-height: 100px; /* allow the card to grow with content */
    width: auto;
    margin: 20px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* stack from top so description can be pushed to bottom */
    gap: 10px;
    padding: 12px 16px;
    box-sizing: border-box; /* include padding in the min-height */
    overflow: hidden; /* prevent children from visually overflowing the border */
}

.progressbar { 
    height: 5px;
    position: relative;
    background: #696969;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
}

.progressbar span {
    display: block;
    height: 100%;
}

.skillcard .title {
    margin: 10px 0px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-row .title {
    flex: 0 0 auto; 
}

.skill-row .progressbar {
    flex: 1 1 auto;
}

.skillcard .description {
    margin: 0;
    margin-top: auto;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

/* Sub-skills (smaller, stacked progress bars) */
.subskills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.subskill {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sub-title {
    font-size: 13px;
    font-family: PragmaticaExtendedBook;
    color: #e6e6e6;
    flex: 0 0 auto;
}
.sub-progressbar {
    height: 2px;
    background: #5a5a5a;
    border-radius: 4px;
    overflow: hidden;
    flex: 1 1 auto;
    margin-right: 45%;
}
.sub-progressbar span {
    display: block;
    height: 100%;
}

.progress {
    background-color: #ffffff;
    animation: progressBar 2s ease-in-out;
    animation-fill-mode:both; 
}

.slow {
    animation: progressBar 3s ease-in-out;
}

.progress-width {
    width: var(--progress);
}

@keyframes progressBar {
  0% { width: 0; }
  100% { width: 100%; }
}