/**
 * IdeaGraph Theme System
 * 
 * Central color scheme with dark mode, futuristic design, and warm autumn accents.
 * All colors are defined as CSS custom properties for easy theming and maintenance.
 */

:root {
    /* Background Colors */
    --color-bg: #0f1115;           /* Deep neutral dark gray - main background */
    --color-surface: #1a1d23;       /* Slightly lighter surface for panels, cards, modals */
    --color-hover: #272a33;         /* Subtle contrast for hover states */
    --color-bg-purple: #1a1425;     /* Purple-tinted background variant for gradients */
    
    /* Primary & Secondary Colors */
    --color-primary: #8b5cf6;       /* Flowing violet - modern, calm accent */
    --color-secondary: #fbbf24;     /* Warm gold tone for autumn/highlight accents */
    
    /* Text Colors */
    --color-text: #e5e7eb;          /* Light reading text, high contrast */
    --color-text-muted: #9ca3af;    /* For labels, subtitles, meta information */
    
    /* State Colors */
    --color-success: #10b981;       /* Green tone for successful actions */
    --color-warning: #f59e0b;       /* Yellow-orange for warnings */
    --color-error: #ef4444;         /* Clear signal color for errors */
    
    /* Special Purpose Colors */
    --color-ai: #6366f1;            /* Blue-purple for AI elements (agent comments) */
    
    /* Bootstrap Variable Overrides */
    --bs-body-bg: var(--color-bg);
    --bs-body-color: var(--color-text);
    --bs-primary: var(--color-primary);
    --bs-secondary: var(--color-secondary);
    --bs-success: var(--color-success);
    --bs-warning: var(--color-warning);
    --bs-danger: var(--color-error);
    --bs-info: var(--color-ai);
    
    /* Border Colors */
    --bs-border-color: rgba(255, 255, 255, 0.1);
    
    /* Link Colors */
    --bs-link-color: var(--color-primary);
    --bs-link-hover-color: #a78bfa;

     --bs-body-font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-weight: 400;
    font-size: 90%;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
/* Dark Theme - Default */
.dark,
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--bs-body-font-family);
    font-weight: var(--bs-body-font-weight);
    letter-spacing: 0.01em;


}

/* Navigation Bar Theme */
.navbar-dark {
    background-color: var(--color-surface) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar-brand {
    color: var(--color-primary) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #a78bfa !important;
}

.nav-link {
    color: var(--color-text) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Card Components */
.card {
    background-color: var(--color-surface);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--color-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.card-title {
    color: var(--color-text);
}

.card-text {
    color: var(--color-text-muted);
}

/* Button Overrides */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a78bfa;
    border-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-outline-secondary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-bg);
}

/* Footer */
.bg-dark {
    background-color: var(--color-surface) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--color-surface) !important;
    color: var(--color-text) !important;
}

/* Hero Section */
.display-4 {
    color: var(--color-text);
    /* Fallback for browsers that don't support background-clip: text */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for Firefox < 92 and other browsers without background-clip support */
@supports not (background-clip: text) {
    .display-4 {
        color: var(--color-primary);
    }
}

.lead {
    color: var(--color-text-muted);
}

/* Focus States - Accessibility */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* AI-specific Elements */
.ai-element,
.ai-comment,
.ai-recommendation {
    border-left: 3px solid var(--color-ai);
    background-color: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    margin: 0.5rem 0;
}

/* Success/Warning/Error States */
.text-primary {
    color: var(--color-primary) !important ;
}

.text-muted {
    color: var(--color-ai) !important;
}

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

.text-success {
    color: var(--color-success) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-danger {
    color: var(--color-error) !important;
}

/* Hover Effects for Interactive Elements */
.navbar-toggler {
    border-color: var(--color-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

/* Custom Scrollbar */
/* For webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-hover);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-surface) var(--color-bg);
}
/**
 * IdeaGraph Landing Page Styles
 * Modern, futuristic design with animations and transitions
 */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;

}


.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Fallback for browsers without background-clip support */
@supports not (background-clip: text) {
    .hero-title {
        color: var(--color-primary);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.scroll-link {
    transition: all 0.3s ease;
}

/* Fixed Navigation */
.navbar.fixed-top {
    background-color: rgba(26, 29, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.fixed-top.scrolled {
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
}

/* Section Styling */
.section-about {
    background-color: var(--color-bg);
}

.section-mission {
    background: linear-gradient(135deg, var(--color-bg-purple) 0%, var(--color-bg) 50%, var(--color-bg-purple) 100%);
    position: relative;
}

.section-features {
    background-color: var(--color-bg);
}

.section-community {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    position: relative;
}

/* Network background pattern for community section */
.section-community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: var(--color-surface);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.25);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

/* Motto/Quote Styling */
.motto {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text);
    font-style: italic;
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    margin: 2rem 0;
}

.mission-statement {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    padding: 2rem;
    border-left: 4px solid var(--color-secondary);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
    font-style: italic;
}

/* Highlight Cards */
.highlight-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.highlight-card:hover::before {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    border-color: var(--color-ai);
}

.highlight-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

/* Benefit Cards */
.benefit-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

/* Testimonial */
.testimonial {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--color-primary);
}

.testimonial p:first-child {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Footer */
.footer-dark {
    background-color: var(--color-surface);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .motto {
        font-size: 1.3rem;
        padding: 1.5rem;
    }
    
    .mission-statement {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-icon,
    .highlight-icon,
    .benefit-icon {
        font-size: 2.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer-dark {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
}
:root { 
    --brand-gold:#f7b500; 
    --brand-violet:#9f70ff; 
    --bg:#0a0a0a; 
}

html, body {
    background: #0a0a0a;
    color: #fff;
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-violet));
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent;
}

/* Fallback for browsers without background-clip support */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .gradient-text {
        color: var(--brand-gold);
    }
}

.card-glass {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
}

.glow {
    transition: box-shadow .25s ease, transform .25s ease;
}

.glow:hover {
    box-shadow: 0 0 24px rgba(247,181,0,.35);
    transform: translateY(-1px);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}
/* Glassy, sticky navbar */
.nav-glass{
  background: rgba(10,10,10,0.35);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav-glass.scrolled{
  background: rgba(10,10,10,0.75);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Mega dropdown */
.dropdown-mega .dropdown-menu{
  min-width: 560px;
  border-radius: 1rem;
  background: rgba(20,20,24,0.96);
}
.dropdown-item{ border-radius: .5rem; }
.dropdown-item:hover{ background: rgba(255,255,255,0.06); }

/* Card glass used inside mega */
.card-glass{
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
}

/* Animated underline for active/top-level links */
.nav-underline { position: relative; }
.nav-underline .nav-link { position: relative; }
.nav-underline .nav-link.active,
.nav-underline .nav-link:focus,
.nav-underline .nav-link:hover { color: #fff; }
.nav-underline-indicator{
  position: absolute; left: 0; bottom: 0;
  height: 2px; background: linear-gradient(90deg,#f7b500,#9f70ff);
  width: 0; opacity: 0; transition: transform .25s ease,width .25s ease,opacity .2s ease;
}

/* Semantic Network Graph Styles */
.semantic-network-wrapper {
  width: 100%;
  min-height: 600px;
  position: relative;
}

.semantic-network-graph {
  width: 100%;
  min-height: 600px;
  position: relative;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 0.5rem;
}

.semantic-network-summary {
  margin-bottom: 1rem;
}

.semantic-network-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.semantic-network-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.semantic-network-legend .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.semantic-network-legend .legend-item:last-child {
  margin-bottom: 0;
}

.semantic-network-legend .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
}

.semantic-network-legend .legend-line {
  width: 20px;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Container for semantic graph in detail pages */
#milestoneSemanticNetworkContainer,
#itemSemanticNetworkContainer,
#taskSemanticNetworkContainer {
  width: 100%;
  min-height: 600px;
}


/* New Tasks Badge Styling */
.all-new-tasks-badge,
.mail-inbox-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    gap: 0.5rem;
}

.all-new-tasks-badge:hover,
.mail-inbox-badge:hover {
    color: var(--color-primary);
    background-color: var(--color-hover);
    transform: translateY(-1px);
}

.all-new-tasks-badge .badge-count,
.mail-inbox-badge .badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.all-new-tasks-badge:hover .badge-count,
.mail-inbox-badge:hover .badge-count {
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}
