.projek {
  padding: 10rem 0;
  background: var(--bg-primary);
}




.project-container, #projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}


.filter-buttons, .filters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}


.filter-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 204, 153, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 204, 153, 0.2);
    border-color: var(--accent-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), #00b386);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(0, 204, 153, 0.3);
}


.project-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(0, 204, 153, 0.3);
    border-color: rgba(0, 204, 153, 0.5);
}


.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.project-item:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1);
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 204, 153, 0.9), 
        rgba(0, 179, 134, 0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

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


.project-info {
    text-align: center;
    padding: 1.5rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.project-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.95;
}


.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-tag, .project-tech span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
}

.tech-tag:hover, .project-tech span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}


.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link, .project-github {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.project-link:hover, .project-github:hover {
    background: white;
    color: var(--accent-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}


.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

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


.project-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}


.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.project-status.completed {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.project-status.in-progress {
    background: rgba(255, 152, 0, 0.9);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.project-status.planning {
    background: rgba(33, 150, 243, 0.9);
    color: white;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}


.no-projects-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.no-projects-found.show {
    opacity: 1;
    transform: scale(1);
}

.no-projects-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    opacity: 0.6;
}

.no-projects-found h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.project-item.loading {
    pointer-events: none;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 25%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


.filter-results-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.filter-results-counter.show {
    opacity: 1;
    transform: translateY(0);
}




@media (max-width: 1024px) {
    .project-container, #projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .project-image {
        height: 200px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}


@media (max-width: 768px) {
    .project-container, #projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .filter-buttons, .filters-wrapper {
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
   
    .project-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
}


@media (max-width: 480px) {
    .project-container, #projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0.5rem;
    }
    
    .filter-buttons-container {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .project-item {
        min-height: 350px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .project-info p {
        font-size: 0.8rem;
    }
    
    .project-link, .project-github {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tech-tag, .project-tech span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
   
    .project-item:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .project-item:hover .project-image img {
        transform: scale(1.05);
    }
}


@media (prefers-color-scheme: dark) {
    .project-item {
        background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .filter-btn {
        background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        border-color: rgba(0, 204, 153, 0.2);
    }
}


@media (prefers-contrast: high) {
    .project-item {
        border-width: 2px;
        border-color: var(--accent-primary);
    }
    
    .filter-btn {
        border-width: 2px;
    }
    
    .project-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}


@media (prefers-reduced-motion: reduce) {
    .project-item,
    .filter-btn,
    .project-image img,
    .project-overlay,
    .project-info {
        transition: none;
    }
    
    .project-item:hover {
        transform: none;
    }
}
