/* Updated Work Section Styles with custom Aluminio Azteca card */

.work {
    background-color: var(--light-bg);
    padding: 5rem 0;
    /* Increase the minimum height to prevent card cutoff */
    min-height: 700px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    /* Ensure enough space for cards */
    margin-bottom: 2rem;
}

.work-card {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    /* Increase minimum height to ensure content fits */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Custom styling for Aluminio Azteca card */
.work-card.aluminio-azteca {
    background-color: rgb(2, 11, 46);
    color: white;
}

.work-card.aluminio-azteca h3 {
    color: white;
}

.work-card.aluminio-azteca p {
    color: rgba(255, 255, 255, 0.9);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.work-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    /* Ensure image doesn't overflow */
    object-fit: contain;
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.work-card p {
    color: #666;
    /* Ensure text has enough space */
    margin-bottom: 1rem;
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Ensure full height usage */
    min-height: 200px;
}

.coming-soon i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .work {
        min-height: 650px;
    }

    .work-card {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .work {
        min-height: 1100px;
    }

    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .work-card {
        min-height: 260px;
    }
}

@media (max-width: 576px) {
    .work {
        min-height: 1000px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card {
        min-height: 240px;
    }
}