/* ===================================== */
/* 0. BASE STYLES & TYPOGRAPHY           */
/* (Adopted from your main homepage)     */
/* ===================================== */

:root {
    /* Define your colors here for easy tweaking */
    --color-primary: #5c677d;    /* Main Text/Dark Color */
    --color-secondary: #a99985;  /* Accent/Stylish Color */
    --color-background-light: #f9f9f9;
    --color-white: #ffffff;
    
    /* Fonts for consistency */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    display: block;
}

h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
}

/* ===================================== */
/* 1. LAYOUT CONTAINER                   */
/* ===================================== */

.showcase-container {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
}

/* ===================================== */
/* 2. PROJECT ITEM (The Two-Column Block)*/
/* ===================================== */

.project-item {
    display: flex; /* Use flexbox for simple side-by-side columns */
    align-items: center;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid #eee; /* Light separator between projects */
}

/* Make columns roughly equal, but text box can flex slightly more */
.project-visual {
    flex: 1; 
    min-width: 40%;
}

.project-description {
    flex: 1.5; 
    min-width: 50%;
}

.project-visual img {
    border-radius: 8px; /* Soft edges for a kind look */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

/* ===================================== */
/* 3. STYLISH HEADINGS                   */
/* ===================================== */

.project-subtitle {
    /* The small, stylish heading on top */
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-secondary); /* Use the accent color */
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-secondary); /* Subtle underline */
}

.project-description p {
    margin-bottom: 1rem;
}

/* ===================================== */
/* 4. INVERTED LAYOUT (For Odd Projects) */
/* ===================================== */

.project-item.inverted {
    /* Simply reverse the order of the flex items */
    flex-direction: row-reverse;
}

/* ===================================== */
/* 5. MOBILE VIEW (Stacks Vertically)    */
/* ===================================== */

@media (max-width: 768px) {
    .showcase-container {
        margin: 2rem auto;
    }
    
    .project-item,
    .project-item.inverted {
        /* Stack columns vertically on small screens */
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .project-visual,
    .project-description {
        /* Allow items to take full width */
        min-width: 100%;
        flex: auto;
    }
    
    .project-visual {
        /* Ensure the image appears first, even in the inverted block */
        order: -1;
    }
}