@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Modern Palette */
    --font-main: 'Manrope', sans-serif;
    
    /* Primary Colors (Trustworthy Blue) */
    --color-primary: #2563EB; /* Royal Blue */
    --color-primary-dark: #1E40AF;
    --color-primary-light: #60A5FA;
    --color-primary-rgb: 37, 99, 235;
    
    /* Accent Colors (Warmth/Action) */
    --color-accent: #F59E0B; /* Amber */
    --color-accent-hover: #D97706;

    /* Neutrals */
    --color-bg: #F8FAFC; /* Slate 50 */
    --color-surface: #FFFFFF;
    --color-text-main: #1E293B; /* Slate 800 */
    --color-text-muted: #64748B; /* Slate 500 */
    --color-border: #E2E8F0; /* Slate 200 */

    /* Layout & Effects */
    --container-width: 1280px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--color-text-main);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 600;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Buttons */
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-donate:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-surface);
    color: var(--color-surface) !important;
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    color: var(--color-primary) !important;
}

/* Top Bar */
.top-bar {
    background-color: #0f172a; /* Very dark slate */
    color: #e2e8f0;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar .contact-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar .contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar .contact-info i {
    color: var(--color-primary-light);
}

.top-bar .social-icons {
    display: flex;
    gap: 1rem;
}

.top-bar .social-icons a {
    color: #cbd5e1;
    transition: var(--transition-base);
}

.top-bar .social-icons a:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Increased size for visibility */
    width: auto;
    max-width: 280px; /* Prevent it from getting too wide if the aspect ratio is extreme */
    object-fit: contain;
    filter: brightness(1.05) contrast(1.02); /* Subtle enhancement */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

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

nav a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--color-primary);
}

.header-donate-btn {
    margin-left: 2rem;
    background-color: var(--color-primary); /* Primary blue for header button */
}
.header-donate-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Taller hero */
    min-height: 600px;
    overflow: hidden;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero Overlay - Gradient */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.slide .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.slide h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide p {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Subpage Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.hero p {
    color: #e2e8f0 !important;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Cards Modern */
.card {
    background: var(--color-surface);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    flex-grow: 1;
}

.card a {
    margin-top: 1.5rem;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
}

/* Icon Cards (About/Mission) */
.icon-card {
    text-align: center;
    align-items: center;
    border: none;
    box-shadow: var(--shadow-md);
}

.icon-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 3rem auto 1rem;
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 50%;
}

.icon-card h3 {
    margin-top: 1rem;
}

/* Team Carousel */
.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.team-card {
    flex: 0 0 300px;
    text-align: center;
    border: none;
    box-shadow: var(--shadow-md);
    background: #fff;
    align-items: center;
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 2.5rem auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--color-primary-light);
}

.team-card .role {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Forms */
.form-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--color-bg);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-form-submit:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Page Grid */
.grid-2-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* More space for form */
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-item .icon-box {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

footer h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

footer a {
    color: #94a3b8;
    font-weight: 400;
}

footer a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition-base);
}

.footer-socials a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    padding-left: 0;
}

.copyright-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    margin-left: auto; /* Push to right */
    padding: 0.5rem;
    z-index: 1100;
}

@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .top-bar { display: none; }
    
    .mobile-menu-toggle {
        display: block;
    }

    header {
        position: relative; /* Ensure header is the reference context */
        padding: 0.5rem 0;
    }

    header .container {
        position: static; /* Let the nav be absolute relative to header, not container if needed, or keep relative */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo img {
        height: 50px; /* Smaller logo on mobile */
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        width: 100%;
        z-index: 1000;
    }

    nav.open {
        max-height: 100vh; /* Allow full expansion */
        border-bottom: 1px solid var(--color-border);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    nav li {
        width: 100%;
        display: block;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--color-bg);
        text-align: left;
    }
    
    nav a::after { display: none; } /* Remove underline effect on mobile */
    
    nav a:hover {
        background-color: var(--color-bg);
        color: var(--color-primary);
    }

    /* Include Donate button in mobile menu style if needed, 
       but for now we hide the header one and might rely on a menu link */
    .header-donate-btn {
        display: none; 
    }
    
    .grid-2-contact {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .form-card {
        padding: 1.5rem;
    }
}