:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-container img {
    height: 50px;
    margin-right: 15px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.donate-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.donate-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Cover.jpeg') no-repeat center center/cover;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* Section Headlines */
section {
    padding: 40px 0;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Features/Services */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-8px);
    background: var(--secondary-color);
    color: var(--white);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.feature:hover i, .feature:hover h3 {
    color: var(--white);
}

.feature h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* Team Grid and Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.team-member {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Middle aligned content */
    text-align: center;
    min-height: 280px; /* Uniform height */
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover; /* Ensures image fills the circle */
    object-position: center;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.team-member i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-member:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.team-member:hover h4, 
.team-member:hover p, 
.team-member:hover i {
    color: var(--white);
}

.team-member:hover img {
    border-color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 230px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-nav i {
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 50%;
    pointer-events: auto;
    transition: var(--transition);
}

.lightbox-nav i:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-media a {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-decoration: none;
}

.social-media a:hover {
    transform: scale(1.2);
}

.social-media a .fa-instagram {
    color: #E1306C !important;
}

.social-media a .fa-youtube {
    color: #FF0000 !important;
}

.social-media a .fa-facebook {
    color: #1877F2 !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        font-size: 1.1rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .donate-button {
        display: none; /* Default for original donate button */
    }

    /* Show donate button in mobile nav instead? Or just keep it hidden if space is tight */
    
    .hero {
        height: auto;
        padding: 80px 0;
        border-radius: 0 0 20px 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .features, .team-grid, .gallery-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .activity-section {
        grid-template-columns: 1fr !important;
    }
    
    section[style*="padding: 60px"] {
        padding: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .logo-container img {
        height: 40px;
    }
}
