/* Neural Network Background - UNTRAPD Hub */
/* Enhanced Dense Neural Network Effect */

/* ============================================
   NEURAL BACKGROUND LAYERS
   ============================================ */

.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;

    /* Deep neural space gradient */
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 180, 220, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #050a12 0%, #0a1628 25%, #0d1f35 50%, #081420 75%, #040810 100%);
}

/* Neural Canvas - Dense animated network */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
}

/* Brain hemisphere glow effect */
.brain-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: -9;
    background:
        radial-gradient(ellipse 60% 50% at 35% 45%, rgba(0, 150, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 65% 55%, rgba(80, 100, 200, 0.06) 0%, transparent 50%);
    animation: brainPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes brainPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

/* Synaptic pulse overlay - Firing neurons effect */
.synaptic-pulses {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -7;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 85% 35%, rgba(99, 102, 241, 0.35) 0%, transparent 2.5%),
        radial-gradient(circle at 45% 75%, rgba(0, 200, 255, 0.3) 0%, transparent 3%),
        radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.35) 0%, transparent 2%),
        radial-gradient(circle at 25% 60%, rgba(0, 180, 230, 0.3) 0%, transparent 2.5%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.25) 0%, transparent 3%),
        radial-gradient(circle at 10% 85%, rgba(0, 212, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 60% 45%, rgba(59, 130, 246, 0.25) 0%, transparent 3.5%);
    animation: synapticFire 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes synapticFire {
    0%, 100% { opacity: 0.5; }
    25% { opacity: 0.8; }
    50% { opacity: 0.6; }
    75% { opacity: 0.9; }
}

/* SVG Neural Network Layer */
.neural-svg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -6;
    opacity: 0.5;
    pointer-events: none;
}

/* Connection animation for SVG paths */
.conn-animate {
    stroke-dasharray: 20 10;
    animation: flowPulse 3s linear infinite;
}

@keyframes flowPulse {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -30; }
}

/* ============================================
   HERO SECTION OVERRIDES FOR NEURAL THEME
   ============================================ */

/* Make hero section transparent to show neural background */
.hero.finderr-hero-ecosystem {
    background: transparent !important;
    position: relative;
}

/* Add subtle gradient overlay for readability */
.hero.finderr-hero-ecosystem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 10, 18, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero.finderr-hero-ecosystem .hero-container {
    position: relative;
    z-index: 1;
}

/* Enhanced text glow for neural theme */
.hero.finderr-hero-ecosystem .hero-title {
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero.finderr-hero-ecosystem .hero-title .highlight {
    background: linear-gradient(135deg, #00d4ff 0%, #3b82f6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neural-themed stat boxes */
.hero.finderr-hero-ecosystem .stat {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero.finderr-hero-ecosystem .stat:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

/* Neural-themed ecosystem badge */
.hero.finderr-hero-ecosystem .ecosystem-badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(10px);
}

/* Neural-themed CTA buttons */
.hero.finderr-hero-ecosystem .cta-primary {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 50%, #023e8a 100%);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

.hero.finderr-hero-ecosystem .cta-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

/* ============================================
   HIGH CONTRAST TEXT FOR ALL SECTIONS
   Ensuring WCAG AA compliance on dark background
   ============================================ */

/* Global text contrast - soft off-white for comfort */
body {
    color: #e8eef4;
}

/* Section headings - soft white with subtle glow */
section > h1, section > h2, section > .container > h2,
.hero h1, .hero h2, .hero h3,
.section-header h2, .section-title,
.final-cta h2, .cta-section h2 {
    color: #f0f4f8 !important;
    text-shadow: 0 2px 15px rgba(0, 150, 200, 0.15);
}

/* Text directly on dark background - soft readable gray */
section > p, section > .container > p,
.hero p, .hero span,
.section-header p, .section-description,
.final-cta p, .cta-section p {
    color: rgba(220, 230, 240, 0.9) !important;
}

/* Cards - DARK BACKGROUNDS with WHITE text for neural theme */
/* Using ecosystem-app (not ecosystem-card) to match actual HTML */
.ecosystem-app,
.tool-card,
.marketing-card,
.app-card {
    background: rgba(15, 25, 40, 0.85) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    backdrop-filter: blur(8px);
}

.ecosystem-app h3,
.ecosystem-app h4,
.tool-card h3,
.marketing-card h3,
.app-card h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    text-shadow: none !important;
}

.ecosystem-app p,
.tool-card p,
.marketing-card p,
.app-card p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Tags inside cards - readable on dark backgrounds */
.ecosystem-app .tag,
.ecosystem-app .badge,
.ecosystem-app span,
.ecosystem-app .feature-tag,
.tool-card .tag,
.marketing-card .tag,
.app-card .tag,
.app-card span {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Status badges on cards - bright and readable */
.ecosystem-app .app-status,
.app-card .status-badge,
.app-status {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Links inside dark-background cards - bright cyan */
.ecosystem-app a,
.tool-card a,
.marketing-card a,
.app-card a {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

.ecosystem-app a:hover,
.tool-card a:hover,
.marketing-card a:hover,
.app-card a:hover {
    color: #5ce1ff !important;
    -webkit-text-fill-color: #5ce1ff !important;
}

/* Links - softer cyan that's easy on eyes */
a:not(.cta-primary):not(.cta-secondary):not(.cta-button-large):not([class*="btn"]) {
    color: #6ac4e0 !important;
}

a:not(.cta-primary):not(.cta-secondary):not(.cta-button-large):not([class*="btn"]):hover {
    color: #8dd4ec !important;
}

/* Section-specific styling */
section {
    background: transparent !important;
}

/* Features section */
.features-section,
.ecosystem-section,
.marketing-tools-section,
.testimonials-section,
.cta-section {
    background: transparent !important;
}

/* Feature cards - soft frosted glass on dark background */
.feature-card {
    background: rgba(15, 25, 40, 0.7) !important;
    border: 1px solid rgba(100, 180, 220, 0.15) !important;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(20, 35, 55, 0.8) !important;
    border-color: rgba(100, 180, 220, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 150, 200, 0.1);
}

/* Feature card text - soft readable colors */
.feature-card h3 {
    color: #e8f0f8 !important;
}

.feature-card p {
    color: rgba(200, 215, 230, 0.85) !important;
}

/* Badges and tags - soft muted style */
.badge,
.tag,
.status-badge {
    background: rgba(100, 180, 220, 0.12) !important;
    color: #7ab8d8 !important;
    border: 1px solid rgba(100, 180, 220, 0.2);
}

/* Gradient text - softer colors - ONLY on dark backgrounds */
.hero .highlight,
.hero .gradient-text,
.final-cta .highlight,
.cta-section .highlight,
section:not(.ecosystem-section):not(.marketing-tools-section) > .container > .highlight {
    background: linear-gradient(135deg, #6ac4e0 0%, #7ba3d4 50%, #9a9cd8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Override gradient text on light-background cards - use solid dark color */
.ecosystem-card .highlight,
.ecosystem-card .gradient-text,
.ecosystem-card h3,
.tool-card h3,
.marketing-card h3,
.app-card h3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a2a3a !important;
    background-clip: unset !important;
    color: #1a2a3a !important;
    text-shadow: none !important;
}

/* Section headers */
.section-header,
.section-title {
    color: #ffffff !important;
}

.section-subtitle,
.section-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Marketing tools section specific */
.marketing-tools-section .section-badge {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Testimonial section */
.testimonial-card {
    background: rgba(0, 212, 255, 0.05) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stats in testimonials */
.stats-row .stat-item strong {
    color: #ffffff !important;
}

.stats-row .stat-item span {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Final CTA section */
.final-cta {
    background: rgba(0, 212, 255, 0.08) !important;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Footer styling for dark theme */
.main-footer,
footer {
    background: rgba(5, 10, 18, 0.95) !important;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff !important;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-section a:hover {
    color: #00d4ff !important;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Header/Navigation on dark background */
.main-header,
.navbar {
    background: rgba(5, 10, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: #00d4ff !important;
}

.nav-logo h1 {
    color: #ffffff !important;
}

.tagline {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .neural-background {
        background:
            radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
            linear-gradient(180deg, #050a12 0%, #0a1628 50%, #040810 100%);
    }

    .synaptic-pulses {
        opacity: 0.4;
    }

    .brain-glow {
        opacity: 0.5;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .brain-glow,
    .synaptic-pulses,
    .conn-animate {
        animation: none;
    }
}

/* ============================================
   CONTACT PAGE CONTRAST FIXES
   Override gradient text on dark backgrounds
   ============================================ */

/* Business Hours Section - Pure white text */
.business-hours {
    background: rgba(15, 25, 40, 0.8) !important;
}

.business-hours h2,
.business-hours h3,
.hours-info h3,
.response-times h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

.business-hours .hours-list,
.business-hours .hours-item,
.business-hours .day,
.business-hours .time {
    color: rgba(255, 255, 255, 0.9) !important;
}

.response-times ul,
.response-times li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.response-times li strong {
    color: #ffffff !important;
}

/* Contact Hero Section */
.contact-hero {
    background: transparent !important;
}

.contact-hero h1,
.contact-hero .hero-title {
    color: #ffffff !important;
}

.contact-hero .hero-title .highlight {
    background: linear-gradient(135deg, #6ac4e0 0%, #7ba3d4 50%, #9a9cd8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.contact-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Contact Form Section */
.contact-form-section {
    background: rgba(15, 25, 40, 0.6) !important;
}

.contact-form-section h2,
.form-header h2 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.contact-form-section p,
.form-header p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Contact Cards */
.contact-card {
    background: rgba(20, 35, 55, 0.8) !important;
    border: 1px solid rgba(100, 180, 220, 0.15) !important;
}

.contact-card h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-link {
    color: #6ac4e0 !important;
}

/* FAQ Section */
.contact-faq {
    background: rgba(15, 25, 40, 0.6) !important;
}

.contact-faq h2 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.faq-item {
    background: rgba(20, 35, 55, 0.6) !important;
    border: 1px solid rgba(100, 180, 220, 0.15) !important;
}

.faq-item h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   GLOBAL DARK SECTION OVERRIDES
   Force white text on all dark backgrounds
   ============================================ */

/* Any section heading that might use gradient text on dark */
section h2,
section h3 {
    color: #ffffff !important;
}

/* Override gradient text specifically on dark backgrounds */
section:not(.ecosystem-section):not(.marketing-tools-section) h2,
section:not(.ecosystem-section):not(.marketing-tools-section) h3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

/* Legal pages content overrides */
.legal-content h1 {
    color: #ffffff !important;
}

.legal-content h2 {
    color: #667eea !important;
}

.legal-content h3 {
    color: #764ba2 !important;
}

.legal-content p,
.legal-content li {
    color: #e0e0e0 !important;
}

/* ============================================
   ECOSYSTEM APP CARDS - MAXIMUM CONTRAST
   Coming Soon cards on dark backgrounds
   ============================================ */

/* App Status Badge (Coming 2025, In Development) */
.ecosystem-app .app-status {
    color: #ffffff !important;
    background: rgba(0, 212, 255, 0.2) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* App Description text - PURE WHITE */
.ecosystem-app .app-description,
.ecosystem-app.coming-soon .app-description {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* App Links - Bright cyan */
.ecosystem-app .app-link,
.ecosystem-app.coming-soon .app-link {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

.ecosystem-app .app-link:hover {
    color: #5ce1ff !important;
    -webkit-text-fill-color: #5ce1ff !important;
}

/* Feature tags in ecosystem apps */
.ecosystem-app .feature-tag {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

/* ============================================
   DEVELOPER TOOLS SECTION - MAXIMUM CONTRAST
   Marketing Automation Tools section
   ============================================ */

.developer-tools {
    background: transparent !important;
}

/* Tools Header */
.tools-header .tools-badge {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.15) !important;
}

.tools-header h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Tools description - PURE WHITE */
.tools-header p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Tool Cards */
.tool-card {
    background: rgba(20, 35, 55, 0.85) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.tool-card h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Tool Card descriptions - PURE WHITE */
.tool-card p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Tool Links - Bright cyan */
.tool-link {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

.tool-link:hover {
    color: #5ce1ff !important;
    -webkit-text-fill-color: #5ce1ff !important;
}

/* Tools CTA section */
.tools-cta p,
.tools-pitch {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.tools-cta strong {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

/* ============================================
   GLOBAL PARAGRAPH AND DESCRIPTION OVERRIDES
   Force all descriptions on dark backgrounds white
   ============================================ */

/* Any paragraph directly in a section on dark bg */
section p,
section .description,
section .subtitle {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* All h3 elements - force white */
section h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* All links on dark backgrounds - bright cyan */
section a:not(.cta-button):not(.cta-primary):not(.cta-secondary):not([class*="btn"]) {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
}

/* Status badges and coming soon indicators */
.app-status,
.coming-soon-badge,
.status-badge {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
