*{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    position: relative;
}

body{
    background: #FEF8EC;
    color: #535353;
}

#header {
    width: 100%;
    height: 50px;
    background-color: rgba(253, 253, 253, 0.356);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #535353;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 20px;
}

.main-nav{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.main-nav ul li{
    display: inline-block;
    list-style: none;
    margin: 0px 20px;
    margin-top: 4px;
}

.main-nav ul li a{
    color: #535353;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.main-nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #9f3418;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.main-nav ul li a:hover::after{
    width: 100%;
}

.main-nav ul li a.active {
    position: relative;
}

.main-nav ul li a.active::after {
    content: '';
    width: 100%;
    height: 3px;
    background: #9f3418;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

/* Updated media query for screens smaller than 768px */
@media (max-width: 768px) {
    #header {
        height: auto;
        padding: 10px;
    }

    .main-nav {
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 16px;
        white-space: nowrap;
    }

    #hero-container {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 80px;
    }

    #hero-left, #hero-right {
        padding: 20px 5%;
    }

    .hero-text h1 {
        font-size: 28px;
        margin-top: 10%;
    }

    .hero-subtext p {
        font-size: 14px;
    }

    #hero-right {
        height: 50vh;
        width: 90%;
        margin: 20px auto;
    }
}

#hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

#hero-left, #hero-right {
    height: 100%;
    padding: 10px 10%;
}

.hero-text h1{
    font-size: 36px;
    margin-top: 20%;
    text-wrap: balance;
}

.hero-subtext p{
    font-size: 16px;
    margin-top: 5%;
    text-align: left;
    line-height: 1.5;
}

.bold-green {
    font-style: italic;
    font-weight: 700;
    background-color: #496630;
    color: #FEF8EC;
}

.bold-terracotta {
    font-style: italic;
    font-weight: 700;
    background-color: #9f3418;
    color: #FEF8EC;
}

#hero-right {
    background-image: url('images/0_1.jpg');
    background-size: cover;
    background-position: center;
    height: 75vh;
    width: 90%;
    margin-right: 20px;
    margin-top: 80px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.hero-right-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    opacity: 0;
    transform: opacity 0.5s ease;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

#hero-right:hover .hero-right-caption {
    opacity: 1;
}

/* Add this new media query for very small screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }

    .hero-subtext p {
        font-size: 12px;
    }

    #hero-right {
        height: 40vh;
    }
}


#faq-hero-left, #faq-hero-right {
    height: 100%; /* Ensures they fill the container's height */
    padding: 10px 10%;
}

.faq-q, .faq-a {
    font-size: 16px;
}

.faq-q {
    font-weight: 700;
}

.faq-a {
    font-style: italic;
}

.faq-section {
    margin-top: 30px;
    margin-bottom: 0; /* Adjust as needed */
    padding: 0;

}
.faq-section p {
    margin-top: 0;
    margin-bottom: 5px; /* Adjust as needed */
    padding: 0;
}

.faq-item {
    margin-bottom: 40px; /* Creates more space between each Q&A "pot" */
}

#faq-hero-right {
    width: 90%; /* Adjusted width, assuming 20px is the desired space from the right edge */
    margin-right: 20px; /* Adds space to the right edge of the screen */
    margin-top: 100px; /* Adds space to the top */
    position: relative; /* Needed for absolute positioning of children, if applicable */
}

#faq-hero-right img {
    width: 100%; /* Makes the image fill the container */
    height: auto; /* Keeps the image's aspect ratio */
    border-radius: 10px; /* Optional: If you want the image itself to have rounded corners */
    margin-top: 30px; /* Adds space to the top */
    margin: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Adds a subtle drop shadow */
}


#faq-hero-right .image-container {
    position: relative;
    width: 100%; /* Match the width of the images */
    margin-top: 20px; /* Spacing between each image container */
    border-radius: 10px; /* Optional: if you want rounded corners on images */
}


#faq-hero-right .image-caption {
    position: absolute;
    bottom: 4px; /* Start at the bottom of the container */
    left: 0;
    border-radius: 10px;
    margin: 10px;
    width: 100%; /* Caption width matches the container */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    color: #fff; /* Text color */
    text-align: center; /* Center the text */
    padding: 10px 0; /* Padding for the caption */
    opacity: 0; /* Caption is initially hidden */
    transition: opacity 0.5s ease; /* Smooth transition for the caption */
    pointer-events: none; /* Prevents the caption from interfering with image hover */
}

#faq-hero-right .image-container:hover .image-caption {
    opacity: 1; /* Show the caption on hover */
}

/* Move the first image container slightly to the right */
#faq-hero-right .image-container:nth-child(1) {
    margin-left: 70px;
}

/* Move the second image container slightly to the left */
#faq-hero-right .image-container:nth-child(2) {
    margin-right: 60px; 
}

/* Adjust the third image container as needed */
#faq-hero-right .image-container:nth-child(3) {
    margin-left: 70px; 
}

.sidebar {
    position: fixed;
    top: 0; /* Adjust as needed */
    left: 0; /* Sidebar sticks to the left edge */
    height: 100vh; /* Full viewport height */
    width: 125px; /* Match the grid-template-columns size */
    background-color: #f0f0f0;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Allows scrolling within the sidebar if content overflows */
}


.sidebar ul {
    list-style-type: none;
    margin: 0; /* Reset default margin */
    padding: 0; /* Adjust padding as needed */
    margin-top: 110px;
    width: 100%;
}

.sidebar ul li a {
    text-decoration: none;
    color: #535353;
    display: block;
    padding: 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    text-align: left;
}

.sidebar ul li a:hover {
    background-color: #ddd;
}

.sidebar ul li a.active {
    background-color: #496630; /* Different background for active link */
    color: #FEF8EC;
}

.sidebar ul li a:not(.active):hover {
    background-color: #ddd;
}


.garden-container {
    display: grid;
    grid-template-columns: auto;
    overflow-y: auto;
    margin-left: 125px; /* Adjust this value to match the sidebar's width + any desired gap */
}

.content {
    display: grid;
    grid-template-columns: auto;
    padding: 20px;
    overflow-y: auto;
    margin: 60px;
    margin-top: 0;
}

/* Initially hide all content */
.content > div {
    display: none;
}

/* Example of showing content - you will control this with JS */
.content > div#about {
    display: grid;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 30%; /* Adjust width as needed */
        height: auto;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000; /* Ensures sidebar is on top of other content */
        background-color: #fff; /* Add your desired background color */
        overflow-y: auto; /* Allows scrolling if content is taller than the screen */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .garden-container {
        margin-left: 0;
        margin-top: 0px;
    }

    #about {
        display: flex;
        flex-direction: column;
    }

    .about-container {
        order: 1;
        width: 100%;
    }

    .garden-pic {
        order: 2;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .project-pic {
        order: 2;
        max-width: 20%;
        height: auto;
        margin-top: 20px;
        object-fit: contain;
    }

    .notes-container {
        order: 1;
        width: 100%;
    }
    
    #notes {
        display: flex;
        flex-direction: column;
    }

    .planting-pic {
        order: 2;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .content {
        margin: 20px;
        margin-top: 0px;
    }

    /* Add a menu toggle button */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 100px;
        right: 10px;
        z-index: 1000;
        background: #496630;
        color: #FEF8EC;
        border: none;
        padding: 10px;
        border-radius: 5px;
    }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 100px;
    }

    .garden-container {
        margin-left: 100px;
    }

    .content {
        margin: 40px;
    }
}

#about {
    display: grid;
    grid-template-columns: 50% 50%; 
    gap: 20px; 
    margin-top: 100px;
}

#about p {
    margin-bottom: 30px;
    font-size: 16px;
    margin-top: 15px;
    text-align: left;
    line-height: 1.5;
}

#about ul {
    margin-bottom: 30px;
    font-size: 16px;
    margin-top: 15px;
    text-align: left;
    line-height: 1.5;
    margin-left: 15px;
}

.about-container {
    max-width: 100%;
}

.garden-pic {
    max-width: 100%;
}

.project-pic {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    display: block;
}

.notes-container {
    max-width: 100%;
}

#notes {
    display: grid;
    grid-template-columns: 50% 50%; 
    gap: 20px; 
    margin-top: 100px;
}

#notes p {
    margin-bottom: 30px;
    font-size: 15px;
    margin-top: 15px;
    text-align: left;
    line-height: 1.5;
}

.notes-details h2 {
    margin-bottom: 2rem; /* Adds space below the h2 */
    margin-top: 3rem; /* Adds space below the h2 */
    
  }

  hr {
    border: none;
    height: 1px;
    background-color: #c2c2c2; /* Change color as needed */
    margin: 1rem 0; /* Adjust spacing as needed */
}

  .notes-details h3 {
    margin-top: 2rem; /* Adds space above the h3 */
    font-size: 16px;
  }


#notes ul {
    margin-bottom: 30px;
    font-size: 16px;
    margin-top: 15px;
    text-align: justify;
    line-height: 1.5;
    margin-left: 15px;
}


.planting-pic {
    max-width: 100%;
}

.essay-container {
    max-width: 100%;
}

#essays {
    display: grid;
    grid-template-columns: 50% 50%; 
    gap: 20px; 
    margin-top: 100px;
}

#essays p {
    margin-bottom: 30px;
    font-size: 16px;
    margin-top: 15px;
    text-align: left;
    line-height: 1.5;
}

#essays ul {
    margin-bottom: 30px;
    font-size: 16px;
    margin-top: 15px;
    text-align: justify;
    line-height: 1.5;
    margin-left: 15px;
}

.tree-pic {
    max-width: 80%;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #FEF8EC;
    color: #535353;
    font-size: 14px;
    position: relative;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(83, 83, 83, 0.1);
}

@media (max-width: 768px) {
    footer {
        padding: 10px;
        font-size: 12px;
    }
}


  #projects-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Ensure the container has a height; adjust as necessary */
}

.construction-pic {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}
