:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #ecf0f1;
    --dark: #34495e;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}

/* Navigation */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

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

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

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

.nav-links a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
    animation: slideInUnderline 0.3s ease;
}

@keyframes slideInUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Page container */
.page-container {
    position: relative;
    min-height: 100vh;
    margin-top: 70px; /* Account for fixed header */
    background-color: #f9f9f9;
    overflow: hidden;
}

/* Page sections */
.page {
    display: none;
    padding: 7rem 2rem 4rem;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
    background-color: #f9f9f9;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.page.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Content animation delays for staggered effect */
.about-content {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.programs-grid {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.donate-container {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.contact-container {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Section */
#home {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://storage.googleapis.com/workspace-0f70711f-8b4e-4d94-86f1-2a93ccde5887/image/f39ae071-7c05-4766-b54c-d954d6cbe509.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    background-color: #d62c1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-info {
    padding: 1.5rem;
}

.program-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.program-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Donate Section */
.donate-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.donate-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.donate-option {
    cursor: pointer;
    padding: 1rem 2rem;
    background-color: var(--light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.donate-option:hover, .donate-option.active {
    background-color: var(--secondary);
    color: white;
}

.donate-form {
    display: flex;
    flex-direction: column;
}

.donate-form input, .donate-form select {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.donate-form button {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-form button:hover {
    background-color: #219653;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--secondary);
    font-weight: bold;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #d62c1a;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
    transform: translateX(3px);
}

.footer-column ul li a[data-page] {
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}