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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary: #FF575E;
    --primary-dark: #2D0B0C;
    --secondary: #F5F1E8;
    --white: #FFFFFF;
    --gray: #6B7280;
    --accent: #FFD580;
    --overlay-dark: rgba(45, 11, 12, 0.7);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(45, 11, 12, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Add responsive breakpoint for iPad/mid-size screens */
@media (max-width: 1024px) {
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    margin-top: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url('images/hero.gif');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Statistics Banner */
.stats-banner {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

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

.stats-grid .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stats-grid .stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA Buttons */
.cta-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 87, 94, 0.15);
}

.cta-button:hover {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(255, 213, 128, 0.25);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Ensure links with cta-button class are properly styled */
a.cta-button {
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

a.cta-button:hover {
    text-decoration: none;
}

a.cta-button.secondary:hover {
    text-decoration: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.about-text h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.8;
}

.about-text ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Programs Section */
.programs {
    padding: 5rem 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 87, 94, 0.2);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.program-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.program-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.program-card > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-details h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.program-details li {
    color: var(--gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.program-details p {
    color: var(--gray);
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

/* Impact Section */
.impact {
    padding: 5rem 0;
    background: var(--white);
}

.impact-numbers {
    margin-bottom: 4rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.impact-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 87, 94, 0.2);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.impact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.impact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2rem;
}

.impact-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Success Stories */
.success-stories {
    margin-top: 4rem;
}

.success-stories h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
}

.story-card h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.story-card .location {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.story-card blockquote {
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.story-stats p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Microprojects Section */
.microprojects {
    padding: 5rem 0;
    background: var(--secondary);
}

.portfolio-overview {
    margin-bottom: 4rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.overview-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
}

.overview-item h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overview-item p {
    color: var(--gray);
    font-weight: 500;
}

.featured-projects h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(45, 11, 12, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(45, 11, 12, 0.1);
    background: #f8f9fa;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

.project-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-badge.funded {
    background: #d4edda;
    color: #155724;
}

.status-badge.partial {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.seeking {
    background: #f8d7da;
    color: #721c24;
}

.funding-needed {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-card .location {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-details p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.view-all-projects {
    text-align: center;
}

/* Partnership Section */
.partnership {
    padding: 5rem 0;
    background: var(--white);
}

.partnership-reasons {
    margin-bottom: 4rem;
}

.partnership-reasons h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reason-item {
    text-align: center;
    padding: 2rem;
}

.reason-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.reason-item h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.reason-item p {
    color: var(--gray);
    line-height: 1.6;
}

.partnership-opportunities h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partnership-opportunities .subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.opportunity-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(45, 11, 12, 0.06);
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 11, 12, 0.1);
}

.opportunity-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.opportunity-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.opportunity-card h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.opportunity-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.opportunity-card ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.opportunity-card li {
    color: var(--gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* CSR Section */
.csr {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.csr-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.csr-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.csr-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: calc(100vh - 120px);
        margin-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button.secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .programs-grid,
    .impact-grid,
    .stories-grid,
    .overview-grid,
    .projects-grid,
    .reasons-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .csr-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .hero {
        height: calc(100vh - 110px);
        margin-top: 110px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .program-card,
    .impact-card,
    .story-card,
    .project-card,
    .opportunity-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
} 