/* Specific Styles for Showcase Page */
body {
    background-color: var(--primary-red);
}

body::before {
    display: none;
}

/* Navbar tweaks for red background if needed, but existing navbar is dark, which works well */

.showcase-header {
    text-align: center;
    padding: 20px 20px 40px;
    position: relative;
    min-height: calc(100vh - 80px);
    /* Full height minus approx navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent horizontal overflow from splash and decorations */
}

.header-graphic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    width: auto;
    height: auto;
    margin-top: 20px;
}

.header-graphic-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* White Splash Background */
.header-bg-splash {
    position: absolute;
    top: 55%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(-2deg);
    width: 110%;
    /* Wider splash */
    height: 120px;
    /* Taller splash */
    background: #fff;
    z-index: 1;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.title-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 4;
    /* Higher index */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-our {
    font-family: 'Montserrat';
    font-size: 2.2rem;
    /* Larger */
    background: #282828;
    color: #fff;
    padding: 8px 30px;
    transform: rotate(-15deg) translate(-30px, -15px);
    margin-bottom: 5px;
    /* Adjusted gap to sit distinctly above */
    z-index: 5;
    letter-spacing: 2px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.title-dishes {
    font-family: 'Montserrat';
    font-size: 9rem;
    /* Massive */
    color: #fff;
    text-transform: uppercase;
    line-height: 0.85;
    /* Clean, hard 3D Shadow matching the illustration style */
    text-shadow:
        3px 3px 0 #282828,
        6px 6px 0 #282828,
        9px 9px 0 #282828,
        12px 12px 0 #282828,
        15px 15px 0 #282828,
        18px 18px 0 #282828;
    transform: rotate(-3deg);
    z-index: 3;
    -webkit-text-stroke: 4px #282828;
    paint-order: stroke fill;
}

.header-deco {
    position: absolute;
    z-index: 5;
}

.top-deco {
    top: -40px;
    /* Moved down to overlap D */
    left: -90px;
    width: 260px;
    transform: rotate(-35deg);
    /* Tilted more */
    z-index: 5;
    filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.4));
}

.bottom-deco {
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    /* Larger Plate */
    z-index: 6;
    /* On top of splash */
    filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.4));
}

.section-desc {
    color: var(--white);
    max-width: 700px;
    margin: 100px auto 30px;
    /* Increased top margin */
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 4;
    text-align: center;
    font-weight: 500;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Wrap rows if needed */
    gap: 15px;
    margin-bottom: 30px;
    /* Reduced margin */
    padding: 10px 20px;
    /* Slight padding for shadow clearance */
}

.filter-btn {
    background: #fff;
    color: #555;
    border: 3px solid #282828;
    padding: 10px 35px;
    /* Increased horizontal padding */
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    /* Prevent text wrapping */
    display: inline-flex;
    /* Center content */
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    transform: skewX(-10deg);
    box-shadow: 6px 6px 0 #282828;
}

.filter-btn span {
    display: block;
    transform: skewX(10deg);
    /* Counter-skew text */
}

.filter-btn:hover {
    transform: skewX(-10deg) translate(-2px, -2px);
    box-shadow: 8px 8px 0 #282828;
    color: #000;
}

.filter-btn.active {
    background: #282828;
    color: #fff;
    border-color: #282828;
    /* White shadow for active/dark button to stand out on red bg */
    box-shadow: -6px 6px 0 #fff;
}

.filter-btn.active:hover {
    box-shadow: -8px 8px 0 #fff;
}

/* Showcase Grid */
.showcase-section {
    max-width: 1400px;
    /* Increased to fit single-row filters */
    margin: 0 auto;
    padding: 0 20px 80px;
    overflow-x: hidden;
    /* Contain any grid item overflow */
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    /* max-width and margin moved to section parent */
}

.showcase-card {
    background: var(--white);
    border-radius: 20px;
    overflow: visible;
    /* Needed for overlapping icons */
    color: var(--primary-dark);
    box-shadow: 8px 8px 0 #282828;
    /* Hard black shadow */
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0 #282828;
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.thumb-ebook {
    background: linear-gradient(135deg, #a78bfa 0%, #c026d3 100%);
}

.thumb-game {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
}

.thumb-anim {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.thumb-ar {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.thumb-web {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.card-content {
    padding: 30px 20px 20px;
    /* Top padding for overlapped icons */
    text-align: center;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    position: relative;
}

/* Overlapping Profile Icons */
.card-icons {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: -10px;
    /* Overlap */
    z-index: 2;
}

.c-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #555;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.c-icon i {
    width: 100%;
    height: 100%;
    display: block;
}

.c-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.15) translateY(2px);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #282828;
}

.card-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
    padding: 0 10px;
}

/* Hide category tag or style distinctively if user wants it kept. 
   Ref image doesn't clearly show a category tag on the card face, 
   but distinct thumbnails. I'll remove the tag from view or make it subtle. */
.category-tag {
    display: none;
}

.showcase-card.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header */
    .showcase-header {
        min-height: auto;
        padding: 15px 15px 30px;
    }

    .header-graphic-container {
        width: 85%;
        margin-top: 20px;
    }

    .title-dishes {
        font-size: 4.5rem;
        text-shadow:
            2px 2px 0 #282828,
            4px 4px 0 #282828,
            6px 6px 0 #282828,
            8px 8px 0 #282828;
        -webkit-text-stroke: 2px #282828;
    }

    .title-our {
        font-size: 1.5rem;
        padding: 5px 18px;
    }

    .top-deco {
        width: 150px;
        top: -25px;
        left: -20px;
        transform: rotate(-35deg);
    }

    .bottom-deco {
        width: 150px;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-top: 60px;
        padding: 0 10px;
    }

    /* Filter Buttons — wrap into rows on mobile */
    .filter-container {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        margin-bottom: 20px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        box-shadow: 3px 3px 0 #282828;
        margin: 0;
        flex-shrink: 0;
    }

    /* Showcase Grid — single column */
    .showcase-section {
        padding: 0 12px 60px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Cards — compact */
    .showcase-card {
        box-shadow: 5px 5px 0 #282828;
        border-radius: 14px;
    }

    .card-thumbnail {
        height: 160px;
        font-size: 2.5rem;
        border-radius: 14px 14px 0 0;
    }

    .card-content {
        padding: 25px 15px 15px;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .card-desc {
        font-size: 0.8rem;
    }

    .c-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}