/**
 * LANDAmin Visual Credibility & Motion Design System
 * File: css/visual-credibility.css
 * Master Specification: LANDAmin_VISUAL_DESIGN_SYSTEM.md & LANDAmin_MOTION_SYSTEM.md
 * Standards: 60fps GPU Compositing, Zero CLS, WCAG 2.1 AA Contrast, Reduced-Motion Compliance
 */

:root {
  /* Color Palette Tokens */
  --la-obsidian:       #030c08;
  --la-dark-pine:      #061a12;
  --la-slate-surface:  #0a2218;
  --la-forest:         #047857;
  --la-emerald:        #059669;
  --la-emerald-bright: #10b981;
  --la-mint:           #34d399;
  --la-mint-soft:      #a7f3d0;
  --la-cyan:           #38bdf8;
  --la-amber:          #f59e0b;
  --la-crimson:        #f87171;
  
  /* Text & Surfaces */
  --la-text-primary:   #ffffff;
  --la-text-secondary: #cbd5e1;
  --la-text-muted:     #94a3b8;
  --la-border-glass:   rgba(16, 185, 129, 0.22);
  --la-border-subtle:  rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-devanagari: 'Noto Sans Devanagari', 'Inter', sans-serif;

  /* Motion Timing Tokens */
  --la-duration-instant: 120ms;
  --la-duration-rapid:   220ms;
  --la-duration-focus:   380ms;
  --la-duration-draw:    850ms;
  --la-duration-unfurl: 1200ms;

  /* Easing Curves */
  --la-ease-standard:   cubic-bezier(0.16, 1, 0.3, 1);
  --la-ease-mechanical: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* =========================================================================
   HERO BACKDROP WITH AUTHENTIC RURAL SURVEY CONTEXT
   ========================================================================= */
.la-hero-with-bg {
  position: relative;
  background-color: var(--la-obsidian);
  background-image: 
    linear-gradient(135deg, rgba(3, 12, 8, 0.94) 0%, rgba(6, 26, 18, 0.90) 50%, rgba(3, 12, 8, 0.96) 100%),
    url('../assets/visual_library/03_FIELD/landamin-rural-survey-hero-bg.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

/* =========================================================================
   PROBLEM SECTION: "ज़मीन का काम है... समझ नहीं आ रहा शुरुआत कहाँ से करें?"
   ========================================================================= */
.la-problem-section {
  padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, var(--la-obsidian) 0%, var(--la-dark-pine) 100%);
  position: relative;
}

.la-problem-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
}

.la-problem-h2 {
  font-family: var(--font-devanagari), var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.28;
  margin: 0.5rem 0 1rem;
}

.la-problem-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: var(--la-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.la-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.la-problem-card {
  background: rgba(10, 34, 24, 0.65);
  border: 1.5px solid rgba(248, 113, 113, 0.25);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: transform var(--la-duration-focus) var(--la-ease-standard),
              border-color var(--la-duration-focus) var(--la-ease-standard);
}

.la-problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.6);
}

.la-problem-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  width: fit-content;
  margin-bottom: 1rem;
}

.la-problem-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  font-family: var(--font-devanagari);
}

.la-problem-desc {
  font-size: 0.88rem;
  color: var(--la-text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.la-problem-solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--la-mint);
  text-decoration: none;
  transition: color var(--la-duration-rapid);
}

.la-problem-solution-link:hover {
  color: #ffffff;
}

/* =========================================================================
   KEYFRAME ANIMATIONS & MOTIONS
   ========================================================================= */
@keyframes laLineDraw {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.la-draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: laLineDraw var(--la-duration-draw) var(--la-ease-standard) forwards;
  will-change: stroke-dashoffset;
}

@keyframes laBeaconPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.la-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--la-emerald);
  animation: laBeaconPulse 2000ms infinite cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}

/* =========================================================================
   REDUCED MOTION OVERRIDES (Strict Accessibility)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .la-live-ticker-inner,
  .la-ticker-track {
    animation: none !important;
    transform: none !important;
  }

  .la-draw-line {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  .la-pulse-dot {
    animation: none !important;
    box-shadow: 0 0 0 2px var(--la-emerald) !important;
  }
}
