.icon-wrapper1 img.skill-icon {
    width: 60px;   /* chỉnh theo ý bạn */
    height: 60px;
    object-fit: contain; /* giữ tỉ lệ ảnh */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2)); /* hiệu ứng nếu cần */
}


.skill-item1 {
    position: relative;
    padding: 25px 15px;
    border-radius: 16px;
    background: rgba(81, 77, 77, 0.68);
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.skill-item1:hover {
    transform: translateY(-6px);
}

.skill-item1 .icon-wrapper1 {
    font-size: 42px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

/* hiệu ứng blur loang */
.skill-item1::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--skill-color, #ccc);
    filter: blur(35px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.skill-item1:hover::before {
    opacity: 0.7;
}

/* lấy màu từ attribute */
.skill-item1[data-color]::before {
    --skill-color: attr(data-color color);
}

.skill-item1 p {
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.skills-filters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Chuyển sang dạng hàng ngang */
    flex-direction: row; /* Đảm bảo các mục nằm ngang */
    gap: 10px; /* Khoảng cách giữa các mục */
    justify-content: center; /* Căn giữa các mục */
}

.skills-filters li {
    cursor: pointer;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--default-color);
    transition: all 0.3s ease-in-out;
    border-radius: 6px;
    background: transparent;
    border-left: 3px solid transparent;
}

.skills-filters li:hover,
.skills-filters li.filter-active {
    color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-left-color: var(--accent-color);
}

:root {
    --lightbox-max-w: 60vw; /* change this to 50vw / 40vw to make even smaller */
    --lightbox-max-h: 60vh; /* change this to 50vh / 40vh to make even smaller */
}

/* Stronger caps for desktop and responsive smaller caps for mobile */
.glightbox-container .gslide .gcontent,
.glightbox-container .gslide .gcontent img {
    max-width: var(--lightbox-max-w) !important;
    max-height: var(--lightbox-max-h) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    box-sizing: border-box;
    padding: 6px; /* optional inner spacing */
}

/* Option: make it even smaller on very large screens */
@media (min-width: 1400px) {
    :root { --lightbox-max-w: 50vw; --lightbox-max-h: 50vh; }
}

/* Option: increase usable area on small phones while keeping it limited */
@media (max-width: 600px) {
    :root { --lightbox-max-w: 92vw; --lightbox-max-h: 72vh; }
}

/* keep zoom-out cursor */
.glightbox-container img {
    cursor: zoom-out !important;
}

/* Container chính (vòng tròn icon) */
.more-details-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    color: #191818;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Dòng chữ More Details có vòng bọc */
.more-details-btn .btn-text {
    position: absolute;
    left: 80%; /* Để một phần nhãn nằm dưới icon tạo cảm giác liên kết */

    /* Vòng bọc xung quanh chữ */
    background: rgba(255, 255, 255, 0.8); /* Cùng màu với icon hoặc khác màu tùy bạn */
    color: #191818;
    padding: 6px 15px 6px 25px; /* Padding trái lớn hơn để bù phần nằm dưới icon */
    border-radius: 10px 10px 10px 10px; /* Bo góc bên phải */
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    z-index: -1; /* Nằm dưới icon */

    /* Hiệu ứng ẩn ban đầu */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng trượt có độ nảy */
}

/* Hiệu ứng khi Hover */
.more-details-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05); /* Icon hơi to lên một chút */
}

.more-details-btn:hover .btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(10px); /* Trượt hẳn ra ngoài */
}