/* --- Fonts and Basic Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #2c3e50; /* Dark Slate Blue */
    --secondary-color: #ffffff;
    --accent-color: #ecf0f1; /* Light Gray */
    --text-color: #34495e; /* Darker, softer gray */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.body-no-scroll {
    overflow: hidden;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

h2::after {
    content: '';
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

p {
    margin-bottom: 1.2rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Banner --- */
.banner {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 20px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
}
.banner p { margin: 0; }
.banner a { color: var(--accent-color); font-weight: bold; text-decoration: underline; margin-left: 15px; }
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

/* --- Navigation --- */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--accent-color);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 1001;
}
.nav-logo img {
    height: 50px;
    margin-right: 15px;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-links li a {
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
    white-space: nowrap;
}
.nav-links li a:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
}
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-toggle { display: none; }

/* --- Language Switcher --- */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-select-wrapper {
    position: relative;
}

#language-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--accent-color);
    border: 1px solid #dde;
    padding: 10px 35px 10px 15px;
    border-radius: 8px;
    font-family: var(--body-font);
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#language-select:hover {
    border-color: var(--primary-color);
}

#language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.language-select-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: var(--primary-color);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* --- Hero Section (Home Page) --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    background-image: url('assets/team/everyone.jpeg');
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center 25%;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.5));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--heading-font);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 15px;
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}
.btn-large {
    font-size: 1.2rem;
    padding: 18px 45px;
}

/* --- Page Sections --- */
.page-section {
    padding: 100px 0;
}
.alt-bg {
    background-color: var(--accent-color);
}

/* --- Social Links (Home Page) --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.social-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.social-card {
    background: var(--secondary-color);
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.1);
}
.social-card-disabled {
    background-color: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
    filter: grayscale(80%);
}
.social-card-disabled:hover {
    transform: none;
    box-shadow: none;
}
.technical-message {
    font-size: 0.85rem;
    color: #888;
    max-width: 300px;
    text-align: center;
}
.social-card img {
    height: 45px;
    margin-bottom: 15px;
}
.social-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 10px; 
}

/* --- About Page --- */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
    border-radius: 10px;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.mission-text {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.team-member {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.12);
}
.team-member img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.member-info {
    padding: 25px;
}
.member-info h3 { margin-bottom: 10px; font-size: 1.6rem;}
.member-info p { font-size: 0.95rem; }

/* --- Donate Page --- */
.donate-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.incentive-box {
    background: var(--accent-color);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #dde;
}
.incentive-box p {
    margin: 0;
    font-size: 1.1rem;
}
.incentive-box small {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* --- Contact Page (Google Form Embed) --- */
.form-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 750px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
}
.form-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}
footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ================================== --- */
/* ---        RESPONSIVE DESIGN           --- */
/* --- ================================== --- */

/* For Tablets and smaller */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(100%);
        z-index: 1000;
    }
    .nav-links.transition-ready {
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-links.nav-open {
        transform: translateX(0);
    }
    .nav-links li a {
        font-size: 2rem;
        padding: 15px;
    }
    .nav-links li a:hover {
        background-color: transparent;
        color: var(--primary-color);
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 22px;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        background-color: var(--primary-color);
        height: 3px;
        width: 30px;
        border-radius: 2px;
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, background-color 0.3s ease-in-out;
    }
    .hamburger { top: 50%; transform: translateY(-50%); }
    .hamburger::before { top: -10px; }
    .hamburger::after { top: 10px; }

    .nav-toggle.is-active .hamburger { background-color: transparent; }
    .nav-toggle.is-active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    .nav-toggle.is-active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
    }
    #language-select {
        font-size: 1.5rem;
        padding: 15px 40px 15px 20px;
    }
    .language-select-wrapper::after {
        right: 20px;
        font-size: 1rem;
    }

    /* --- MOBILE TYPOGRAPHY & SPACING --- */
    .page-section {
        padding: 60px 0;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero {
        height: 80vh;
        background-position: center 30%;
    }

    /* --- MOBILE LAYOUTS --- */
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .team-member img {
        height: 250px;
    }
    .form-container {
        height: 800px;
    }
}