/* Custom styles for AgFin.Care */

/* Global dark theme */
body {
  background: var(--gradient-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Simple section backgrounds */
.section-alt-1 {
  background: transparent;
  padding: 4rem 0;
}

.section-alt-2 {
  background: transparent;
  padding: 4rem 0;
}

.section-alt-3 {
  background: transparent;
  padding: 4rem 0;
}

.section-alt-4 {
  background: transparent;
  padding: 4rem 0;
}

/* Dark theme container styling */
.container {
  position: relative;
}

:root {
  /* Modern dark color palette */
  --agfin-primary: #6366f1;
  --agfin-primary-dark: #4f46e5;
  --agfin-primary-light: #8b5cf6;
  --agfin-secondary: #06d6a0;
  --agfin-accent: #f72585;
  --agfin-danger: #ef4444;
  --agfin-warning: #f59e0b;
  --agfin-success: #10b981;
  
  /* Dark theme backgrounds */
  --dark-bg-primary: #0f0f23;
  --dark-bg-secondary: #16213e;
  --dark-bg-tertiary: #1e293b;
  --dark-bg-surface: #1f2937;
  --dark-bg-elevated: #374151;
  
  /* Text colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 50%, var(--dark-bg-tertiary) 100%);
  --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #16213e 25%, #1e293b 50%, #0f172a 75%, #020617 100%);
  --gradient-surface: linear-gradient(145deg, var(--dark-bg-surface) 0%, var(--dark-bg-elevated) 100%);
  --gradient-accent: linear-gradient(135deg, var(--agfin-primary) 0%, var(--agfin-primary-light) 50%, var(--agfin-accent) 100%);
  
  /* Override PicoCSS colors */
  --pico-primary-500: var(--agfin-primary);
  --pico-primary-600: var(--agfin-primary-dark);
  --pico-background-color: var(--dark-bg-primary);
  --pico-color: var(--text-primary);
  --pico-card-background-color: var(--dark-bg-surface);
}

/* Hero section custom styling */
.hero {
  background: linear-gradient(180deg, 
    rgba(15, 15, 35, 0.8) 0%, 
    rgba(22, 33, 62, 0.85) 20%, 
    rgba(30, 41, 59, 0.9) 40%, 
    rgba(15, 23, 42, 0.9) 60%, 
    rgba(15, 15, 35, 0.95) 80%, 
    var(--dark-bg-primary) 100%
  ), url('/images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(6, 214, 160, 0.1) 0%, transparent 50%);
  z-index: 1;
}

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

.hero h1 {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features section */
.features {
  padding: 6rem 0;
  background: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Two-column feature layout */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
  padding: 3rem 0;
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-image img,
.feature-image svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.feature-image:hover img,
.feature-image:hover svg {
  transform: scale(1.05);
}

/* SVG Icon containers */
.feature-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--gradient-surface);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 300px;
}

.feature-svg-icon {
  width: 200px;
  height: 200px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.feature-icon-container:hover .feature-svg-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-content {
  padding: 2rem;
}

.feature-content h3 {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-highlights li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border-left: 3px solid var(--agfin-primary);
}

.feature-highlights li::before {
  content: '✓';
  background: var(--agfin-success);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Individual feature section backgrounds */
.feature-bg-1 {
  background: transparent;
}

.feature-bg-2 {
  background: transparent;
}

.feature-bg-3 {
  background: transparent;
}

.feature-bg-4 {
  background: transparent;
}

.feature-card {
  background: var(--gradient-surface);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA sections */
.cta {
  background: transparent;
  color: var(--text-primary);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.cta > .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  margin-bottom: 1.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 700;
}

.cta p {
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Security badges */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--agfin-success) 0%, #059669 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alpha phase badges */
.alpha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: pulse 3s infinite;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.coming-soon-overlay {
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  backdrop-filter: blur(5px);
}

.coming-soon-overlay::after {
  content: 'COMING SOON';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Statistics section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .feature-section.reverse {
    direction: ltr;
  }
  
  .feature-content h3 {
    font-size: 1.5rem;
  }
  
  .feature-highlights li {
    font-size: 0.9rem;
  }
}

/* Navigation */
nav {
  background: rgba(31, 41, 55, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: inline-block;
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.nav-brand:hover .logo-image {
  opacity: 0.8;
}

/* Logo responsive styles */
@media (max-width: 768px) {
  .logo-image {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 28px;
  }
}

/* Footer */
footer {
  background: transparent;
  color: var(--text-secondary);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

footer > .container {
  position: relative;
  z-index: 2;
}

footer p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

footer a {
  color: var(--agfin-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Modern button styling */
[role="button"], button, .button {
  background: var(--gradient-accent) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
  text-decoration: none !important;
  display: inline-block !important;
}

[role="button"]:hover, button:hover, .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

[role="button"].secondary {
  background: var(--gradient-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[role="button"].secondary:hover {
  background: var(--dark-bg-elevated) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Blockquotes */
blockquote {
  background: var(--gradient-surface);
  border-left: 4px solid var(--agfin-primary);
  padding: 2rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

blockquote footer {
  background: none;
  padding: 0;
  border: none;
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Under Construction Notice */
.under-construction {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 1rem 0;
  border-bottom: 3px solid #92400e;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.construction-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.construction-icon {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

.construction-content h3 {
  color: white;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.construction-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .construction-notice {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .construction-icon {
    font-size: 1.5rem;
  }
  
  .construction-content h3 {
    font-size: 1rem;
  }
  
  .construction-content p {
    font-size: 0.8rem;
  }
}

/* Vision Section Styles */
#vision {
  text-align: center;
}

#vision .container {
  max-width: 1200px;
  margin: 0 auto;
}

.vision-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.vision-header h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-header p {
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 0;
}

.vision-card {
  background: var(--gradient-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
  border-color: var(--agfin-primary);
}

.vision-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.vision-card h3 {
  color: var(--text-primary);
  margin: 1.5rem 0;
  font-size: 1.6rem;
  font-weight: bold;
}

.vision-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Vision section info box */
#vision div[style*="rgba(16, 185, 129, 0.1)"] {
  text-align: left;
  max-width: 900px;
  margin: 3rem auto !important;
}

#vision div[style*="rgba(16, 185, 129, 0.1)"] h3 {
  font-size: 1.4rem;
  text-align: center;
}

#vision div[style*="rgba(16, 185, 129, 0.1)"] p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Vision section CTA area */
#vision div[style*="text-align: center; margin-top: 3rem;"] h3 {
  font-size: 1.8rem;
}

#vision div[style*="text-align: center; margin-top: 3rem;"] p {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .vision-header h2 {
    font-size: 2.2rem;
  }
  
  .vision-header p {
    font-size: 1.2rem;
  }
  
  .vision-card h3 {
    font-size: 1.4rem;
  }
  
  .vision-card p {
    font-size: 1rem;
  }
  
  .vision-icon {
    font-size: 3rem;
  }
}