/* ===== CRITICAL CSS - Loads immediately for above-the-fold content ===== */

/* Critical CSS for hero video visibility and performance */
.hero-section {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    /* GPU acceleration */
    will-change: transform !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Mobile-specific hero section adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 140px !important; /* Account for navbar height on mobile */
        min-height: 80vh !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px !important; /* Adjusted for smaller navbar */
        min-height: 70vh !important;
    }
}

.hero-section .hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.hero-section .video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.hero-section .video-background video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate3d(-50%, -50%, 0) !important;
    object-fit: cover !important;
    z-index: 1 !important;
    opacity: 0.6 !important;
    visibility: visible !important;
    display: block !important;
    /* GPU acceleration */
    will-change: transform !important;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.5) 100%) !important;
    z-index: 2 !important;
}

.hero-fallback-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%) !important;
    z-index: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.hero-fallback-bg.show {
    opacity: 1 !important;
}

/* Performance optimized preloader */
#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--dark-bg) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

/* Optimized navbar for performance */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    transition: background 0.3s ease !important;
    /* GPU acceleration */
    will-change: background !important;
}

/* Skip navigation for accessibility */
.skip-nav {
    position: absolute !important;
    top: -40px !important;
    left: 6px !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    z-index: 1001 !important;
    transition: top 0.3s ease !important;
}

.skip-nav:focus {
    top: 6px !important;
}

/* Investment Opportunity Styles */
.investment-opportunity {
    display: none;
}

.opportunity-card {
    display: none;
}

/* Investment Section - Dark Theme Design */
.investment-section {
    padding: 5rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.investment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.investment-opportunities {
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* Investment Cards - Dark Theme */
.investment-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.investment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.investment-card:hover::before {
    opacity: 1;
}

/* Investment Header */
.investment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.investment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4aa 0%, #3498db 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Ensure icon visibility */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Line Awesome", sans-serif;
    font-weight: 900;
}

.investment-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.investment-icon i {
    font-size: 1.5rem;
    color: #ffffff;
    z-index: 2;
    position: relative;
    /* Ensure icon visibility */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Line Awesome", sans-serif;
    font-weight: 900;
}



.investment-badge {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 170, 0.2);
    flex-shrink: 0;
}

/* Investment Content */
.investment-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.investment-content h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.investment-description {
    margin-bottom: 2rem;
}

.investment-description p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Investment Details */
.investment-details {
    margin-bottom: 2rem;
}

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

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-title {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.detail-title i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.detail-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:first-child {
    padding-top: 0;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Funds Breakdown */
.funds-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.fund-item {
    margin-bottom: 1.25rem;
}

.fund-item:last-child {
    margin-bottom: 0;
}

.fund-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fund-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.fund-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.fund-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fund-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Features and Benefits Lists */
.features-list,
.benefits-list,
.roadmap-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.feature-item,
.benefit-item,
.roadmap-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:first-child,
.benefit-item:first-child,
.roadmap-item:first-child {
    padding-top: 0;
}

.feature-item:last-child,
.benefit-item:last-child,
.roadmap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-item i,
.benefit-item i,
.roadmap-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-item span,
.benefit-item span,
.roadmap-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

/* Shop Categories */
.shop-categories {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.category-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-item:first-child {
    padding-top: 0;
}

.category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    line-height: 1.4;
}

/* GitHub Features */
.github-features {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.github-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.github-item:first-child {
    padding-top: 0;
}

.github-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.github-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.github-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

/* Investment Action */
.investment-action {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.investment-action .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.investment-action .btn i {
    margin-right: 0.5rem;
}

/* Action Buttons for Shop/GitHub Card */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.action-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(0,212,170,0.2);
}

.action-buttons .btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.action-buttons .btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.2);
}

/* Specific Card Variations */
.seed-investment-card .investment-icon {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.finuties-card .investment-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.shop-github-card .investment-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Investment CTA Section */
.investment-cta {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.investment-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.investment-cta h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.investment-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .investment-card {
        margin-bottom: 2rem;
    }
    
    .investment-cta {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .investment-section {
        padding: 3rem 0;
    }
    
    .investment-card {
        padding: 1.5rem;
    }
    
    .investment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .investment-icon {
        width: 60px;
        height: 60px;
    }
    
    .investment-icon i {
        font-size: 1.5rem;
    }
    
    .investment-content h3 {
        font-size: 1.25rem;
    }
    
    .investment-cta {
        padding: 1.5rem;
    }
    
    .investment-cta h3 {
        font-size: 1.5rem;
    }
    
    .investment-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .investment-card {
        padding: 1.25rem;
    }
    
    .detail-content,
    .funds-breakdown,
    .features-list,
    .benefits-list,
    .roadmap-list {
        padding: 0.75rem;
    }
    
    .investment-cta {
        padding: 1.25rem;
    }
    
    .investment-cta h3 {
        font-size: 1.25rem;
    }
    
    .cta-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}

/* Force icon visibility */
.investment-icon i,
.detail-title i,
.feature-item i,
.benefit-item i,
.roadmap-item i,
.category-item i,
.github-item i,
.btn i {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
}

/* Ensure all FontAwesome icons are properly displayed */
.fa,
.fas,
.far,
.fal,
.fab,
[class*="fa-"] {
    display: inline-block !important;
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
}

/* Ensure all text is perfectly visible */
.section-title,
.section-subtitle,
.investment-content h3,
.investment-description p,
.detail-title,
.detail-label,
.detail-value,
.fund-label,
.fund-percentage,
.feature-item span,
.benefit-item span,
.roadmap-item span,
.category-title,
.category-desc,
.github-item span,
.investment-cta h3,
.investment-cta p {
    color: inherit !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1 !important;
    font-kerning: normal !important;
}

/* Specific fixes for "Join Our Growth Journey" section */
.investment-section .section-title {
    color: var(--text-primary) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1 !important;
    font-kerning: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.investment-section .section-subtitle {
    color: var(--text-secondary) !important;
    font-size: 1.25rem !important;
    margin-bottom: 2.5rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    letter-spacing: 0.2px !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1 !important;
    font-kerning: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.investment-section .section-badge {
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    border-radius: var(--radius-md) !important;
    padding: 0.4em 1.2em !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 8px rgba(0,212,170,0.08) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Ensure all text in investment cards is visible */
.investment-card * {
    color: inherit !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-feature-settings: "kern" 1 !important;
    font-kerning: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force all icons to be visible */
.fa,
.fas,
.far,
.fal,
.fab,
[class*="fa-"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
}

/* Ensure proper dark theme for investment section */
.investment-section {
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
}

.investment-section * {
    color: inherit !important;
}

/* Specific text color overrides for dark theme */
.investment-section .section-title {
    color: var(--text-primary) !important;
}

.investment-section .section-subtitle {
    color: var(--text-secondary) !important;
}

.investment-card {
    background: var(--dark-card) !important;
    color: var(--text-primary) !important;
}

.investment-card h3 {
    color: var(--text-primary) !important;
}

.investment-card p {
    color: var(--text-secondary) !important;
}

.investment-card .detail-label {
    color: var(--text-secondary) !important;
}

.investment-card .detail-value {
    color: var(--primary-color) !important;
}

.investment-card .fund-label {
    color: var(--text-secondary) !important;
}

.investment-card .fund-percentage {
    color: var(--primary-color) !important;
}

.investment-card .feature-item span,
.investment-card .benefit-item span,
.investment-card .roadmap-item span,
.investment-card .category-title,
.investment-card .category-desc,
.investment-card .github-item span {
    color: var(--text-secondary) !important;
}

.investment-card .detail-title {
    color: var(--text-primary) !important;
}

.investment-card .detail-title i,
.investment-card .feature-item i,
.investment-card .benefit-item i,
.investment-card .roadmap-item i,
.investment-card .category-item i,
.investment-card .github-item i {
    color: var(--primary-color) !important;
}

/* Ensure investment header icons are white */
.investment-card .investment-icon i {
    color: #ffffff !important;
}

/* Force investment header icons to be white with higher specificity */
.investment-header .investment-icon i {
    color: #ffffff !important;
} 