* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8f5e9;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: #4CAF50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

main {
    padding-top: 5rem;
}

section {
    padding: 4rem 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

h1, h2 {
    color: #2E7D32;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/placeholder.svg?height=37.5rem&width=75rem');
    background-size: cover;
    background-position: center;
    height: 37.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

#hero p {
    font-size: 1.2rem;
    max-width: 37.5rem;
}

#about {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    margin-top: -3.125rem;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.team-member {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.team-member:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: 18.75rem;
    object-fit: cover;
    border-bottom: 0.1875rem solid #4CAF50;

}

.team-member h3 {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-top: 0.3125rem;
    padding: 0 0.625rem;
    transition: color 0.3s ease;
}

.team-member p {
    color: #333;
    font-size: 0.9rem;
    padding: 0.3125rem 0.625rem 0.625rem;
    transition: color 0.3s ease;
    word-break: break-word;
}

.team-member p a {
    color: inherit;
    text-decoration: none;
}
.team-member p a:hover {
    color: blue;
    text-decoration: underline;
}


#team {
    background-color: #C8E6C9;
    border-radius: 1rem;
    margin-top: 1.25rem;
    padding-bottom: 2.5rem;
    transition: background-color 0.3s ease;
}

#team h2 {
    text-align: center;
    color: #2E7D32;
}

footer {
    background-color: #2E7D32;
    color: white;
    text-align: center;
    padding: 0.625rem 0;
    margin-top: 1.25rem;
    transition: background-color 0.3s ease;
}

.theme-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    cursor: pointer;

    border: none;
    padding: 0.625rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle:hover {
    transform: rotate(45deg);
}

.theme-toggle img {
    width: 3.125rem;
    height: 3.125rem;
}

/* Dark Theme Styles */

body.dark-mode {
    background-color: #2f2c2c;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #1e1e1e;
}

#team h2.dark-mode {
    color: #2ecc71;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #2ecc71;
}

body.dark-mode #hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/placeholder.svg?height=37.5rem&width=75rem');
    color: #e0e0e0;
}

body.dark-mode #about {
    background-color: #1e1e1e;
    box-shadow: 0 0.25rem 0.375rem rgba(255, 255, 255, 0.1);
}

body.dark-mode .team-member {
    background-color: #1e1e1e;
    box-shadow: 0 0.25rem 0.375rem rgba(255, 255, 255, 0.1);
}

body.dark-mode .team-member:hover {
    box-shadow: 0 0.375rem 0.75rem rgba(255, 255, 255, 0.2);
}

body.dark-mode .team-member h3 {
    color: #a5d6a7;
}

body.dark-mode .team-member p {
    color: #cfcfcf;
}

body.dark-mode #team {
    background-color: #263238;
}

body.dark-mode footer {
    background-color: #1b5e20;
    color: #a5d6a7;
}

body.dark-mode .theme-toggle {
    background-color: #2e7d32;
    color: #ffffff;
}

@media (max-width: 48rem) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.3125rem 0;
    }

    #hero {
        height: 31.25rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }
}