.portfolio-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.project-card {
    border: none;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Laptop Design */
.laptop-wrapper {
    position: relative;
    padding: 2% 8%;
    perspective: 1000px;
}

.laptop-body {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.laptop-wrapper:hover .laptop-body {
    transform: rotateX(5deg) rotateY(0deg);
}

.laptop-screen {
    position: relative;
    background: #252525;
    border-radius: 12px;
    padding: 2px;
    border: 1px solid #444;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.laptop-display {
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

.laptop-base {
    height: 12px;
    background: linear-gradient(to bottom, #252525, #1a1a1a);
    margin: 0 -3%;
    border-radius: 0 0 12px 12px;
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 4px;
    background: #333;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
}

/* Browser Toolbar */
.browser-toolbar {
    background: #f1f3f4;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-actions {
    display: flex;
    gap: 6px;
}

.browser-action {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.action-close { background: #ff5f57; }
.action-minimize { background: #febc2e; }
.action-expand { background: #28c840; }

.browser-searchbar {
    flex: 1;
    background: #fff;
    margin: 0 8px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
}

/* Project Info */
.project-info {
    margin-top: -5px;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.project-category {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 20;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-link {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    color: #fff;
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #fff;
    border-radius: 25px;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 4rem 0;
    }
    
    .laptop-wrapper {
        padding: 4% 4%;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        margin: 0.25rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
}



.portfolio-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-0.5rem);
}

.project-preview {
    position: relative;
    overflow: hidden;
}

.browser-header {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 1rem 1rem 0 0;
    border-bottom: 1px solid #dee2e6;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-address {
    background: #fff;
    border-radius: 1rem;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 1rem;
    flex-grow: 1;
}

.project-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card:hover .project-category {
    transform: translateY(-0.25rem);
}

.project-info {
    padding: 2rem;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.2);
    color: #fff;
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.filter-buttons {
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #fff;
    border-radius: 2rem;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    color: #fff;
    transform: translateY(-0.125rem);
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 4rem 0;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        margin: 0.25rem;
    }
}



.stat-item.likes {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
}

.stat-item.likes:hover {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 0.1);
}

.stat-item.likes.liked {
    color: #ff0000;
}

.stat-item.likes .bi-heart {
    transition: transform 0.3s ease;
}

.stat-item.likes.liked .bi-heart {
    animation: heartPop 0.3s ease forwards;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.like-count {
    transition: transform 0.3s ease;
}

.like-count.updating {
    animation: countPop 0.3s ease;
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}