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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background: #f7f7f7;
}

/* Section resets */
section {
    margin: 0;
    padding: 40px 0;
    display: block;
}

/* Hero section */
.hero.dark-section {
    margin: 0;
    padding: 120px 0 40px 0;
    background: linear-gradient(135deg, #0066ff, #003399);
    position: relative;
    z-index: 1;
}

.hero.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0066ff, #003399);
    z-index: -1;
}

/* Progress section */
.progress-section.light-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #0066ff, #003399);
    position: relative;
    z-index: 2;
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Remove any potential flex gaps */
.hero-content,
.progress-container {
    margin: 0;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

/* Header logo text */
.header-logo span, .logo-link span {
    color: #4a5568;
    font-weight: 600;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-link:hover span {
    color: #0066ff;
}

.header-logo:hover span {
    color: #0066ff;
}

.header-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

/* Navigation Links */
.nav-link {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0066ff;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2d3748;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0066ff, #003399);
    border-radius: 2px;
}

.hero {
    margin: 0;
    padding: 40px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0066ff 0%, #003399 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-mission {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.progress-section {
    margin: 0;
    padding: 80px 0;
    background: linear-gradient(135deg, #0066ff, #003399);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -1px; /* Added to prevent any gap between sections */
}

.progress-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.progress-section .section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    display: none;
}

.progress-fill {
    display: none;
}

.progress-text {
    display: none;
}

.progress-text span:first-child {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 102, 255, 0.3);
}

.progress-percentage {
    display: none;
}

.progress-goal {
    display: none;
}
.impact-amount {
    font-size: 6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .impact-amount {
        font-size: 3.5rem;
    }
}

/* Milestone mini progress */
.milestone { 
    margin-top: 1rem; 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 10px; 
    padding: 0.75rem 1rem; 
}
.milestone-header { 
    display: flex;
    justify-content: space-between; 
    color: white; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}
.milestone-bar { 
    height: 10px; 
    background: rgba(255,255,255,0.15); 
    border-radius: 6px; 
    overflow: hidden;
}
.milestone-fill { 
    height: 100%; 
    width: 0%; 
    background: linear-gradient(90deg, #00d4ff, #00aaff); 
    transition: width 0.6s ease; 
}

.milestone-header #milestoneStatus {
    font-weight: 800;
}

/* Contract block */
.contract-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    margin-top: 1rem;
}
.contract-label {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.9;
}
.contract-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.contract-address code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
.copy-btn.success {
    background: #10b981;
    color: white;
}
/* FAQ Section */
.faq-section {
    background: white;
    padding: 80px 0;
}

.faq-section .section-title {
    color: #1a1a1a;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question h3 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    color: #0066ff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-answer p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    color: #4a5568;
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    stroke: #0066ff;
}

.footer-contact a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #0066ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    color: #718096;
    font-size: 0.8rem;
}

/* Footer social links */
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0066ff;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    background: rgba(0, 102, 255, 0.06);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(0, 102, 255, 0.12);
    transform: translateY(-1px);
}

.social-link svg {
    display: block;
}

/* Live banner */
.live-banner {
    position: relative;
    background: linear-gradient(135deg, #0066ff, #003399);
    color: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.live-banner .live-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.live-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.live-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.live-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.live-note {
    font-size: 0.8rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .live-banner .live-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    align-items: center;
        text-align: center;
    }

    .header-actions {
        margin-top: 1rem;
    }

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

    .hero-mission {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .progress-percentage {
        font-size: 2.5rem;
    }
    
    .progress-text {
    font-size: 1.2rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}