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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
    font-size: 14px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .navbar {
    transform: translateY(-110%);
}

.home-page .navbar.scrolled {
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #2c3e50;
}

.logo-main-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
}

.logo-foundation-text {
    font-family: 'Inter', sans-serif;
    background: #f0f2ff;
    color: #6a78d1;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e0e4fa;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-main-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.08);
}

.donate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 3px;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: auto;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1500;
    box-shadow: -10px 0 35px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    left: auto;
}

.mobile-menu-container {
    position: relative;
    padding: 3rem 2rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #3498db;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 0.6rem;
}

.menu-list a {
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-list a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%) scale(1.4);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text-welcome {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-text-foundation {
    font-family: 'Playfair Display', serif;
    font-size: 6vw;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(125deg, #4e54c8, #8f94fb, #a6c1ee, #f7c6f7, #4e54c8);
    background-size: 400% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: stream-gradient 15s linear infinite;
}

@keyframes stream-gradient {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Service Sections */
.service-section {
    padding: 5rem 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.service-section:nth-child(even) {
    background: #f8f9fa;
}

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

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
}

.service-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 0;
}

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

/* --- Sub-Page Styles --- */

.page-main {
    padding-top: 70px; 
}

.page-hero {
    padding: 5rem 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.page-content {
    padding: 3rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Donate Page */
.donation-form-container {
    max-width: 550px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.donation-amounts {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.amount-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}
.amount-btn.active, .amount-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}
.custom-amount input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.submit-donate-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1.2rem;
}

/* Community Page */
.events-grid, .spotlight-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.event-card, .spotlight-card, .news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.event-card {
    padding: 1.5rem;
    text-align: center;
}
.event-date {
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.event-date span {
    font-size: 1.5rem;
    font-weight: 700;
}
.spotlight-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.spotlight-card h4 {
    margin: 0.8rem 1.2rem 0.4rem;
}
.spotlight-card p {
    padding: 0 1.2rem 1.2rem;
}

/* News Page */
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card-content {
    padding: 1.2rem;
}
.news-date {
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 0.4rem;
    display: block;
}
.news-card a {
    color: #6a78d1;
    font-weight: 500;
    text-decoration: none;
}
.news-card a:hover {
    text-decoration: underline;
}
.news-hero-content h1,
.news-hero-content p {
    color: #333;
    text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact-info-list {
    list-style: none;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.contact-info-list a {
    color: #3498db;
    text-decoration: none;
}
.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    color: #2c3e50;
    margin-right: 0.8rem;
    font-size: 1.3rem;
}

/* Buttons */
.btn-secondary, .btn-primary {
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.8rem;
}
.btn-secondary {
    border: 1px solid #667eea;
    color: #667eea;
}
.btn-secondary:hover {
    background: #667eea;
    color: white;
}
.btn-primary {
    background: #667eea;
    color: white;
    border: 1px solid #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-main-buttons {
        display: none;
    }
    .hero-text-foundation {
        font-size: 8vw;
    }
}

@media (max-width: 768px) {
    body { font-size: 13px; }
    .hero-text-foundation {
        font-size: 10vw;
    }
    .hero-text-welcome {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    .about-content h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .about-content p {
        font-size: 1rem;
    }
    .about-tagline {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    .service-content { grid-template-columns: 1fr; }
    .service-img { height: 280px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-text-foundation {
        font-size: 12vw;
    }
    .hero-text-welcome {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    .about-content h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    .about-content p {
        font-size: 0.9rem;
    }
    .about-tagline {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

.nav-logo span {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo span span {
    font-size: 0.7em;
    font-weight: 400;
    background: #fff;
    color: #764ba2;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 2px;
    vertical-align: super;
}

.contact-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.contact-content {
    text-align: center;
}

.contact-content p {
    font-size: 1rem;
    color: #555;
}

.contact-content a {
    color: #6a78d1;
    font-weight: 500;
    text-decoration: none;
}
.contact-content a:hover {
    text-decoration: underline;
}

.donate-page-content {
    position: relative;
    padding: 4rem 0;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/donate-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.donation-container {
    text-align: center;
    padding: 2.5rem;
    max-width: 500px;
    margin: 2rem auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    color: white;
}

.donation-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.keyword-stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.keyword-stream {
    position: relative;
    width: 100%;
    height: 100%;
}

.keyword-stream span {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    animation: stream-keywords 20s linear infinite;
}

.keyword-stream span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.keyword-stream span:nth-child(2) { left: 80%; top: 10%; animation-delay: 2s; font-size: 1.8rem; }
.keyword-stream span:nth-child(3) { left: 50%; top: 50%; animation-delay: 4s; }
.keyword-stream span:nth-child(4) { left: 20%; top: 75%; animation-delay: 6s; font-size: 2rem; }
.keyword-stream span:nth-child(5) { left: 90%; top: 80%; animation-delay: 8s; }
.keyword-stream span:nth-child(6) { left: 5%; top: 40%; animation-delay: 10s; font-size: 1.6rem; }
.keyword-stream span:nth-child(7) { left: 60%; top: 30%; animation-delay: 12s; }
.keyword-stream span:nth-child(8) { left: 30%; top: 15%; animation-delay: 14s; font-size: 1.9rem; }
.keyword-stream span:nth-child(9) { left: 75%; top: 60%; animation-delay: 16s; }
.keyword-stream span:nth-child(10) { left: 40%; top: 85%; animation-delay: 18s; font-size: 1.7rem; }
.keyword-stream span:nth-child(11) { left: 15%; top: 5%; animation-delay: 19s; }
.keyword-stream span:nth-child(12) { left: 65%; top: 90%; animation-delay: 1s; }

@keyframes stream-keywords {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    50% {
        transform: translateY(10px) scale(0.95);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.popup-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.close-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.close-menu-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

.mobile-menu.active .close-menu-btn {
    display: block;
    z-index: 1001; /* Above the menu content */
}

@media (min-width: 1025px) {
    .hamburger {
        display: flex;
    }
} 