:root {
    /* Light Mode Colors */
    --primary: #2E8B57;
    --primary-dark: #21663e;
    --secondary: #e67e22;
    --bg-main: #FEFBEA;
    --bg-alt: #FDF5E6;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --white: #ffffff;
    --header-bg: rgba(254, 251, 234, 0.95);
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --glow: rgba(46, 139, 87, 0.4);
}

body.dark-mode {
    --primary: #2dd4bf;
    --primary-dark: #0d9488;
    --secondary: #fb923c;
    --bg-main: #121212;
    --bg-alt: #1e1e1e;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --white: #1a1a1a;
    --header-bg: rgba(18, 18, 18, 0.95);
    --card-bg: #242424;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --glow: rgba(45, 212, 191, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-image: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--bg-main);
    color: #000;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

body.dark-mode {
    color: #fff;
}

body.dark-mode::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Enforce text colors */
body p, body h1, body h2, body h3, body h4, body h5, body h6, body span, body div, body li, body a {
    color: #000;
}

body.dark-mode p, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6, body.dark-mode span, 
body.dark-mode div, body.dark-mode li, body.dark-mode a {
    color: #fff;
}

/* Override for primary colored elements */
.section-title, .cause-icon, .stat-card h3 {
    color: var(--primary) !important;
}

/* Header text should follow theme */
header * {
    color: var(--text-main) !important;
}

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

/* Header */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 15px var(--glow);
}

.nav-donate {
    background-color: var(--secondary);
    color: white !important;
}

.nav-donate:hover {
    background-color: var(--secondary);
    filter: brightness(1.1);
}

/* Theme Toggle */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.theme-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Top Slider Section */
.top-slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    width: 100%;
    height: 100%;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Dual-layer slides for filling background */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.1);
    z-index: 1;
}

.slide-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

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

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Text overlay at bottom of slider */
.slider-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-text-overlay .hero-content {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    text-align: center;
    color: white;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .slider-text-overlay .hero-content {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-text-overlay .hero-content .badge {
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    color: white;
}

.slider-text-overlay .hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 5px;
    line-height: 1.2;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slider-text-overlay .hero-content p {
    font-size: 0.924rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.badge {
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    color: #fff;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--glow);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section .container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .section .container {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-alt {
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
    display: grid;

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
    grid-template-columns: 1fr 1fr;

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
    gap: 50px;

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
    align-items: center;

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
}

.about-text-full {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.text-glass-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.dark-mode .text-glass-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 20px;
}

body.dark-mode .stat-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Causes Grid */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cause-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

body.dark-mode .cause-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cause-card:hover {
    transform: translateY(-10px);
}

.cause-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Donate Section */
.donate-section {
    background-color: transparent;
}

.donate-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .donate-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.donate-box p {
    max-width: 800px;
    margin: 20px auto 40px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 60px 0 40px;
}

body.dark-mode footer {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary);
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    color: #000 !important;
}

body.dark-mode .footer-tagline {
    color: #fff !important;
}

.footer-copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.footer-copyright p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #000 !important;
}

body.dark-mode .footer-copyright p {
    color: #fff !important;
}

body.dark-mode .footer-bottom {
    color: #fff !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-main);
    margin: 10% auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

#qrcode {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Scroll Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px var(--glow);
    z-index: 1000;
    transition: all 0.3s;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .top-slider-section {
        height: 65vh;
    }

    .slider-text-overlay .hero-content {
        padding: 12px 15px;
    }

    .slider-text-overlay .hero-content h2 {
        font-size: 1.12rem;
        margin-bottom: 4px;
    }

    .slider-text-overlay .hero-content p {
        font-size: 0.798rem;
    }

    .slider-text-overlay .hero-content .badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .slider-dots {
        bottom: 75px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .prev-arrow { left: 10px; }
    .next-arrow { right: 10px; }

    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 40px 20px;
        margin: 0 15px;
        border-radius: 30px;
    }

    .hero p {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2000;
        background: var(--bg-main);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .theme-btn {
        position: fixed;
        top: 20px;
        right: 75px;
        z-index: 2000;
        background: var(--bg-main);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1500;
    }

    body.dark-mode nav {
        background: rgba(18, 18, 18, 0.95);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }


    .about-stats {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 30px 20px;
        width: 90%;
        border-radius: 20px;
    }

    .hero {
        padding: 80px 0; /* Keep it compact on mobile */
    }
}
