/* ==============================
   OUR WORKS SHOWCASE SECTION
   ============================== */

.our-works-showcase {
    padding: 80px 6% 100px;
    position: relative;
    overflow: hidden;
}

.ow-header {
    text-align: center;
    margin-bottom: 50px;
}

.ow-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ow-title em {
    font-style: italic;
    font-family: 'Rustic Roadway', cursive;
    font-weight: 400;
    color: var(--orange1);
    font-size: 1.1em;
}

.ow-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Tab Navigation ---- */
.ow-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.ow-tab {
    padding: 10px 26px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.3px;
    user-select: none;
}

.ow-tab:hover {
    background: rgba(255, 159, 10, 0.08);
    border-color: rgba(255, 159, 10, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.ow-tab.active {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.15), rgba(255, 106, 0, 0.1));
    border-color: rgba(255, 159, 10, 0.4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.15);
}

/* ---- Grid Layout ---- */
.ow-grid-container {
    position: relative;
    min-height: 400px;
}

.ow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.ow-grid.fade-out {
    opacity: 0;
}

/* ---- Work Card ---- */
.ow-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    group: card;
}

.ow-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 159, 10, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 159, 10, 0.1);
}

.ow-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ow-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ow-card:hover .ow-card-img img {
    transform: scale(1.06);
}

/* Gradient overlay on image */
.ow-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(5, 8, 15, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ---- Card Info ---- */
.ow-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    z-index: 2;
}

.ow-card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 159, 10, 0.12);
    border: 1px solid rgba(255, 159, 10, 0.2);
    color: var(--orange1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ow-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-transform: capitalize;
}

/* ---- Hover Glow Effect ---- */
.ow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 159, 10, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.ow-card:hover::before {
    opacity: 1;
}


/* ---- Show More Button ---- */
.ow-show-more-wrap {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.ow-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 159, 10, 0.1);
    color: var(--orange1);
    border: 1px solid rgba(255, 159, 10, 0.2);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ow-show-more-btn:hover {
    background: var(--orange1);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 159, 10, 0.3);
}

.ow-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* ---- Transitions & States ---- */
.ow-grid {
    transition: opacity 0.3s ease;
}
.ow-grid.fade-out {
    opacity: 0;
}
.ow-card-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 768px) {
    .our-works-showcase {
        padding: 40px 4% 50px;
    }

    .ow-header {
        margin-bottom: 30px;
    }

    .ow-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .ow-title em {
        font-size: 1.05em;
    }

    .ow-subtitle {
        font-size: 14px;
        max-width: 90%;
        line-height: 1.5;
    }

    /* Horizontal scroll tabs — no wrapping */
    .ow-tabs {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 28px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .ow-tabs::-webkit-scrollbar {
        display: none;
    }

    .ow-tab {
        padding: 9px 20px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .ow-grid-container {
        min-height: 280px;
    }

    .ow-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .ow-card {
        border-radius: 14px;
    }

    .ow-card-img {
        aspect-ratio: 16 / 9;
    }

    .ow-card-info {
        padding: 14px 16px;
    }

    .ow-card-category {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .ow-card-name {
        font-size: 14px;
    }

    /* Disable hover effects on touch */
    .ow-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ow-card:hover .ow-card-img img {
        transform: none;
    }

    .ow-card:hover::before {
        opacity: 0;
    }

}

/* Small phones */
@media (max-width: 480px) {
    .our-works-showcase {
        padding: 32px 3.5% 40px;
    }

    .ow-header {
        margin-bottom: 22px;
    }

    .ow-title {
        font-size: 22px;
    }

    .ow-subtitle {
        font-size: 13px;
    }

    .ow-tabs {
        gap: 6px;
        margin-bottom: 22px;
    }

    .ow-tab {
        padding: 7px 16px;
        font-size: 12px;
    }

    .ow-grid {
        gap: 14px;
    }

    .ow-card {
        border-radius: 12px;
    }

    .ow-card-info {
        padding: 12px 14px;
    }

    .ow-card-name {
        font-size: 13px;
    }

}
