#about {
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
}

.feature-nav-container-wide,
.feature-nav-container-narrow {
    width: 50px;
    display: flex;
    justify-content: center;
}

#skill-scroll {
    height: fit-content;
}

.feature-title-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.feature-title-container .circular-progress-container {
    margin-left: 1rem;
    flex-shrink: 0;
}

.feature-nav-wrapper {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.skill-card-title {
    font-size: 1rem;
    margin-bottom: 0;
    /* Reset inherited text effects that might affect the box background */
    -webkit-text-fill-color: initial;
    filter: none;
    background-image: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-title-text {
    /* Re-apply text effects to the span only */
    background-image: var(--title-bg-image, none);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--title-text-fill-color, currentColor);
    filter: var(--title-filter, none);
    color: var(--title-color, inherit);
}

#features {
    display: flex;
    flex-wrap: nowrap;
    justify-self: flex-start;
    width: 90%;
    overflow-x: hidden;
}

#about-content-wrapper {
    position: relative;
    padding-bottom: 18px;
}

.feature-subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.feature-text {
    font-size: 1.4rem;
    line-height: 1.2;
    max-height: none;
}

.feature-title {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}


.skill-card-description {
    text-align: center;
}


/* Pseudo-elements removed as they interfere with transparency */

.scrolling-cards-inner {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    width: max-content;
    will-change: transform;
    z-index: 1;
    gap: 4px;
}

.scrolling-cards-inner .skill-card.is-center {
    opacity: 1;
    transform: scale(1.05);
}

.skill-card {
    border-width: 14px;
    border-image-slice: 48 fill;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 300px;
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.9);
    cursor: pointer;
}

.skill-card:hover,
.skill-card.hover-active {
    opacity: 0.8;
    transform: scale(0.95);
}

.scrolling-cards-inner .skill-card.is-center:hover,
.scrolling-cards-inner .skill-card.is-center.hover-active {
    opacity: 1;
    transform: scale(1.05);
}

.skill-card-description {
    border-width: 5px;
    width: auto;
    padding: 0;
    align-items: center;
    text-align: center;
}

.skill-card-text {
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.2rem;
    margin: 0;
}

.skill-card-header {
    display: flex;
    align-items: flex-end;
}

.skill-card-header .btn-icon-only img,
.skill-card-ability img {
    object-fit: cover;
    transform: scale(1.4);
}

.skill-card-ability-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-main-content-col {
    flex-grow: 1;
    display: flex;
}

.feature-video-col,
.feature-content-col {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: inherit;
    position: relative;
    min-width: 0;
    width: 100%;
}

.feature-content-wrapper {
    padding: 0 1.5rem;
}

.feature-video-wrapper {
    height: 33vh;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.feature-video-wrapper,
.feature-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.feature-nav-button {
    opacity: 0.7;
}

.feature-nav-button.active {
    opacity: 1;
}

.feature-nav-button:hover {
    opacity: 1;
    filter: brightness(1.05);
}

#featureImagePlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.05) contrast(0.95) drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}



#skills-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.feature-main-content-col {
    justify-content: center;
    flex-direction: row;
    height: 44%;
}

.feature-nav-container-narrow {
    display: none;
}

.feature-nav-container-wide {
    display: flex;
}

.feature-video-col {
    flex: 5;
}

.feature-content-col {
    flex: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1600px) {

    .feature-content-wrapper {
        padding: 0.25rem;
    }

    #featureParagraph {
        margin-bottom: 0;
    }

    .feature-main-content-col {
        flex-direction: column;
    }

    .feature-nav-container-narrow {
        display: flex;
    }

    .feature-nav-container-wide {
        display: none;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .feature-text {
        font-size: 1rem;
    }

    #features,
    #products {
        width: 88%;
    }
}

@media (max-width: 1300px) {

    .feature-text {
        font-size: 1.5rem;
    }

    #about-content-wrapper {
        padding-bottom: 300px;
    }

    .feature-text {
        font-size: 1rem;
    }

    #features {
        justify-self: center;
        width: 60%;
    }

    #products {
        width: 100%;
    }
}

@media (max-width: 992px) {

    #features {
        justify-self: center;
        width: 75%;
    }

    .feature-content-col {
        width: 100%;
    }
}

@media (max-width: 576px) {
    #about-content-wrapper {
        padding-bottom: 233px;
    }

    .feature-video-wrapper {
        height: 28vh;
    }

    #features {
        width: 90%;
    }

}

/* --- OVERLAY STYLES --- */
.about-overlays-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-svg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.diagram-grid-horizontal {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    justify-content: center;
}

.overlay-tool-node {
    grid-column: 1;
}

.overlay-ability-col {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.damage-grid-horizontal {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto auto;
    gap: 20px 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    justify-content: center;
}

.damage-type-node {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Product card thumbnail */
.product-preview-container {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

.skill-card.hover-active .product-preview-img {
    transform: scale(1.2);
}