* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.header-nav {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Keep header visible when mobile menu is open */
.header-nav.mobile-menu-open {
    z-index: 1002;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 150px;
    height: auto;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #89A2D1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #DDD0BE;
    color: #89A2D1;
}

.donate-btn {
    background: #AB9056 !important;
    color: white !important;
    font-weight: 600;
    padding: 0.8rem 1.5rem !important;
}

.donate-btn:hover {
    background: #8a7344 !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(137, 162, 209, 0.9), rgba(182, 196, 179, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23DDD0BE" width="1200" height="600"/><circle fill="%23AB9056" opacity="0.1" cx="300" cy="150" r="100"/><circle fill="%2389A2D1" opacity="0.05" cx="900" cy="400" r="150"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #AB9056;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Main Content Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #89A2D1;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Legacy Section */
.legacy-section {
    background: #f8f9fa;
}

.legacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.legacy-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.legacy-quote {
    background: linear-gradient(135deg, #89A2D1, #B6C4B3);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    margin: 2rem 0;
}

.legacy-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
    font-family: serif;
}

.legacy-image {
    background: linear-gradient(45deg, #DDD0BE, #AB9056);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #89A2D1;
    font-size: 1.1rem;
    border: 3px solid #89A2D1;
}

/* Story Section */
.story-section {
    background: white;
}

.story-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #89A2D1, #AB9056);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 45%;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: #AB9056;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #AB9056;
}

.timeline-item:nth-child(odd)::before {
    right: -35px;
}

.timeline-item:nth-child(even)::before {
    left: -35px;
}

.timeline-item h3 {
    color: #89A2D1 !important;
}

.birth-death {
    background: #89A2D1;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 2rem 0;
}

/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #AB9056;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-card i {
    font-size: 3rem;
    color: #89A2D1;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.4rem;
    color: #89A2D1;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #89A2D1, #B6C4B3);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #AB9056;
    color: white;
    border: 2px solid #AB9056;
}

.btn-primary:hover {
    background: #8a7344;
    border-color: #8a7344;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 115, 68, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    color: #89A2D1;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #DDD0BE;
    padding: 3rem 0 2rem;
}

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

.footer-section h3 {
    color: #AB9056;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: #DDD0BE;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #AB9056;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.5rem 0;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #89A2D1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #AB9056;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #89A2D1;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Enhanced Resources Section */
.resources-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #DDD0BE 20%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(171, 144, 86, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(137, 162, 209, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.resources-section .section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.resources-section .section-header h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #89A2D1;
    margin-bottom: 1.5rem;
    position: relative;
}

.resources-section .section-header h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #AB9056, #89A2D1);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.resources-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Enhanced Mission Cards Grid */
.resources-section .mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Mission Card Styling for Resources */
.resources-section .mission-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(171, 144, 86, 0.1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.resources-section .mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #AB9056, #89A2D1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.resources-section .mission-card:hover::before {
    transform: scaleX(1);
}

.resources-section .mission-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(171, 144, 86, 0.3);
}

.resources-section .mission-card i {
    font-size: 4rem;
    background: linear-gradient(135deg, #89A2D1, #AB9056);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.resources-section .mission-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.resources-section .mission-card h3 {
    font-size: 1.6rem;
    color: #89A2D1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.resources-section .mission-card:hover h3 {
    color: #AB9056;
}

.resources-section .mission-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.resources-section .mission-card:hover p {
    color: #555;
    margin-bottom: 4rem;
}

/* Call-to-action styling for links */
.resources-section .mission-card::after {
    content: 'Visit →';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #AB9056, #8a7344);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.resources-section .mission-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Special styling for different card types */
.resources-section .mission-card[href*="wordpress"] {
    border-top: 5px solid #21759b;
}

.resources-section .mission-card[href*="shoptbmbooks"] {
    border-top: 5px solid #8B4513;
}

.resources-section .mission-card[href*="instagram"] {
    border-top: 5px solid #E4405F;
}

/* Legacy section link */
.legacy-text a {
    color: #89A2D1 !important;
    border-bottom: 2px solid #AB9056 !important;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #89A2D1;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.nav-links.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    transition: right 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

.nav-links.mobile-menu.active {
    right: 0;
}

.nav-links.mobile-menu a {
    font-size: 1.2rem;
    margin: 1rem 0;
    padding: 1rem 2rem;
    width: 80%;
    text-align: center;
    border-radius: 25px;
    color: #2c3e50;
    background: rgba(221, 208, 190, 0.3);
    transition: all 0.3s ease;
}

.nav-links.mobile-menu a:hover {
    background: #DDD0BE;
    color: #89A2D1;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .legacy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .timeline-item::before {
        left: -35px !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .resources-section {
        padding: 4rem 0;
    }

    .resources-section .section-header h2 {
        font-size: 2.2rem;
    }

    .resources-section .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .resources-section .mission-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .resources-section .mission-card {
        padding: 2.5rem 2rem;
    }

    .resources-section .mission-card i {
        font-size: 3.5rem;
    }

    .resources-section .mission-card h3 {
        font-size: 1.4rem;
    }

    .resources-section .mission-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .resources-section .mission-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resources-section .mission-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse {
    animation: pulse 2s infinite;
}