/* Common CSS for all pages */
:root {
    --primary-color: #004d40;
    --secondary-color: #80cbc4;
    --background-color: #f5f5f5;
    --text-color: #333;
    --accent-color: #e8f5e9;
}

html {
    font-size: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    font-size: 1rem;
}

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

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 77, 64, 0.1);
}

.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(0, 77, 64, 0.1);
    font-weight: 600;
}

/* Main Content */
main {
    padding: 6rem 0 2rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Floating Symbols */
.floating-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.symbol {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.15;
    animation: float 20s infinite linear;
    user-select: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Common Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo {
        font-size: 1.6rem;
    }

    .nav-links li {
        margin-left: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .symbol {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }
}

/* Mobile/Desktop Text Helpers */
.mobile-text {
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

/* Global Impact Section (shared between index and about) */
.global-impact {
    margin: 3rem auto; 
    padding: 0 1rem; 
    max-width: 1100px; 
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.5s;
}

.global-impact-layout-container { 
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: flex-start;
    gap: 2rem; 
}

.global-impact-description {
    flex: 1; 
    min-width: 300px; 
    max-width: 500px; 
    text-align: left; 
}

.global-impact-description h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.4rem;
    text-align: left;
}

.global-impact-description p { 
    color: var(--primary-color); 
    font-size: 1.25rem; 
    line-height: 1.75; 
    margin-bottom: 0; 
}

.stats-section {
    padding: 1rem 0; 
    flex: 1; 
    min-width: 300px; 
    max-width: 400px;
    margin: 0; 
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    padding: 0.5rem 0;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-icon-background {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 1.4rem;
    color: #fff;
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* Global Impact Responsive */
@media (max-width: 992px) { 
    .global-impact-layout-container {
        flex-direction: column; 
        align-items: center; 
        gap: 1.5rem; 
    }

    .global-impact-description {
        text-align: center; 
        max-width: 700px; 
        min-width: auto; 
    }
    
    .global-impact-description h2 {
        text-align: center; 
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .global-impact-description p {
        text-align: center; 
        font-size: 1.15rem;
    }

    .stats-section {
        width: auto; 
        max-width: 90%; 
        margin: 0 auto; 
        min-width: auto; 
        padding: 1rem 0; 
        gap: 1.25rem; 
        align-items: center; 
    }

    .stats-section .stat-item {
        width: 100%;
        box-sizing: border-box;
    }

    /* Zig-Zag animation for stat items */
    .stats-section .stat-item:nth-child(odd) {
        transform: translateY(20px) translateX(-20px);
    }
    .stats-section .stat-item:nth-child(even) {
        transform: translateY(20px) translateX(20px);
    }

    .stats-section .stat-item.visible:nth-child(odd) {
        transform: translateY(0) translateX(-20px);
    }
    .stats-section .stat-item.visible:nth-child(even) {
        transform: translateY(0) translateX(20px);
    }
}

@media (max-width: 768px) {
    .global-impact-description h2 {
        font-size: 2rem; 
    }
    .global-impact-description p { 
        font-size: 1.05rem; 
    }
    .stats-section {
        gap: 1.25rem;
    }
    .stat-icon-background {
        width: 48px;
        height: 48px;
        margin-right: 1rem;
    }
    .stat-icon {
        font-size: 1.5rem;
    }
    .stat-value {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }

    /* Adjust Zig-Zag for 768px */
    .stats-section .stat-item:nth-child(odd) {
        transform: translateY(20px) translateX(-15px);
    }
    .stats-section .stat-item:nth-child(even) {
        transform: translateY(20px) translateX(15px);
    }

    .stats-section .stat-item.visible:nth-child(odd) {
        transform: translateY(0) translateX(-15px);
    }
    .stats-section .stat-item.visible:nth-child(even) {
        transform: translateY(0) translateX(15px);
    }
}

@media (max-width: 480px) {
    .stats-section {
        margin: 1rem auto;
        gap: 1rem;
    }
    .stat-icon-background {
        width: 44px;
        height: 44px;
        margin-right: 0.85rem;
    }
    .stat-icon {
        font-size: 1.4rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    /* Adjust Zig-Zag for 480px */
    .stats-section .stat-item:nth-child(odd) {
        transform: translateY(20px) translateX(-10px);
    }
    .stats-section .stat-item:nth-child(even) {
        transform: translateY(20px) translateX(10px);
    }

    .stats-section .stat-item.visible:nth-child(odd) {
        transform: translateY(0) translateX(-10px);
    }
    .stats-section .stat-item.visible:nth-child(even) {
        transform: translateY(0) translateX(10px);
    }
} 