/* Project page styles */
.project-button{
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-button:active{
    background-color: var(--primary-color);
    color: white;
    transform: translateY(1px);
}

.project-container {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-description {
    margin-bottom: 20px;
    color: var(--text-light);
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-progress {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.project-technologies {
    margin-bottom: 20px;
}

.tech-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
}

.project-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.team-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

.project-title{
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: inline-block;
}

.project-label-in-progress{
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-label-completed{
    background-color: rgba(22, 163, 74, 0.15);
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-tech{
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
}

.project-tech:hover {
    /* background-color: var(--hover-highlight); */
    transform: translateY(-2px);
}

.project-detail-label{
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-detail-label i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.project-detail-label:hover{
    color: var(--primary-hover);
}

.project-detail-label:hover i {
    transform: translateX(3px);
}

/* Progress Bar Styling */
.project-bar {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    margin-top: 8px;
}

.project-bar::-webkit-progress-bar {
    background-color: var(--bg-light);
    border-radius: 10px;
}

.project-bar::-moz-progress-bar {
    border-radius: 10px;
}

/* In-progress (blue) */
.project-bar-in-progress::-webkit-progress-value {
    background-color: var(--primary-color);
    transition: width 0.5s ease;
    background-image: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
}

.project-bar-in-progress::-moz-progress-bar {
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
}

/* Completed (green) */
.project-bar-completed::-webkit-progress-value {
    background-color: #16a34a;
    background-image: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
}

.project-bar-completed::-moz-progress-bar {
    background-color: #16a34a;
    background-image: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
}

@keyframes progress-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
}

.filter-container {
    background-color: var(--bg-light);
    border-radius: 2rem;
    padding: 0.25rem;
    display: inline-flex;
    border: 1px solid var(--evborder-color);
    position: relative;
}

.filter-btn {
    border: none;
    background: none;
    color: var(--color-text-primary);
    font-weight: 500;
    padding: 0.6rem 2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 2px;
    font-family: inherit;
}

html[data-theme="dark"] .filter-btn,
body[data-theme="dark"] .filter-btn {
    color: rgba(255, 255, 255, 0.678); 
}

.filter-btn:hover:not(.active) {
    color: var(--light-text);
    background-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .filter-btn:hover:not(.active) {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background-color: #3b82f6; 
    color: white !important;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        flex-wrap: wrap; 
        gap: 8px; 
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-right: 8px;
        max-width: calc(100% - 120px);
    }
    
    .filter-container {
        display: none;
    }
    
    .mobile-filter-button {
        display: inline-block;
        background-color: #3b82f6;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 1.5rem;
        font-weight: 500;
        font-size: 0.85rem;
        box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 100px;
    }
    
    .mobile-filter-button:active {
        transform: translateY(1px);
    }
}

/* Hide mobile filter on desktop */
@media (min-width: 768px) {
    .mobile-filter-button {
        display: none;
    }
}

@media (max-width: 640px) {
    .project-container {
        padding: 20px;
    }
    
    .project-title {
        font-size: 18px;
    }
}
