html, body {
    height: 100%;
}

/* ===== Background Fix ===== */
body {
    min-height: 100vh;
    background: url("images/wdd131-background.jpeg") no-repeat center center fixed;
    background-size: cover;
    background-color: #000;
    max-height: 700px;
}

/*=== Fonts ===*/
p {
    color: #fff;
    text-shadow: #670065;
}

/* === Header === */
header {
    background: url("images/header-image.jpg") no-repeat center;
    background-size: cover;
    height: 178px;
    display: flex;
    align-items: center;
    margin: 0;
}

header img {
    display: block;
    width: 90px;
    height: 100px;
    border: 5px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 0 20px #fff;
}

/* === Navigation === */
nav {
    background: #c800ff;
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 50px;
    height: 50px;
    border-top: 3px solid #00d0f9;
    border-bottom: 3px solid #00d0f9;
    padding: 0 20px;
    box-sizing: border-box;
}

/* CLEAN nav link styles (no duplicates) */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;

    display: block;
    padding: 20px;
    text-align: center;

    border-top: 1px solid grey;
    text-shadow: 0px 0px 3px #22a203;
    transition: background 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    background-color: #00d0f9;
    text-shadow: 4px 4px 2px #c800ff;
}

/* === Menu Button === */
.menu-btn { 
    cursor: pointer; 
    border: none; 
    background-color: transparent; 
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 4px;
    background-color: rgb(255, 249, 249);
    margin: 5px 0;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}
.change .bar2 { opacity: 0; }
.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/* === MOBILE MENU RULES (UNDER 700px) ==== */
@media screen and (max-width: 699px) {

    /* Show hamburger on mobile */
    .menu-btn {
        display: inline-block;
    }

    /* Make the nav a dropdown container on mobile */
    nav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
        padding: 0;
    }

    /* Hide links by default on mobile */
    nav a {
        display: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* Show links when JS toggles nav.open */
    nav.open a {
        display: block;
    }
}

/* === Home Page === */
.welcome-message > h1 {
    color: #fff;
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

/* ===== FEATURED PROJECTS ===== */
.featured-projects {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.featured-projects > h2 {
    color: #fff;
    grid-column: 1 / -1;
    text-align: center;
}

.featured-projects img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/* === Ponder Page === */
.ponder-projects {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.ponder-projects > * {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.ponder-projects p {
    color: #f9cb00;
}

.ponder-welcome > h1 {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.ponder-projects img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/* === Prove Page === */
.prove-projects {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.prove-projects > * {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.prove-projects p {
    color: #f9cb00;
}

.prove-welcome > h1 {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.prove-projects img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}
/*=== PREPARE ===*/
.prepare-readings {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.prepare-readings > * {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.prepare-readings p {
    color: #f9cb00;
}

.prepare-welcome > h1 {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.prepare-readings img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/* === Final Project === */
#final-project {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

#final-project > h2 {
    color: #fff;
    grid-column: 1 / -1;
    text-align: center;
}

#final-project img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

#site-plan {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

#site-plan > h2 {
    color: #fff;
    grid-column: 1 / -1;
    text-align: center;
}

#site-plan img {
    height: 350px;
    width: 350px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}
/* === FOOTER === */
footer {
    margin: 20px auto 0;
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 15px;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
    color: #f2c46e;
    text-shadow: 1px 1px 3px #330033;
}

footer img {
    height: 20%;
    width: 20%;
    border: 5px solid #f9cb00;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/* ===== Tablet ===== */
@media screen and (min-width: 700px) {
    .featured-projects {
        grid-template-columns: 1fr 1fr;
    }
    .ponder-projects {
        grid-template-columns: 1fr 1fr;
    }
    .prove-projects {
        grid-template-columns: 1fr 1fr;
    }

     .prepare-readings {
        grid-template-columns: 1fr 1fr;
    }
    
    body {
        max-width: none;
    }

    header img {
        width: 150px;
        height: 168px;
    }

    .menu-btn {
        display: none;
    }

    nav {
        flex-direction: row;
        height: 50px;
        padding: 0 20px;
        gap: 50px;
    }

    nav a {
        display: inline-block;
        border-top: none;
        padding: 10px 25px;
    }
}

/* ===== Desktop ===== */
@media screen and (min-width: 1000px) {
    .featured-projects {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .ponder-projects {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .prove-projects {
        grid-template-columns: 1fr 1fr 1fr;
    }

     .prepare-readings {
        grid-template-columns: 1fr 1fr 1fr;
    }

    nav {
        justify-content: center;
    }
}
