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

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth
}

body {
    background: #f4f7f2;
    color: #1f3d2b;
    line-height: 1.6
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo img {
    width: 55px
}

nav {
    display: flex;
    align-items: center
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #1f3d2b;
    font-weight: 500
}

nav a:hover {
    color: #5c8f3a
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease, transform 8s ease;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .45));
    z-index: 1;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 90%;
    padding: 45px;
    color: white;
    background: linear-gradient(135deg, rgba(10, 30, 20, .85), rgba(20, 60, 35, .8));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 18px;
    line-height: 1.15;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #eaf6ec;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn {
    background: #29a354;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    background: #37c96a;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    padding: 13px 26px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.btn-secondary:hover {
    background: white;
    color: #143015;
}

.hero-stats {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #dff5e5;
}

.hero-stats strong {
    display: block;
    font-size: 24px;
    color: #7CFFB2;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    opacity: .8;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0)
    }

    50% {
        transform: translate(-50%, 8px)
    }
}

/* FLOATING DONATE BUTTON */
.donate-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #3d6b4b;
    color: white;
    padding: 15px 20px;
    border-radius: 40px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    cursor: pointer;
    z-index: 999;
}

section {
    padding: 100px 10%
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 60px;
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 14px
}

/* PROGRAM CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    transition: .35s;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, .15)
}

.card-top {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.card-body {
    padding: 25px
}

.card-body h3 {
    margin-bottom: 8px
}

.card-stat {
    background: #f3f6f1;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 600;
}

.card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.learn-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #1f5e2b;
    color: white;
    cursor: pointer;
}

.donate-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #1f5e2b;
    background: white;
    color: #1f5e2b;
    cursor: pointer;
}

.donate-header {
    margin-left: 25px;
    background: #1f5e2b;
    color: white !important;
    padding: 10px 18px;
    border-radius: 10px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
    transition: .35s;
    text-align: center;
}

.card:hover {
    transform: translateY(-12px)
}

.card h3 {
    margin-bottom: 10px
}

/* PARALLAX SECTION */
.parallax {
    background: url('images/trees.jpg') center/cover fixed;
    /* color:white; */
    text-align: center;
    padding: 120px 10%;
}

.parallax h2 {
    font-size: 2.5rem;
    margin-bottom: 20px
}

/* IMPACT */
.impact {
    background: #3d6b4b;
    color: white
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.counter {
    font-size: 2.8rem;
    font-weight: 700
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    background: #8ecb54;
    top: 0;
    bottom: 0;
}

.timeline-item {
    padding: 20px 40px;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right
}

.timeline-item:nth-child(even) {
    left: 50%
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #8ecb54;
    border-radius: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -8px
}

.timeline-item:nth-child(even)::after {
    left: -8px
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    transition: .4s;
}

.gallery-grid img:hover {
    transform: scale(1.07)
}

/* CONTACT */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

footer {
    background: #1f3d2b;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* ANIMATION */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s
}

.fade.show {
    opacity: 1;
    transform: none
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* MOBILE */
@media(max-width:900px) {

    nav {
        display: none;
        flex-direction: column;
        width: 100%
    }

    nav a {
        margin: 10px 0
    }

    .menu-toggle {
        display: block
    }

    .about {
        grid-template-columns: 1fr
    }

    .timeline::before {
        left: 8px
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        text-align: left
    }

    .timeline-item:nth-child(even) {
        left: 0
    }

    .timeline-item::after {
        left: 0
    }

    .hero h1 {
        font-size: 2.3rem
    }

}

/* CONTACT GRID WRAPPER */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1100px;
    margin: auto;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Stack columns vertically */
        gap: 30px;
        /* Optional: reduce gap on mobile */
        padding: 0 15px;
        /* Add some side padding */
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 100%;
        /* Make form inputs take full width */
        box-sizing: border-box;
        /* Ensure padding doesn’t break width */
    }
}

/* Modal Background */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* semi-transparent background */
    padding-top: 60px;
}

/* Modal Content Box */
.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close Button */
.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Remove default list styling and add padding */
.modal-content ul {
    list-style: none;
    /* Remove bullets */
    padding: 0;
    /* Remove default padding */
    margin: 20px 0;
    /* Space above/below list */
}

.modal-content ul li {
    padding: 10px 0;
    /* Vertical spacing for each item */
    border-bottom: 1px solid #eee;
    /* Optional separator for clarity */
    font-size: 16px;
    color: #333;
}

.modal-content ul li:last-child {
    border-bottom: none;
    /* Remove border from last item */
}

.modal-content ul li strong {
    display: inline-block;
    width: 120px;
    /* Fixed width for labels like "Bank Name:" */
}

.program-modal {
    text-align: center;
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.program-stat {
    margin: 20px 0;
    padding: 12px;
    background: #f3f6f1;
    border-radius: 10px;
    font-weight: 600;
}