/* =======================
PORTFOLIO SECTIONS
======================= */

.portfolio-sections {
    background: rgba(255, 255, 255, 0.75);
    padding: 50px 20px;
    position: relative;
}

/* =======================
Іконки категорій
======================= */

.portfolio-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.portfolio-section-icon {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;

    opacity: 0;
    transform: translateX(-60px);
}

.portfolio-section-icon.visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.portfolio-section-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.portfolio-section-icon h3 {
    margin-top: 10px;
    font-size: 16px;
}

/* =======================
Роботи
======================= */

.portfolio-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: calc(150px * 5 + 15px * 4);
    margin: 0 auto 40px auto;
}

.portfolio-item {
    width: 150px;
    flex: 0 0 auto;
    text-align: center;
    margin-bottom: 20px;

    opacity: 0;
    transform: translateX(-80px) scale(0.95);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.portfolio-item-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item-circle:hover {
    transform: scale(1.05);
}

.portfolio-item-circle-title {
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    padding: 5px 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    position: absolute;
    max-width: 90%;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item-circle:hover .portfolio-item-circle-title {
    opacity: 1;
    transform: translateY(0);
}

/* =======================
Кнопка Load More
======================= */

.portfolio-load-more-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.portfolio-load-more {
    padding: 10px 25px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.portfolio-load-more:hover {
    background: #333;
}

/* =======================
Модалки
======================= */

.portfolio-modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index: 9999;
}

.portfolio-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.portfolio-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* =======================
Адаптив
======================= */

@media (max-width:1200px){
    .portfolio-items-wrapper {
        max-width: calc(150px * 4 + 15px * 3);
    }
}

@media (max-width:900px){
    .portfolio-items-wrapper {
        max-width: calc(150px * 3 + 15px * 2);
    }
}

@media (max-width:600px){
    .portfolio-items-wrapper {
        max-width: calc(150px * 2 + 15px * 1);
    }
}