/* Verdant Bloom - Crowdfunding Website Styles */

/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    /* Colors - Organic Fantasy Palette */
    --primary-300: #A3D9A5;
    --primary-500: #4C9F50;
    --primary-700: #387D3C;
    
    --neutral-50: #FCFAF5;
    --neutral-100: #F4F6F0;
    --neutral-400: #8A8170;
    --neutral-800: #433E36;
    --neutral-900: #2E2A24;
    
    --accent-gold: #FFC700;
    --accent-sky: #63A7D6;
    
    --success: #4C9F50;
    --warning: #E67E22;
    --error: #C0392B;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 96px;
    
    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Other */
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 8px 24px rgba(67, 62, 54, 0.1);
    --shadow-hover: 0 12px 32px rgba(67, 62, 54, 0.15);
}

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

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--neutral-800);
    background: linear-gradient(180deg, #E0EDF5 0%, var(--neutral-50) 30%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   Floating Particles Animation
   ============================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--accent-gold), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 61px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--neutral-800);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* Progress Section */
.progress-section {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
}

.progress-current {
    font-size: 39px;
    font-weight: 700;
    color: var(--primary-500);
    font-family: var(--font-heading);
}

.progress-goal {
    font-size: 18px;
    color: var(--neutral-400);
}

.progress-bar {
    height: 20px;
    background: var(--neutral-50);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
    border-radius: 10px;
    transition: width 1200ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(76, 159, 80, 0.5);
}

.progress-stats {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 25px;
    font-weight: 700;
    color: var(--neutral-900);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-400);
}

/* ============================================
   Milestones Section
   ============================================ */

.milestones-section {
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 39px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-900);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.milestones-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    position: relative;
}

.milestone {
    text-align: center;
    position: relative;
    padding: var(--space-md);
    transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

.milestone.unlocked .milestone-icon {
    background-color: var(--accent-gold);
    border: 3px solid var(--accent-gold);
    color: var(--neutral-900);
    animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.milestone.unlocked .milestone-content h4,
.milestone.unlocked .milestone-content p {
    color: var(--neutral-900);
    font-weight: 600;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.milestone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-sm);
    border: 3px dashed var(--neutral-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
    transition: all 400ms ease;
}

.milestone-icon svg {
    width: 36px;
    height: 36px;
    color: var(--neutral-400);
}

.milestone.unlocked .milestone-icon svg {
    color: var(--neutral-900);
}

.milestone-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-400);
    margin-bottom: var(--space-xs);
}

.milestone-content p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-500);
}

/* ============================================
   About/Vision Section
   ============================================ */

.about-section {
    padding: var(--space-xxl) 0;
    background: var(--neutral-50);
    position: relative;
    z-index: 2;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.vision-card {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms ease;
}

.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.vision-icon {
    font-size: 48px;
    margin-bottom: var(--space-sm);
}

.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.vision-card p {
    font-size: 16px;
    color: var(--neutral-800);
}

/* ============================================
   Rewards Section
   ============================================ */

.rewards-section {
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 2;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.reward-card {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms ease;
    position: relative;
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.reward-card.featured {
    border: 3px solid var(--primary-500);
}

.reward-card.premium {
    border: 3px solid var(--accent-gold);
    background: linear-gradient(135deg, #FFF9E5 0%, var(--neutral-100) 50%);
}

.reward-badge {
    display: inline-block;
    background: var(--primary-500);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    align-self: flex-start;
}

.reward-badge.popular {
    background: var(--accent-sky);
}

.reward-badge.premium {
    background: var(--accent-gold);
    color: var(--neutral-900);
}

.reward-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: var(--space-sm);
}

.reward-description {
    flex-grow: 1;
    margin-bottom: var(--space-md);
    font-size: 16px;
    line-height: 1.6;
}

.btn-primary {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-300) 0%, var(--primary-500) 100%);
    color: var(--neutral-50);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 250ms ease-out;
    font-family: var(--font-body);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ============================================
   Payment Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 42, 36, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--neutral-50);
    padding: var(--space-xl);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

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

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--neutral-400);
    transition: color 200ms ease;
}

.modal-close:hover {
    color: var(--neutral-900);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.modal-amount {
    font-size: 25px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: var(--space-lg);
}

.payment-options h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    margin-bottom: var(--space-sm);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.payment-btn svg {
    width: 24px;
    height: 24px;
}

.payment-btn.paypal {
    background: linear-gradient(135deg, #0070BA, #1F89CE);
}

.payment-btn.cashapp {
    background: linear-gradient(135deg, #00C244, #00D54B);
}

.comment-section-modal {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--neutral-100);
}

.comment-section-modal h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
}

.input-field,
.textarea-field {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: var(--space-sm);
    transition: border-color 250ms ease;
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--primary-500);
}

.textarea-field {
    min-height: 100px;
    resize: vertical;
}

.btn-secondary {
    width: 100%;
    padding: var(--space-md);
    background: var(--neutral-800);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 250ms ease;
}

.btn-secondary:hover {
    background: var(--neutral-900);
    transform: translateY(-2px);
}

/* ============================================
   Donor Wall Section
   ============================================ */

.donor-section {
    padding: var(--space-xxl) 0;
    background: var(--neutral-50);
    position: relative;
    z-index: 2;
}

.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.donor-card {
    background: var(--neutral-100);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(67, 62, 54, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.donor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.donor-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.donor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.donor-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
    flex-grow: 1;
}

.donor-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-500);
}

.donor-message {
    font-size: 16px;
    color: var(--neutral-800);
    line-height: 1.6;
}

/* ============================================
   Details Section
   ============================================ */

.details-section {
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 2;
}

.details-content {
    display: grid;
    gap: var(--space-lg);
}

.detail-item {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-item h3 {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.detail-item p {
    font-size: 16px;
    line-height: 1.6;
}

.revenue-projection {
    background: linear-gradient(135deg, #E8F5E9, var(--neutral-100));
    padding: var(--space-lg);
    border-radius: var(--radius);
    margin-top: var(--space-lg);
    border: 2px solid var(--primary-500);
}

.revenue-projection h3 {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.revenue-projection ul {
    list-style: none;
    padding: 0;
}

.revenue-projection li {
    font-size: 18px;
    padding: var(--space-xs) 0;
    color: var(--neutral-800);
}

.revenue-projection strong {
    color: var(--primary-700);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--neutral-900);
    color: var(--neutral-100);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    z-index: 2;
}

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

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-100);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.social-link {
    color: var(--accent-sky);
    text-decoration: none;
    font-size: 16px;
    transition: color 250ms ease;
}

.social-link:hover {
    color: var(--primary-300);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-800);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--neutral-400);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    body {
        font-size: 16px;
    }
    
    .milestones-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-grid,
    .rewards-grid,
    .donor-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-section {
        padding: var(--space-md);
    }
    
    .progress-current {
        font-size: 32px;
    }
    
    :root {
        --space-xxl: 64px;
    }
    
    /* Disable particles on mobile for performance */
    .particles-container {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
