/* ==========================================================================
   Staurax Bento Grid Services Section
   Clean, modern, realistic photographic Bento card aesthetic
   ========================================================================== */

.stx-services-bento-section {
    padding: 70px 0 90px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.stx-services-header-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.stx-services-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color, #2563eb);
    margin-bottom: 16px;
}

.stx-services-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 18px;
}

.stx-services-desc {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* ==========================================================================
   Bento Grid Layout
   4 Columns Desktop:
   Row 1: Web (2 cols) | AI (1 col) | UI/UX (1 col)
   Row 2: Cyber (1 col) | SEO (1 col) | SaaS (2 cols)
   ========================================================================== */

.stx-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Placements */
.stx-bento-card--web {
    grid-column: 1 / 3;
}

.stx-bento-card--ai {
    grid-column: 3 / 4;
}

.stx-bento-card--uiux {
    grid-column: 4 / 5;
}

.stx-bento-card--cyber {
    grid-column: 1 / 2;
}

.stx-bento-card--seo {
    grid-column: 2 / 3;
}

.stx-bento-card--saas {
    grid-column: 3 / 5;
}

/* ==========================================================================
   Bento Card Base & Effects
   ========================================================================== */

.stx-bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    background-color: #0f172a;
}

.stx-bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

/* Background Image / Video with Zoom */
.stx-bento-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.stx-bento-card:hover .stx-bento-card-bg {
    transform: scale(1.06);
}

/* Video Fallback Image & Video Crossfade */
.stx-bento-video-fallback {
    z-index: 1;
}

.stx-bento-video {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stx-bento-video.is-playing {
    opacity: 1;
}

/* Gradient Overlay for Text Readability */
.stx-bento-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.35) 45%,
        rgba(15, 23, 42, 0.8) 100%
    );
    z-index: 2;
    transition: opacity 0.4s ease;
}

.stx-bento-card:hover .stx-bento-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.65) 0%,
        rgba(15, 23, 42, 0.25) 45%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

/* Card Content Container */
.stx-bento-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px;
    color: #ffffff;
}

.stx-bento-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stx-bento-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    display: inline-block;
}

.stx-bento-card-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stx-bento-card--web .stx-bento-card-title,
.stx-bento-card--saas .stx-bento-card-title {
    font-size: 1.75rem;
    max-width: 85%;
}

.stx-bento-card-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 6px;
    max-width: 90%;
}

/* Bottom Action / Glass Pill Button */
.stx-bento-card-bottom {
    margin-top: auto;
    padding-top: 24px;
}

.stx-bento-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

.stx-bento-card-btn svg {
    transition: transform 0.3s ease;
}

.stx-bento-card:hover .stx-bento-card-btn {
    background: #ffffff;
    color: var(--accent-color, #2563eb);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.stx-bento-card:hover .stx-bento-card-btn svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (2 Columns) */
@media (max-width: 991px) {
    .stx-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
        padding: 0 15px;
    }

    .stx-bento-card--web {
        grid-column: 1 / 3;
        min-height: 320px;
    }

    .stx-bento-card--ai {
        grid-column: 1 / 2;
        min-height: 340px;
    }

    .stx-bento-card--uiux {
        grid-column: 2 / 3;
        min-height: 340px;
    }

    .stx-bento-card--cyber {
        grid-column: 1 / 2;
        min-height: 340px;
    }

    .stx-bento-card--seo {
        grid-column: 2 / 3;
        min-height: 340px;
    }

    .stx-bento-card--saas {
        grid-column: 1 / 3;
        min-height: 320px;
    }

    .stx-services-title {
        font-size: 2.2rem;
    }
}

/* Mobile (Single Column / Compact Side Margins) */
@media (max-width: 768px) {
    .stx-services-bento-section {
        padding: 40px 0 50px 0;
    }

    .stx-services-bento-section .container {
        padding: 0 12px;
    }

    .stx-services-header-box {
        margin-bottom: 30px;
        padding: 0 6px;
    }

    .stx-bento-grid {
        grid-template-columns: 1fr;
        grid-gap: 14px;
        padding: 0;
    }

    .stx-bento-card--web,
    .stx-bento-card--ai,
    .stx-bento-card--uiux,
    .stx-bento-card--cyber,
    .stx-bento-card--seo,
    .stx-bento-card--saas {
        grid-column: 1 / -1;
        min-height: 270px;
        border-radius: 20px;
    }

    .stx-bento-card-content {
        padding: 22px;
    }

    .stx-bento-card-title {
        font-size: 1.35rem !important;
        max-width: 100% !important;
    }

    .stx-bento-card-desc {
        font-size: 0.85rem;
    }
}
