.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.background-overlay {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: rgba(26, 26, 26, 0.8);
    z-index: 0;
    animation: slideUp 1.5s ease-out forwards;
}

.contact-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(43, 42, 42, 0.9);
    padding: 40px;
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10;
}

.contact-container h1 {
    color: #ff9900;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact-container h2 {
    color: #ffffff;
    font-size: 4.5rem;
    margin-top: 55px;
    margin-bottom: 30px;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #cccccc;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-container input[type="text"],
.contact-container input[type="email"],
.contact-container textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    color: #333;
}

.contact-container textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-container button {
    background-color: #ff9900;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-container button:hover {
    background-color: #434343;
    color: #ff9900;
    transform: scale(1.1);
}

.team-section {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    justify-items: center;
    align-items: start;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(43, 42, 42, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.team-photo {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.member-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #ff9900;
}

.member-info p {
    margin: 5px 0 0;
    font-size: 1.1rem;
    color: #cccccc;
}


a {
    color: #ff9900;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media screen and (max-width: 820px) {
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: Arial, sans-serif;
        background-image: url('/assets/mbackground.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        overflow-x: hidden;
    }
    .contact-container {
        padding: 20px;
        margin: 30px auto;
        max-width: 100%;
        margin-top: 50px;
        margin-left: -20px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .contact-container h1 {
        font-size: 2rem;
        color: #0099ff;
    }

    .contact-container h2 {
        font-size: 1.5rem;
        color: #0099ff;
    }

    .team-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .team-member h3, a{
        color: #0099ff;
    }
    .team-photo {
        width: 100px;
        height: 100px;
    }
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: Arial, sans-serif;
        background-image: url('/assets/mbackground.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        overflow-x: hidden;
    }

    .hamburger {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: #f0f0f0;
        padding: 10px;
        transition: transform 0.3s ease;
        margin-left: -100px;
    }
    .navbar {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        background-color: rgb(2, 110, 182);
    }
    #navMenu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 153, 255, 0.863);
        position: absolute;
        top: 100%;
        left: -120px; 
        transform: translateX(-30%); 
        min-width: 200px;
        max-width: 70%; 
        z-index: 3;
        border-radius: 15px;
        box-shadow: 0 8px 16px rgb(255, 255, 255);
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
        opacity: 0; 
        max-height: 0; 
    }
    
    .hamburger-container:hover #navMenu,
    .hamburger-container:focus-within #navMenu {
        display: flex;
        max-height: 500px; 
        opacity: 1;
    }

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar nav ul li {
        margin: 0;
        max-width: 100%;
        padding: 10px 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .navbar nav ul li:last-child {
        border-bottom: none;
    }

    .navbar nav ul li a {
        width: 100%;
        margin-left: -12px;
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .navbar nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #0099ff; 
    }

    .navbar ul li a.active, .navbar ul li a:hover {
        background: #ffffff7c;
        color: #ffffff;
    }
    
    .navbar ul li a.donate {
        background: #2e2e2e;
        padding: 15px 20px;
        border-radius: 23px;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    .navbar ul li a.donate:hover {
        background-color: #ffffff;
        transform: scale(1.1); 
        color: #0099ff;
    }
    .team-member {
        padding: 3%;
    }
}

     @media screen and (max-width: 430px) {
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: Arial, sans-serif;
        background-image: url('/assets/mbackground.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        overflow-x: hidden;
    }
    .contact-container {
        padding: 20px;
        margin: 30px auto;
        max-width: 100%;
        margin-top: 50px;
        margin-left: -20px;
    }

    .contact-container h1 {
        font-size: 2rem;
    }

    .contact-container h2 {
        font-size: 1.5rem;
    }

    .team-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}