/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #6b705c;
    /* Olive Green */
    --secondary-color: #a5a58d;
    /* Khaki */
    --accent-color: #8c9c5e;
    /* Lighter Green Accent */
    --text-dark: #2f3e46;
    /* Dark Slate */
    --text-light: #ffffff;
    --bg-color: #f0f2ea;
    /* Light Khaki/Grey Tint */
    --card-bg: #ffffff;
    --modal-bg: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 101;
    /* Above mobile menu */
}

.logo-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4)) brightness(1.1);
    transition: var(--transition);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5)) brightness(1.15);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.burger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu Active State */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.burger-menu.active .burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(47, 62, 70, 0.6), rgba(47, 62, 70, 0.6)), url('hero_background_1769419917511.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--text-light);
    padding: 10rem 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 80vh;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1.4s ease-out;
}

.btn-donate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background-color: #9cb06b;
}

.hero-logo {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1.6s ease-out;
}

.hero-logo-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
    opacity: 0.95;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5));
}

/* --- Content Sections --- */
.section {
    padding: 6rem 5%;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50px;
}

/* --- About Preview (Main Page) --- */
.about-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 320px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: #444;
    font-size: 1.15rem;
    text-align: justify;
    word-wrap: break-word;
    hyphens: auto;
}

.about-text ul {
    margin-bottom: 1.2rem;
}

.about-text li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    min-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Slight darken overlay */
    transition: var(--transition);
}

.about-image:hover::before {
    background: rgba(0, 0, 0, 0);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* --- Partners Section --- */
.partners-section {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--card-bg);
}

.partners-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(0);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.card-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: #555;
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* --- Modern Contacts Section --- */
.contacts-bar {
    background: linear-gradient(135deg, var(--text-dark), #1d2b34);
    color: var(--text-light);
    padding: 6rem 5%;
    text-align: center;
}

.contacts-bar h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contacts-bar h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contacts-bar p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.contacts-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    width: 300px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-card p a {
    color: #ddd;
    font-size: 1.1rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.contact-card p a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}


/* --- Footer --- */
footer {
    background-color: #1a2226;
    color: #888;
    text-align: center;
    padding: 3rem;
}

footer p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: #fff;
    padding: 3rem;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    line-height: 20px;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.bank-details {
    background-color: #f1f3f5;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: left;
    font-family: 'Courier New', monospace;
    color: #333;
    border: 1px solid #e1e1e1;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bank-details p {
    margin-bottom: 0.5rem;
    word-break: break-all;
    /* Important for long numbers on mobile */
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease-in-out;
        z-index: 100;
        opacity: 0.98;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero {
        padding: 6rem 3%;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-break: break-word;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .btn-donate {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-logo {
        margin-top: 2rem;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .section {
        padding: 3rem 4%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .logo-img {
        height: 60px;
        padding: 5px;
    }

    .about-preview {
        gap: 2rem;
        flex-direction: column;
    }

    .about-text {
        min-width: 100%;
    }

    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        margin-top: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 1rem;
    }

    .about-text ul {
        padding-left: 1.5rem;
    }

    .about-text li {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .about-image {
        min-width: 100%;
    }

    .partners-section {
        padding: 3rem 4%;
    }

    .partners-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .partners-logos {
        gap: 2rem;
    }

    .partner-logo {
        max-height: 90px;
        max-width: 140px;
    }

    .contacts-bar {
        padding: 4rem 4%;
    }

    .contacts-bar h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .contacts-bar h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .contacts-bar p {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .contacts-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-card {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    footer p {
        font-size: 0.85rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .modal h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .bank-details {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    .bank-details p {
        font-size: 0.85rem;
        word-break: break-word;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        padding: 5rem 2%;
    }

    .hero h1 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .btn-donate {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-logo-img {
        max-width: 150px;
    }

    .section {
        padding: 2.5rem 3%;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .contacts-bar h2 {
        font-size: 1.5rem;
    }

    .contacts-bar h3 {
        font-size: 1.4rem;
    }

    .partners-title {
        font-size: 1.3rem;
    }

    .partners-logos {
        gap: 1.5rem;
    }

    .partner-logo {
        max-height: 70px;
        max-width: 110px;
    }

    .logo-img {
        height: 50px;
    }

    .navbar {
        padding: 0.8rem 3%;
    }
}
.brand-red { color: #c1121f; }
.hero-subtext { max-width: 900px; margin-top: 1rem; }
.hero-subtext p { font-size: 1.1rem; margin-bottom: 0.6rem; }
