/* ==========================================================================
   Root Variables & Base Styles
   ========================================================================== */
:root {
    /* Colors */
    --bg-purple: #3a0048;
    --btn-purple: #8e24aa;
    --accent-green: #27ae60;
    --text-white: #ffffff;
    --light-pink: #f8e1f4;
    --bg-light-purple: #f3ddf7;
    --text-dark-purple: #620376;
    --text-off-white: #fff3fc;
    --footer-bg: #1e0028;
    --footer-accent: #c99dd6;

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Oleo Script', cursive;
}

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

body,
html {
    font-family: var(--font-primary);
    height: 100%;
    overflow: hidden;
    /* Prevents double scrollbars */
}

/* ==========================================================================
   Layout & Scroll Utilities
   ========================================================================== */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

.full-page {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 0;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero-section {
    display: block;
}

.hero-container {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
    width: 100%;
}

.hero-content {
    background-color: var(--bg-purple);
    flex: 1;
    min-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-white);
}

.logo-area {
    max-width: 600px;
    margin-bottom: 40px;
}

.logo-area img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-subtext {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 50px;
    opacity: 0.9;
}

.learn-more-btn {
    background-color: var(--btn-purple);
    color: var(--text-white);
    border: none;
    padding: 12px 48px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.learn-more-btn:hover {
    background-color: #a33cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-media {
    flex: 1;
    min-width: 50%;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    background-image: url('assets/images/hand_holding.png');
    background-color: #f0f0f0;
}

.funds-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: var(--accent-green);
    color: var(--text-white);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   Section 2: About Us
   ========================================================================== */
.about-section {
    background-color: var(--bg-purple);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    width: 100%;
    height: 100%;
}

.about-media {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.about-media img {
    max-height: 85vh;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.about-content h2 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 8%;
    text-align: center;
    width: 100%;
    padding: 0 40px;
}

.about-content-card {
    background-color: var(--light-pink);
    padding: 60px 40px;
    width: 100%;
    min-height: 70vh;
    color: var(--bg-purple);
    line-height: 1.6;
    font-size: 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Section 3: Our Vision
   ========================================================================== */
.vision-section {
    background-color: var(--bg-purple);
}

.vision-container {
    display: grid;
    grid-template-columns: 40% 1fr;
    width: 100%;
    height: 100%;
    padding: 5vh 0;
    gap: 0 5%;
}

.vision-content {
    position: relative;
    background-color: var(--bg-light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    overflow: hidden;
}

.vision-copy {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: center;
    color: var(--text-dark-purple);
}

.vision-copy h2 {
    font-family: var(--font-script);
    color: var(--text-dark-purple);
    font-size: clamp(2.8rem, 4.7vw, 4.4rem);
    line-height: 1;
    margin: 0 0 28px;
    padding-bottom: 10%;
}

.vision-copy p {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    line-height: 2.5;
    font-weight: 400;
}

.vision-orchid {
    position: absolute;
    left: 22%;
    bottom: -8%;
    width: 100%;
    max-width: 550px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.vision-orchid img {
    width: 200%;
    height: auto;
    display: block;
}

.vision-gap-spacer {
    display: none;
}

.vision-media {
    background-color: var(--bg-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 4vw 8vh 0;
}

.vision-media img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Section 4: What We Do
   ========================================================================== */
.services-section {
    position: relative;
    background-color: var(--bg-purple);
}

.services-header {
    position: sticky;
    top: 0;
    height: 15vh;
    min-height: 120px;
    background-color: var(--bg-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.services-header h2 {
    font-family: var(--font-heading);
    color: var(--text-off-white);
    font-size: clamp(3rem, 5vw, 4.5rem);
}

.services-page {
    height: 100vh;
    padding-top: max(15vh, 120px);
    display: flex;
    flex-direction: column;
}

.services-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 0;
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-content {
    background-color: rgba(58, 0, 72, 0.9);
    color: var(--text-off-white);
    padding: 40px 30px;
    text-align: center;
    width: 85%;
    min-height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.service-content h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-off-white);
}

.service-content p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-off-white);
}

/* ==========================================================================
   Section 5: Community in Action
   ========================================================================== */
.community-section {
    background-color: var(--bg-purple);
}

.community-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    width: 100%;
    height: 100%;
}

.community-media {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-purple);
    padding: 30px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.community-content {
    position: relative;
    background-color: var(--bg-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
}

.community-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.community-copy h2 {
    font-family: var(--font-heading);
    color: var(--text-off-white);
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10%;
}

.community-subtext {
    font-family: var(--font-primary);
    color: var(--text-off-white);
    font-style: italic;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 500;
    margin-top: 15vh;
}

.community-orchid {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    z-index: 1;
    opacity: 0.65;
    pointer-events: none;
}

.community-orchid img {
    width: 200%;
    height: auto;
    display: block;
    margin-left: -5%;
    margin-bottom: -15%;
}

/* ==========================================================================
   Section 6: Our Impact
   ========================================================================== */
.impact-section {
    background-color: var(--bg-purple);
}

.impact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.impact-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    min-height: 0;
}

.collage-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(98, 3, 118, 0.75);
    padding: 15px;
    text-align: center;
}

.collage-overlay span {
    font-family: var(--font-primary);
    color: var(--text-off-white);
    font-size: 1.4rem;
    font-weight: 500;
}

.impact-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-purple);
}

.impact-header h2 {
    font-family: var(--font-script);
    color: var(--text-off-white);
    font-size: clamp(3rem, 4.5vw, 4.8rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-subheading {
    font-family: var(--font-primary);
    color: var(--text-off-white);
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.impact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.impact-card {
    background-color: var(--text-off-white);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.impact-card p {
    font-family: var(--font-primary);
    color: var(--bg-purple);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.3;
}

.impact-icon-circle {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.yellow-icon {
    background-color: #ffcc00;
    color: var(--text-white);
}

.white-icon {
    background-color: #f0f0f0;
    color: var(--bg-purple);
    border: 1px solid #ddd;
}

.pink-icon {
    background-color: #ff4081;
    color: var(--text-white);
}

.blue-icon {
    background-color: #2196f3;
    color: var(--text-white);
}

.gold-icon {
    background-color: #ffb300;
    color: var(--text-white);
}

/* ==========================================================================
   Section 7: Footer
   ========================================================================== */
.footer-section {
    background-color: var(--footer-bg);
    color: var(--text-white);
    min-height: 50vh;
    width: 100%;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    scroll-snap-align: end;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 40px 100px;
}

.footer-left h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.footer-address p {
    color: var(--footer-accent);
    font-size: 1.1rem;
}

.footer-line {
    width: 200px;
    height: 2px;
    background-color: var(--footer-accent);
    margin: 25px 0;
}

.footer-btn {
    background-color: var(--accent-green);
    color: var(--text-white);
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 500;
}

.footer-right {
    text-align: left;
}

.footer-right h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-contact {
    color: var(--footer-accent);
    margin: 5px 0;
    font-size: 1.1rem;
}

.footer-socials {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-socials span {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #2b0038;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.footer-socials span:hover {
    background-color: var(--footer-accent);
    color: var(--footer-bg);
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: var(--footer-accent);
}

/* ==========================================================================
   Responsive Styles (Media Queries)
   ========================================================================== */
@media (max-width: 1100px) {
    .impact-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .impact-media {
        height: 50vh;
    }

    .impact-content {
        padding: 40px 20px;
    }

    .impact-card {
        max-width: 100%;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    /* Global Layout adjustments for smaller screens */
    .scroll-container {
        scroll-snap-type: none;
        overflow-y: auto;
    }

    .full-page {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
    }

    /* Hero */
    .hero-content,
    .hero-media {
        min-width: 100%;
    }

    .hero-content {
        padding: 40px 20px;
        order: 2;
    }

    .hero-media {
        order: 1;
        min-height: 400px;
    }

    .hero-heading {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* About Us */
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-media {
        justify-content: center;
        align-items: center;
        padding-top: 20px;
    }

    .about-media img {
        max-height: 50vh;
    }

    .about-content {
        padding: 20px;
        justify-content: flex-start;
    }

    .about-content h2 {
        margin-bottom: 20px;
        padding: 0;
        font-size: 3rem;
    }

    .about-content-card {
        min-height: auto;
        padding: 40px 20px;
        font-size: 1.2rem;
    }

    /* Vision */
    .vision-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .vision-media {
        order: 1;
        min-height: 360px;
        padding: 20px;
        height: 360px;
    }

    .vision-content {
        order: 2;
        min-height: 420px;
        height: auto;
        padding: 40px 20px;
        justify-content: center;
    }

    .vision-orchid {
        width: 240px;
        right: -10px;
        bottom: -12px;
        left: auto;
    }

    .vision-copy p {
        font-size: 1.05rem;
        line-height: 2.5;
    }

    /* What We Do */
    .services-page {
        height: auto;
        padding-top: 0;
    }

    .services-header {
        position: relative;
        height: 120px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 450px;
    }

    .service-content {
        width: 95%;
        min-height: auto;
    }

    /* Community */
    .community-container {
        grid-template-columns: 1fr;
    }

    .community-media {
        height: 50vh;
        order: 1;
    }

    .community-content {
        min-height: 50vh;
        height: auto;
        order: 2;
        padding: 40px 20px;
    }

    .community-copy {
        height: 100%;
        gap: 15px;
    }

    .community-subtext {
        margin-top: 5vh;
    }

    .community-orchid {
        width: 250px;
        right: -10px;
        bottom: -10px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }

    .footer-right {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Impact */
    .impact-media {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 30vh);
        height: auto;
    }
}