/*
 * PROJECTS.CSS
 * Styles for the redesigned "Selected Work" page.
 */

/* --- Main Container & Header --- */
.projects-page-container {
    padding: 4rem 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.projects-title {
    font-family: 'Lora', serif; /* A classic, stylish serif font */
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}

.decorative-moth {
    width: 150px;
    height: auto;
    opacity: 0.7;
}

/* In dark mode, the moth is white */
html[data-theme='dark'] .decorative-moth path {
    stroke: #fff;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Distinct hover styles for light and dark modes */
html[data-theme='light'] .project-item:hover {
    background-color: #fff;
}

html[data-theme='dark'] .project-item:hover {
    background-color: #3a4244; /* A slightly lighter dark color */
}

.project-image-container {
    margin-bottom: 1.5rem;
}

.project-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* --- "See More" Button --- */
.see-more-container {
    text-align: center;
    margin-top: 4rem;
}

.see-more-btn {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    color: var(--font-color);
    font-family: var(--heading-font);
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .projects-title {
        font-size: 2.5rem;
    }
}
/* ADD THIS to the bottom of styles/projects.css */

.project-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
    margin-top: 1.5rem;
    flex-wrap: wrap; /* Allows buttons to stack on very small screens */
}

/* Make the buttons a little smaller to fit side-by-side */
.project-buttons .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 0;
}