/* ============================================
   RELATED PROJECTS — "You may also like"
   ============================================ */

.related-projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.related-projects-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    margin-bottom: 2.5rem;
    color: #6b7280;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3.5rem;
    overflow: visible;
}

/* Card Style */
.related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.related-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f46e5;
}

.related-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

/* Hover States */
.related-card:hover .related-card-image {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

@media (max-width: 768px) {
    .related-projects {
        padding: 4rem 1.5rem;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
