/* ============================================
   EARTH BORN INDIA - CUSTOM STYLES
   Bootstrap 5.3 + Tailwind Combination + Custom
   ============================================ */

/* Import Tailwind (keeping existing styles) */
@import url('../../public/css/output.css');

/* Custom Color Variables */
:root {
  --earth-green-50: #f0fdf4;
  --earth-green-100: #dcfce7;
  --earth-green-500: #22c55e;
  --earth-green-600: #16a34a;
  --earth-green-700: #15803d;
  --earth-green-800: #166534;
  --earth-green-900: #14532d;
  
  --earth-orange-50: #fff7ed;
  --earth-orange-100: #ffedd5;
  --earth-orange-300: #fdba74;
  --earth-orange-400: #fb923c;
  --earth-orange-500: #f97316;
  --earth-orange-600: #ea580c;
  --earth-orange-700: #c2410c;
}

/* Override Bootstrap primary colors with our green theme */
.btn-primary {
  background: linear-gradient(135deg, var(--earth-green-700), var(--earth-green-600));
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--earth-green-800), var(--earth-green-700));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--earth-orange-600), var(--earth-orange-500));
  border: none;
  color: white;
  font-weight: 600;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--earth-orange-700), var(--earth-orange-600));
  transform: translateY(-2px);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
  padding-top: 160px; /* Space for fixed header with larger logo */
}

/* Responsive body padding for tablets and mobile */
@media (max-width: 1024px) {
  body {
    padding-top: 140px; /* iPad Pro and tablet landscape */
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 130px; /* Increased for larger mobile logo */
  }
}

@media (max-width: 575px) {
  body {
    padding-top: 115px; /* Increased for readable mobile logo */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 900 !important;
}

/* Body text uses Inter */
p, span, div, a, li {
  font-family: 'Inter', sans-serif !important;
}

/* Buttons use Montserrat for impact */
.btn, button {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

/* Form inputs use Inter */
input, select, textarea {
  font-family: 'Inter', sans-serif !important;
}

/* Navbar uses Montserrat */
.navbar, .nav-link, .dropdown-item {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
}

/* Card titles use Montserrat, body uses Inter */
.card-title, .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  font-family: 'Montserrat', sans-serif !important;
}

.card-body p, .card-text {
  font-family: 'Inter', sans-serif !important;
}

/* Font Weight Utilities */
.fw-black {
  font-weight: 900 !important;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Card Hover Effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Navigation Styles */
.navbar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 60px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: #374151;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--earth-green-700);
}

.nav-link.active {
  color: var(--earth-green-700);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: linear-gradient(90deg, var(--earth-green-600), var(--earth-orange-500));
  border-radius: 2px;
}

/* Dropdown Mega Menu */
.dropdown-mega {
  position: static;
}

.dropdown-mega .dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  border-radius: 0 0 15px 15px;
  border-top: 3px solid var(--earth-green-600);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

.hero-section .btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Gradient Text Effect */
@supports (-webkit-background-clip: text) {
  .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,128,61,0.85), rgba(249,115,22,0.65));
}

/* Cards */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Sidebar Floating Buttons */
.sidebar-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: 3px solid white;
  cursor: pointer;
}

.sidebar-btn:hover {
  transform: scale(1.1) translateX(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.sidebar-btn .tooltip-text {
  position: absolute;
  right: 70px;
  background: #1f2937;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-btn:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.farmer-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.export-btn {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--earth-green-700), var(--earth-green-600));
  color: white;
  border: none;
  padding: 2rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.form-control, .form-select {
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--earth-green-600);
  box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.25);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--earth-green-600);
  transform: translateY(-5px);
  color: white;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--earth-green-500);
  padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Stats Counter */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--earth-green-500), var(--earth-orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 991px) {
  .sidebar-floating {
    position: fixed;
    bottom: 20px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    right: auto;
    gap: 12px;
    justify-content: center;
    width: auto;
  }
  
  .sidebar-btn .tooltip-text {
    display: none;
  }
  
  .sidebar-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .sidebar-btn:hover {
    transform: scale(1.1); /* Remove translateX on mobile */
  }
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
}

/* Loading Spinner */
.spinner-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner-container.active {
  display: flex;
}

/* Success/Error Messages */
.alert {
  border-radius: 10px;
  border: none;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--earth-green-600), var(--earth-orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.05) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Vision-Mission Page Specific Styles */

/* Timeline Styles */
.timeline {
  position: relative;
}

.timeline-line {
  background: linear-gradient(to bottom, #3b82f6, #10b981);
}

.timeline-item {
  margin-bottom: 2rem;
}

.timeline-dot {
  z-index: 2;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.timeline-year {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3;
}

/* Pillar Cards */
.pillar-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Mission Accordion */
.mission-accordion .accordion-button {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mission-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #1e293b;
}

.mission-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

/* Core Values Cards */
.core-values-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.core-values-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Newsletter Section */
.vision-form .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.vision-form .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.vision-form .btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.vision-form .btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.3" fill="white" opacity="0.08"/><circle cx="90" cy="40" r="0.4" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.cta-section .btn {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-light:hover {
  background: white;
  border-color: white;
}

/* Gradient Backgrounds */
.bg-gradient-to-br {
  background-attachment: fixed;
}

/* Hover Effects */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-item {
    margin-bottom: 3rem;
  }

  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-year {
    margin: 1rem 0;
  }
}

/* Vision Mission Specific Responsive */
@media (max-width: 991px) {
  .vision-form .col-md-8,
  .vision-form .col-md-4 {
    margin-bottom: 1rem;
  }

  .vision-form .col-md-4 .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .pillar-card {
    margin-bottom: 2rem;
  }

  .timeline-item .col-md-5 {
    text-align: center !important;
  }

  .timeline-item .col-md-2 {
    order: -1;
    margin-bottom: 1rem;
  }
}

/* Enhanced Vision Section Styles */
.vision-header .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.vision-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.vision-card .progress {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.vision-card .progress-bar {
  border-radius: 3px;
  transition: width 1.5s ease-in-out;
}

/* Enhanced Mission Section Styles */
.mission-header .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mission-overview {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-stat .display-6 {
  font-size: 2rem;
  line-height: 1;
}

.mission-item {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-toggle {
  transition: all 0.3s ease;
  padding: 1.25rem 1.5rem;
}

.mission-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.mission-toggle:not(.collapsed) {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-icon {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.mission-toggle:hover .mission-icon {
  transform: scale(1.1);
}

.mission-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.mission-status .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

.mission-point {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mission-point:hover {
  transform: translateX(5px);
  border-left-color: var(--bs-success);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-point i {
  transition: all 0.3s ease;
}

.mission-point:hover i {
  transform: scale(1.2);
}

/* Progress bar animations */
@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

.progress-bar {
  animation: progressFill 2s ease-out forwards;
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out forwards;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive adjustments for vision and mission sections */
@media (max-width: 768px) {
  .vision-header .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .vision-header .badge {
    align-self: center;
    margin-bottom: 0.5rem;
  }

  .mission-header .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .mission-header .badge {
    align-self: center;
    margin-bottom: 0.5rem;
  }

  .mission-toggle {
    padding: 1rem;
  }

  .mission-title {
    font-size: 1rem;
  }

  .mission-point {
    flex-direction: column;
    text-align: center;
  }

  .mission-point i {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* Enhanced hover effects for interactive elements */
.vision-card:hover .progress-bar {
  animation-duration: 0.5s;
}

.mission-item:hover .mission-icon {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Loading states for dynamic content */
.mission-loading {
  opacity: 0.6;
  pointer-events: none;
}

.mission-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Button Alignments */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* CTA Button Container */
.cta-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-buttons-container {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Newsletter Form Button Alignment */
.vision-form .btn {
  height: auto;
  min-height: 48px;
}

/* Button Hover Effects */
.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Consistent Button Spacing */
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Button Group Alignment */
.btn-group-vertical .btn,
.btn-group .btn {
  margin-bottom: 0;
}

/* Responsive Button Adjustments */
@media (max-width: 576px) {
  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
  }

  .vision-form .col-md-4 .btn {
    margin-top: 0.5rem;
  }
}

/* Flex Button Utilities */
.d-flex.align-items-center.justify-content-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.min-w-fit {
  min-width: fit-content;
}
