/* ===== Portfolio / Social Media & Design Section ===== */
.portfolio {
    background: #0d0d0d;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.portfolio-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* Heading */
.portfolio-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portfolio-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 80px;
    letter-spacing: 0.5px;
}

/* ===== Portfolio Rows ===== */
.portfolio-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    transform: rotate(-3deg);
    width: max-content;
    will-change: transform;
}

/* Row 1 starts shifted left, scrolls right */
.portfolio-row-right {
    transform: rotate(-3deg) translateX(-200px);
}

/* Row 2 starts at right, scrolls left */
.portfolio-row-left {
    transform: rotate(-3deg) translateX(0px);
    margin-bottom: 0;
}

.portfolio-item {
    flex: 0 0 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 190px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-tag {
    display: inline-block;
    background: #f59e0b;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}

.portfolio-overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .portfolio {
        padding: 80px 0 60px;
    }

    .portfolio-container {
        padding: 0 20px;
    }

    .portfolio-item {
        flex: 0 0 220px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        flex: 0 0 180px;
        height: 130px;
    }
}
