/* ========== GLOBAL VARIABLES & RESET ========== */
:root {
    --color-primary: #004aad;
    --color-primary-hover: #00bfff;
    --color-accent-red: #e63946;
    --color-accent-orange: #f4a261;
    --color-accent-blue: #1da1f2;
    --color-accent-green: #25d366;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --bg-surface: #f7f9fc;
    --bg-surface-alt: #f2f7ff;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    font-family: "Open Sans", sans-serif;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== HEADER / NAVIGATION ========== */
header {
    background-color: var(--color-primary);
    padding: 15px 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


header .header-logo {
    height: 70px;
    width: auto;
    display: block;
}

header .logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    transition: color 0.3s;
    position: relative;
}

header nav ul li a:hover {
    color: var(--color-primary-hover);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary-hover);
    transition: width 0.3s;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
}

/* Mobile Responsive Nav */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        display: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    header nav ul li {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

/* HERO SECTION */
#hero {
    position: relative;
    height: 100vh;
    background-image: url('../image/comm2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* DARK OVERLAY FOR READABILITY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 58, 140, 0.6);
    z-index: 1;
}

/* CONTENT WRAPPER */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

/* CONTENT */
.hero-content {
    max-width: 650px;
    text-align: left;
}

/* LOGO */
.hero-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* NGO NAME */
.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* TAGLINE */
.hero-content p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #f0f0f0;
    text-align: left;
}

/* BUTTON */
.hero-content .btn {
    font-family: "Montserrat", sans-serif;
    display: inline-block;
    padding: 15px 35px;
    background: #ffffff;
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-content .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero-container {
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }

    .hero-logo {
        margin: 0 auto 15px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}


/* ========== SECTIONS ========== */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* ========== CONCLUSION ========== */
#conclusion {
    background-color: #ffffff;
    padding: 60px 20px;
}

#conclusion p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
}

#conclusion h3 {
    text-align: center;
    color: #003c8f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ========== PROGRAM CARDS ========== */
.program-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: var(--bg-surface-alt);
    /* Very light blue */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.card p {
    color: #333;
}

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

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

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
}

.gallery-grid img {
    transition: transform 0.4s, filter 0.4s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}



/* ========== FOOTER ========== */
footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 20px 0;
}


/* About Session */

#about {
    background-color: var(--bg-surface);
    padding: 80px 20px;
}

#about h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #003c8f;
}

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

.about-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* subtle blue accent line */
.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-primary);
}

.about-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.about-card p {
    color: #555;
    line-height: 1.7;
}

/* hover animation */
.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* FOUNDER SECTION AS A CARD */
#founder {
    padding: 80px 20px;
    background: #f4f7fc;
}

.founder-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* subtle lift on hover */
.founder-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.18);
}

/* IMAGE */
.founder-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* TEXT */
.founder-content h2 {
    color: #003c8f;
    margin-bottom: 8px;
}

.founder-content h3 {
    color: #666;
    font-weight: 500;
    margin-bottom: 20px;
}

.founder-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .founder-wrapper {
        grid-template-columns: 1fr;
        padding: 35px 25px;
        text-align: center;
    }

    .founder-image img {
        max-width: 280px;
        margin: 0 auto 25px;
    }
}

/* Impact / Gallery Section */
#impact {
    padding: 80px 0;
    background-color: var(--color-light);
    text-align: center;
}

#impact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}

#impact p {
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- IMAGE MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background-color: var(--bg-surface);
    text-align: center;
}

#contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1e3a8a;
    /* dark blue */
}

/* Container for cards - horizontal flex */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Individual card styling */
.contact-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100px;
    height: 100px;
}

.contact-card i {
    font-size: 2.5rem;
    /* big and bold */
    color: #1e3a8a;
    /* default dark blue */
    transition: transform 0.3s, color 0.3s;
}

/* Make each icon colorful */
.contact-card:nth-child(1) i {
    color: var(--color-accent-red);
}

/* Email - red */
.contact-card:nth-child(2) i {
    color: var(--color-accent-orange);
}

/* Phone - orange */
.contact-card:nth-child(3) i {
    color: var(--color-accent-blue);
}

/* Twitter - blue */
.contact-card:nth-child(4) i {
    color: var(--color-accent-green);
}

/* Whatsapp - green */

/* Hover effect */
.contact-card:hover i {
    transform: scale(1.3);
    color: #457b9d;
    /* slightly different color on hover */
}

/* Remove underline from links */
.contact-card a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}