#skills {
    background-image: url('../assets/images/bg-mountains.jpg');
}

.skills-wrapper {
    position: relative;
    min-height: 800px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.skills-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.skills-item {
    position: absolute;
    width: calc(80px + (100 * var(--random-size)));
    height: calc(80px + (100 * var(--random-size)));
    border-radius: var(--border-radius);
    overflow: hidden;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-width: 80px;
    min-height: 80px;
    max-width: 150px;
    max-height: 150px;
    transform-origin: center;
}

.skills-item img {
    width: 60px;
    height: 60px;
}

.skill-detail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 0;
    height: 0; */
    overflow: hidden;
    transition: all 0.5s ease;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* padding: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-content {
    width: 100%;
    text-align: center;
    display: flex;
    gap: 16px;
}

.skill-content img {
    width: 128px;
    height: 128px;
    margin: 10px 0;
}

.skill-title {
    font-size: 24px;
    margin: 16px 0;
}

.skill-description {
    font-size: 18px;
    color: #666;
}

.social-links {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 15px;
    padding: 20px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-links a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition:
        transform 0.3s,
        color 0.3s;
}

.social-links a:hover {
    cursor: pointer;
    transform: translateY(-1px);
}

.social-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .skills-container {
        position: static;
        flex-wrap: wrap;
        gap: 16px;
        overflow: visible;
        padding: 24px 12px;
    }
    .skills-item {
        position: static;
        min-width: 60px;
        height: 20px;
        gap: 16px;
        border-radius: 6px;
        padding: 4px 12px;
        transition: none;
        cursor: default;
    }
    .skill-detail {
        display: none;
    }
}
