/* ===== Portfolio Page Styles ===== */

.portfolio-hero {
    padding: 140px 0 40px;
    background: var(--bg-dark);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

/* ===== Project Cards ===== */
.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover .project-visual::after {
    background: rgba(0, 0, 0, 0.05);
}

.project-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.project-icon svg {
    width: 32px;
    height: 32px;
}

.project-content {
    padding: 28px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-tag {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

.project-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-content > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
}

.project-highlights {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-1);
}

/* Demo Link */
.project-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.project-demo-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 0 100px;
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
}

.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .portfolio-masonry {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        gap: 8px;
    }

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

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }
}
