.skills {
    background-image: url("../assets/images/background/skills-bg.webp");
    background-position: bottom;
    background-size: cover;
    min-height: 900px;
    width: 100%;
    display: flex;
    justify-content: center;
    scroll-margin-top: 70px;
}

.skills-content-wrapper {
    max-width: 1440px;
    width: 100%;
    height: 700px;
    box-sizing: border-box;
    padding: 20px 70px 40px 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.skill-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 160px;
    gap: 80px;
}

.skill-top-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    perspective: 600px;
    width: 220px;
}

.skill-headline-one {
    font-size: var(--small-headline);
    font-weight: var(--light-font-weight);
    color: var(--primary-color);
    text-wrap: nowrap;
    margin: 0;
    margin-bottom: 20px;
}

.skill-headline-two {
    font-size: var(--big-headline);
    font-weight: var(--heavy-font-weight);
    color: var(--primary-color);
    text-wrap: nowrap;
    margin: 0;
}

.lang-de .skill-headline-two {
    font-size: 40px;
}

.skill-circle-img {
    height: 80px;
    width: 260px;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(-1);
    transition: none;
}

.skill-circle-img {
    animation: twist-circle 5s ease infinite;
}

.skill-description {
    display: flex;
    position: relative;
}

.skill-paper-img {
    max-width: 650px;
    width: 100%;
    min-height: 140px;
}

.skill-text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin: 0;
    max-width: 650px;
    min-height: 140px;
    box-sizing: border-box;
    padding: 20px 30px 20px 30px;
    color: var(--secondary-color);
    font-size: var(--small-text);
}

.skill-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 280px;
    gap: 60px;
}

.skill-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 650px;
    flex-wrap: wrap;
}

.skill-badge-img {
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-badge-img:hover {
    filter: grayscale(0%);
    transform: scale(0.7);
}

.skill-bottom-right {
    display: flex;
    transform: rotate(8deg);
    cursor: pointer;
}

.skill-bottom-right-mobile {
    display: none;
}

.peel-img-start {
    height: 200px;
    width: 200px;
    transition: opacity 0.3s ease;
}

.peel-img-begin {
    position: absolute;
    height: 200px;
    width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.peel-arrow {
    position: absolute;
    height: 40px;
    top: 20%;
    right: 40%;
}

.peel-text {
    margin: 0;
    position: absolute;
    top: 45%;
    right: 25%;
    font-family: 'Kalam';
    text-align: center;
    font-size: 40px;
    line-height: 1.1;
    color: var(--primary-color);
}

.peel-img-end {
    position: absolute;
    height: 200px;
    width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-bottom-right:hover .peel-img-start,
.skill-bottom-right:hover .peel-text,
.skill-bottom-right:hover .peel-arrow {
    opacity: 0;
}

.skill-bottom-right:hover .peel-img-begin {
    opacity: 1;
}

.skill-bottom-right.peeled .peel-img-begin,
.skill-bottom-right.peeled .peel-img-start {
    opacity: 0;
}

.skill-bottom-right.peeled .peel-img-end {
    opacity: 1;
}

.skill-bottom-right.peeled .peeled-image-box {
    opacity: 1;
}

.peeled-image-box {
    position: absolute;
    height: 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.peeled-text {
    text-align: center;
    color: var(--primary-color);
    font-size: var(--small-text);
}

.peeled-skill-badge-img {
    height: 50px;
}

.peeled-skill-badges {
    width: 200px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.peeled-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
}

figcaption {
    color: var(--primary-color);
    font-size: var(--small-text);
}

.peeled-figcaption {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 100;
}

/* Mobile */
@media (max-width: 950px) {
    .skills {
        height: 1000px;
    }

    .skill-text {
        font-size: 16px;
    }

    .skill-badge-img {
        height: 60px;
    }

    .skill-badges {
        gap: 40px;
    }

    .skills-content {
        height: 100%;
        gap: 40px;
    }

    .skill-top {
        flex-direction: column;
        height: unset;
        gap: 40px;
        margin-top: 40px;
    }

    .skill-top-left {
        align-self: flex-end;
    }

    .skill-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        height: unset;
        gap: 20px;
    }

    .skill-bottom-right {
        display: none;
    }

    .skill-bottom-right-mobile {
        display: flex;
        transform: rotate(8deg);
        cursor: pointer;
    }

    .skill-bottom-right-mobile.peeled .peel-img-start,
    .skill-bottom-right-mobile.peeled .peel-text,
    .skill-bottom-right-mobile.peeled .peel-arrow {
        opacity: 0;
    }

    .skill-bottom-right-mobile.peeled .peel-img-end {
        opacity: 1;
    }

    .skill-bottom-right-mobile.peeled .peeled-image-box {
        opacity: 1;
    }

    .skill-badge-img {
        filter: unset;
    }

    .skill-badge-img:hover {
        pointer-events: none;
    }
}

@media (max-width: 680px) {
    .skills-content-wrapper {
        padding: 15px 35px 15px 35px;
    }
}

@media (max-width: 505px) {
    .skill-headline-one {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .skill-headline-two {
        font-size: 52px;
    }

    .lang-de .skill-headline-two {
        font-size: 34px;
    }

    .skill-circle-img {
        width: 220px;
        left: 55%;
    }

    .peel-img-start {
        height: 160px;
        width: 160px;
    }

    .peel-img-begin {
        height: 160px;
        width: 160px;
    }

    .peel-img-end {
        height: 160px;
        width: 160px;
    }

    .peel-arrow {
        height: 30px;
    }

    .peel-text {
        font-size: 32px;
    }

    .peeled-image-box {
        height: 160px;
        width: 160px;
    }

    .peeled-text {
        font-size: 16px;
        margin: 0;
        margin-bottom: 6px;
    }

    .peeled-skill-badges {
        width: 160px;
    }
}

@media (max-width: 405px) {
    .skills-content-wrapper {
        padding: 15px 15px 15px 15px;
    }

    .skill-headline-two {
        font-size: 42px;
    }

    .lang-de .skill-headline-two {
        font-size: 28px;
    }

    .skill-circle-img {
        width: 180px;
        left: 65%;
    }

    .skills {
        height: 1050px;
    }

    .skill-paper-img {
        height: 160px;
    }
}