/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hide icons on desktop */
.nav-link i,
.donate-btn i {
    display: none;
}

.donate-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.donate-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure it stays below other content when scrolling */
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
    padding-top: 120px; /* Increased space for fixed navbar */
}

/* Clean transition without gradient */
.hero::after {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.live-indicator {
    position: absolute;
    top: -10px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Floating Cards */
.floating-cards {
    position: relative;
    height: 400px;
    width: 100%;
}

.card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 2rem;
    color: #2563eb;
}

/* Make environment card (leaf icon) larger */
.card-4 i {
    font-size: 2.5rem;
}

.card span {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 0.9rem;
}

/* Well-spaced floating cards layout */
.card-1 {
    top: 30px;
    left: 30px;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
}

.card-2 {
    top: 30px;
    right: 30px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

.card-3 {
    top: 250px;
    left: 30px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 3s;
}

.card-4 {
    top: 250px;
    right: 30px;
    animation: float 6.5s ease-in-out infinite;
    animation-delay: 4.5s;
}

.card-5 {
    top: 140px;
    left: 35%;
    transform: translateX(-50%);
    animation: float 9s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-8px) rotate(0.5deg) scale(1.02); 
    }
    50% { 
        transform: translateY(-15px) rotate(0deg) scale(1.05); 
    }
    75% { 
        transform: translateY(-5px) rotate(-0.5deg) scale(1.02); 
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* Story Section */
.story-section {
    padding: 6rem 0;
    background: #f9fafb;
    padding-top: 8rem; /* Extra top padding to account for navbar */
    position: relative;
    z-index: 2; /* Ensure it appears above hero section */
    overflow: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Clean story section without gradient */
.story-section::before {
    display: none;
}

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

.story-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.highlight {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: translateY(-5px);
}

.highlight i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.highlight h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.highlight p {
    font-size: 0.95rem;
    color: #6b7280;
}

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

.image-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Charities Section */
.charities-section {
    padding: 6rem 0;
    background: white;
    padding-top: 8rem; /* Extra top padding to account for navbar */
    position: relative;
    z-index: 2;
}

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

.charity-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.charity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.charity-card.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.charity-card.selected .charity-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.charity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.charity-icon i {
    font-size: 2rem;
    color: white;
}

.charity-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.charity-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.charity-impact {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.impact-text {
    font-weight: 600;
    color: #2563eb;
    font-size: 1.1rem;
}

/* Impact Section */
.impact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding-top: 8rem; /* Extra top padding to account for navbar */
    position: relative;
    z-index: 2;
}

.impact-section .section-header h2,
.impact-section .section-header p {
    color: white;
}

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

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.impact-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Donation Section */
.donation-section {
    padding: 6rem 0;
    background: #f9fafb;
    padding-top: 8rem; /* Extra top padding to account for navbar */
    position: relative;
    z-index: 2;
}

.donation-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.donation-form-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.donation-form-container p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.donation-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.donation-amount {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.donation-amount label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
}

.amount-note {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Stripe Payment Elements */
.payment-section {
    margin-bottom: 2rem;
}

.payment-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.card-element {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    transition: border-color 0.3s ease;
}

.card-element:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.card-errors {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 5px;
    border-left: 4px solid #dc2626;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.hidden {
    display: none;
}

.donate-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.donate-button i {
    font-size: 1.3rem;
}

.donate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.donate-button:disabled:hover {
    box-shadow: none;
}

.donation-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.donation-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.donation-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.donation-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.donation-info li i {
    color: #10b981;
    font-size: 1.1rem;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.badge i {
    color: #2563eb;
    font-size: 1.2rem;
}

.badge span {
    font-weight: 600;
    color: #374151;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 8% auto;
    padding: 0;
    border-radius: 24px;
    width: 85%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.receipt-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem 1.75rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.receipt-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.receipt-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.receipt-content {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.receipt-info {
    margin-bottom: 1.5rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    gap: 1rem;
}

.receipt-item:hover {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-item .label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    min-width: 100px;
}

.receipt-item .value {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.status-complete {
    color: #10b981 !important;
    font-weight: 600;
}

.receipt-footer {
    text-align: center;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0 -1.75rem -1.5rem -1.75rem;
    padding: 1rem 1.75rem 1.5rem 1.75rem;
    border-radius: 0 0 24px 24px;
}

.receipt-footer p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    font-weight: 500;
    line-height: 1.6;
}

.print-receipt {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.print-receipt:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-bottom a {
    color: #2563eb;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* BRAND NEW MOBILE SIDEBAR - COMPLETE REWRITE */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999;
        padding: 0;
        margin: 0;
    }
    
    /* Add close button for mobile */
    .nav-menu::before {
        content: "×";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 32px;
        color: #333;
        cursor: pointer;
        z-index: 10000;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        line-height: 1;
        margin: 0;
        padding: 0;
        text-align: center;
        font-weight: 300;
    }
    
    .nav-menu::before:hover {
        background: #f8f9fa;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* BRAND NEW NAVIGATION LINKS - MATCHING FLOATING CARDS */
    .nav-menu li {
        list-style: none;
        margin: 8px 0;
        width: 80%;
        max-width: 300px;
    }
    
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 28px;
        margin: 0;
        text-decoration: none;
        color: #333;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        width: 100%;
        background: white;
        border-radius: 16px;
        border: 2px solid rgba(37, 99, 235, 0.1);
        transition: all 0.3s ease;
        box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
        box-sizing: border-box;
    }
    
    /* Mobile sidebar icons - matching floating cards style */
    .nav-menu .nav-link i {
        display: inline-block;
        font-size: 1.6rem;
        color: #2563eb;
        flex-shrink: 0;
    }
    
    .nav-menu .nav-link:hover {
        background: white;
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
        color: #2563eb;
        border-color: rgba(37, 99, 235, 0.3);
    }
    
    /* BRAND NEW DONATE BUTTON */
    .nav-menu li:last-child {
        margin: 20px 0;
        width: 80%;
        max-width: 300px;
    }
    
    .nav-menu .donate-btn {
        display: block;
        padding: 18px 36px;
        margin: 0;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
        text-decoration: none;
        border-radius: 40px 40px 40px 40px;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        width: 100%;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-sizing: border-box;
    }
    
    
    .nav-menu .donate-btn:hover {
        transform: translateY(-8px) scale(1.1);
        box-shadow: 0 20px 50px rgba(37, 99, 235, 0.6);
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-highlights {
        grid-template-columns: 1fr;
    }
    
    .charities-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-cards {
        height: 300px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card i {
        font-size: 1.5rem;
    }
    
    .card span {
        font-size: 0.8rem;
    }
    
    /* Well-spaced mobile arrangement for 5 cards */
    .card-1 {
        top: 20px;
        left: 15px;
    }
    
    .card-2 {
        top: 20px;
        right: 15px;
    }
    
    .card-3 {
        top: 180px;
        left: 15px;
    }
    
    .card-4 {
        top: 180px;
        right: 15px;
    }
    
    .card-5 {
        top: 100px;
        left: 35%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .donation-form,
    .donation-info {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 15% auto;
        width: 95%;
        max-width: 400px;
        border-radius: 20px;
    }
    
    .receipt-header {
        padding: 1.25rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }
    
    .receipt-header h2 {
        font-size: 1.2rem;
    }
    
    .receipt-content {
        padding: 1.25rem 1.5rem;
    }
    
    .receipt-item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .receipt-item .label {
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .receipt-item .value {
        font-size: 0.85rem;
    }
    
    .receipt-footer {
        padding: 0.75rem 1.5rem 1.25rem 1.5rem;
        margin: 0 -1.5rem -1.25rem -1.5rem;
        border-radius: 0 0 20px 20px;
    }
    
    .receipt-footer p {
        font-size: 0.8rem;
        margin: 0 0 0.75rem 0;
    }
    
    .print-receipt {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}

/* Smooth scrolling with offset for fixed navbar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed navbar height + extra spacing */
}

/* Special scroll padding for story section */
#story {
    scroll-margin-top: 220px; /* Minimal margin to just clear transition area */
}

/* Special scroll padding for charities section */
#charities {
    scroll-margin-top: 200px; /* Extra margin to get past transition area */
}

/* Special scroll padding for donate section */
#donate {
    scroll-margin-top: 200px; /* Extra margin to get past transition area */
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

