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

/* Subtle background texture */
body {
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(138, 154, 91, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 196, 168, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(27, 77, 62, 0.02) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Color Variables - All defined */
:root {
    --primary-teal: #004d40;
    --primary-teal-dark: #00251a;
    --accent-orange: #ff6f00;
    --accent-orange-dark: #e65100;
    --sage-green: #8a9e5b;
    --sage-green-dark: #5e7342;
    --deep-forest: #1b4d3e;
    --warm-sand-light: #f5f0e6;
    --text-dark: #263238;
    --text-light: #ffffff;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
.navbar {
    background: var(--light-bg);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    background-color: var(--primary-teal);
    background-image: linear-gradient(to top, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.fa-gem, .fa-recycle {
    margin-right: 0.5rem;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: auto;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    outline: none;
    background: var(--accent-orange);
    color: var(--text-light);
    cursor: pointer;
    min-width: 120px;
}

.button:hover {
    background: var(--accent-orange-dark);
    transition: all 0.3s ease-out;
}

.navbar__links:hover {
    color: var(--accent-orange);
    transition: all 0.3s ease-out;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar__menu.active {
        background: var(--primary-teal);
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
    }

    .navbar__menu.active .navbar__links {
        color: #fff;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: var(--primary-teal); /* visible on light background */
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        min-width: 80px;
        padding: 8px 16px;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--primary-teal);
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.donation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.paypal {
    background: #0070ba;
}

.paypal:hover {
    background: #005ea6;
}

.mpesa {
    background: var(--accent-orange);
}

.mpesa:hover {
    background: var(--accent-orange-dark);
}

.bank {
    background: var(--primary-teal);
}

.bank:hover {
    background: var(--primary-teal-dark);
}

.details {
    margin-top: 20px;
    padding: 10px;
    background: #f5f9f0;
    border-radius: 4px;
}

@media screen and (max-width: 400px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

/* Hero Section */
.main {
    background: linear-gradient(135deg, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
}

.main__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    min-height: 90vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 50px;
}

.main__content h1 {
    font-size: 4rem;
    color: var(--text-light);
}

.main__content h2 {
    font-size: 3rem;
    color: var(--accent-orange);
}

.main__content p {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.main__btn {
    font-size: 1rem;
    background: var(--accent-orange);
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    color: var(--text-light);
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease-out;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.main__btn a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
}

.main__btn:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-orange-dark);
    transition: all 0.35s ease-out;
    border-radius: 4px;
}

.main__btn:hover {
    color: #fff;
}

.main__btn:hover:after {
    width: 100%;
}

/* Secondary Button - Outlined Style */
.main__btn--secondary {
    font-size: 1rem;
    background: transparent;
    padding: 14px 32px;
    border: 2px solid var(--sage-green);
    border-radius: 4px;
    color: var(--sage-green);
    margin-top: 2rem;
    margin-left: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease-out;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.main__btn--secondary a {
    color: var(--sage-green);
    text-decoration: none;
}

.main__btn--secondary:hover {
    background: var(--sage-green);
    color: #fff;
}

.main__btn--secondary:hover a {
    color: #fff;
}

.main__img--container {
    text-align: center;
}

#main__img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .main__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 20px;
    }

    .main__content h1 {
        font-size: 2.5rem;
    }

    .main__content h2 {
        font-size: 2rem;
    }

    .main__content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .main__content h1 {
        font-size: 2rem;
    }

    .main__content h2 {
        font-size: 1.5rem;
    }
}

/* Info Section */
.info-section {
    background: #fff;
    padding: 5rem 0;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

.info-content h2 {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.info-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.info-content ul {
    list-style-type: none;
}

.info-content li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-content li:before {
    content: "✓";
    color: var(--accent-orange);
    position: absolute;
    left: 0;
}

.info-image img {
    max-width: 100%;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-content ul {
        display: inline-block;
        text-align: left;
    }
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
}

.contact-container h2 {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.contact-container p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

/* Services Section - Responsive Grid */
.services {
    background: var(--deep-forest);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
}

.services h1 {
    color: #fff;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.services__card {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-align: center;
    min-height: 350px;
    transition: transform 0.3s ease;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(27,77,62,0.85) 100%), url('images/bsf.jpeg');
}

.services__card:nth-child(2) {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(27,77,62,0.85) 100%), url('images/mealworm.jpeg');
}

.services__card:nth-child(3) {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(27,77,62,0.85) 100%), url('images/vermicompost.jpeg');
}

.services__card h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.services__card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.services__card .button {
    background: var(--accent-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.services__card .button:hover {
    background: var(--accent-orange-dark);
}

.services__card:hover {
    transform: scale(1.03);
}

@media screen and (max-width: 768px) {
    .services h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .services__card {
        min-height: 300px;
    }
}

/* Projects Page Styles */
.projects-hero {
    background: linear-gradient(rgba(0, 77, 64, 0.8), rgba(0, 77, 64, 0.8)), url('images/projects-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}    

.projects-hero__content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-hero__content p {
    font-size: 1.5rem;
}

.projects {
    padding: 5rem 0;
    background: #f5f9f0;
}

.projects__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}

/* Reverse layout without direction:rtl */
.project-card.reverse .project-image {
    order: 2;
}
.project-card.reverse .project-content {
    order: 1;
}

.project-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content h2 {
    color: var(--primary-teal);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: var(--accent-orange);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.project-btn {
    background: var(--accent-orange);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-btn:hover {
    background: var(--accent-orange-dark);
}

.resources {
    padding: 5rem 0;
    background: #fff;
    text-align: center;
}

.resources h2 {
    color: var(--primary-teal);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.resources__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resource-card {
    background: #f5f9f0;
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.resource-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.resource-card button {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.resource-card button:hover {
    background: var(--accent-orange);
}

@media screen and (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .project-card.reverse .project-image,
    .project-card.reverse .project-content {
        order: 0; /* reset order for mobile stacking */
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .resources__container {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer CSS */
.footer__container {
    background-color: var(--deep-forest);
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#footer__logo {
    color: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.footer__links {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__link--wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link--items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
    text-align: left;
    min-width: 140px;
    box-sizing: border-box;
}

.footer__link--items h2 {
    margin-bottom: 16px;
    color: #fff;
}

.footer__link--items a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer__link--items a:hover {
    color: var(--accent-orange);
    transition: 0.3s ease-out;
}

/* Social Icons */
.social__icon--link {
    color: #fff;
    font-size: 24px;
}

.social__media {
    max-width: 1000px;
    width: 100%;
}

.social__media--wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.social__icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 240px;
}

.social__logo {
    color: #fff;
    justify-self: flex-start;
    margin-left: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.website__rights {
    color: #fff;
}

@media screen and (max-width: 820px) {
    .footer__links {
        padding-top: 2rem;
    }

    #footer__logo {
        margin-bottom: 2rem;
    }

    .website__rights {
        margin-bottom: 2rem;
    }

    .footer__link--wrapper {
        flex-direction: column;
        align-items: center;
    }

    .social__media--wrap {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 400px) {
    .footer__link--items {
        margin: 0;
        padding: 10px;
        width: 100%;
        align-items: center;
    }
}

/* Detailed Information Section */
.info-detailed {
    padding: 5rem 0;
    background: #fff;
}

.info-detailed__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-detailed h2 {
    text-align: center;
    color: var(--primary-teal);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.method-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.method-card {
    background: #f5f9f0;
    border-radius: 10px;
    padding: 2rem;
    border-left: 5px solid var(--accent-orange);
}

.method-card h3 {
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.method-card h3 i {
    margin-right: 10px;
    color: var(--accent-orange);
}

.method-card p {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.method-details h4 {
    color: var(--primary-teal);
    margin: 1.5rem 0 0.5rem 0;
}

.method-details ul, .method-details ol {
    color: #333;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.method-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Success Stories */
.success-stories {
    padding: 5rem 0;
    background: var(--primary-teal);
    color: #fff;
}

.success-stories__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.success-stories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.story-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.story-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.story-stats span {
    background: var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .method-card {
        padding: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-stats {
        flex-direction: column;
    }
}
