/* ===== Showcase / Website Portfolio Section ===== */
.showcase-section {
    background: var(--bg-color);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.showcase-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Heading */
.showcase-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.showcase-heading .accent-text {
    color: var(--accent-primary);
}

.showcase-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5rem;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* ===== Scrolling Rows ===== */
.showcase-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transform: rotate(-3deg);
    width: max-content;
    will-change: transform;
}

.showcase-row-right {
    transform: rotate(-3deg) translateX(-200px);
}

.showcase-row-left {
    transform: rotate(-3deg) translateX(0px);
    margin-bottom: 0;
}

/* ===== Individual Card ===== */
.showcase-item {
    flex: 0 0 320px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 210px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

a.showcase-item {
    text-decoration: none;
    color: inherit;
}

.showcase-item:hover {
    border-color: rgba(84, 227, 70, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

/* Placeholder for cards without images */
.showcase-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111511 0%, #070907 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.showcase-tag {
    display: inline-block;
    background: var(--accent-primary);
    color: #000;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.showcase-overlay h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

/* ===== Scroll Entrance Animations ===== */
.showcase-heading.scroll-hidden,
.showcase-subtitle.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.showcase-heading.scroll-visible,
.showcase-subtitle.scroll-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .showcase-section {
        padding: 5rem 0 4rem;
    }
    .showcase-subtitle {
        margin-bottom: 3.5rem;
    }
    .showcase-item {
        flex: 0 0 240px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .showcase-item {
        flex: 0 0 200px;
        height: 140px;
    }
}
