/* Reset some default browser styles */
* {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    margin: 0;
    padding: 0;
}

/* Background and font settings */
body {
    color: #FFFFFF;
    background-color: #1C1C1C;
    background-color: #fff;
    background-size: cover;
    justify-content: space-between;
    background-attachment: fixed;
}

/* Header */
header {
    height: 180px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-image: url(../images/Headerbg.png);
    background-size: cover;
    padding: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 90px; 
    padding: 10px;
    z-index: 2;
}

nav ul {
    position: relative;
    top: 85px; 
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    font-family: 'Open Sans', sans-serif;
    font-weight: 200;
    display: inline-block;
}

nav ul li a {
    color: #133F00;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    font-weight: bold;
    color: #139400;
}

.nav-button {
    background: none;
    border: none;
    color: #133F00;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-button:hover {
    font-weight: bold;
    color: #139400;
}

/* Adjustments to input fields for consistent styling */
nav input {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

nav form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main layout */
main {
    display: block;
    align-items: center;
    justify-content: space-around;
    padding: 40px;
}

.policy {
    line-height: 2em;
    width: 80%;
    margin: auto;
    padding: 20px;
    color: #003d00;
    background-color: #FFFFFF;
}

/* About section */
.about {
    width: 75%;
    margin: auto;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about h2 {
    color: #000;
    font-size: 22px;
    margin-bottom: 10px;
}

.about p {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.social_Impact {
    padding: 20px;
    display: grid;
    grid-template-columns: auto auto;
    width: 100%;
}

.technology {
    padding: 20px;
    display: grid;
    grid-template-columns: auto auto;
    width: 100%;
}

.heading-wrapper {
    margin: auto;
    width: 80%;
    color: #000;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.heading {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Project card styling */
.project-card {
    padding: 20px;
    height: fit-content;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(192, 255, 192, 0.5);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card h3 {
    color: #000;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.project-card p {
    font-size: 1em;
    color: #000;
}

/* Footer */
footer {
    height: 250px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-image: url(../images/Footerbg.png);
    background-size: cover;
    padding: 20px;
}

footer p, a {
    color: #133F00;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-container {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}
.projects-small {
    display: none;
}

/* Media Queries for responsive design */
@media screen and (max-width: 1200px) {
    body {
        background-size: contain; /* Adjust background image scaling on smaller screens */
    }
}

@media screen and (max-width: 900px) {
    body {
        margin: 0;
        font-family: 'Open Sans', sans-serif;
    }

    main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    

    header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 1;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        position: relative;
        order: 2;
    }

    /* Burger menu style */
    .burger-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 30px;
        justify-content: space-between;
        z-index: 1000000;
    }

    .burger-menu span {
        display: block;
        height: 4px;
        width: 100%;
        background-color: black;
        border-radius: 2px;
    }

    /* Nav links in dropdown (hidden by default) */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        list-style: none;
        position: absolute;
        top: 50px;
        right: 0;
        background: white;
        padding: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-links form input,.nav-links form button {
        width: 90%; /* Adjust width for better alignment */
        padding: 10px; /* Add padding for a comfortable touch area */
        font-size: 16px; /* Make text readable */
        border-radius: 5px; /* Round the corners slightly */
        border: 1px solid #ccc; /* Add a subtle border */
    }
    .nav-links form button {
        background-color: #139400; /* Green button background */
        color: white; /* White text color */
        cursor: pointer;
        border: none; /* Remove border */
        transition: background-color 0.3s ease;
    }

    .nav-links form button:hover {
        background-color: #0e6f00; /* Darker green on hover */
    }
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        text-decoration: none;
        color: black;
        font-weight: bold;
    }

    /* Main projects section - stack vertically */
    main .projects , .heading{
        display: none;
    }

    .projects-small {
        width: 100%;
        display: block;
        align-items: center;
        margin: auto;
    }


    .technology-container {
        width: 100%;
        margin: auto;
        display: block;
    }

    .projects-small .small-heading {
        color: #000;
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
    }

    .projects-small .social_Impact,
    .projects-small .technology {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Space between project cards */
    }

    .projects-small .project-card {
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .projects-small .project-image img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    footer {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        font-size: 14px;
    }

    footer p {
        background-color: white;
        margin: 0;
        text-align: center;
    }

    footer p a {
        background-color: white;
        text-decoration: none;
        color: black;
    }
}
