.portfolio {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(121, 105, 210, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-content {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.view-project,
.live-demo,
.view-case-study,
.view-prototype,
.app-store,
.view-brandbook {
    padding: 12px 20px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-project:hover,
.live-demo:hover,
.view-case-study:hover,
.view-prototype:hover,
.app-store:hover,
.view-brandbook:hover {
    background: var(--dark);
    color: white;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.badge-web,
.badge-marketing,
.badge-design,
.badge-mobile,
.badge-branding {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge-web { background: var(--primary); }
.badge-marketing { background: var(--secondary); }
.badge-design { background: var(--accent); }
.badge-mobile { background: var(--info); }
.badge-branding { background: var(--info-light); }

.project-info {
    padding: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.project-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-weight: 500;
}

.stat i {
    color: var(--primary);
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--gray-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark);
}

.portfolio-cta {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--text);
    -webkit-background-clip: text;
  
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.stat-item h4 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Project Modal */
.project-modal .modal-content {
    max-width: 900px;
    margin: 5% auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-modal .modal-body {
    padding: 0;
}

.project-detail-header {
    background: var(--gradient);
    color: white;
    padding: 40px;
    position: relative;
}

.project-detail-header h2 {
    color: white;
    margin-bottom: 10px;
}

.project-detail-meta {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.project-detail-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.project-detail-info h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.project-detail-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-features {
    margin: 30px 0;
}

.project-features h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.project-features ul {
    list-style: none;
}

.project-features li {
    padding: 8px 0;
    color: var(--gray);
    border-bottom: 1px solid var(--gray-light);
}

.project-features li:last-child {
    border-bottom: none;
}

.project-sidebar {
    background: var(--gray-light);
    padding: 30px;
    border-radius: var(--radius);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    padding: 8px 15px;
    background: white;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark);
}

.project-results {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .project-detail-content {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .overlay-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .project-stats {
        flex-wrap: wrap;
    }
}