/* Projects Page Styles */

/* Header Section */
.projects-header {
    position: relative;
    padding: 120px 0 80px;
    background: var(--bg-dark);
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.projects-header .container {
    position: relative;
    z-index: 1;
}

.projects-header .section-header {
    text-align: center;
}

.projects-header .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.projects-header .section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.projects-filter {
    padding: 24px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.projects-filter .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.projects-filter .filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.projects-filter .filter-btn:not(.active) .filter-count {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Projects Grid */
.all-projects {
    padding: 60px 0 100px;
    background: var(--bg-dark);
}

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

/* Portfolio Item */
.portfolio-item {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

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

.portfolio-item.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item .portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    background: var(--bg-card);
}

.portfolio-item .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin-bottom: 12px;
}

.portfolio-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.portfolio-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.5;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    gap: 12px;
}

.portfolio-link::after {
    content: '\2192';
    transition: var(--transition);
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.no-results svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .projects-header {
        padding: 100px 0 60px;
    }

    .projects-header .section-title {
        font-size: 2.5rem;
    }

    .projects-header .section-desc {
        font-size: 1rem;
    }

    .filter-wrapper {
        gap: 8px;
    }

    .projects-filter .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.25rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .projects-header .section-title {
        font-size: 2rem;
    }

    .projects-filter {
        top: 60px;
    }

    .projects-filter .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .filter-count {
        display: none;
    }
}