/* website/static/website/css/projects.css */

.brand-logo-text,
.brand-logo-icon {
    filter: brightness(0);
}

.contact-pill {
    background: #6090B5;
    color: #ffffff;
    text-decoration: none;

    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 700;

    border-radius: 999px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

.contact-pill:hover {
    transform: translateY(-2px);
    background: #6090B5;
}

/* ============================
   Page wrapper & hero section
   ============================ */

.projects-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;

    background-image: url("../images/projects-bg.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Title: 160px from left, ~205px from top */
.projects-hero {
    padding: 205px 160px 0px;
}

.projects-title {
    font-family: 'Playfair Display', 'Playfair', serif;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px;
}

.projects-subtitle {
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 300;
    margin: 0;
}

/* ============================
   Project rows
   ============================ */


.project-row {
    width: 100%;
}

.project-row:nth-child(even) {
    background-color: #F0F7FF;
}

.project-row-inner {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 64px 160px;
}

.project-row:nth-child(even) .project-row-inner {
    flex-direction: row-reverse;
}

/* ============================
   Image column
   ============================ */

.project-media {
    flex: 0 0 640px;
}

.project-image {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 640 / 375;
    border-radius: 24px;
    object-fit: cover;
    display: block;
}

.project-image--placeholder {
    background-color: #e3e3e3;
}

/* ============================
   Text column
   ============================ */
.project-content {
    flex: 1;
    max-width: 480px;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.project-item-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.project-item-description {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Button */
.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    background-color: #6090B5;
    color: #ffffff;
}

.project-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ============================
   Colors on blue rows
   ============================ */
.project-row:nth-child(even) .project-item-title,
.project-row:nth-child(even) .project-item-description {
    color: #000000;
}

.project-row:nth-child(even) .project-button {
    background-color: #6090B5;
    color: #ffffff;
}

/* ============================
   Empty state
   ============================ */

.no-projects {
    padding: 0 160px 80px;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================
   Basic responsiveness
   ============================ */

@media (max-width: 1200px) {
    .project-row-inner {
        padding: 48px 80px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .projects-hero {
        padding: 160px 40px 48px;
    }

    .projects-title {
        font-size: 48px;
    }

    .project-row-inner {
        flex-direction: column;
        padding: 32px 40px;
        align-items: flex-start;   /* <-- was centered, now left-aligned */
    }

    /* Make even rows behave exactly the same on mobile */
    .project-row:nth-child(even) .project-row-inner {
        flex-direction: column;
        align-items: flex-start;   /* ensure not centered */
    }

    .project-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .project-content {
        max-width: 100%;
        width: 100%;
        text-align: left;          /* extra safety */
    }

    .no-projects {
        padding: 0 40px 48px;
    }
}