/* CSS Reset & Base Styles */
:root {
    --primary-purple: #6a0dad;
    --light-purple: #9b59b6;
    --dark-purple: #4b0082;
    --accent-purple: #8a2be2;
    --light-bg: #f8f4ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-purple);
    /* font-family: "Lora", serif; */
    letter-spacing: -0.5px;
}

/* ==================== MOBILE MENU STYLES ==================== */
.mobile-menu-btn {
    display: flex;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-purple);
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background: rgba(106, 13, 173, 0.05);
}

.mobile-menu-btn:hover {
    background: rgba(106, 13, 173, 0.1);
    transform: rotate(90deg);
}

/* Mobile menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(75, 0, 130, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(106, 13, 173, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
}

.close-menu-btn:hover {
    background: rgba(106, 13, 173, 0.2);
    transform: rotate(90deg);
}

.close-menu-btn i {
    color: var(--primary-purple);
    font-size: 1.2rem;
}

/* Mobile Navigation Links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 244, 255, 0.98)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: 10px 0 30px rgba(106, 13, 173, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid rgba(106, 13, 173, 0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--primary-purple),
        var(--accent-purple)
    );
}

.mobile-nav li {
    list-style: none;
    width: 100%;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav li:nth-child(1) {
    transition-delay: 0.1s;
}
.mobile-nav li:nth-child(2) {
    transition-delay: 0.15s;
}
.mobile-nav li:nth-child(3) {
    transition-delay: 0.2s;
}
.mobile-nav li:nth-child(4) {
    transition-delay: 0.25s;
}
.mobile-nav li:nth-child(5) {
    transition-delay: 0.3s;
}
.mobile-nav li:nth-child(6) {
    transition-delay: 0.35s;
}
.mobile-nav li:nth-child(7) {
    transition-delay: 0.4s;
}
.mobile-nav li:nth-child(8) {
    transition-delay: 0.45s;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.mobile-nav a:hover {
    background: rgba(106, 13, 173, 0.08);
    color: var(--primary-purple);
    padding-left: 2rem;
}

.mobile-nav a:hover::before {
    transform: scaleY(1);
}

.mobile-nav a i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-purple);
    transition: var(--transition);
}

.mobile-nav a:hover i {
    color: var(--primary-purple);
    transform: scale(1.1);
}

.donate-btn-mobile {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--accent-purple)
    );
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donate-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
    background: linear-gradient(
        135deg,
        var(--dark-purple),
        var(--primary-purple)
    );
}

/* ==================== DESKTOP MENU STYLES ==================== */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    white-space: nowrap;
}

.desktop-nav a i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.desktop-nav a:hover {
    color: var(--primary-purple);
    background: rgba(106, 13, 173, 0.05);
}

.desktop-nav a:hover i {
    color: var(--primary-purple);
    opacity: 1;
}

/* Desktop menu active link */
/* .desktop-nav a.active {
    color: var(--primary-purple);
    font-weight: 600;
    position: relative;
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary-purple);
    border-radius: 50%;
} */

/* Desktop donate button */
.donate-btn-desktop {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--accent-purple)
    );
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.donate-btn-desktop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(
        135deg,
        var(--dark-purple),
        var(--primary-purple)
    );
}

/* Navigation actions (for donate button) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(
            rgba(106, 13, 173, 0.85),
            rgba(75, 0, 130, 0.85)
        ),
        var(--hero-bg) no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* font-family: "Lora", serif; */
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btns .btn {
    background: var(--white);
    color: var(--primary-purple);
}

.hero-btns .btn:hover {
    background: var(--light-purple);
    color: var(--white);
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--dark-purple);
    margin-bottom: 1.2rem;
    /* font-family: "Lora", serif; */
}

.about-text p {
    margin-bottom: 1.2rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    background: var(--primary-purple);
    color: var(--white);
    font-size: 1.8rem;
    padding: 1.5rem;
    text-align: center;
}

.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    color: var(--dark-purple);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    /* font-family: "Lora", serif; */
}

/* Impact Stats */
.impact-stats {
    background: linear-gradient(rgba(106, 13, 173, 0.9), rgba(75, 0, 130, 0.9)),
        var(--impact-bg) no-repeat center center / cover;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    /* font-family: "Lora", serif; */
}

/* CTA Section */
.cta {
    background-color: var(--light-bg);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    /* font-family: "Lora", serif; */
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Footer */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    /* font-family: "Lora", serif; */
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-purple);
}

.footer-column p {
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--accent-purple);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .about-text,
    .about-image {
        flex: 1;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-btns {
        flex-direction: row;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Show desktop menu, hide mobile elements */
    .mobile-menu-btn,
    .menu-overlay,
    .close-menu-btn,
    .mobile-nav {
        display: none !important;
    }

    .desktop-nav {
        display: flex;
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Enhanced desktop menu */
    .desktop-nav ul {
        gap: 0.5rem;
    }

    .desktop-nav a {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .donate-btn-desktop {
        padding: 0.8rem 1.8rem;
    }

    .logo-text {
        font-size: 1.6rem;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .desktop-nav ul {
        gap: 0.75rem;
    }

    .desktop-nav a {
        font-size: 1.05rem;
        padding: 0.7rem 1.4rem;
    }
}

/* Small mobile devices */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
}
