:root {
    --royal-blue: #0d6efd;
    --royal-blue-light: #4c8cfd; /* A brighter version for hover */
    --teal: #11a59c;
    --teal-light: #16c2b7; /* A brighter version for hover */
    --slate-gray: #334155;
    --light-gray: #f4f7fa;
    --font-inter: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    color: var(--slate-gray);
    background-color: #fff;
    line-height: 1.6;
}

/* -------------------- General Layout & Typography -------------------- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.page-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.page-section {
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    visibility: hidden;
    overflow-y: auto;
    padding-top: 80px; /* Space for the fixed header */
}

.page-section.active-page {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: relative;
}

/* -------------------- Header & Navigation -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 55px; /* UPDATED: Increased header logo size */
}

.nav a {
    text-decoration: none;
    color: var(--slate-gray);
    font-weight: 600;
    margin-left: 1.5rem;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--royal-blue);
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--royal-blue);
}

.nav a.active::after {
    width: 100%;
}

/* -------------------- Buttons -------------------- */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow);
}

.primary-btn {
    background-color: var(--royal-blue);
    color: white;
}

.primary-btn:hover {
    background-color: var(--royal-blue-light);
}

.outline-teal-btn {
    background: transparent;
    color: white; /* UPDATED: Changed text color to white for contrast */
    border: 2px solid white; /* UPDATED: Changed border color to white for contrast */
}

.outline-teal-btn:hover {
    background-color: var(--teal);
    color: white;
    border-color: var(--teal); /* Reset border on hover */
}

.outline-blue-btn {
    background: transparent;
    color: white; /* UPDATED: Changed text color to white for contrast */
    border: 2px solid white; /* UPDATED: Changed border color to white for contrast */
}

.outline-blue-btn:hover {
    background-color: var(--royal-blue);
    color: white;
    border-color: var(--royal-blue); /* Reset border on hover */
}

/* -------------------- Home Page -------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--royal-blue), var(--teal));
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 15s linear infinite;
    opacity: 0.5;
}

@keyframes shimmer {
    from { transform: translate(-50%, -50%); }
    to { transform: translate(0%, 0%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* UPDATED Hero Logo for better visibility */
.hero-logo {
    height: 250px; 
    margin-bottom: 3rem;
    /* Stronger, lighter shadow to contrast with the dark gradient */
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.2)); 
}

.hero-section h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.hero-section .subtitle {
    font-size: 1.5rem;
    color: #e0f7f3;
    margin-bottom: 2rem;
}

/* NEW STYLE for buttons wrapper for better contrast */
.hero-buttons-wrapper {
    background: rgba(255, 255, 255, 0.1); /* Slight white overlay */
    backdrop-filter: blur(5px); /* Gentle blur behind buttons */
    padding: 1.5rem 3rem; /* Padding around buttons */
    border-radius: var(--border-radius); /* Rounded corners */
    margin-top: 2rem; /* Space from the subheading */
    display: inline-block; /* Make it fit content */
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}


.info-section {
    padding: 4rem 2rem;
    background-color: var(--light-gray);
    text-align: center;
}

.info-columns {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.info-column {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

.stats-area {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--teal), var(--royal-blue));
    color: #fff;
    border-radius: var(--border-radius);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 2rem auto;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* -------------------- About Us Page -------------------- */
.about-slide {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    transition: background 0.5s ease;
}

.mission-slide {
    background-color: var(--light-gray);
}

.story-slide {
    background: linear-gradient(160deg, #eaf4ff, #f0f7ff);
}

.founders-slide {
    background: #fff; /* Changed to white background for team photos */
    color: var(--slate-gray); /* Changed text color back to dark */
}

/* Team Grid Styles */
.team-intro {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 700px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.member-photo-container {
    width: 200px; /* Container size */
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%; /* Make it a circle */
    overflow: hidden;
    border: 5px solid var(--teal-light); /* Teal border */
    box-shadow: 0 0 0 5px var(--royal-blue); /* Royal Blue outer ring */
    transition: all 0.3s ease;
}

.team-member-card:hover .member-photo-container {
    border-color: var(--royal-blue-light);
    box-shadow: 0 0 0 5px var(--teal);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--royal-blue);
    margin-top: -10px;
    margin-bottom: 10px;
}

/* -------------------- Programs Page -------------------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.program-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--teal);
}

/* -------------------- Forms -------------------- */
.volunteer-form, .contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav a {
        margin: 0 0.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-section {
        padding-top: 100px;
    }

    .info-columns {
        flex-direction: column;
    }

    .stats-grid {
        flex-direction: column;
    }
}


/* -------------------- Footer -------------------- */
.footer {
    width: 100%;
    padding: 3rem 2rem;
    /* Apply the requested gradient background */
    background: linear-gradient(135deg, var(--royal-blue), var(--teal));
    color: white;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.footer-logo img {
    height: 70px; /* Slightly larger logo in the footer */
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.footer-section {
    min-width: 150px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: #e0f7f3; /* Lightened color for text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-logo {
        width: 100%;
        margin-bottom: 2rem;
    }
}
