/* 
    MODERN HUMANITARIAN DESIGN SYSTEM 
    UNICEF / CRY / Save The Children Inspired
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* NGO Vibrant Palette */
    --primary: #0070f3; /* Trust Blue */
    --secondary: #00d1b2; /* Hope Cyan */
    --accent: #ff9f1c; /* Warmth Orange */
    --bg-white: #ffffff;
    --bg-soft: #f0f7ff;
    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-muted: #7a7a7a;
    --border: #e1e8f0;
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0, 112, 243, 0.08);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-white);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: clamp(32px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }

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

.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

/* Navbar - Modern NGO */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.nav-item:hover, .nav-item.active { opacity: 1; color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section - High Emotion */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 112, 243, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-img {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0, 112, 243, 0.2);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #0056b3; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 112, 243, 0.3); }

.btn-secondary { background: var(--accent); color: white; }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3); }

/* NGO Cards - Emotional & Clean */
.impact-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: block;
}

/* Campaign Cards */
.campaign-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.campaign-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }

.campaign-img { width: 100%; height: 240px; object-fit: cover; }
.campaign-body { padding: 30px; }

/* Progress Bar */
.progress-wrap { margin-top: 20px; }
.progress-bar { height: 10px; background: #eee; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* Sections */
section { padding: var(--section-padding); }
.section-blue { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Testimonials / Success Stories */
.success-box {
    background: white;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

/* Stats NGO */
.stat-item { text-align: center; }
.stat-value { font-size: 3.5rem; font-weight: 900; color: var(--primary); font-family: 'Outfit'; }
.stat-label { font-weight: 700; color: var(--text-muted); font-size: 1rem; text-transform: uppercase; }

/* Responsive Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Responsive Queries */

/* Tablets */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-img { 
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 400px;
        margin-top: 40px;
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .success-box {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    body { font-size: 16px; }

    /* Header & Nav */
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 5%;
        gap: 20px;
        transition: 0.5s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-item {
        font-size: 1.2rem;
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 20px;
    }

    /* Hero */
    .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem !important; }
    .hero-content .btn-wrap { flex-direction: column; width: 100%; }
    .hero-content .btn { width: 100%; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .stat-value { font-size: 2.5rem; }
    
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }

    /* Impact Sections */
    .impact-section-row {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .impact-section-row:nth-child(even) img {
        order: -1;
    }

    /* Success Box */
    .success-box { padding: 30px 20px; }
    .success-box h2 { font-size: 1.8rem; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Small Mobiles */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .stat-item { padding: 20px 0; }
    .btn { padding: 14px 28px; }
}

/* Mobile Menu Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
