/* Projects Page */
.projects-header {
    padding: 120px max(var(--page-padding), calc((100vw - var(--page-max-width)) / 2));
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.projects-header-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.projects-header-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 24px 0;
}

.projects-header-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Projects Filter Section */
.projects-filter-section {
    padding: 40px max(var(--page-padding), calc((100vw - var(--page-max-width)) / 2));
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.projects-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.projects-filter-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.filter-buttons-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 10px;
}

.filter-buttons-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-buttons {
    display: flex;
    gap: 16px;
    padding: 0;
    min-width: fit-content;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 255, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #050505;
}

.projects-section {
    padding: 80px max(var(--page-padding), calc((100vw - var(--page-max-width)) / 2));
    background: white;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.projects-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.project-card-item {
    background: #ffffff;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.project-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 255, 0, 0.3);
}

.project-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.project-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #050505;
    margin: 0;
    letter-spacing: -0.3px;
}

.project-card-desc {
    font-size: 0.9rem;
    color: rgba(5, 5, 5, 0.7);
    margin: 0;
    line-height: 1.5;
}

.project-card-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.projects-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 16px 40px;
    background: var(--primary);
    color: #050505;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #c4e600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 255, 0, 0.3);
}

.load-more-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(4px);
}

/* Responsive Projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .projects-header-title {
        font-size: 2.5rem;
    }
    
    .projects-header-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 80px var(--page-padding);
    }
    
    .projects-header-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .projects-header-description {
        font-size: 0.95rem;
    }
    
    .projects-filter-section {
        padding: 30px var(--page-padding);
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .projects-section {
        padding: 60px var(--page-padding);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .project-card-image {
        height: 180px;
    }
    
    .project-card-content {
        padding: 16px;
        gap: 8px;
    }
    
    .project-card-title {
        font-size: 1rem;
    }
    
    .project-card-desc {
        font-size: 0.85rem;
    }
    
    .project-card-year {
        font-size: 0.8rem;
    }
    
    .load-more-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
}
