/* ========================
   OUR WORK PAGE – Bento Grid
   ======================== */

/* Page Hero */
.our-work-hero {
    background: var(--primary);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.our-work-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.our-work-hero .section-label {
    color: var(--accent);
}

.our-work-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.our-work-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 1.5rem;
    padding: 4rem 0 6rem;
}

/* Make some cards larger for bento effect */
.bento-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}



.bento-card:nth-child(7) {
    grid-column: span 2;
}

.bento-card:nth-child(11) {
    grid-column: span 2;
}

/* Card Base */
.bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(249, 115, 22, 0.3);
    border-color: var(--accent);
}

/* Card Image */
.bento-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.05);
}

/* Gradient overlay on image */
.bento-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover .bento-card-image::after {
    opacity: 1;
}

/* Visit Badge */
.bento-visit-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 2;
}

.bento-card:hover .bento-visit-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Card Content */
.bento-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.bento-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.bento-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bento-card-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

/* Back to Home */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent);
}

/* CTA Section */
.our-work-cta {
    text-align: center;
    padding: 4rem 0 6rem;
    background: var(--primary);
}

.our-work-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.our-work-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }

    /* Reset spans for tablet */
    .bento-card:nth-child(1) {
        grid-column: span 2;
    }



    .bento-card:nth-child(7) {
        grid-column: span 1;
    }

    .bento-card:nth-child(11) {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .our-work-hero {
        padding: 6rem 0 3rem;
    }

    .our-work-hero h1 {
        font-size: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(260px, auto);
        gap: 1rem;
        padding: 2rem 0 4rem;
    }

    /* Reset all spans for mobile */
    .bento-card:nth-child(1),
    .bento-card:nth-child(7),
    .bento-card:nth-child(11) {
        grid-column: span 1;
    }

    .bento-card-content h3 {
        font-size: 1.05rem;
    }

    .our-work-cta h2 {
        font-size: 1.75rem;
    }
}
