body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}


/* ----------------------------- Header Section ----------------------------- */
#logo img {
    justify-content: left;
    width: 240px;
    height: 160x;
    z-index: 1;
}

#logo {
    flex: 0 1 auto;
}

#header {
    margin: 0;
    padding: 0;
    /* change to white once done more stuff */
}

#header-container {
    display: flex;
    align-items: center;
    /* Align items vertically centered */
    padding: 10px 20px;
    /* Optional: Add some padding */
    /*!!!!!!Change the font to Azur sans-serif!!!!!!*/
    margin: 0;
    font-size: 15px;
}

nav {
    flex: 1 1 auto;
    /* Allow the nav to grow and shrink */
    text-align: center;
    /* Center the nav content */
}

nav ul {
    list-style-type: none;
    /* Remove bullets */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margin */
    display: flex;
    /* Use flexbox to arrange items horizontally */
    justify-content: center;
}

nav ul li {
    padding: 10px 20px;
    text-align: center;
    /* Add padding for spacing */
}

nav ul li a {
    text-decoration: none;
    /* Remove underline from links */
    color: black;
    /* Set link color */
}

nav ul li a:hover {
    color: grey;
    /* Change color on hover */
}

/* ------------------------------- Mobile Mode Header ------------------------------ */

/* Hide the menu icon by default */
#menu-toggle {
    display: none;
}

/* Media Query for Mobile Devices */
@media only screen and (max-width: 960px) {
    #header-container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.8s ease-in-out;
    }

    nav ul li {
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    #menu-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    #menu-toggle img {
        width: 30px;
        height: 30px;
    }
    
    /* Add sliding animation */
    nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    transition: max-height 0.8s ease-in-out;
    overflow: hidden;
    max-height: 0;
    /* Hide the menu by default */
    }

    nav ul.show {
    max-height: 500px;
    /* Adjust as needed to show the entire menu */
    }

    nav ul li {
    text-align: center;
    }
}

    /* -------------------------------- Top Image ------------------------------- */

    /* Adjustments for mobile view */
    @media only screen and (max-width: 960px) {
        .image-container {
            width: 100%;
            height: auto;
        }

        .image-container img {
            width: 100%;
            height: auto;
            object-fit: cover;
            position: static;
            /* Remove absolute positioning */
            transform: none;
            /* Remove centering transform */
        }

        .image-container #overlay-text {
            top: 50%;
            /* Center text vertically */
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            /* Reduce width for better fit on small screens */
            font-size: 0.7em;
            /* Adjust font size for better fit on small screens */
            width: 100%;
            /* Increase width for better fit on small screens */
            padding: 1000px 1000px;
            /* Adjust padding for smaller screens */
        }
    }

    /* General styles for image container */
    .image-container {
        width: 100%;
        height: auto;
        /* Allow height to adjust automatically */
        overflow: hidden;
        position: relative;
    }

    .image-container img {
        width: 100%;
        height: auto;
        display: block;
        /* Ensure image is block level for proper scaling */
    }

    /* Overlay text styling */
    #overlay-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        width: 80%;
        /* Reduce width for better fit */
        font-size: 2em;
        z-index: 2;
        text-align: center;
        padding: 1000px 1000px;
        /* Add padding for better readability */
        background: rgba(0, 0, 0, 0.5);
        /* Add background for better contrast */
        border-radius: 10px;
        /* Add border radius for a polished look */
    }


    /* ------------------------------ Main Content ------------------------------ */

    /* Mobile view adjustments */
    @media only screen and (max-width: 960px) {
        #main-content {
            flex-direction: column;
            /* Stack elements vertically */
            align-items: center;
            justify-content: center;
            /* Center align items */
            text-align: center;
            /* Center text */
            margin: 0 0px;
        }

        #main-content .image-grid {
            grid-template-columns: repeat(2, 1fr);
            /* Keep the grid as 2x2 */
            grid-template-rows: repeat(2, 1fr);
            /* Keep the grid as 2x2 */
            width: 90%;
            height: 90%;
            /* Full width on mobile */
            margin: 20px 0px;
            /* Add margin for spacing */
            order: 2;
        }

        .image-grid img {
            width: 100%;
            height: 100%;
        }

        #main-content #ppf-paragraph {
            width: 85%;
            /* Adjust width for better fit on mobile */
            margin: 20px 0;
            /* Add margin for spacing */
            text-align: center;
            /* Center align text */
            margin: 0px;
            padding: 0;
            margin-left: 0;
        }

        #ppf-paragraph-part p {
            font-size: 17px;
        }
    }

    /* Main content styles */
    #main-content {
        width: 100%;
        background: linear-gradient(to right, #000000, #434343);
        padding: 20px 0px;
        /* Adjusted padding for responsiveness */
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        overflow: hidden;
        max-width: 100%;
    }

    #main-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, #434343, #000000);
        transform: translateX(-100%);
        transition: transform 1.5s ease;
        z-index: 1;
    }

    #main-content:hover::before {
        transform: translateX(0);
    }

    #ppf-paragraph {
        width: 50%;
        color: #fefcfc;
        text-align: left;
        padding: 0 20px;
        margin-left: 50px;
        position: relative;
        z-index: 2;
        flex: 1;
        line-height: 1.5;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        /* Adjust the gap between images as needed */
        width: 60%;
        /* Set the width of the grid container */
        height: 60%;
        /* Set the height of the grid container */
        overflow: hidden;
        position: relative;
        z-index: 2;
        margin-left: 20px;
    }

    .image-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    #ppf-paragraph-part {
        font-weight: 200;
        font-size: 25px;
    }

    /* Lower content styles */
    #lower-content {
        width: 100%;
        transition: background-color 0.2s ease-in;
    }

    #lower-content:hover {
        background-color: #F4F5F5;
    }

    #row-1,
    #row-2 {
        display: flex;
        flex-wrap: wrap;
        /* Allow content to wrap */
        justify-content: space-between;
        width: 100%;
        padding: 30px 0;
    }

    #row-1 img,
    #row-2 img {
        padding: 10px 15px;
        width: 100px;
        /* Fixed width */
        height: auto;
        flex: 1;
        border-radius: 20px;
        flex-grow: 1;
        /* Allow images to grow and shrink */
    }

    /* ------------------------------ Lower Content ----------------------------- */

    #lower-content {
        width: 100%;
        transition: background-color 0.2s ease-in;
    }

    #lower-content:hover {
        background-color: #F4F5F5;
    }

    #row-1 {
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: relative;
        padding: 30px 0px;
    }

    #row-1 img {
        padding: 10px 15px;
        width: 5%;
        /* Make each image take equal width */
        height: auto;
        /* Ensure the image maintains its aspect ratio */
        flex: 1;
        /* Allow images to grow and shrink to fill the container */
        border-radius: 20px;
    }

    #row-2 {
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: relative;
        padding: 30px 0px;
    }

    #row-2 img {
        padding: 10px 15px;
        width: 5%;
        /* Make each image take equal width */
        height: auto;
        /* Ensure the image maintains its aspect ratio */
        flex: 1;
        /* Allow images to grow and shrink to fill the container */
        border-radius: 20px;
    }

    .color-transition {
        filter: grayscale(100%);
        transition: filter 0.1s ease;
    }

    .color-transition:hover {
        filter: grayscale(0%);
    }

    @media only screen and (max-width: 960px) {
        #row-1 {
            display: flex;
            justify-content: space-between;
            width: 100%;
            position: relative;
            padding: 5px 0px;
        }

        #row-1 img {
            padding: 0px 5px;
            width: 10%;
            /* Make each image take equal width */
            height: auto;
            /* Ensure the image maintains its aspect ratio */
            flex: 1;
            /* Allow images to grow and shrink to fill the container */
            border-radius: 20px;
        }

        #row-2 {
            display: flex;
            justify-content: space-between;
            width: 100%;
            position: relative;
            padding-bottom: 5px;
        }

        #row-2 img {
            padding: 0px 5px;
            width: 10%;
            /* Make each image take equal width */
            height: auto;
            /* Ensure the image maintains its aspect ratio */
            flex: 1;
            /* Allow images to grow and shrink to fill the container */
            border-radius: 20px;
        }
    }

    /* --------------------------------- Footer --------------------------------- */

    #footer {
        width: 100%;
        padding: 30px 20px;
        transition: background-color 0.2s ease-in;
    }

    #footer:hover {
        background-color: #F4F5F5;
    }

    #footer #icon-container {
        display: flex;
        justify-content: right;
        align-items: center;
        width: 100%;
        position: relative;
        right: 50px;
    }

    #footer #icon-container img {
        width: 20px;
        height: 20px;
        margin: 0 5px;
    }

    #footer #icon-container {
        justify-content: center;
        right: 0;
    }