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

:root {
    --primary-color: #2D6A4F;
    --primary-dark: #1B4332;
    --primary-light: #52B788;
    --accent-color: #f4a261;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --bg-main: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and base styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    /* Increased for better readability */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navbar */
header {
    background: transparent;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.brand {
    position: relative;
}

.brand a {
    text-decoration: none;
    color: var(--primary-dark) !important;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.brand a i {
    color: var(--primary-color);
}

.brand a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    gap: 1.5rem;
    /* Better spacing than margins */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    /* Ensure it stays above the side menu */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Layout */
main {
    padding: 0;
    padding-top: 70px;
}

/* Home Page specific - Hero */
.hero {
    background: linear-gradient(rgba(27, 67, 50, 0.7), rgba(27, 67, 50, 0.8)), url('https://d2eehagpk5cl65.cloudfront.net/img/q60/uploads/2022/04/zumaamericastwentyfive958310-scaled.jpg') center/cover no-repeat fixed;
    color: var(--bg-white);
    text-align: center;
    padding: 180px 20px 140px;
    margin-top: -70px;
    /* Offset the main padding */
}

.hero h1 {
    font-size: 4rem;
    margin: 0 auto;
    max-width: 900px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    color: var(--accent-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-buttons {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-buttons a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 16px 36px;
    margin: 10px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.cta-buttons a:last-child {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    box-shadow: none;
}

.cta-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
}

.cta-buttons a:last-child:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

/* Sections */
.section {
    padding: 100px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2,
main>h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section h2::after,
main>h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

main>h2 {
    text-align: center;
    display: block;
    margin-top: 40px;
}

main>h2::after {
    left: 50%;
    /* Adjusted for centered block */
}

.section>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 0;
    text-align: left;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    top: 0;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.feature-card h3 {
    margin: 25px 25px 10px;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.feature-card p {
    margin: 0 25px 25px;
    color: var(--text-muted);
    font-size: 1rem;
}


/* General pages like About */
.about-page {
    padding-top: 70px;
}



.about-intro,
.our-mission,
.how-it-works,
.our-impact,
.get-involved,
.about-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 0 auto 30px auto;
    max-width: 800px;
    transition: var(--transition);
}

.about-intro:hover,
.our-mission:hover,
.how-it-works:hover,
.our-impact:hover,
.get-involved:hover,
.about-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-intro p,
.our-mission p,
.our-impact p,
.get-involved p,
.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-content h3,
.our-mission h3,
.how-it-works h3,
.our-impact h3,
.get-involved h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

ol,
ul {
    padding-left: 20px;
    color: var(--text-muted);
}

ol li,
ul li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.our-impact ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.our-impact ul li {
    background: var(--bg-main);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.our-impact ul li strong {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 5px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(45, 106, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0);
    }
}

/* Contact Page */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero h2 {
    font-size: 3rem;
    color: var(--primary-dark);
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

.contact-details {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.details {
    flex: 1;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.details:hover {
    box-shadow: var(--shadow-md);
}

.details h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.details p strong {
    color: var(--text-main);
}

.map {
    flex: 1.5;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.map iframe {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background-color: var(--bg-main);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    background-color: var(--bg-white);
}

form button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: var(--transition);
    width: 100%;
}

form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 67, 50, 0.2);
}

/* About Hero Specific */
.about-hero {
    background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(27, 67, 50, 0.9)), url('https://d1vdjc70h9nzd9.cloudfront.net/media/campaign/439000/439199/image/60c76582e0e6d.jpeg') center/cover no-repeat fixed;
    /* Parallax effect */
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
}

.about-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.about-hero .slogan {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    color: var(--bg-white);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 15px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

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

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

/* Responsive */
@media (max-width: 991px) {
    .contact-details {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        /* Optional: Make the menu take up a specific width on mobile */
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
        position: absolute;
        /* Position it relative to the navbar */
        right: 5%;
        top: 1.5rem;
        /* Adjust based on navbar height */
    }

    .nav-links li {
        margin: 5px 10px;
        opacity: 0;
        /* Set initial opacity to 0 for fade-in animation (optional) */
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .hero {
        padding: 160px 20px 100px;
    }

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

    .section,
    .contact-page {
        padding: 100px 20px;
    }

    .about-intro,
    .our-mission,
    .how-it-works,
    .our-impact,
    .get-involved,
    .about-content {
        padding: 25px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .our-impact ul li {
        width: 100%;
    }
}