/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Header Container */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

/* Logo and Menu Alignment */
.logo {
    display: flex;
    align-items: center;
    margin-left: -1rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    margin-right: -1rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-menu ul {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 1rem;
        z-index: 1001;
    }

    .nav-menu ul li {
        width: 100%;
        margin: 0;
    }

    .nav-menu ul a {
        width: 100%;
        padding: 0.5rem 1rem;
        text-align: center;
        margin: 0;
    }

    .nav-menu ul a:hover {
        background: var(--light-bg);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul a {
        width: 100%;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .nav-menu ul a:hover {
        background: var(--light-bg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Card Hover Effects */
.impact-card:hover,
.news-card:hover,
.involved-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease-out;
}

/* Parallax Effect */
.hero {
    will-change: transform;
}

.hero-video {
    will-change: transform;
}

/* Lazy Loading Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

img[data-src].loaded {
    opacity: 1;
}

/* Mobile Menu */
.nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

@media (max-width: 768px) {
    .nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul a {
        width: 100%;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .nav-menu ul a:hover {
        background: var(--light-bg);
    }
}
