/* Project Filter Styles */

/* Filter Buttons Container */
.project-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.project-filter__button {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    outline: none;
}

.project-filter__button:hover {
    background: #3971ff;
    color: white;
    border-color: #3971ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 173, 237, 0.3);
}

.project-filter__button.active {
    background: #3971ff;
    color: white;
    border-color: #3971ff;
    box-shadow: 0 5px 15px rgba(17, 173, 237, 0.4);
}

.project-filter__button:active {
    transform: translateY(0);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Project Item */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
    height: 400px;
}

.project-item.hidden {
    display: none;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Project Image */
.project-item__image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-item__image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 30px 25px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.project-item:hover .project-item__overlay {
    background: linear-gradient(to top, rgba(17, 173, 237, 0.95) 0%, rgba(17, 173, 237, 0.85) 50%, transparent 100%);
}

.project-item__title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-item__category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Animation for filtering */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-item.show {
    animation: fadeIn 0.5s ease forwards;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results__icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-results__title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-results__text {
    font-size: 16px;
    color: #666;
}

/* Counter */
.project-counter {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.project-counter__number {
    color: #3971ff;
    font-weight: 700;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .project-filter {
        padding: 20px 15px;
        gap: 10px;
    }

    .project-filter__button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .project-item {
        height: 300px;
    }

    .project-item__title {
        font-size: 20px;
    }

    .project-item__category {
        font-size: 12px;
    }

    .project-item__overlay {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-item {
        height: 350px;
    }

    .project-filter {
        gap: 8px;
    }

    .project-filter__button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Loading Animation */
.project-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth transitions */
.project-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge for category */
.project-item__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3971ff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-item:hover .project-item__badge {
    background: rgba(255, 255, 255, 0.95);
    color: #3971ff;
}