* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* --- CHANGES HERE --- */
    background-color: #0d0d0d; /* Primary dark background for the entire page */
    background-image: url('image_f36595.jpg'); /* Your desired fixed background image for projects page */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* THIS MAKES THE BACKGROUND FIXED */
    background-repeat: no-repeat;
    padding-top: 4rem; /* Keeps space for fixed header */
    overflow-y: auto; /* Allow body to scroll for project listings */
    /* --- END CHANGES --- */
}

/* Add an overlay to the body to darken the fixed background image */
body::before {
    content: "";
    position: fixed; /* IMPORTANT: Fixed position for the overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 70% opacity black overlay */
    z-index: -1; /* Place it behind content but above the fixed body background image */
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CSS for the clickable cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.why {
    background-color: rgba(31, 31, 31, 0.85); /* Slightly transparent dark background for cards */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    color: #ffffff;
    cursor: pointer;
}

.why > * {
    position: relative;
    z-index: 1;
}

.why:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
/* End of CSS for clickable cards */

/* ---------------------------------------------------------------------- */
/* Header remains the same across all pages, so copy from design.css */
/* ---------------------------------------------------------------------- */
.header {
    background: #000000;
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
                0 2px 4px -1px rgba(0, 0, 0, 0.12);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-direction: row;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.main-logo {
    height: 3.1rem;
    width: 3.1rem;
    border-radius: 9999px;
    margin-right: 1rem;
    object-fit: cover;
}

.brand-name {
    color: #e7ba51;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Roboto Slab';
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 1px;
    user-select: none;
    margin-left: auto;
}

.main {
    display: flex;
    align-items: center;
    width: auto;
    flex-grow: 1;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: none;
    opacity: 1;
    position: static;
    padding: 0;
    box-shadow: none;
    margin-left: auto;
}

.main.js-menu-open {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    opacity: 1;
    background-color: #1a1a1a;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.main-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: right;
    gap: 30px;
    width: auto;
}

.nav-link {
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    text-decoration: none;
}

.nav-link:hover {
    color: #e7ba51;
    background-color: rgba(255, 255, 255, 0.1);
}

.back-to-home-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #dbb152;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-left: 2.5rem;
}

.back-to-home-button:hover {
    background-color: #b69343;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
/* ---------------------------------------------------------------------- */
/* END OF Header styles */
/* ---------------------------------------------------------------------- */


/* ---------------------------------------------------------------------- */
/* Specific Styling for interior.html and exterior.html (Smaller Project Cards) */
/* ---------------------------------------------------------------------- */

.section-why {
    position: relative;
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background-color: transparent; /* IMPORTANT: Ensure section background is transparent */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* --- CHANGES HERE: REMOVE ::before and ::after from .section-why --- */
.section-why::before,
.section-why::after {
    display: none; /* Hide these pseudo-elements as background is now on body */
}
/* --- END CHANGES --- */

.section-why .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.why-light-blue {
    background-color: transparent;
}

.section-title-why {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.why-gradient-blue {
    background: linear-gradient(to right, #e7ba51, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 or 4 cards per row, flexible */
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.why {
    width: auto;
    height: 380px;
    padding: 20px;
    justify-content: flex-start;
}

.card-image-wrapper {
    margin-bottom: 15px;
    width: 100%;
    height: 180px;
}

.card-img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.why-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #e7ba51;
    letter-spacing: 0.02em;
}

.why-text {
    font-family: Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    margin-bottom: 0;
    color: #f0f0f0;
    line-height: 1.4;
}

.card-bg-1, .card-bg-2, .card-bg-3, .card-bg-4, .card-bg-5, .card-bg-6 {
    background-color: rgba(31, 31, 31, 0.85);
}

/* ---------------------------------------------------------------------- */
/* Media Queries for interior.html and exterior.html */
/* ---------------------------------------------------------------------- */

@media (min-width: 992px) {
    .card-why {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .why {
        height: 380px;
    }

    body {
        padding-top: 4rem;
    }

    .section-why {
        min-height: calc(100vh - 4rem);
    }
}

@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 0.7rem 1rem;
    }

    .header1 {
        flex-grow: 1;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-brand {
        flex-grow: 1;
        margin-right: 0;
    }

    .main {
        display: none;
        flex-grow: unset;
        margin-left: 0;
    }

    .hamburger-menu {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .back-to-home-button {
        display: inline-block;
        order: 3;
        margin-left: 0;
        font-size: 0.75em;
        padding: 6px 12px;
    }

    .main.js-menu-open {
        display: flex;
        flex-direction: column;
        max-height: 300px;
        opacity: 1;
        background-color: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1.5rem;
        text-align: left;
    }

    .section-title-why {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .card-why {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }

    .why {
        width: 90%;
        height: auto;
        min-height: 350px;
        padding: 20px;
    }

    .card-image-wrapper {
        height: 160px;
        margin-bottom: 10px;
    }

    .why-title {
        font-size: 1.3em;
    }

    .why-text {
        font-size: 0.9em;
    }
    
    .section-why {
        min-height: calc(100vh - 4rem);
        padding: 20px 0;
        overflow-y: auto;
    }
}