/* General styles
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
} */

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Projects container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    width: 80%;
    padding: 30px 20px;
    align-items: center;
    margin: 0 auto;
}

/* Individual project tile */
.project-tile {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project-tile:hover {
    transform: translateY(-10px);
}

/* Image in the project tile */
.project-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Project info (name and type) */
.project-info {
    padding: 15px;
    background-color: #f5f5f5;
    text-align: center;
}

.project-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.project-info p {
    margin: 5px 0 0;
    color: #777;
    font-size: 0.9rem;
}

/* Mobile (up to 600px) */
@media (max-width: 600px) {
    .project-tile img {
        height: 150px;
    }

    .project-info h3 {
        font-size: 1rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }
}

/* Tablet (between 600px and 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
    /* For tablets, reduce the gap between project tiles and increase the number of columns */
    .projects-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
        gap: 15px; /* Reduce gap between tiles */
    }

    .project-tile img {
        height: 180px; /* Slightly smaller image height for tablets */
    }

    .project-info h3 {
        font-size: 1.1rem; /* Adjust font size */
    }

    .project-info p {
        font-size: 0.85rem; /* Slightly smaller description text */
    }
}
