/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    --primary-color: #F58634;       /* Orange */
    --secondary-color: #104E3A;      /* Deep Green */
    --neutral-background: #d9d1d1;  /* Clay Ivory */
    --accent-color: #B35647;        /* Burnt Rose */
    --text-color: #000000;
    --black: #000000;          /* Charcoal Black */
    --copyright-a: #232020; /* Slightly lighter for copyright links */
}

/* Base Body Style */
body {
    margin: 0px;
    font-family: "Raleway", sans-serif;
}

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
.navbar {
    background-color: white;
    width: 100vw;
    height: 5rem;
    position: fixed;
    align-items: center;
    display: flex;
    justify-content: space-between;
    box-shadow: none;
    top: 0px;
    transition: box-shadow 0.3s ease;
    z-index: 999;
}

/* Navbar shadow on scroll */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-div {
    padding-left: 20px;
    padding-top: 5px;
    float: left;
}

.logo-div:hover {
    transform: scale(1.005);
    transition: transform 0.3s ease;
}

.logo {
    width: auto;
    align-self: center;
    cursor: pointer;
}

.nav-links {
    float: right;
    padding-right: 90px;
    padding-top: 15px;
    align-items: center;
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-left: 30px;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    transition: color 0.3s ease, border-bottom 0.3s ease, padding-bottom 0.3s ease;
}

.nav-links a:hover {
    color: var(--circle-color);
    border-bottom: 2px solid var(--circle-color);
    padding-bottom: 5px;
}

/* =========================================
   3. SECTION 1 (Hero) STYLES
   ========================================= */
.section-padding {
    margin-top: 5rem;
}

.sect1 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 13rem;
    padding-bottom: 5rem;
    margin-bottom: 8rem;
    height: 90vh;
    width: 100%;
    /* Ensure content doesn't get hidden if it wobbles out slightly */
    overflow: visible; 
}

/* --- Headline Area (Sect 1) --- */
.headline {
    margin-top: 5rem;
    z-index: 2;
    position: relative;
    /* Initial state for fade-in/lift-up animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Target state added by JS for animation */
.headline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.headline-txt {
    color: var(--text-color);
    max-width: 39vw;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    line-height: 1.6;
}

.large {
    font-size: 3rem;
    font-weight: 500;
    font-family: "Raleway", sans-serif;
    display: block;
    padding-bottom: 1.1rem;
    line-height: 1.2;
}

/* --- CTA Button --- */
.cta-btn {
    background-color: var(--primary-color);
    color: #000;
    font-family: "Raleway", sans-serif;
    border: 1px black solid;
    margin-top: 2rem;
    border-radius: 30px;
    padding: 19px 32px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   4. IMAGE & CIRCLE CONTAINERS (Sect 1)
   ========================================= */
.image {
    width: 45vw;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-img {
    margin-top: -2rem;
    height: 36rem;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* Initial state for fade-in/expand animation */
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Target state added by JS for animation */
.top-img.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   5. ABSTRACT ANIMATED CIRCLES
   ========================================= */
.circle, .circle2, .circle3, .circle4, .circle5 {
    background-color: var(--primary-color) !important;
    position: absolute;
    z-index: -1; 
    will-change: border-radius, transform;
    border-radius: 50%;
}

.circle {
    width: 12rem;
    height: 12rem;
    top: -2rem;
    left: 10%;
    animation: abstract-morph 20s ease-in-out infinite alternate;
}

.circle2 {
    width: 8rem;
    height: 8rem;
    bottom: -2rem;
    left: 20%;
    animation: abstract-morph 25s ease-in-out infinite alternate-reverse;
    animation-delay: -5s;
}

.circle3 {
    width: 5rem;
    height: 5rem;
    top: 45%;
    left: 0;
    animation: abstract-morph 15s ease-in-out infinite;
}

/* --- NEW CIRCLES (Sections 2 and 3) --- */
.circle4 {
    /* Large circle in Section 2 (Grey) */
    width: 15rem;
    height: 15rem;
    top: 50%; 
    right: 5%;
    transform: translateY(-50%);
    animation: abstract-morph 28s ease-in-out infinite;
    animation-delay: -8s;
}

.circle5 {
    /* Significantly larger circle for Section 3 (White) */
    width: 25rem;
    height: 25rem; 
    opacity: 0.5;
    top: 20%;     
    left: 2%;     
    transform: translateY(-50%); 
    animation: abstract-morph 28s ease-in-out infinite alternate;
}

/* =========================================
   6. KEYFRAME: ABSTRACT FLUID MORPH
   ========================================= */
@keyframes abstract-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(-20px, 10px) rotate(120deg) scale(1.1);
    }
    66% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(20px, -10px) rotate(240deg) scale(0.95);
    }
    100% {
        border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* =========================================
   7. SECTION 2 & 3 (Vission, Mission, Impact) STYLES
   ========================================= */
.grey-sect {
    background-color: var(--neutral-background);
    width: 100vw;
    min-height: 80vh; 
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
}

.grey-sect .cta-btn {
    margin-left: 3rem;
}

.white-sect .cta-btn {
    margin-left: 3rem;
}

.white-sect {
    background-color: transparent;
    min-height: 80vh; 
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 5rem 0; 
    position: relative;
}

.sect2 {
    height: fit-content;
    align-items: center;
    display: flex;
    width: 80vw;
    gap: 4rem; 
}

.sect2 .large {
    font-size: 2.5rem;
    padding-bottom: 1.4rem;
    font-weight: 500;
}

.img2 {
    height: 29rem;
    border-radius: 50%;
    flex-shrink: 0; 
    /* Initial state for fade-in/expand animation */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Target state added by JS for animation */
.img2.is-visible {
    opacity: 1;
    transform: scale(1);
}

.sect2-headline {
    max-width: 40vw;
    /* Initial state for fade-in/lift-up animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Target state added by JS for animation */
.sect2-headline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sect2-undertxt {
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Ensure the text block sits above the large floating circle in the white section */
.white-sect .sect2-txt {
    position: relative;
    z-index: 1; 
}

/* --- SVG Background Styles (Plant Vines) --- */
.vine-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* New: Ensure SVG scales nicely in the background */
    object-fit: contain; 
    z-index: 0; /* Ensures it's behind the content */
    opacity: 0.15; /* Make it subtle */
}
/* IMPORTANT: Removed old .vine-stem, .vine-leaf, .vine-bud styles, as the new SVG styles its paths internally using <defs>. */

/* --- SECTION 3: IMPACT (IMPROVED STYLES) --- */
.sect3 {
    background-image: url(/images/img5.png);
    background-size: cover;
    /* backdrop-filter: brightness(40%); <--- Optional: you can remove this or keep it for an additional effect */
    background-position: top center;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Add an overlay to make the background image darker */
.sect3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.137); /* Adjust the '0.6' (60% opacity) value to control darkness */
    z-index: 1; /* Ensures the overlay is above the background image */
}

/* Ensure your content within .sect3 is above the overlay */
.sect3 > * {
    z-index: 2; 
}

.sect3-cont {
    position: relative; /* Ensures content sits above the z-index: 0 SVG */
    z-index: 1; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 90vw;
    max-width: 1200px;
}

.sect3-txt {
    font-size: 2.2rem;
    font-weight: 700;
    color: black;
    flex-shrink: 0;
    margin-right: -2rem;
}

.impact {
    display: flex;
    justify-content: center;
    margin-right: -2rem;
    color: black;
    color: black;
}

.imapact1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0rem;
}

.impact-num {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.5rem;
    line-height: 1;
    color: black;
}

.impact-txt {
    background-color: var(--primary-color);
    border: 1px solid black;
    font-size: 1rem;
    max-width: 100%;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    text-align: center;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================
   8. FOOTER STYLES
   ========================================= */
.main-footer {
    background-color: var(--secondary-color); /* Use a light grey for a professional look */
    color: #f0f0f0; /* Use a light color for dark background */
    font-family: 'Raleway', sans-serif;
    padding-top: 0rem; /* More vertical padding */
    padding-bottom: 1rem;
    margin-bottom: 0px; /* More vertical padding */
    align-items: center;
    position: relative; /* Keep relative for z-index if needed */
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    margin-bottom: -3rem;
    width: 100vw;
    gap: 1rem; /* Consistent gap between columns */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 0;
    min-width: 250px;
    flex: 1;
    padding: 0 10px;
    margin-bottom: -1.3rem; /* Removed negative margin */
}

/* --- Logo & Info Column --- */
.footer-info {
    flex: 1.5; /* Make the info column wider */
    padding-right: 40px;
    min-width: auto;
}

.footer-logo {
    margin-bottom: -4rem; /* Adjusted margin for spacing */
    height: 3.2rem;
    filter: none; /* Remove filter for light background */
}

.foundation-mission {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: #ccc; /* Subtler color for copyright */
    line-height: 1.4rem;
    text-align: center;
    margin-top: 1.7rem; /* More space above copyright */
    padding-top: 0rem; /* Padding for separation */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator line */
    width: 100%;
}
.copyright a {
    color: #f0f0f0; /* Match main footer text color */
    text-decoration: none;
}
/* --- Links & Contact Columns --- */
.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem; /* Slightly reduced margin */
    color: #fff; /* White for headings */
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color); /* Use accent color for underline */
    margin-top: 5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-self: center;
    justify-self: center;
    flex-direction: row; /* Links in a row on desktop */
    gap: 2rem; /* Space between links */
}

.footer-links a {
    text-decoration: none;
    color: #f0f0f0; /* Light color for links */
    font-size: 1rem; /* Slightly smaller for one line */
    line-height: 1.5;
    width: fit-content;
}

.footer-links a:hover {
    color: rgb(59, 54, 54); /* Accent color on hover */
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid var(--primary-color); /* Accent color underline */
}

/* --- Contact Column --- */
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact .icon {
    margin-right: 10px;
    color: #f0f0f0; /* Accent color for icons */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}

/* --- Social Media --- */
.social-links {
    margin-top: 0; /* Reset margin for new layout */
    display: flex;
    align-self: center;
    justify-self: center;
    gap: 15px; /* Spacing between social icons */
    flex-direction: row;
}

.social-links a {
    text-decoration: none;
    color: #f0f0f0; /* Light color for social icons */
    font-size: 1.1rem;
    /* margin-right: 20px; Removed as gap handles spacing */
}


/* =========================================
   9. RESPONSIVE FIXES (FOOTER & GENERAL)
   ========================================= */
@media (max-width: 900px) {
    .logo {
        height: 4.2rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: 90vw; /* Adjusted width for better mobile padding */
        justify-self: left;
    }

    .footer-col {
        min-width: 100%;
        padding: 0;
        margin: 0px;
    }

    .footer-links ul {
        flex-direction: column; /* Stack links on mobile */
        gap: 0.5rem;
        align-items: center; /* Center links on mobile */
    }
    .footer-links ul li a {
        justify-self: left;
        margin: 0px;
        font-weight: 500;
        font-size: 1rem;
        line-height: 2rem;
    }

    .footer-info {
        padding-right: 0;
    }

    .footer-col h3::after {
        margin-top: 10px;
    }

    .footer-links a, .footer-contact p {
        text-align: left;
        justify-content: flex-start;
        margin-left: 0px;
    }

    .social-links a {
        margin-left: 0;
    }

    /* Adjust CTA button margin for mobile view of Section 2/3 */
    .grey-sect .cta-btn, .white-sect .cta-btn {
        margin-left: 0;
    }

    .sect2 {
        flex-direction: column;
        text-align: center;
        width: 90vw;
        gap: 3rem;
    }

    .img2 {
        height: 20rem;
        width: 20rem;
        transform: scale(0.95);
    }
    .img2.is-visible {
        transform: scale(1);
    }

    .sect2-headline {
        max-width: 100%;
        padding-left: 0;
        transform: translateY(20px);
    }
    .sect2-headline.is-visible {
        transform: translateY(0);
    }

    .section-padding {
        margin-top: 0rem;
    }

    .sect2 .large {
        font-size: 2rem;
    }

    .sect2-undertxt {
        max-width: 100%;
    }

    /* --- Sect 3 Mobile Stack --- */
    .sect3-cont {
        flex-direction: column;
        gap: 2rem;
        width: 80vw;
    }
    .sect3-txt {
        font-size: 1.8rem;
        padding-right: 0;
        margin-bottom: 1rem;
        text-align: center;
        margin-right: 0;
    }
    .impact {
        width: 100%;
        flex: none;
        margin-right: 0;
    }
    .imapact1 {
        padding: 0;
        width: 100%;
    }
    .impact-txt {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

/* =========================================
   10. RESPONSIVE FIXES (SMALLER SCREENS, Sect 1)
   ========================================= */
@media (max-width: 768px) {
    .main-footer {
        padding-top: 2rem; /* Adjust padding for smaller screens */
        padding-bottom: 1rem;
    }
    .footer-logo {
        margin-bottom: 0rem; /* Ensure consistent spacing */
    }
    .footer-links ul {
        margin: 0px;
    }
    .social-links {
        padding-bottom: 1rem;
    }
    .sect1 {
        flex-direction: column;
        height: auto;
        margin-top: 8rem;
        padding-bottom: 1rem;
        margin-bottom: 0rem;
        text-align: center;
    }

    /* === MOBILE REORDERING (Image before Text) === */
    .image {
        order: -1; /* Image comes first (top) */
        width: 100%;
        margin-top: 0;
        margin-bottom: 3rem; /* Space below the image */
    }

    .headline {
        order: 1; /* Headline comes second (bottom) */
        margin-top: 0;
        margin-bottom: 3rem;
        padding: 0 20px;
        transform: translateY(20px);
    }
    .headline.is-visible {
        transform: translateY(0);
    }

    .headline-txt {
        max-width: 100%;
        margin: 0 auto;
    }

    .large {
        font-size: 2.5rem;
    }

    .top-img {
        height: 20rem;
        width: 20rem;
        margin-top: 0;
        transform: scale(0.95);
    }
    .top-img.is-visible {
        transform: scale(1);
    }

    /* Circles in Sect 1 */
    .circle { width: 8rem; height: 8rem; top: -1rem; left: 5%; }
    .circle2 { width: 5rem; height: 5rem; bottom: -1rem; left: 75%; transform: translateX(-50%); }
    .circle3 { display: none; }
    /* Hide new circles on small screens for clean layout */
    .circle4 { display: none; }
    .circle5 { display: none; }
}

/* =========================================
   11. RESPONSIVE FIXES (SMALL MOBILE / ANDROID)
   ========================================= */
@media (max-width: 480px) {
    .nav-links {
        padding-right: 20px; /* Reduce padding on very small screens */
    }

    .nav-links a {
        margin-left: 15px; /* Reduce space between nav links */
        font-size: 1rem;
    }

    .large {
        font-size: 2.2rem; /* Further reduce hero headline size */
    }

    .headline-txt {
        font-size: 1.1rem;
    }

    .sect2 .large {
        font-size: 1.8rem; /* Further reduce section headline size */
    }

    .sect2-undertxt {
        font-size: 1rem;
    }

    .sect3-txt {
        font-size: 1.6rem; /* Further reduce impact section text */
    }

    .impact-num {
        font-size: 3rem; /* Reduce the impact number size */
    }

    .impact-txt {
        font-size: 0.9rem;
    }


}
