/* styles/projects.css - Projects page specific styles */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
    gap: 25px;
    width: 100%;
}

.project-tile {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 350px; /* Ensure consistent height */
}


.project-tile:hover {
    transform: translateY(-5px);
    box-shadow:
        0 6px 8px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(var(--primary-color-rgb), 0.2);
}

.project-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    max-height: 120px; /* Constrain logo height */
}

.project-logo {
    width: 100%;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.project-placeholder {
    width: 120px;
    height: 120px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
}
/* Project tile styles */
.project-tile h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color); /* Changed to default text color */
    font-size: 1rem; /* Smaller size when no logo */
}

.project-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    max-height: 120px;
}

/* Smaller tags on project tiles */
.project-tags .tag {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px; /* Smaller padding */
    border-radius: 15px; /* Slightly smaller radius */
    font-size: 0.7rem; /* Smaller font size */
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem; /* Smaller text for tags */
    display: inline-block;
}

/* Responsive adjustments - keep exactly 3 columns but make them smaller on mobile */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on smaller screens */
    }

    .project-tile {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .project-tile {
        padding: 20px;
        min-height: auto;
    }
}

/* Project tile styles */
.project-tile.with-logo h3 {
    display: none;
}

.project-tile.without-logo .project-logo-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1rem;
}

/* Smaller tags on project tiles */
.project-tags .tag {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
}
