* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Arial, sans-serif;
}

body {
    color: #fff;
    background: #000;
}

/* TOP NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0));
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 0.98rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO / HOME SECTION */
#home {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: #fff;
    overflow: hidden;
    background: transparent;
}

/* changing background layer */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.6s ease;
    z-index: -2;
}

/* dark overlay so text always readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.85));
    z-index: -1;
}

/* text stays on top, never moves */
.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 560px;
    color: #f0f0f0;
}

/* GENERIC SECTIONS */
section {
    padding: 80px 40px;
    background: #fafafa;
    color: #222;
}

section:nth-of-type(even) {
    background: #f0f0f0;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

h2.section-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Mission */
/* nice background just for the mission section */
.big-mission-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

/* grid of project cards under the big title */
.mission-projects-grid {
    display: grid;
    gap: 24px;
}

/* card */
.mission-project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mission-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* top image area like your reference */
.mission-image {
    width: 100%;
    height: 260px;
    /* adjust height as you like */
    background-size: cover;
    /* fill the box */
    background-position: center;
    /* crop evenly */
    background-repeat: no-repeat;
}

/* text under image */
.mission-project-card h3 {
    font-size: 1.25rem;
    margin: 16px 18px 8px;
}

.mission-project-card p {
    margin: 0 18px 18px;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #555;
}

/* side‑by‑side layout on bigger screens */
@media (min-width: 800px) {
    .mission-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Donate */
.donate-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.donate-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.upi-box {
    background: #fffde7;
    border-radius: 10px;
    padding: 18px;
    border: 2px dashed #4caf50;
    text-align: center;
}

.upi-id {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 8px 0;
}

.primary-btn {
    margin-top: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Volunteer popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    color: #222;
    padding: 20px 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal h3 {
    margin-bottom: 12px;
}

.modal-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.secondary-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #999;
    background: #eee;
    cursor: pointer;
}

/* About */
/* start slightly down and transparent */
/* start slightly down and transparent */
.about-banner {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background-image: url("images/Project/Project-10.jpeg");
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* when visible on scroll */
.about-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.15));
}

.about-banner-text {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #fff;
}

.about-banner-text h2 {
    font-size: 1.8rem;
    margin: 0;
}

.about-body {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.team-grid {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.team-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* CONTACT */
/* one single contact box */
.contact-single-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 24px;
}

.contact-left h3,
.contact-right h3 {
    margin-bottom: 10px;
}

/* form fields */
.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    font-family: inherit;
}

/* side‑by‑side inside the same box on larger screens */
@media (min-width: 700px) {
    .contact-single-card {
        grid-template-columns: 1.1fr 1fr;
    }
}


/* FOOTER */
footer {
    padding: 18px 40px;
    background: #111;
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

/* DESKTOP GRIDS */
@media (min-width: 700px) {
    .mission-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .donate-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .navbar {
        padding-inline: 20px;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    #home {
        padding-inline: 20px;
    }

    section {
        padding-inline: 20px;
    }
}