/**
 * Portfolio Showcase Section
 * 
 * Two-row infinite scrolling image gallery with center overlay
 */

/* ===== Portfolio Showcase Section ===== */
.portfolio-showcase {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #F5F5F6;
}

/* Scrolling Rows Container */
.portfolio-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

/* Individual Scroll Row */
.scroll-row {
    display: flex;
    width: max-content;
}

.scroll-row-inner {
    display: flex;
    gap: 20px;
    animation: scroll-left 40s linear infinite;
}

/* Second row scrolls opposite direction */
.scroll-row.reverse .scroll-row-inner {
    animation: scroll-right 40s linear infinite;
}

/* Pause animation on hover */
.portfolio-showcase:hover .scroll-row-inner {
    animation-play-state: paused;
}

/* Portfolio Items */
.portfolio-item {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Scroll Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Center Overlay */
.portfolio-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    padding: 60px 80px;
    background: white;
    border-radius: 50%;
    width: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Overlay Logo */
.portfolio-overlay-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.portfolio-overlay-logo svg {
    width: 100%;
    height: 100%;
}

/* Overlay Heading */
.portfolio-overlay h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #060612;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* Overlay CTA */
.portfolio-overlay .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #FF6321;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.portfolio-overlay .btn-explore:hover {
    background: #E85A1D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 99, 33, 0.3);
    color: white;
}

/* Gradient Fade on Edges */
.portfolio-showcase::before,
.portfolio-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.portfolio-showcase::before {
    left: 0;
    background: linear-gradient(to right, #F5F5F6 0%, transparent 100%);
}

.portfolio-showcase::after {
    right: 0;
    background: linear-gradient(to left, #F5F5F6 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-item {
        width: 260px;
        height: 180px;
    }

    .portfolio-overlay {
        width: 280px;
        height: 280px;
        padding: 40px;
    }

    .portfolio-overlay h2 {
        font-size: 24px;
    }

    .scroll-row-inner {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .portfolio-overlay {
        width: 220px;
        height: 220px;
        padding: 24px;
    }

    .portfolio-overlay h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .portfolio-overlay .btn-explore {
        padding: 10px 20px;
        font-size: 12px;
    }
}