:root {
    --primary-color: #3f7652;
    --primary-light: #4ea870;
    --primary-dark: #2c593b;
    --accent-color: #f1c40f;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text-dark: #f3f4f6;
    --text-light: #9ca3af;
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5);
    --primary-dark: #4ea870;
    /* Brighter green for dark mode accessibility */
}

/* Ensure smooth theme transitions */
body,
nav,
.card,
section,
footer,
.btn,
input,
textarea {
    transition: var(--transition), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    color: var(--text-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(63, 118, 82, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 118, 82, 0.4);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 5px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 95px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    margin-bottom: -25px;
    margin-top: -10px;
    position: relative;
    z-index: 1001;
}

.logo span,
.logo .brand-icon {
    display: none;
}

.logo .brand-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.logo span {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo small {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
}

.nav-links a:not(.btn) {
    position: relative;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 70px 0 20px;
    margin-top: 80px;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-logo small {
    color: var(--accent-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-family: 'Heebo', sans-serif;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    margin: 0 10px;
}

.theme-toggle-btn:hover {
    background: rgba(63, 118, 82, 0.1);
    color: var(--primary-color);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Footer & Other Section Consistency */
.partners-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
}

.partner-logo {
    width: 100%;
    max-width: 160px;
    height: 80px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
}

.partner-logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
}

.toast-message {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 16px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.toast-message.error {
    border-left-color: #ef4444;
}

.toast-message.error i {
    color: #ef4444;
}

@media (max-width: 768px) {
    .toast-container {
        right: 20px;
        left: 20px;
        top: 20px;
    }

    .toast-message {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Mobile Money Section Styles */
.mm-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 5px solid transparent;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.mm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.mm-card.mtn {
    border-top-color: #ffcc00;
    /* MTN Yellow */
}

.mm-card.airtel {
    border-top-color: #ff0000;
    /* Airtel Red */
}

.mm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.mm-icon.mtn {
    background: #ffcc00;
    color: #000;
}

.mm-icon.airtel {
    background: #ff0000;
    color: #fff;
}

.mm-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0;
    display: block;
}

.mm-name {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Donate Button */
.floating-donate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(63, 118, 82, 0.4);
    transition: var(--transition);
    border: 2px solid var(--bg-white);
}

.floating-donate i {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

.floating-donate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(63, 118, 82, 0.5);
    background: var(--primary-dark);
    color: var(--bg-white);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .floating-donate {
        bottom: 25px;
        right: 20px;
        padding: 12px 22px;
        font-size: 0.95rem;
        width: auto;
        height: auto;
        border-radius: 50px;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .floating-donate span {
        display: inline-block;
    }

    .floating-donate i {
        font-size: 1.2rem;
        margin: 0;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}