/* --- Core Configurations & Highly Saturated Palette --- */
:root {
    /* Highly Saturated Background Colors */
    --section-hero-bg: #0da166;     /* Vivid Emerald Green */
    --section-goals-bg: #b5a113;    /* Rich, Saturated Mustard Gold */
    --section-letter-bg: #3fb0b6;   /* Bright Slate Teal */
    --section-finance-bg: #135022;  /* Deep, Vibrant Forest Green */
    
    /* Strict Brand UI Accents (Cranked up saturation) */
    --magenta-brand: #ff0088;       /* Electric Magenta */
    --yellow-brand: #ffcc00;        /* Pure Sunshine Yellow */
    --text-light: #FFFFFF;
    --text-muted: #E2E8F0;
    
    /* Precision Blurs matching Mockup Overlays */
    --glass-overlay: rgba(255, 255, 255, 0.07);
    --glass-overlay-dark: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(15px);
    
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--section-finance-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Clear Clean Geometric Headings Matching Mockup Styling Structure */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- Layout Wrappers --- */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* --- Micro-Floating Background Elements (Mockup Star/Flower Accents) --- */
.floating-deco {
    position: absolute;
    width: 45px;
    height: 45px;
    background-color: var(--yellow-brand);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.8; /* Slightly boosted opacity to match saturated colors */
    z-index: 2;
    pointer-events: none;
}
.flower-1 { top: 12%; left: 3%; width: 55px; height: 55px; }
.flower-2 { bottom: 8%; left: 46%; }
.flower-3 { top: 25%; left: 2%; }
.flower-4 { bottom: 12%; right: 2%; }
.flower-5 { top: 22%; left: 38%; width: 50px; height: 50px; }
.flower-6 { bottom: 5%; right: 4%; width: 60px; height: 60px; }

@keyframes organicFloatOne {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-18px) rotate(15deg) scale(1.05); }
}
@keyframes organicFloatTwo {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(15px) rotate(-20deg) scale(0.95); }
}
.float-animation-1 { animation: organicFloatOne 4.5s infinite alternate ease-in-out; }
.float-animation-2 { animation: organicFloatTwo 5.5s infinite alternate ease-in-out; }

/* --- Image & Graphic Hover Animations --- */
.img-animate {
    transition: var(--transition-bounce);
    cursor: pointer;
}
.img-animate:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.3));
}

.smooth-wobble {
    animation: layoutWobble 6s infinite ease-in-out;
}
@keyframes layoutWobble {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-8px); }
}

.dynamic-glance {
    animation: gentlePulse 4s infinite alternate ease-in-out;
}
@keyframes gentlePulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.02); filter: brightness(1.08); }
}

/* --- Core Structure UI Cards --- */
.glass-card {
    background: var(--glass-overlay);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.glass-card-sub {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
}

/* --- Sticky Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 161, 102, 0.75); /* Matched to vibrant hero bg */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding: 0.2rem 0;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow-brand);
    transition: var(--transition-bounce);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Strict Button Implementations --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    text-align: center;
}

.btn-hero {
    background: rgba(255, 204, 0, 0.45); /* Adjusted to matched saturated yellow */
    color: #3b3209;
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
}
.btn-hero:hover {
    background: var(--yellow-brand);
    color: #000000;
    transform: translateY(-3px);
}

.btn-magenta {
    background-color: var(--magenta-brand);
    color: var(--text-light);
}
.btn-magenta:hover {
    background-color: #ff33a1; /* Even brighter on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 136, 0.4);
}

/* --- Individual Mockup Section Layout Styles --- */

/* 1. Hero Structural Layout */
.hero-section {
    background-color: var(--section-hero-bg);
    padding: 4rem 0 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-title {
    font-size: 2.4rem;
    color: var(--magenta-brand);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-highlight {
    font-size: 1.35rem;
    color: var(--yellow-brand);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.flower-asset {
    position: absolute;
    z-index: -1;
    width: 120px;
    opacity: 0.15;
    top: -40px;
}

/* 2. Main Goals Layout (Mustard Row) */
.goals-section {
    background-color: var(--section-goals-bg);
    padding: 5rem 0;
    position: relative;
}

.section-title-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.section-title {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 3rem;
    border-radius: 4px;
    font-size: 1.75rem;
    color: #27314d; /* Darkened slightly to contrast with brighter yellow */
    display: inline-block;
    text-align: center;
}

.goals-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.goal-card {
    flex: 1;
    background: rgba(56, 52, 97, 0.55); /* Slightly darker/richer for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    transition: var(--transition-bounce);
}

.goal-card:hover {
    transform: translateY(-8px);
    background: rgba(56, 52, 97, 0.65);
}

.goal-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.goal-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.goal-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Magenta overlapping dividers matching mockup layout exactly */
.grid-divider-flower {
    width: 36px;
    height: 36px;
    background-color: var(--magenta-brand);
    align-self: center;
    z-index: 5;
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 63% 38%, 100% 38%, 69% 59%, 82% 100%, 50% 75%, 18% 100%, 31% 59%, 0% 38%, 37% 38%);
}

/* 3. Write a Letter Layout (Teal Row) */
.letter-section {
    background-color: var(--section-letter-bg);
    padding: 5rem 0;
    position: relative;
}

.header-light .section-title {
    background: rgba(255, 255, 255, 0.15);
    color: var(--yellow-brand);
}

.letter-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 2rem;
}

.envelope-img {
    max-width: 280px;
    width: 100%;
}

.letter-content {
    padding: 3rem 2.5rem;
}

.letter-content p {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.button-align-right {
    display: flex;
    justify-content: flex-end;
}

/* 4. Finances Layout (Dark Row) */
.finance-section {
    background-color: var(--section-finance-bg);
    padding: 5rem 0 6rem 0;
}

.header-dark .section-title {
    background: rgba(255,255,255, 0.05);
    color: #aee0c0; /* Brightened the dark section title */
    border-color: rgba(255,255,255,0.08);
}

.finance-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.finance-img {
    max-width: 180px;
    width: 100%;
}

.finance-content {
    padding: 3rem 2.5rem;
}

.finance-content p {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* --- Global Clean Footer --- */
.footer {
    background-color: #0b1a11; /* Even darker to contrast the rich green */
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--yellow-brand);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-bounce);
}

.social-icon:hover {
    background: var(--magenta-brand);
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    opacity: 0.5;
}

/* --- Core Intersection Observer Reveal Effects --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Breakpoint Responsiveness --- */
@media (max-width: 992px) {
    .hero-grid, .letter-grid, .finance-grid, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-container, .letter-image, .finance-image {
        margin: 0 auto;
    }
    .button-align-right {
        justify-content: center;
    }
    .goals-grid {
        flex-direction: column;
        align-items: center;
    }
    .grid-divider-flower {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .goal-card {
        width: 100%;
        max-width: 450px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .mobile-toggle .bar {
        width: 25px;
        height: 2px;
        background-color: var(--text-light);
        transition: var(--transition-bounce);
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(13, 161, 102, 0.98); /* Matched to vibrant nav */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-bounce);
        padding: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .mobile-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}




/* ==========================================================================
   ABOUT THE MEMBERS PAGE UPDATES
   ========================================================================== */

/* New About Organization Section */
.about-org-section {
    background-color: var(--section-finance-bg); /* Deep Green */
    padding: 6rem 0;
    position: relative;
}

.org-content-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.org-content-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.95;
}

/* Updated Team Grid for 4 Members */
.team-grid {
    display: grid;
    /* This automatically sizes the grid for 4 members evenly! */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 2.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Ensure names fit nicely if they are long */
.member-name {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.member-photo-placeholder {
    width: 150px;  /* Increased the size of the circle */
    height: 150px; /* Increased the size of the circle */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 4px solid var(--yellow-brand);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback styling for when images aren't loaded yet */
.member-photo-placeholder::after {
    content: '👤';
    font-size: 4rem; /* Scaled back up to match the 150px circle */
    position: absolute;
    opacity: 0.3;
    z-index: 1;
}

.member-img {
    width: 100%;
    height: 100%;
    /* 'cover' fills the circle, 'object-position' shifts the focus up to the face/head */
    object-fit: cover; 
    object-position: center 15%; 
    z-index: 2;
    position: relative;
    color: transparent; 
}

/* ==========================================================================
   VOLUNTEER PAGE STYLES (Black Background & Glass Form)
   ========================================================================== */

.volunteer-section {
    background-color: #050505; /* Rich, pure black background */
    padding: 6rem 0 8rem 0;
    position: relative;
    min-height: 85vh;
}

.volunteer-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.03); /* Extra subtle glass for black bg */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.volunteer-intro {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    opacity: 0.85;
    line-height: 1.6;
}

.volunteer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--yellow-brand);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Glassmorphism Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magenta-brand);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 136, 0.25);
}

/* Fix for Select dropdown options in dark mode */
.form-group select option {
    background-color: #111;
    color: white;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.form-submit .btn {
    width: 100%;
    max-width: 320px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsiveness for Form */
@media (max-width: 768px) {
    .volunteer-form {
        grid-template-columns: 1fr;
    }
    .volunteer-form-wrapper {
        padding: 2.5rem 1.5rem;
    }
}   

/* Donation Page Styles */
.donation-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.donation-subtitle {
    color: var(--yellow-brand);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.donation-text {
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.8;
}

.qr-container {
    width: 220px;
    height: 220px;
    background: white;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px; /* Gives the QR code a nice white border */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures entire QR code fits inside */
}

.upi-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: inline-block;
}

.upi-label {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.upi-value {
    color: var(--magenta-brand);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-note {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    opacity: 0.6;
}