/* =========================================
   PORTFOLIO STUDIO PRO - COMPETE CSS
   ========================================= */

.portfolio-wrapper {
    background: #020617;
    min-height: 100vh;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
}

.highlight-text {
    color: #ff3366;
}

.section-subtitle {
    color: #64748b;
    text-align: center;
    font-size: 15px;
    margin-bottom: 40px;
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: #ff3366;
    color: #fff;
    border-color: #ff3366;
}

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #0f172a;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s transform ease;
}

/* Overlays */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: 0.3s opacity;
}

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

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

.overlay-content h3 {
    color: #fff;
    font-size: 20px;
    margin-top: 5px;
    text-align: left;
}

.cat-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cat-tag.print {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

.cat-tag.web {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.cat-tag.brand {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(2, 6, 23, 0.98);
    overflow-y: auto;
    padding: 50px 20px;
}

.modal-content {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.4s ease;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 30px;
    text-align: left;
    border-left: 4px solid #ff3366;
    padding-left: 15px;
}

.modal-header h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 5px;
}

.modal-header p {
    color: #94a3b8;
    font-size: 15px;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-gallery-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}