.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #99e32e;
}

.item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .item-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(21, 29, 42, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #99e32e;
    margin: 0;
    line-height: 1.2;
}

.item-year {
    background: rgba(153, 227, 46, 0.1);
    color: #99e32e;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.item-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.load-more {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    padding: 15px 30px;
    background: #99e32e;
    color: #151d2a;
    border: none;
    border-radius: 25px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #7bc520;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 227, 46, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #99e32e;
}