.portfolio-detail-header {
        margin-bottom: 30px;
    }

    .portfolio-cat-badge {
        display: inline-block;
        padding: 4px 12px;
        background: var(--bg-elevated);
        border: 1px solid var(--primary);
        color: var(--primary-light);
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .portfolio-meta-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
    }

    .tech-tag {
        padding: 4px 10px;
        background: var(--bg-elevated);
        border-radius: 4px;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .main-project-img {
        width: 100%;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .project-brief {
        background: var(--bg-elevated);
        padding: 25px;
        border-radius: var(--radius-md);
        margin-bottom: 30px;
        border-left: 4px solid var(--primary);
    }

    .project-brief h3 {
        margin-bottom: 12px;
    }

    /* CASE STUDY STYLES */
    .case-study-container {
        margin-bottom: 35px;
    }

    .case-study-heading {
        font-size: 1.25rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: 16px;
    }

    .case-study-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }

    .case-card {
        background: rgba(30, 41, 59, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        backdrop-filter: blur(10px);
    }

    .case-card.problem { border-left: 4px solid #ef4444; }
    .case-card.solution { border-left: 4px solid #38bdf8; }
    .case-card.result { border-left: 4px solid #10b981; background: rgba(16, 185, 129, 0.08); }

    .case-card-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .case-card-header h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #f8fafc;
        margin: 0;
    }

    .case-card p {
        font-size: 0.875rem;
        color: #cbd5e1;
        line-height: 1.45;
        margin: 0;
    }

    /* GALLERY STYLES */
    .project-gallery-section {
        margin-bottom: 35px;
    }

    .project-gallery-section h3 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 14px;
        color: #fff;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .gallery-item {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.12);
        cursor: pointer;
        aspect-ratio: 16/10;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .gallery-item:hover {
        transform: scale(1.03);
        border-color: #38bdf8;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-details-content ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

    .project-details-content li {
        padding: 8px 0;
        padding-left: 25px;
        position: relative;
    }

    .project-details-content li::before {
        content: '•';
        color: var(--primary);
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    .related-portfolio-sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .related-project-sidebar {
        display: flex;
        gap: 12px;
        text-decoration: none;
        color: var(--text-primary);
        padding: 8px;
        border-radius: var(--radius-sm);
        transition: background 0.3s;
    }

    .related-project-sidebar:hover {
        background: var(--bg-elevated);
    }

    .related-project-sidebar img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 8px;
    }

    .rp-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .rp-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .rp-cat {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 4px;
    }

    .cta-actions {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ========== MOBILE RESPONSIVE ========== */
    @media (max-width: 768px) {
        .article-container {
            flex-direction: column;
            padding: 0 12px;
        }

        .article-main {
            width: 100%;
            margin-right: 0;
        }

        .article-sidebar {
            width: 100%;
            margin-top: 30px;
        }

        .portfolio-detail-header {
            margin-bottom: 20px;
        }

        .portfolio-detail-header h1 {
            font-size: 1.4rem;
            line-height: 1.3;
        }

        .portfolio-cat-badge {
            font-size: 0.7rem;
            padding: 3px 10px;
        }

        .portfolio-meta-tags {
            gap: 6px;
            margin-top: 12px;
        }

        .tech-tag {
            font-size: 0.7rem;
            padding: 3px 8px;
        }

        .article-featured-image {
            margin-bottom: 20px;
        }

        .main-project-img {
            border-radius: var(--radius-md);
        }

        .project-brief {
            padding: 16px;
            margin-bottom: 24px;
        }

        .project-brief h3 {
            font-size: 1.1rem;
        }

        .project-brief p {
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .project-details-content h3,
        .project-features-list h3 {
            font-size: 1.1rem;
        }

        .features-grid-landing {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .feature-landing-card {
            padding: 12px;
            font-size: 0.9rem;
        }

        .service-cta-box.portfolio-cta {
            padding: 20px 16px;
            border-radius: var(--radius-md);
        }

        .service-cta-box h3 {
            font-size: 1.2rem;
        }

        .service-cta-box p {
            font-size: 0.9rem;
        }

        .cta-actions {
            flex-direction: column;
        }

        .cta-actions .primary-btn,
        .cta-actions .secondary-btn {
            width: 100%;
            text-align: center;
            padding: 14px 20px;
        }

        .sidebar-card {
            padding: 16px;
        }

        .sidebar-card h3 {
            font-size: 1rem;
        }

        .related-project-sidebar {
            padding: 6px;
        }

        .related-project-sidebar img {
            width: 50px;
            height: 50px;
        }

        .rp-title {
            font-size: 0.8rem;
        }

        .rp-cat {
            font-size: 0.7rem;
        }

        .breadcrumb-nav {
            font-size: 0.75rem;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
    }

    @media (max-width: 480px) {
        .portfolio-detail-header h1 {
            font-size: 1.25rem;
        }

        .project-brief {
            padding: 12px;
        }

        .service-cta-box.portfolio-cta {
            padding: 16px 12px;
        }
    }
