/* static/projects/style.css */

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.projects-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

.projects-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

#all-projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card-large {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;

}

.project-card-large:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.project-image-large {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
    flex-shrink: 0;
}

.project-title-and-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.project-icons-container {
    display: flex;
    gap: 10px;
}

.project-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease-in-out;
}

.project-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.project-details-large {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex-grow: 1;
}

.project-details-large h3 {
    margin-top: 0;
    padding-top: 0;
    font-size: 1.6rem;
    margin-bottom: 0;
    color: #f0f0f0;
}

.project-details-large p {
    color: #c7c7c7;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Media Queries for Responsive Design */

/* For screens smaller than 720px (e.g., tablets) */
@media (max-width: 719px) {
    #all-projects-container {
        grid-template-columns: 1fr;
    }

    .project-card-large {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .project-image-large {
        max-height: 300px;
        margin-bottom: 10px;
    }

    .project-title-and-icons {
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }

    .project-details-large {
        padding: 0 1rem 1rem 1rem;
    }

    .project-details-large h3 {
        font-size: 1.4rem;
    }
}

/* For screens smaller than 480px (e.g., mobile phones) */
@media (max-width: 479px) {
    .projects-page {
        padding: 0 1rem;
    }

    .projects-page h1 {
        font-size: 2rem;
        margin-left: 0;
    }

    .project-title-and-icons {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
        margin-bottom: 0.25rem;
    }

    .project-icons-container {
        margin-top: 0.25rem;
        gap: 8px;
    }

    .project-details-large h3 {
        font-size: 1.2rem;
    }

    .project-details-large p {
        font-size: 0.9rem;
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .project-icon {
        width: 18px;
        height: 18px;
    }
}
