/* Portfolio Page - Enhanced Design */

body.portfolio-page { background: #fff !important; color: #333 !important; }

/* Filter Styling - Modern Pills */
.paneli { 
    background: #fff; 
    padding: 40px 0 20px;
}

.filtering {
    margin-bottom: 40px;
}

.filtering span {
    margin: 5px 10px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: inline-block;
    color: #444;
    border: 1px solid #eee;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.filtering span.active {
    color: #fff;
    background: #1b4ea1;
    border-color: #1b4ea1;
    box-shadow: 0 10px 20px rgba(27, 78, 161, 0.2);
}

.filtering span:hover:not(.active) {
    border-color: #1b4ea1;
    color: #1b4ea1;
}

/* Portfolio Grid */
.portfolio-grid {
    column-count: 3;
    column-gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.portfolio-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    .portfolio-grid { column-count: 2; }
}

@media (max-width: 767px) {
    .portfolio-grid { column-count: 1; }
}

/* Item Image & Hover Effect */
.item-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    background: #f8f8f8;
}

.item-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

/* Hover Overlay */
.item-img .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 78, 161, 0.85);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.item-img .overlay i {
    font-size: 24px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.item-img .overlay h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    color: #fff !important;
}

.item-img:hover .overlay {
    opacity: 1;
}

.item-img:hover .overlay h6, 
.item-img:hover .overlay i {
    transform: translateY(0);
}

.item-img:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Page Polish */
.portfolio {
    padding-top: 0;
    padding-bottom: 100px;
    min-height: 100vh;
}

.section-head {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-head p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}
