/* Funding Sources CSS - Adapted from mockup files */

:root {
  --primary: #0b4a89;
  --secondary: #475569;
  --accent: #3b82f6;
  --surface: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --green-100: #dcfce7;
  --green-300: #86efac;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-300: #d8b4fe;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --amber-500: #f59e0b;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --teal-500: #14b8a6;
  --indigo-500: #6366f1;
  --pink-600: #db2777;
  --cyan-300: #67e8f9;
  --gray-300: #d1d5db;
}

/* Funding Sources Page Styles */

.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Hero Section */
.hero-bg2 {
  /*background: linear-gradient(135deg, #1D1D1D 0%, #0b4a89 100%);*/
  background: linear-gradient(135deg, #1D1D1D 0%, #0b8921 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  background: linear-gradient(135deg, #1D1D1D 0%, #0b4a89 100%);
  position: relative;
  overflow: hidden;
}

.min-height-100vh {
  min-height: 100vh;
}

.vanta-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title-gradient {
  background: linear-gradient(to right, var(--blue-400), var(--cyan-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dual-use-gradient {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #10b981);
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Color utilities */
.text-gray-300 { color: #d1d5db; }
.text-blue-300 { color: var(--blue-300); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-green-300 { color: var(--green-300); }
.text-green-500 { color: var(--green-500); }
.text-green-600 { color: var(--green-600); }
.text-purple-300 { color: var(--purple-300); }
.text-purple-600 { color: var(--purple-600); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: var(--orange-600); }

.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-green-100 { background-color: var(--green-100); }
.bg-purple-50 { background-color: var(--purple-50); }
.bg-purple-100 { background-color: var(--purple-100); }
.bg-orange-100 { background-color: var(--orange-100); }

.bg-gradient-purple-blue {
  background: linear-gradient(to bottom right, var(--purple-50), var(--blue-50));
}

/* Funding Cards */
.funding-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.funding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-left-color: var(--accent);
}

.tech-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-left-color: #8b5cf6;
}

.amount-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-open {
  background: #10b981;
}

.status-closed {
  background: #ef4444;
}

.status-upcoming {
  background: #f59e0b;
}

.description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--slate-600);
}

.filter-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.filter-btn.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: var(--blue-800);
  border-color: var(--blue-800);
  color: white;
  transform: scale(1.02);
}

.btn-purple {
  background-color: var(--purple-600);
  border-color: var(--purple-600);
  color: white;
  transition: all 0.2s ease;
}

.btn-purple:hover {
  background-color: var(--purple-700);
  border-color: var(--purple-700);
  color: white;
  transform: scale(1.05);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-outline-purple {
  border-color: var(--purple-600);
  color: var(--purple-600);
}

.btn-outline-purple:hover {
  background-color: var(--purple-50);
  border-color: var(--purple-600);
  color: var(--purple-600);
}

/* Resource Cards */
.resource-card {
  transition: box-shadow 0.3s ease;
}

.resource-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient icon boxes */
.icon-gradient-blue-purple {
  background: linear-gradient(to bottom right, #3b82f6, var(--purple-600));
}

.icon-gradient-green-blue {
  background: linear-gradient(to bottom right, var(--green-500), var(--blue-600));
}

.icon-gradient-purple-pink {
  background: linear-gradient(to bottom right, var(--purple-500), var(--pink-600));
}

.icon-gradient-orange-red {
  background: linear-gradient(to bottom right, #f97316, var(--red-600));
}

.icon-gradient-teal-green {
  background: linear-gradient(to bottom right, var(--teal-500), var(--green-600));
}

.icon-gradient-indigo-purple {
  background: linear-gradient(to bottom right, var(--indigo-500), var(--purple-600));
}

/* Modal styling */
.modal-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}

.modal-custom-content {
  background: white;
  border-radius: 1rem;
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.animate-slide-in {
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.pulse-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

.min-vh-100 {
  min-height: 100vh;
}

.gradient-text {
  background: linear-gradient(to right, var(--blue-400), var(--cyan-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue-200 {
  color: rgba(37, 99, 235, 0.2);
}

.text-yellow-300 {
  color: rgb(251, 226, 62);
}

.text-yellow-600 {
  color: #ca8a04;
}

.text-indigo-600 {
  color: var(--indigo-500);
}

.bg-green-500 {
  background-color: var(--green-500);
}

.bg-purple-500 {
  background-color: var(--purple-500);
}

.bg-orange-500 {
  background-color: #f97316;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-indigo-500 {
  background-color: var(--indigo-500);
}

.border-gray-300 {
  border-color: var(--gray-300);
}

.border-slate-200 {
  border-color: var(--slate-200);
}

/* Custom spacing */
.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.gap-custom {
  gap: 2rem;
}

/* Featured Programs in Hero */
.featured-program {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Chart containers */
#dual-use-chart {
  height: 320px;
}

#timeline-chart {
  height: 384px;
}

#market-growth-chart {
  height: 256px;
}

#funding-timeline-chart {
  height: 384px;
}

/* Link styles */
.link-blue {
  color: var(--blue-600);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-blue:hover {
  color: var(--blue-800);
}

.link-green {
  color: var(--green-600);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-green:hover {
  color: #15803d;
}

.link-purple {
  color: var(--purple-600);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-purple:hover {
  color: #7c3aed;
}

.rounded-sm {
  border-radius: 4px !important;
}

/* Guide CTA section - Winning Funding Proposal PDF download */
/* guide-cta-section: from-amber-500 via-orange-500 to-red-500 (bottom-right gradient) */
.guide-cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--amber-500), var(--orange-500), var(--red-500));
}

.guide-cta-section__blur-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.guide-cta-section__blur-circle--top-right {
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  transform: translate(50%, -50%);
}

.guide-cta-section__blur-circle--bottom-left {
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  transform: translate(-50%, 50%);
}

.guide-cta-section__badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.guide-cta-section__title {
  color: white;
}

.guide-cta-section__title-highlight {
  color: rgb(253, 224, 71);
}

.guide-cta-section__desc {
  color: rgba(255, 255, 255, 0.9);
}

.guide-cta-section__check {
  color: rgb(253, 224, 71);
  font-size: 1.125rem;
}

.guide-cta-section__btn {
  background: white;
  color: var(--blue-600);
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.guide-cta-section__btn:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  transform: scale(1.02);
}

.guide-cta-section__card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, var(--blue-400), var(--blue-700));
}


.to-red-500 {
  --tw-gradient-to: #ef4444 var(--tw-gradient-to-position);
}

.via-orange-500 {
  --tw-gradient-to: rgb(249 115 22 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #f97316 var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.from-amber-500 {
  --tw-gradient-from: #f59e0b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}