/* Projects Section */
.projects-intro {
    text-align: center;
    margin-bottom: 30px;
}

.projects-intro p {
    color: #666;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;;
}

.filter-btn:hover {
    background-color: #eee;
}

.filter-btn.active {
    background-color: #57534d;
    color: #fff;
    border-color: #333;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    border-color: #333;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.project-category {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-description {
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-tech {
    margin-bottom: 20px;
}

.project-tech h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.project-tech h4 i {
    margin-right: 6px;
    color: #777;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background-color: #f5f5f5;
    border: 1px solid #eee;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.github-btn {
    padding: 8px 16px;
    border: 1px solid #333;
    background: none;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.github-btn i {
    margin-right: 6px;
}

.github-btn:hover {
    background: #333;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .filter-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .filter-section{
        justify-content: center;
    }
    .project-card {
        padding: 15px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}